-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
316 additions
and
217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
versions: | ||
- rubocop-md | ||
- rubocop-performance | ||
- rubocop-rake | ||
- rubocop-thread_safety | ||
|
||
rubocop_fail_level: warning | ||
check_scope: modified | ||
base_branch: origin/main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
paths: | ||
- ".github/workflows/ci.yml" | ||
- "lib/**" | ||
- "*.gemspec" | ||
- "spec/**" | ||
- "Rakefile" | ||
- "Gemfile" | ||
pull_request: | ||
branches: | ||
- main | ||
create: | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
ruby: | ||
- "3.0" | ||
- "2.7" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true | ||
- name: Run unit tests | ||
run: bundle exec rake test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: RuboCop | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: RuboCop Linter Action | ||
uses: andrewmcodes/rubocop-linter-action@v3.3.0 | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,63 @@ | ||
/.bundle/ | ||
/.ruby-version | ||
/.yardoc | ||
/Gemfile.lock | ||
/_yardoc/ | ||
*.gem | ||
*.rbc | ||
/.config | ||
/coverage/ | ||
/doc/ | ||
/InstalledFiles | ||
/pkg/ | ||
/spec/reports/ | ||
/spec/examples.txt | ||
/test/tmp/ | ||
/test/version_tmp/ | ||
/tmp/ | ||
.DS_Store | ||
|
||
# Used by dotenv library to load environment variables. | ||
# .env | ||
|
||
# Ignore IRB command history file. | ||
.irb_history | ||
|
||
# Ignore Byebug command history file. | ||
.byebug_history | ||
|
||
## Specific to RubyMotion: | ||
.dat* | ||
.repl_history | ||
build/ | ||
*.bridgesupport | ||
build-iPhoneOS/ | ||
build-iPhoneSimulator/ | ||
|
||
## Specific to RubyMotion (use of CocoaPods): | ||
# | ||
# We recommend against adding the Pods directory to your .gitignore. However | ||
# you should judge for yourself, the pros and cons are mentioned at: | ||
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control | ||
# | ||
# vendor/Pods/ | ||
|
||
## Documentation cache and generated files: | ||
/.yardoc/ | ||
/_yardoc/ | ||
/doc/ | ||
/rdoc/ | ||
|
||
## Environment normalization: | ||
/.bundle/ | ||
/vendor/bundle | ||
/lib/bundler/man/ | ||
|
||
# for a library or gem, you might want to ignore these files since the code is | ||
# intended to run in multiple environments; otherwise, check them in: | ||
# Gemfile.lock | ||
# .ruby-version | ||
# .ruby-gemset | ||
|
||
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this: | ||
.rvmrc | ||
|
||
# Used by RuboCop. Remote config files pulled in from inherit_from directive. | ||
# .rubocop-https?--* | ||
|
||
# rspec failure tracking | ||
.rspec_status |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,27 @@ | ||
inherit_from: .rubocop_todo.yml | ||
|
||
AllCops: | ||
NewCops: enable | ||
TargetRubyVersion: 2.7 | ||
|
||
Exclude: | ||
- test/**/*.rb | ||
|
||
require: | ||
- rubocop-md | ||
- rubocop-performance | ||
- rubocop-rake | ||
- rubocop-thread_safety | ||
|
||
# Enforcing double quotes reduces the times where you need to switch to Crystal. | ||
Style/StringLiterals: | ||
EnforcedStyle: double_quotes | ||
|
||
# We do not need to support Ruby 1.9, so this is good to use. | ||
Style/SymbolArray: | ||
Enabled: true | ||
|
||
# Most readable form. | ||
Layout/HashAlignment: | ||
EnforcedHashRocketStyle: table | ||
EnforcedColonStyle: table |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2.7.3 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
source "https://rubygems.org" | ||
|
||
gemspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
PATH | ||
remote: . | ||
specs: | ||
fix-command (0.5.4) | ||
fix (~> 0.18.0) | ||
|
||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
ast (2.4.2) | ||
aw (0.1.12) | ||
defi (1.1.5) | ||
docile (1.4.0) | ||
fix (0.18.2) | ||
aw (~> 0.1.6) | ||
defi (~> 1.1.5) | ||
spectus (~> 3.0.9) | ||
matchi (1.0.8) | ||
parallel (1.20.1) | ||
parser (3.0.1.1) | ||
ast (~> 2.4.1) | ||
rainbow (3.0.0) | ||
rake (13.0.3) | ||
regexp_parser (2.1.1) | ||
rexml (3.2.5) | ||
rubocop (1.18.0) | ||
parallel (~> 1.10) | ||
parser (>= 3.0.0.0) | ||
rainbow (>= 2.2.2, < 4.0) | ||
regexp_parser (>= 1.8, < 3.0) | ||
rexml | ||
rubocop-ast (>= 1.7.0, < 2.0) | ||
ruby-progressbar (~> 1.7) | ||
unicode-display_width (>= 1.4.0, < 3.0) | ||
rubocop-ast (1.7.0) | ||
parser (>= 3.0.1.1) | ||
rubocop-md (1.0.1) | ||
rubocop (>= 1.0) | ||
rubocop-performance (1.11.3) | ||
rubocop (>= 1.7.0, < 2.0) | ||
rubocop-ast (>= 0.4.0) | ||
rubocop-rake (0.6.0) | ||
rubocop (~> 1.0) | ||
rubocop-thread_safety (0.4.2) | ||
rubocop (>= 0.53.0) | ||
ruby-progressbar (1.11.0) | ||
simplecov (0.21.2) | ||
docile (~> 1.1) | ||
simplecov-html (~> 0.11) | ||
simplecov_json_formatter (~> 0.1) | ||
simplecov-html (0.12.3) | ||
simplecov_json_formatter (0.1.3) | ||
spectus (3.0.10) | ||
aw (~> 0.1.6) | ||
defi (~> 1.1.5) | ||
matchi (~> 1.0.4) | ||
unicode-display_width (2.0.0) | ||
yard (0.9.26) | ||
|
||
PLATFORMS | ||
x86_64-darwin-18 | ||
x86_64-darwin-19 | ||
|
||
DEPENDENCIES | ||
bundler | ||
fix-command! | ||
rake | ||
rubocop-md | ||
rubocop-performance | ||
rubocop-rake | ||
rubocop-thread_safety | ||
simplecov | ||
spectus | ||
yard | ||
|
||
BUNDLED WITH | ||
2.2.17 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.