Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 31 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,44 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: [2.5, 2.6, 2.7, 3.0, 3.1, 3.2, 3.3, 3.4, jruby-9.3, jruby-9.4]
test-group: [1, 2, 3, 4]
include:
- ruby: "2.5"
gemfile: "2.5"
- ruby: "2.6"
gemfile: "2.6"
- ruby: "2.7"
gemfile: "2.7"
- ruby: "3.0"
gemfile: "3.0"
- ruby: "3.1"
gemfile: "3.1"
- ruby: "3.2"
gemfile: "3.2"
- ruby: "3.3"
gemfile: "3.3"
- ruby: "3.4"
gemfile: "3.4"
- ruby: "4.0"
gemfile: "4.0"
- ruby: "jruby-9.3"
gemfile: "jruby_9.3"
- ruby: "jruby-9.4"
gemfile: "jruby_9.4"
- ruby: "jruby-10.0"
gemfile: "jruby_10.0"
env:
BUNDLE_GEMFILE: gemfiles/crawler_detect_${{ matrix.gemfile }}.gemfile
name: Ruby ${{ matrix.ruby }}, test-group ${{ matrix.test-group }}
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
bundler-cache: false
- name: install dependencies
run: bundle install --jobs 4 --retry 3
- name: test
run: |
bundle exec parallel_rspec spec/ -n 4 --only-group ${{ matrix.test-group }} --group-by runtime --runtime-log spec/fixtures/parallel_runtime_rspec.log
run: bundle exec rspec
push:
# Run on push to master branch
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
Expand Down
37 changes: 37 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
appraise "crawler_detect_2.5" do
gem "rack", "< 3"
end

appraise "crawler_detect_2.6" do
end

appraise "crawler_detect_2.7" do
end

appraise "crawler_detect_3.0" do
end

appraise "crawler_detect_3.1" do
end

appraise "crawler_detect_3.2" do
end

appraise "crawler_detect_3.3" do
end

appraise "crawler_detect_3.4" do
end

appraise "crawler_detect_4.0" do
gem "activesupport", ">= 7.0"
end

appraise "crawler_detect_jruby-9.3" do
end

appraise "crawler_detect_jruby-9.4" do
end

appraise "crawler_detect_jruby-10.0" do
end
2 changes: 1 addition & 1 deletion crawler_detect.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ Gem::Specification.new do |spec|

spec.add_development_dependency "activesupport", ">= 6.0"
spec.add_development_dependency "fuubar", ">= 2.5"
spec.add_development_dependency "parallel_tests", ">= 3.0"
spec.add_development_dependency "rack-test", ">= 2.1"
spec.add_development_dependency "rake", ">= 13.1"
spec.add_development_dependency "rspec", ">= 3.13"
spec.add_development_dependency "armitage-rubocop", ">= 0.82"
spec.add_development_dependency "appraisal", ">= 2.5"

spec.required_ruby_version = ">= 2.5.0"

Expand Down
7 changes: 7 additions & 0 deletions gemfiles/crawler_detect_2.5.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "rack", "< 3"

gemspec path: "../"
105 changes: 105 additions & 0 deletions gemfiles/crawler_detect_2.5.gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
PATH
remote: ..
specs:
crawler_detect (1.2.11)
qonfig (>= 0.24)

GEM
remote: https://rubygems.org/
specs:
activesupport (6.1.7.10)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
zeitwerk (~> 2.3)
appraisal (2.5.0)
bundler
rake
thor (>= 0.14.0)
armitage-rubocop (1.26.1.1)
rubocop (= 1.26.1)
rubocop-performance (= 1.13.3)
rubocop-rails (= 2.14.2)
rubocop-rake (= 0.6.0)
rubocop-rspec (= 2.9.0)
ast (2.4.3)
concurrent-ruby (1.3.6)
diff-lcs (1.6.2)
fuubar (2.5.1)
rspec-core (~> 3.0)
ruby-progressbar (~> 1.4)
i18n (1.14.8)
concurrent-ruby (~> 1.0)
minitest (5.15.0)
parallel (1.24.0)
parser (3.3.11.1)
ast (~> 2.4.1)
racc
qonfig (0.26.0)
racc (1.8.1)
rack (2.2.23)
rack-test (2.2.0)
rack (>= 1.3)
rainbow (3.1.1)
rake (13.4.2)
regexp_parser (2.12.0)
rexml (3.4.4)
rspec (3.13.2)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-core (3.13.6)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.5)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.8)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-support (3.13.7)
rubocop (1.26.1)
parallel (~> 1.10)
parser (>= 3.1.0.0)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml
rubocop-ast (>= 1.16.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.17.0)
parser (>= 3.1.1.0)
rubocop-performance (1.13.3)
rubocop (>= 1.7.0, < 2.0)
rubocop-ast (>= 0.4.0)
rubocop-rails (2.14.2)
activesupport (>= 4.2.0)
rack (>= 1.1)
rubocop (>= 1.7.0, < 2.0)
rubocop-rake (0.6.0)
rubocop (~> 1.0)
rubocop-rspec (2.9.0)
rubocop (~> 1.19)
ruby-progressbar (1.13.0)
thor (1.2.2)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (2.6.0)
zeitwerk (2.6.18)

PLATFORMS
x86_64-linux

DEPENDENCIES
activesupport (>= 6.0)
appraisal (>= 2.5)
armitage-rubocop (>= 0.82)
crawler_detect!
fuubar (>= 2.5)
rack (< 3)
rack-test (>= 2.1)
rake (>= 13.1)
rspec (>= 3.13)

BUNDLED WITH
2.3.27
5 changes: 5 additions & 0 deletions gemfiles/crawler_detect_2.6.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gemspec path: "../"
104 changes: 104 additions & 0 deletions gemfiles/crawler_detect_2.6.gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
PATH
remote: ..
specs:
crawler_detect (1.2.11)
qonfig (>= 0.24)

GEM
remote: https://rubygems.org/
specs:
activesupport (6.1.7.10)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
zeitwerk (~> 2.3)
appraisal (2.5.0)
bundler
rake
thor (>= 0.14.0)
armitage-rubocop (1.26.1.1)
rubocop (= 1.26.1)
rubocop-performance (= 1.13.3)
rubocop-rails (= 2.14.2)
rubocop-rake (= 0.6.0)
rubocop-rspec (= 2.9.0)
ast (2.4.3)
concurrent-ruby (1.3.6)
diff-lcs (1.6.2)
fuubar (2.5.1)
rspec-core (~> 3.0)
ruby-progressbar (~> 1.4)
i18n (1.14.8)
concurrent-ruby (~> 1.0)
minitest (5.15.0)
parallel (1.24.0)
parser (3.3.11.1)
ast (~> 2.4.1)
racc
qonfig (0.26.0)
racc (1.8.1)
rack (3.2.6)
rack-test (2.2.0)
rack (>= 1.3)
rainbow (3.1.1)
rake (13.4.2)
regexp_parser (2.12.0)
rexml (3.4.4)
rspec (3.13.2)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-core (3.13.6)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.5)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.8)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-support (3.13.7)
rubocop (1.26.1)
parallel (~> 1.10)
parser (>= 3.1.0.0)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml
rubocop-ast (>= 1.16.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.17.0)
parser (>= 3.1.1.0)
rubocop-performance (1.13.3)
rubocop (>= 1.7.0, < 2.0)
rubocop-ast (>= 0.4.0)
rubocop-rails (2.14.2)
activesupport (>= 4.2.0)
rack (>= 1.1)
rubocop (>= 1.7.0, < 2.0)
rubocop-rake (0.6.0)
rubocop (~> 1.0)
rubocop-rspec (2.9.0)
rubocop (~> 1.19)
ruby-progressbar (1.13.0)
thor (1.2.2)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (2.6.0)
zeitwerk (2.6.18)

PLATFORMS
x86_64-linux

DEPENDENCIES
activesupport (>= 6.0)
appraisal (>= 2.5)
armitage-rubocop (>= 0.82)
crawler_detect!
fuubar (>= 2.5)
rack-test (>= 2.1)
rake (>= 13.1)
rspec (>= 3.13)

BUNDLED WITH
2.3.27
5 changes: 5 additions & 0 deletions gemfiles/crawler_detect_2.7.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gemspec path: "../"
Loading
Loading