-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* apply rubocop (mostly layout, but a few style, lint, and param naming changes) * move gem executables to exe, so that bin can be used for bundler binstubs * remove deprecated methods * commit Gemfile.lock * add pre-commit config * add github actions to run rubocop and specs * remove travis
- Loading branch information
Showing
151 changed files
with
1,033 additions
and
788 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 @@ | ||
PATH_add bin |
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,30 @@ | ||
name: Ruby | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
test: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
ruby-version: [jruby-9.3] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby-version }} | ||
bundler-cache: true | ||
- name: Install dependencies | ||
run: bundle install | ||
- name: Run RuboCop | ||
run: bundle exec rubocop | ||
- name: Run test | ||
run: bundle exec rake specs |
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,6 +1,4 @@ | ||
pkg | ||
# no Gemfile.lock | ||
Gemfile.lock | ||
.ruby-version | ||
*.gem | ||
target | ||
|
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,6 @@ | ||
repos: | ||
- repo: https://github.com/mattlqx/pre-commit-ruby | ||
rev: v1.3.5 | ||
hooks: | ||
- id: rubocop | ||
|
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,32 +1,34 @@ | ||
AllCops: | ||
TargetRubyVersion: 2.1 | ||
Exclude: | ||
- 'Gemfile.lock' | ||
- pkg/**/* | ||
|
||
Style/Copyright: | ||
Enabled: false | ||
require: | ||
- rubocop-rake | ||
- rubocop-performance | ||
|
||
Style/Documentation: | ||
Enabled: false | ||
AllCops: | ||
TargetRubyVersion: 2.6 | ||
NewCops: enable | ||
|
||
Style/SafeNavigation: | ||
Metrics: | ||
Enabled: false | ||
|
||
Style/SymbolArray: | ||
EnforcedStyle: brackets | ||
Naming/FileName: | ||
Exclude: | ||
- lib/jar-dependencies.rb | ||
|
||
Style/FrozenStringLiteralComment: | ||
Enabled: false | ||
Performance/Casecmp: | ||
AutoCorrect: false | ||
|
||
Style/Dir: | ||
Style/Alias: | ||
EnforcedStyle: prefer_alias_method | ||
Style/BlockDelimiters: | ||
IgnoredMethods: [] | ||
Style/Documentation: | ||
Enabled: false | ||
|
||
Layout/IndentHeredoc: | ||
Style/EnvHome: | ||
Enabled: false | ||
|
||
Layout/MultilineMethodCallIndentation: | ||
EnforcedStyle: indented | ||
|
||
Performance/RegexpMatch: | ||
Style/FetchEnvVar: | ||
Enabled: false | ||
Style/HashSyntax: | ||
EnforcedStyle: ruby19_no_mixed_keys | ||
Style/RescueStandardError: | ||
EnforcedStyle: implicit | ||
Style/TernaryParentheses: | ||
EnforcedStyle: require_parentheses_when_complex |
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,9 +1,5 @@ | ||
#-*- mode: ruby -*- | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
|
||
gemspec | ||
|
||
gem 'copyright-header', '1.0.8', platform: :mri, group: :copyright | ||
|
||
gem 'pry', require: false, group: :development | ||
gem 'ffi', '~> 1.11.3', require: false, group: :development |
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,63 @@ | ||
PATH | ||
remote: . | ||
specs: | ||
jar-dependencies (0.4.1) | ||
|
||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
ast (2.4.2) | ||
columnize (0.9.0) | ||
json (2.6.2-java) | ||
linecache (1.3.1-java) | ||
minitest (5.10.3) | ||
parallel (1.22.1) | ||
parser (3.1.2.0) | ||
ast (~> 2.4.1) | ||
rainbow (3.1.1) | ||
rake (13.0.6) | ||
regexp_parser (2.5.0) | ||
rexml (3.2.5) | ||
rubocop (1.31.1) | ||
json (~> 2.3) | ||
parallel (~> 1.10) | ||
parser (>= 3.1.0.0) | ||
rainbow (>= 2.2.2, < 4.0) | ||
regexp_parser (>= 1.8, < 3.0) | ||
rexml (>= 3.2.5, < 4.0) | ||
rubocop-ast (>= 1.18.0, < 2.0) | ||
ruby-progressbar (~> 1.7) | ||
unicode-display_width (>= 1.4.0, < 3.0) | ||
rubocop-ast (1.18.0) | ||
parser (>= 3.1.1.0) | ||
rubocop-performance (1.14.2) | ||
rubocop (>= 1.7.0, < 2.0) | ||
rubocop-ast (>= 0.4.0) | ||
rubocop-rake (0.6.0) | ||
rubocop (~> 1.0) | ||
ruby-debug (0.11.0) | ||
columnize (>= 0.1) | ||
linecache (~> 1.3.1) | ||
ruby-debug-base (~> 0.11.0.0) | ||
ruby-debug-base (0.11.0-java) | ||
ruby-maven (3.3.13) | ||
ruby-maven-libs (~> 3.3.9) | ||
ruby-maven-libs (3.3.9) | ||
ruby-progressbar (1.11.0) | ||
unicode-display_width (2.2.0) | ||
|
||
PLATFORMS | ||
universal-java-11 | ||
|
||
DEPENDENCIES | ||
jar-dependencies! | ||
minitest (~> 5.10.0) | ||
rake (~> 13.0) | ||
rubocop (~> 1.31) | ||
rubocop-performance (~> 1.14) | ||
rubocop-rake (~> 0.6) | ||
ruby-debug (~> 0.11) | ||
ruby-maven (~> 3.3) | ||
|
||
BUNDLED WITH | ||
2.3.16 |
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
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,27 @@ | ||
#!/usr/bin/env ruby | ||
# frozen_string_literal: true | ||
|
||
# | ||
# This file was generated by Bundler. | ||
# | ||
# The application 'rake' is installed as part of a gem, and | ||
# this file is here to facilitate running it. | ||
# | ||
|
||
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) | ||
|
||
bundle_binstub = File.expand_path('bundle', __dir__) | ||
|
||
if File.file?(bundle_binstub) | ||
if File.read(bundle_binstub, 300).include?('This file was generated by Bundler') | ||
load(bundle_binstub) | ||
else | ||
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run. | ||
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.") | ||
end | ||
end | ||
|
||
require 'rubygems' | ||
require 'bundler/setup' | ||
|
||
load Gem.bin_path('rake', 'rake') |
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,27 @@ | ||
#!/usr/bin/env ruby | ||
# frozen_string_literal: true | ||
|
||
# | ||
# This file was generated by Bundler. | ||
# | ||
# The application 'rubocop' is installed as part of a gem, and | ||
# this file is here to facilitate running it. | ||
# | ||
|
||
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) | ||
|
||
bundle_binstub = File.expand_path('bundle', __dir__) | ||
|
||
if File.file?(bundle_binstub) | ||
if File.read(bundle_binstub, 300).include?('This file was generated by Bundler') | ||
load(bundle_binstub) | ||
else | ||
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run. | ||
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.") | ||
end | ||
end | ||
|
||
require 'rubygems' | ||
require 'bundler/setup' | ||
|
||
load Gem.bin_path('rubocop', 'rubocop') |
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
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
Oops, something went wrong.