Skip to content

Commit 4b9a358

Browse files
committed
chore: initial commit 🎉
0 parents  commit 4b9a358

39 files changed

+1724
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: "\U0001F41E Bug Report"
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug 🐛
6+
assignees: ''
7+
8+
---
9+
10+
Found a bug? Please fill out the sections below! 👍
11+
12+
### Issue Summary
13+
14+
A summary of the issue.
15+
16+
### Steps to Reproduce
17+
18+
1. (for example) Start a new Rails project with Rails Mini Profiler
19+
2. Edit something.rb as follows...
20+
3. ...
21+
22+
Any other relevant information. For example, why do you consider this a bug and what did you expect to happen instead?
23+
24+
### Technical details
25+
26+
* Rails version: Run `rails --version` to find out.
27+
* Ruby version: Run `ruby -v` to find out.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: "\U0001F680 Feature request"
3+
about: Suggest an idea for improving MrLogaLoga
4+
title: ''
5+
labels: feature 🚀
6+
assignees: ''
7+
8+
---
9+
10+
### Is your proposal related to a problem?
11+
12+
(Provide a clear and concise description of what the problem is.)
13+
14+
### Describe the solution you'd like
15+
16+
(Provide a clear and concise description of what you want to happen.)
17+
18+
### Describe any alternatives you've considered
19+
20+
(Let us know about other solutions you've tried or researched.)
21+
22+
### Additional context
23+
24+
(Is there anything else you can add about the proposal? You might want to link to related issues here, if you haven't already.)

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: false

.github/dependabot.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
version: 2
2+
3+
updates:
4+
5+
- package-ecosystem: bundler
6+
directory: '/'
7+
versioning-strategy: increase
8+
schedule:
9+
interval: weekly
10+
ignore:
11+
- dependency-name: "*"
12+
update-types: ["version-update:semver-patch"]
13+
14+
- package-ecosystem: github-actions
15+
directory: '/'
16+
schedule:
17+
interval: weekly

.github/stale.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
daysUntilStale: 60
2+
daysUntilClose: 14
3+
staleLabel: stale
4+
markComment: >
5+
This issue has been automatically marked as stale because it has not had
6+
recent activity. It will be closed if no further activity occurs. Thank you
7+
for your contributions.
8+
exemptProjects: true
9+
closeComment: false

.github/workflows/main.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: main
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
push:
7+
branches: [ main ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
ruby-version: ["3.1", "3.0", "2.7", "2.6"]
16+
fail-fast: false
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
21+
- name: Set up Ruby ${{ matrix.ruby-version }}
22+
uses: ruby/setup-ruby@v1
23+
with:
24+
ruby-version: ${{ matrix.ruby-version }}
25+
bundler-cache: true
26+
27+
- name: Run Tests ✅
28+
run: |
29+
bundle exec rake spec
30+
env:
31+
COVERAGE: true
32+
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
33+
34+
- name: Report Coverage
35+
# We don't need to upload coverage multiple times, just do it for latest versions, and only on master
36+
if: github.ref == 'refs/heads/main' && matrix.ruby-version == 3.1
37+
uses: paambaati/codeclimate-action@v3.0.0
38+
env:
39+
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
40+
41+
lint:
42+
runs-on: ubuntu-latest
43+
steps:
44+
- uses: actions/checkout@v2
45+
with:
46+
fetch-depth: 0
47+
48+
- name: Set up Ruby
49+
uses: ruby/setup-ruby@v1
50+
with:
51+
ruby-version: "3.1"
52+
bundler-cache: true
53+
54+
- name: Run RuboCop 🚓
55+
run: bundle exec rake rubocop
56+
57+
- name: Lint Commits 📝
58+
uses: wagoid/commitlint-github-action@v4

.gitignore

Lines changed: 190 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,190 @@
1+
# Created by https://www.toptal.com/developers/gitignore/api/vim,rubymine+all,rails
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=vim,rubymine+all,rails
3+
4+
### Rails ###
5+
*.rbc
6+
capybara-*.html
7+
.rspec
8+
/db/*.sqlite3
9+
/db/*.sqlite3-journal
10+
/db/*.sqlite3-[0-9]*
11+
/public/system
12+
/coverage/
13+
/spec/tmp
14+
*.orig
15+
rerun.txt
16+
pickle-email-*.html
17+
18+
# Ignore all logfiles and tempfiles.
19+
/log/*
20+
/tmp/*
21+
!/log/.keep
22+
!/tmp/.keep
23+
24+
# TODO Comment out this rule if you are OK with secrets being uploaded to the repo
25+
config/initializers/secret_token.rb
26+
config/master.key
27+
28+
# Only include if you have production secrets in this file, which is no longer a Rails default
29+
# config/secrets.yml
30+
31+
# dotenv, dotenv-rails
32+
# TODO Comment out these rules if environment variables can be committed
33+
.env
34+
.env.*
35+
36+
## Environment normalization:
37+
/.bundle
38+
/vendor/bundle
39+
40+
# these should all be checked in to normalize the environment:
41+
# Gemfile.lock, .ruby-version, .ruby-gemset
42+
43+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
44+
.rvmrc
45+
46+
# if using bower-rails ignore default bower_components path bower.json files
47+
/vendor/assets/bower_components
48+
*.bowerrc
49+
bower.json
50+
51+
# Ignore pow environment settings
52+
.powenv
53+
54+
# Ignore Byebug command history file.
55+
.byebug_history
56+
57+
# Ignore node_modules
58+
node_modules/
59+
60+
# Ignore precompiled javascript packs
61+
/public/packs
62+
/public/packs-test
63+
/public/assets
64+
65+
# Ignore yarn files
66+
/yarn-error.log
67+
yarn-debug.log*
68+
.yarn-integrity
69+
70+
# Ignore uploaded files in development
71+
/storage/*
72+
!/storage/.keep
73+
/public/uploads
74+
75+
### RubyMine+all ###
76+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
77+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
78+
79+
# User-specific stuff
80+
.idea/**/workspace.xml
81+
.idea/**/tasks.xml
82+
.idea/**/usage.statistics.xml
83+
.idea/**/dictionaries
84+
.idea/**/shelf
85+
86+
# AWS User-specific
87+
.idea/**/aws.xml
88+
89+
# Generated files
90+
.idea/**/contentModel.xml
91+
92+
# Sensitive or high-churn files
93+
.idea/**/dataSources/
94+
.idea/**/dataSources.ids
95+
.idea/**/dataSources.local.xml
96+
.idea/**/sqlDataSources.xml
97+
.idea/**/dynamic.xml
98+
.idea/**/uiDesigner.xml
99+
.idea/**/dbnavigator.xml
100+
101+
# Gradle
102+
.idea/**/gradle.xml
103+
.idea/**/libraries
104+
105+
# Gradle and Maven with auto-import
106+
# When using Gradle or Maven with auto-import, you should exclude module files,
107+
# since they will be recreated, and may cause churn. Uncomment if using
108+
# auto-import.
109+
# .idea/artifacts
110+
# .idea/compiler.xml
111+
# .idea/jarRepositories.xml
112+
# .idea/modules.xml
113+
# .idea/*.iml
114+
# .idea/modules
115+
# *.iml
116+
# *.ipr
117+
118+
# CMake
119+
cmake-build-*/
120+
121+
# Mongo Explorer plugin
122+
.idea/**/mongoSettings.xml
123+
124+
# File-based project format
125+
*.iws
126+
127+
# IntelliJ
128+
out/
129+
130+
# mpeltonen/sbt-idea plugin
131+
.idea_modules/
132+
133+
# JIRA plugin
134+
atlassian-ide-plugin.xml
135+
136+
# Cursive Clojure plugin
137+
.idea/replstate.xml
138+
139+
# Crashlytics plugin (for Android Studio and IntelliJ)
140+
com_crashlytics_export_strings.xml
141+
crashlytics.properties
142+
crashlytics-build.properties
143+
fabric.properties
144+
145+
# Editor-based Rest Client
146+
.idea/httpRequests
147+
148+
# Android studio 3.1+ serialized cache file
149+
.idea/caches/build_file_checksums.ser
150+
151+
### RubyMine+all Patch ###
152+
# Ignores the whole .idea folder and all .iml files
153+
# See https://github.com/joeblau/gitignore.io/issues/186 and https://github.com/joeblau/gitignore.io/issues/360
154+
155+
.idea/
156+
157+
# Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023
158+
159+
*.iml
160+
modules.xml
161+
.idea/misc.xml
162+
*.ipr
163+
164+
# Sonarlint plugin
165+
.idea/sonarlint
166+
167+
### Vim ###
168+
# Swap
169+
[._]*.s[a-v][a-z]
170+
!*.svg # comment out if you don't need vector files
171+
[._]*.sw[a-p]
172+
[._]s[a-rt-v][a-z]
173+
[._]ss[a-gi-z]
174+
[._]sw[a-p]
175+
176+
# Session
177+
Session.vim
178+
Sessionx.vim
179+
180+
# Temporary
181+
.netrwhist
182+
*~
183+
# Auto-generated tag files
184+
tags
185+
# Persistent undo
186+
[._]*.un~
187+
188+
# End of https://www.toptal.com/developers/gitignore/api/vim,rubymine+all,rails
189+
190+
.rspec_status

.rspec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
--format documentation
2+
--color
3+
--require spec_helper

.rubocop.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
AllCops:
2+
TargetRubyVersion: 2.6
3+
NewCops: enable
4+
SuggestExtensions: false
5+
Exclude:
6+
- vendor/**/*
7+
- node_modules/**/*
8+
- gemfiles/**/*
9+
- db/migrate/*.rb
10+
- !ruby/regexp /schema\.rb$/
11+
12+
Layout/LineLength:
13+
Max: 120
14+
15+
Layout/MultilineMethodCallIndentation:
16+
EnforcedStyle: indented_relative_to_receiver
17+
18+
Metrics/AbcSize:
19+
Max: 20
20+
21+
Metrics/MethodLength:
22+
CountAsOne: ['array', 'heredoc']
23+
Max: 15
24+
25+
Metrics/BlockLength:
26+
IgnoredMethods: ['describe', 'context']
27+
28+
Metrics/ModuleLength:
29+
Exclude: ['**/*_spec.rb']
30+
31+
Style/OpenStructUse:
32+
Exclude: ['**/*_spec.rb']

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## [Unreleased]
2+
3+
## [0.1.0] - 2021-11-12
4+
5+
- Initial release

0 commit comments

Comments
 (0)