activejob-dispatch_rider 1.1.0 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: b3f8d36d44530716ef40fe1d3092a0eebf3600be
4
- data.tar.gz: ae45ba60ab64e01f6b30a82dd920512b1cdcc3f8
2
+ SHA256:
3
+ metadata.gz: 0d4d564b76559d7070de5e918ab07a0e55fce9c54565e4cdb4b745b84ef40128
4
+ data.tar.gz: be27a42d77cf834b8319059fee309a44719200ef7afd1c46dcd4eb7fd03a9edb
5
5
  SHA512:
6
- metadata.gz: 8d2de58525640a3b8b05877d3b59daadd16f8dccb11e851e0b4ca30608ef8b8a0782edb458218dabd0b946b5db4fef532f5d4d0e9546eee100053c7c4a16d2a8
7
- data.tar.gz: e621c9f7d434b1b10c50518d65be70b231155b38b075456ebf1c46ac586500216c19c459f97a6e4ed586f8fd9440480386a4dba69a8e5ea571e81bc1ebf88319
6
+ metadata.gz: 5ebaf7eaf5fff8498c305f940d671341f6d88b3e4163d80a27c5f48e8371297cba3beeef209232416587f98e784bdac173b4c9ede1912dd7a97357d69e1c4c84
7
+ data.tar.gz: 53110820d4931a0ff41f208667110169e3852cbe60cdd1ce3ff0ead32f3fb53935bfaf0ee7c679a67cd7d1e4576963871625ac030c98f9e679cde195455090e2
@@ -0,0 +1,47 @@
1
+ # This workflow uses actions that are not certified by GitHub.
2
+ # They are provided by a third-party and are governed by
3
+ # separate terms of service, privacy policy, and support
4
+ # documentation.
5
+ # This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6
+ # For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7
+
8
+ name: build
9
+
10
+ on: [push, pull_request]
11
+
12
+ jobs:
13
+ test:
14
+ runs-on: ubuntu-20.04
15
+ strategy:
16
+ fail-fast: false
17
+ matrix:
18
+ ruby:
19
+ - 2.7
20
+ - 2.6
21
+ gemfile:
22
+ - Gemfile-5-0
23
+ - Gemfile-5-1
24
+ - Gemfile-5-2
25
+ - Gemfile-6-0
26
+ - Gemfile-6-1
27
+ exclude:
28
+ - gemfile: Gemfile-5-0
29
+ ruby: 2.7
30
+ - gemfile: Gemfile-5-1
31
+ ruby: 2.7
32
+ - gemfile: Gemfile-5-0
33
+ ruby: 3.0
34
+ - gemfile: Gemfile-5-1
35
+ ruby: 3.0
36
+ - gemfile: Gemfile-5-2
37
+ ruby: 3.0
38
+
39
+ env:
40
+ BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}
41
+ steps:
42
+ - uses: actions/checkout@v2
43
+ - uses: ruby/setup-ruby@v1
44
+ with:
45
+ ruby-version: ${{ matrix.ruby }}
46
+ bundler-cache: true
47
+ - run: bundle exec rspec
data/.travis.yml ADDED
@@ -0,0 +1,11 @@
1
+ language: ruby
2
+ addons:
3
+ apt:
4
+ packages:
5
+ - libgmp-dev
6
+ rvm:
7
+ - 2.4.6
8
+ - 2.5.5
9
+ - 2.6.3
10
+ script: "bundle exec rspec"
11
+
@@ -18,11 +18,10 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency "activejob"
21
+ spec.add_dependency "activejob", '>= 5.0'
22
22
  spec.add_dependency "dispatch-rider", "~> 1.7"
23
- spec.add_development_dependency "bundler", "~> 1.7"
23
+ spec.add_development_dependency "bundler"
24
24
  spec.add_development_dependency "rake", "~> 10.0"
25
25
  spec.add_development_dependency "rspec"
26
- spec.add_development_dependency "codeclimate-test-reporter"
27
26
  spec.add_development_dependency "sqlite3"
28
27
  end
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec path: '..'
4
+
5
+ gem 'rails', '~> 5.0.7'
6
+ gem 'sqlite3', '< 1.4'
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec path: '..'
4
+
5
+ gem 'rails', '~> 5.1.4'
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec path: '..'
4
+
5
+ gem 'rails', '~> 5.2.6'
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec path: '..'
4
+
5
+ gem 'rails', '~> 6.0.4'
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec path: '..'
4
+
5
+ gem 'rails', '~> 6.1.4'
@@ -1,5 +1,5 @@
1
1
  module ActiveJob
2
2
  module DispatchRider
3
- VERSION = "1.1.0"
3
+ VERSION = "2.3.0"
4
4
  end
5
5
  end
@@ -2,7 +2,6 @@ module ActiveJob
2
2
  module QueueAdapters
3
3
  # Adds support for DispatchRider to ActiveJob.
4
4
  class DispatchRiderAdapter
5
- class << self
6
5
  # @param [ActiveJob::Base] job
7
6
  def enqueue(job)
8
7
  publisher.publish job_details_for(job)
@@ -31,7 +30,6 @@ module ActiveJob
31
30
  }
32
31
  }
33
32
  end
34
- end
35
33
  end
36
34
  end
37
35
  end
@@ -43,7 +43,7 @@ describe ActiveJob::QueueAdapters::DispatchRiderAdapter do
43
43
  end
44
44
 
45
45
  it("is called when performing later") {
46
- expect(adapter).to receive(:enqueue).with instance_of(foo_job_class)
46
+ expect_any_instance_of(adapter).to receive(:enqueue).with instance_of(foo_job_class)
47
47
  foo_job_class.perform_later foo: "bar"
48
48
  }
49
49
 
data/spec/spec_helper.rb CHANGED
@@ -1,8 +1,5 @@
1
- require "codeclimate-test-reporter"
2
1
  require "sqlite3"
3
2
 
4
- CodeClimate::TestReporter.start
5
-
6
3
  require "activejob/dispatch_rider"
7
4
 
8
5
  ActiveJob::Base.queue_adapter = :dispatch_rider
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activejob-dispatch_rider
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ronald Maravilla
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-07-17 00:00:00.000000000 Z
12
+ date: 2021-08-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activejob
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: '0'
20
+ version: '5.0'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - ">="
26
26
  - !ruby/object:Gem::Version
27
- version: '0'
27
+ version: '5.0'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: dispatch-rider
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -43,16 +43,16 @@ dependencies:
43
43
  name: bundler
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - "~>"
46
+ - - ">="
47
47
  - !ruby/object:Gem::Version
48
- version: '1.7'
48
+ version: '0'
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - "~>"
53
+ - - ">="
54
54
  - !ruby/object:Gem::Version
55
- version: '1.7'
55
+ version: '0'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: rake
58
58
  requirement: !ruby/object:Gem::Requirement
@@ -81,20 +81,6 @@ dependencies:
81
81
  - - ">="
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
- - !ruby/object:Gem::Dependency
85
- name: codeclimate-test-reporter
86
- requirement: !ruby/object:Gem::Requirement
87
- requirements:
88
- - - ">="
89
- - !ruby/object:Gem::Version
90
- version: '0'
91
- type: :development
92
- prerelease: false
93
- version_requirements: !ruby/object:Gem::Requirement
94
- requirements:
95
- - - ">="
96
- - !ruby/object:Gem::Version
97
- version: '0'
98
84
  - !ruby/object:Gem::Dependency
99
85
  name: sqlite3
100
86
  requirement: !ruby/object:Gem::Requirement
@@ -117,13 +103,20 @@ executables: []
117
103
  extensions: []
118
104
  extra_rdoc_files: []
119
105
  files:
106
+ - ".github/workflows/build.yml"
120
107
  - ".gitignore"
121
108
  - ".rspec"
109
+ - ".travis.yml"
122
110
  - Gemfile
123
111
  - README.md
124
112
  - Rakefile
125
113
  - activejob-dispatch_rider.gemspec
126
114
  - circle.yml
115
+ - gemfiles/Gemfile-5-0
116
+ - gemfiles/Gemfile-5-1
117
+ - gemfiles/Gemfile-5-2
118
+ - gemfiles/Gemfile-6-0
119
+ - gemfiles/Gemfile-6-1
127
120
  - lib/activejob/dispatch_rider.rb
128
121
  - lib/activejob/dispatch_rider/handler_registrar_fallback.rb
129
122
  - lib/activejob/dispatch_rider/job_handler.rb
@@ -152,8 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
145
  - !ruby/object:Gem::Version
153
146
  version: '0'
154
147
  requirements: []
155
- rubyforge_project:
156
- rubygems_version: 2.2.2
148
+ rubygems_version: 3.0.9
157
149
  signing_key:
158
150
  specification_version: 4
159
151
  summary: "'ActiveJob::DispatchRider' adds `DispatchRider` support for `ActiveJob`."