diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index d0124e2..15d6e3e 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -5,7 +5,7 @@ on: [push, pull_request, workflow_dispatch] jobs: build: name: >- - ${{ matrix.os }} ${{ matrix.ruby-version }} + ${{ matrix.os }} ${{ matrix.ruby-version }} ${{ matrix.gemfile }} runs-on: ${{ matrix.os }} timeout-minutes: 10 strategy: @@ -13,11 +13,27 @@ jobs: matrix: os: [ ubuntu-22.04, ubuntu-20.04 ] ruby-version: [ "2.4", "2.5", "2.6", "2.7", "3.0", "3.1", "3.2", "3.3" ] + gemfile: + - resque_1.22_redis_2.0 + - resque_1.23_redis_3.0 + - resque_1.24_redis_3.0 + - resque_1.25_redis_3.0 + - resque_1.27_redis_3.3 + - resque_2.0_redis_4.0 + - resque_2.1_redis_4.4 + - resque_2.2_redis_4.6 + - resque_2.3_redis_4.7 + - resque_2.4_redis_4.8 + - resque_2.5_redis_5.0 + - resque_2.6_redis_5.2 services: redis: image: redis + env: + BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile + steps: - uses: actions/checkout@v3 - name: Set up Ruby diff --git a/.gitignore b/.gitignore index ee67f61..46fb448 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,13 @@ pkg/* *.gem +*.gemfile.lock +Gemfile.lock .bundle +.ruby-version *.log *.pid examples/tmp/* +spec/stdout tmp/* vendor tags diff --git a/Appraisals b/Appraisals new file mode 100644 index 0000000..2529cb0 --- /dev/null +++ b/Appraisals @@ -0,0 +1,77 @@ +appraise "resque-1.22-redis-2.0" do + gem "resque", "1.22.0" # 2012-08-21 + gem "redis-namespace", "1.0.3" # 2011-05-17 + gem "redis", "2.2.2" # 2011-08-04 +end + +appraise "resque-1.23-redis-2.0" do + gem "resque", "1.23.1" # 2013-03-07 + gem "redis-namespace", "1.1.0" # 2011-08-15 + gem "redis", "2.2.2" # 2011-08-04 +end + +appraise "resque-1.24-redis-3.0" do + gem "resque", "1.24.0" # 2013-03-21 + gem "redis-namespace", "1.2.2" # 2013-08-03 + gem "redis", "3.0.7" # 2014-01-21 +end + +appraise "resque-1.25-redis-3.0" do + gem "resque", "1.25.2" # 2014-03-04 + gem "redis-namespace", "1.4.1" # 2013-12-04 + gem "redis", "3.0.7" # 2014-01-21 +end + +appraise "resque-1.26-redis-3.2" do + gem "resque", "1.26.0" # 2016-03-11 + gem "redis-namespace", "1.5.2" # 2015-03-30 + gem "redis", "3.2.2" # 2015-11-16 +end + +appraise "resque-1.27-redis-3.3" do + gem "resque", "1.27.4" # 2017-04-15 + gem "redis-namespace", "1.6.0" # 2017-11-03 + gem "redis", "3.3.5" # 2017-09-28 +end + +appraise "resque-2.0-redis-4.0" do + gem "resque", "2.0.0" # 2018-11-06 + gem "redis-namespace", "1.6.0" # 2017-11-03 + gem "redis", "4.0.3" # 2018-10-31 +end + +appraise "resque-2.1-redis-4.4" do + gem "resque", "2.1.0" # 2021-08-10 + gem "redis-namespace", "1.7.0" # 2019-12-11 + gem "redis", "4.4.0" # 2021-07-28 +end + +appraise "resque-2.2-redis-4.6" do + gem "resque", "2.2.1" # 2022-03-27 + gem "redis-namespace", "1.8.2" # 2022-03-07 + gem "redis", "4.6.0" # 2024-02-02 +end + +appraise "resque-2.3-redis-4.7" do + gem "resque", "2.3.0" # 2022-08-22 + gem "redis-namespace", "1.9.0" # 2022-08-13 + gem "redis", "4.7.1" # 2022-07-01 +end + +appraise "resque-2.4-redis-4.8" do + gem "resque", "2.4.0" # 2022-09-06 + gem "redis-namespace", "1.9.0" # 2022-08-13 + gem "redis", "4.8.1" # 2023-02-10 +end + +appraise "resque-2.5-redis-5.0" do + gem "resque", "2.5.0" # 2023-03-01 + gem "redis-namespace", "1.10.0" # 2022-12-22 + gem "redis", "5.0.8" # 2023-08-23 +end + +appraise "resque-2.6-redis-5.2" do + gem "resque", "2.6.0" # 2023-08-19 + gem "redis-namespace", "1.11.0" # 2023-06-08 + gem "redis", "5.2.0" # 2024-04-15 +end diff --git a/Gemfile b/Gemfile index b4e2a20..555dc07 100644 --- a/Gemfile +++ b/Gemfile @@ -1,3 +1,5 @@ source "https://rubygems.org" gemspec + +gem "appraisal" diff --git a/Gemfile.lock b/Gemfile.lock deleted file mode 100644 index e7714b9..0000000 --- a/Gemfile.lock +++ /dev/null @@ -1,133 +0,0 @@ -PATH - remote: . - specs: - resque-pool (0.7.1) - rake (>= 10.0, < 14.0) - resque (>= 1.22, < 3) - -GEM - remote: https://rubygems.org/ - specs: - activesupport (5.2.8.1) - concurrent-ruby (~> 1.0, >= 1.0.2) - i18n (>= 0.7, < 2) - minitest (~> 5.1) - tzinfo (~> 1.1) - aruba (1.1.2) - bundler (>= 1.17, < 3.0) - childprocess (>= 2.0, < 5.0) - contracts (>= 0.16.0, < 0.18.0) - cucumber (>= 2.4, < 7.0) - rspec-expectations (~> 3.4) - thor (~> 1.0) - builder (3.2.4) - childprocess (4.1.0) - concurrent-ruby (1.2.3) - contracts (0.16.1) - cucumber (4.1.0) - builder (~> 3.2, >= 3.2.3) - cucumber-core (~> 7.1, >= 7.1.0) - cucumber-create-meta (~> 1.0.0, >= 1.0.0) - cucumber-cucumber-expressions (~> 10.1, >= 10.1.0) - cucumber-gherkin (~> 14.0, >= 14.0.1) - cucumber-html-formatter (~> 7.0, >= 7.0.0) - cucumber-messages (~> 12.2, >= 12.2.0) - cucumber-wire (~> 3.1, >= 3.1.0) - diff-lcs (~> 1.3, >= 1.3, < 1.4) - multi_test (~> 0.1, >= 0.1.2) - sys-uname (~> 1.0, >= 1.0.2) - cucumber-core (7.1.0) - cucumber-gherkin (~> 14.0, >= 14.0.1) - cucumber-messages (~> 12.2, >= 12.2.0) - cucumber-tag-expressions (~> 2.0, >= 2.0.4) - cucumber-create-meta (1.0.0) - cucumber-messages (~> 12.2, >= 12.2.0) - sys-uname (~> 1.2, >= 1.2.1) - cucumber-cucumber-expressions (10.3.0) - cucumber-gherkin (14.2.0) - cucumber-messages (~> 12.4, >= 12.4.0) - cucumber-html-formatter (7.2.0) - cucumber-messages (~> 12.4, >= 12.4.0) - cucumber-messages (12.4.0) - protobuf-cucumber (~> 3.10, >= 3.10.8) - cucumber-tag-expressions (2.0.4) - cucumber-wire (3.1.0) - cucumber-core (~> 7.1, >= 7.1.0) - cucumber-cucumber-expressions (~> 10.1, >= 10.1.0) - cucumber-messages (~> 12.2, >= 12.2.0) - diff-lcs (1.3) - ffi (1.15.5) - hpricot (0.8.6) - i18n (1.14.5) - concurrent-ruby (~> 1.0) - middleware (0.1.0) - minitest (5.15.0) - mono_logger (1.1.2) - multi_json (1.15.0) - multi_test (0.1.2) - mustache (1.1.1) - mustermann (2.0.2) - ruby2_keywords (~> 0.0.1) - protobuf-cucumber (3.10.8) - activesupport (>= 3.2) - middleware - thor - thread_safe - rack (2.2.9) - rack-protection (2.2.4) - rack - rake (13.2.1) - rdiscount (2.2.7.3) - redis (4.8.1) - redis-namespace (1.11.0) - redis (>= 4) - resque (2.6.0) - mono_logger (~> 1.0) - multi_json (~> 1.0) - redis-namespace (~> 1.6) - sinatra (>= 0.9.2) - ronn (0.7.3) - hpricot (>= 0.8.2) - mustache (>= 0.7.0) - rdiscount (>= 1.5.8) - rspec (3.13.0) - rspec-core (~> 3.13.0) - rspec-expectations (~> 3.13.0) - rspec-mocks (~> 3.13.0) - rspec-core (3.13.0) - rspec-support (~> 3.13.0) - rspec-expectations (3.13.0) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.13.0) - rspec-mocks (3.13.1) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.13.0) - rspec-support (3.13.1) - ruby2_keywords (0.0.5) - sinatra (2.2.4) - mustermann (~> 2.0) - rack (~> 2.2) - rack-protection (= 2.2.4) - tilt (~> 2.0) - sys-uname (1.2.3) - ffi (~> 1.1) - thor (1.2.2) - thread_safe (0.3.6) - tilt (2.3.0) - tzinfo (1.2.11) - thread_safe (~> 0.1) - -PLATFORMS - x86_64-linux - -DEPENDENCIES - aruba - bundler - cucumber - mustache - resque-pool! - ronn - rspec - -BUNDLED WITH - 2.3.16 diff --git a/gemfiles/resque_1.22_redis_2.0.gemfile b/gemfiles/resque_1.22_redis_2.0.gemfile new file mode 100644 index 0000000..0daaf57 --- /dev/null +++ b/gemfiles/resque_1.22_redis_2.0.gemfile @@ -0,0 +1,10 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "appraisal" +gem "resque", "1.22.0" +gem "redis-namespace", "1.0.3" +gem "redis", "2.2.2" + +gemspec path: "../" diff --git a/gemfiles/resque_1.23_redis_2.0.gemfile b/gemfiles/resque_1.23_redis_2.0.gemfile new file mode 100644 index 0000000..3d7ebd1 --- /dev/null +++ b/gemfiles/resque_1.23_redis_2.0.gemfile @@ -0,0 +1,10 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "appraisal" +gem "resque", "1.23.1" +gem "redis-namespace", "1.1.0" +gem "redis", "2.2.2" + +gemspec path: "../" diff --git a/gemfiles/resque_1.23_redis_3.0.gemfile b/gemfiles/resque_1.23_redis_3.0.gemfile new file mode 100644 index 0000000..1ed193c --- /dev/null +++ b/gemfiles/resque_1.23_redis_3.0.gemfile @@ -0,0 +1,10 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "appraisal" +gem "resque", "1.23.1" +gem "redis-namespace", "1.2.2" +gem "redis", "3.0.7" + +gemspec path: "../" diff --git a/gemfiles/resque_1.24_redis_3.0.gemfile b/gemfiles/resque_1.24_redis_3.0.gemfile new file mode 100644 index 0000000..67af335 --- /dev/null +++ b/gemfiles/resque_1.24_redis_3.0.gemfile @@ -0,0 +1,10 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "appraisal" +gem "resque", "1.24.0" +gem "redis-namespace", "1.2.2" +gem "redis", "3.0.7" + +gemspec path: "../" diff --git a/gemfiles/resque_1.25_redis_3.0.gemfile b/gemfiles/resque_1.25_redis_3.0.gemfile new file mode 100644 index 0000000..3f1be5a --- /dev/null +++ b/gemfiles/resque_1.25_redis_3.0.gemfile @@ -0,0 +1,10 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "appraisal" +gem "resque", "1.25.2" +gem "redis-namespace", "1.4.1" +gem "redis", "3.0.7" + +gemspec path: "../" diff --git a/gemfiles/resque_1.26_redis_3.2.gemfile b/gemfiles/resque_1.26_redis_3.2.gemfile new file mode 100644 index 0000000..957d2bf --- /dev/null +++ b/gemfiles/resque_1.26_redis_3.2.gemfile @@ -0,0 +1,10 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "appraisal" +gem "resque", "1.26.0" +gem "redis-namespace", "1.5.2" +gem "redis", "3.2.2" + +gemspec path: "../" diff --git a/gemfiles/resque_1.27_redis_3.3.gemfile b/gemfiles/resque_1.27_redis_3.3.gemfile new file mode 100644 index 0000000..fad3c2a --- /dev/null +++ b/gemfiles/resque_1.27_redis_3.3.gemfile @@ -0,0 +1,10 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "appraisal" +gem "resque", "1.27.4" +gem "redis-namespace", "1.6.0" +gem "redis", "3.3.5" + +gemspec path: "../" diff --git a/gemfiles/resque_2.0_redis_4.0.gemfile b/gemfiles/resque_2.0_redis_4.0.gemfile new file mode 100644 index 0000000..b35e334 --- /dev/null +++ b/gemfiles/resque_2.0_redis_4.0.gemfile @@ -0,0 +1,10 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "appraisal" +gem "resque", "2.0.0" +gem "redis-namespace", "1.6.0" +gem "redis", "4.0.3" + +gemspec path: "../" diff --git a/gemfiles/resque_2.1_redis_4.4.gemfile b/gemfiles/resque_2.1_redis_4.4.gemfile new file mode 100644 index 0000000..4425675 --- /dev/null +++ b/gemfiles/resque_2.1_redis_4.4.gemfile @@ -0,0 +1,10 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "appraisal" +gem "resque", "2.1.0" +gem "redis-namespace", "1.7.0" +gem "redis", "4.4.0" + +gemspec path: "../" diff --git a/gemfiles/resque_2.2_redis_4.6.gemfile b/gemfiles/resque_2.2_redis_4.6.gemfile new file mode 100644 index 0000000..3dcafad --- /dev/null +++ b/gemfiles/resque_2.2_redis_4.6.gemfile @@ -0,0 +1,10 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "appraisal" +gem "resque", "2.2.1" +gem "redis-namespace", "1.8.2" +gem "redis", "4.6.0" + +gemspec path: "../" diff --git a/gemfiles/resque_2.3_redis_4.7.gemfile b/gemfiles/resque_2.3_redis_4.7.gemfile new file mode 100644 index 0000000..51f43e9 --- /dev/null +++ b/gemfiles/resque_2.3_redis_4.7.gemfile @@ -0,0 +1,10 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "appraisal" +gem "resque", "2.3.0" +gem "redis-namespace", "1.9.0" +gem "redis", "4.7.1" + +gemspec path: "../" diff --git a/gemfiles/resque_2.4_redis_4.8.gemfile b/gemfiles/resque_2.4_redis_4.8.gemfile new file mode 100644 index 0000000..a1fc4de --- /dev/null +++ b/gemfiles/resque_2.4_redis_4.8.gemfile @@ -0,0 +1,10 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "appraisal" +gem "resque", "2.4.0" +gem "redis-namespace", "1.9.0" +gem "redis", "4.8.1" + +gemspec path: "../" diff --git a/gemfiles/resque_2.5_redis_5.0.gemfile b/gemfiles/resque_2.5_redis_5.0.gemfile new file mode 100644 index 0000000..04f56f9 --- /dev/null +++ b/gemfiles/resque_2.5_redis_5.0.gemfile @@ -0,0 +1,10 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "appraisal" +gem "resque", "2.5.0" +gem "redis-namespace", "1.10.0" +gem "redis", "5.0.8" + +gemspec path: "../" diff --git a/gemfiles/resque_2.6_redis_5.2.gemfile b/gemfiles/resque_2.6_redis_5.2.gemfile new file mode 100644 index 0000000..64c54f1 --- /dev/null +++ b/gemfiles/resque_2.6_redis_5.2.gemfile @@ -0,0 +1,10 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "appraisal" +gem "resque", "2.6.0" +gem "redis-namespace", "1.11.0" +gem "redis", "5.2.0" + +gemspec path: "../"