activejob-dispatch_rider 2.2.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/build.yml +47 -0
- data/activejob-dispatch_rider.gemspec +2 -2
- data/gemfiles/Gemfile-5-0 +6 -0
- data/gemfiles/Gemfile-5-1 +5 -0
- data/gemfiles/Gemfile-5-2 +5 -0
- data/gemfiles/Gemfile-6-0 +5 -0
- data/gemfiles/Gemfile-6-1 +5 -0
- data/lib/activejob/dispatch_rider/version.rb +1 -1
- data/spec/activejob/queue_adapters/dispatch_rider_adapter_spec.rb +1 -1
- metadata +15 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d4d564b76559d7070de5e918ab07a0e55fce9c54565e4cdb4b745b84ef40128
|
4
|
+
data.tar.gz: be27a42d77cf834b8319059fee309a44719200ef7afd1c46dcd4eb7fd03a9edb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
@@ -18,9 +18,9 @@ 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"
|
23
|
+
spec.add_development_dependency "bundler"
|
24
24
|
spec.add_development_dependency "rake", "~> 10.0"
|
25
25
|
spec.add_development_dependency "rspec"
|
26
26
|
spec.add_development_dependency "sqlite3"
|
@@ -43,7 +43,7 @@ describe ActiveJob::QueueAdapters::DispatchRiderAdapter do
|
|
43
43
|
end
|
44
44
|
|
45
45
|
it("is called when performing later") {
|
46
|
-
|
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
|
|
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: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ronald Maravilla
|
@@ -15,16 +15,16 @@ dependencies:
|
|
15
15
|
name: activejob
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - "
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 5.
|
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: 5.
|
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: '
|
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: '
|
55
|
+
version: '0'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: rake
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
@@ -103,6 +103,7 @@ executables: []
|
|
103
103
|
extensions: []
|
104
104
|
extra_rdoc_files: []
|
105
105
|
files:
|
106
|
+
- ".github/workflows/build.yml"
|
106
107
|
- ".gitignore"
|
107
108
|
- ".rspec"
|
108
109
|
- ".travis.yml"
|
@@ -111,6 +112,11 @@ files:
|
|
111
112
|
- Rakefile
|
112
113
|
- activejob-dispatch_rider.gemspec
|
113
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
|
114
120
|
- lib/activejob/dispatch_rider.rb
|
115
121
|
- lib/activejob/dispatch_rider/handler_registrar_fallback.rb
|
116
122
|
- lib/activejob/dispatch_rider/job_handler.rb
|