-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add rails_6_1.gemfile Add rails_6_1.gemfile Transform **options into *options since Rack::Builder is calling middleware with .new(klass, *args, &block) Add ** to versioned_path Explicit ** for macro options Replace ** by * since its anonymous Add explicit { } Transform **opts to *opts since its called with with (*args, &block) Add explicit ** Transform **opts to *opts since rspec-mock is calling .new(*args) Add 6_1 gemfile Add CHANGELOG Explicitly require active_support/core_ext/array/conversions for the Array#to_xml method Enable GitHub Actions with updated Rubocop and Danger Merge master Rubocop gemfiles Explicitly require active_support/core_ext/array/conversions for the Array#to_xml method
- Loading branch information
1 parent
0f250dc
commit 7f4f72c
Showing
29 changed files
with
510 additions
and
172 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,19 @@ | ||
--- | ||
name: Danger | ||
on: | ||
pull_request: | ||
ypes: [opened, reopened, edited, synchronize] | ||
jobs: | ||
danger: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.6 | ||
bundler-cache: true | ||
- name: Run Danger | ||
run: bundle exec danger | ||
env: | ||
DANGER_GITHUB_API_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 |
---|---|---|
@@ -0,0 +1,80 @@ | ||
--- | ||
name: test | ||
on: | ||
push: | ||
branches: | ||
- "*" | ||
pull_request: | ||
branches: | ||
- "*" | ||
jobs: | ||
lint: | ||
name: RuboCop | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.7 | ||
bundler-cache: true | ||
- name: Run RuboCop | ||
run: bundle exec rubocop | ||
test: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby: | ||
- 2.5 | ||
- 2.6 | ||
- 2.7 | ||
gemfile: | ||
- Gemfile | ||
- gemfiles/rack1.gemfile | ||
- gemfiles/rack2.gemfile | ||
- gemfiles/rack_edge.gemfile | ||
- gemfiles/rails_edge.gemfile | ||
- gemfiles/rails_5.gemfile | ||
- gemfiles/rails_6.gemfile | ||
experimental: [false] | ||
include: | ||
- ruby: 2.7 | ||
gemfile: 'gemfiles/multi_json.gemfile' | ||
experimental: false | ||
- ruby: 2.7 | ||
gemfile: 'gemfiles/multi_xml.gemfile' | ||
experimental: false | ||
- ruby: "ruby-head" | ||
experimental: true | ||
- ruby: "truffleruby-head" | ||
experimental: true | ||
- ruby: "jruby-head" | ||
experimental: true | ||
runs-on: ubuntu-20.04 | ||
continue-on-error: ${{ matrix.experimental }} | ||
env: | ||
BUNDLE_GEMFILE: ${{ matrix.gemfile }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true | ||
|
||
- name: Run tests | ||
run: bundle exec rake spec | ||
|
||
- name: Run tests (spec/integration/eager_load) | ||
if: ${{ matrix.gemfile == 'Gemfile' }} | ||
run: bundle exec rspec spec/integration/eager_load | ||
|
||
- name: Run tests (spec/integration/multi_json) | ||
if: ${{ matrix.gemfile == 'gemfiles/multi_json.gemfile' }} | ||
run: bundle exec rspec spec/integration/multi_json | ||
|
||
- name: Run tests (spec/integration/multi_xml) | ||
if: ${{ matrix.gemfile == 'gemfiles/multi_xml.gemfile' }} | ||
run: bundle exec rspec spec/integration/multi_xml |
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,7 @@ | ||
AllCops: | ||
NewCops: enable | ||
TargetRubyVersion: 2.4 | ||
SuggestExtensions: false | ||
Exclude: | ||
- vendor/**/* | ||
- bin/**/* | ||
|
Oops, something went wrong.