advanced-sneakers-activejob 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.rubocop.yml +2 -0
- data/.travis.yml +13 -9
- data/Appraisals +13 -0
- data/CHANGELOG.md +53 -44
- data/Gemfile +1 -5
- data/advanced-sneakers-activejob.gemspec +2 -3
- data/gemfiles/.bundle/config +3 -0
- data/gemfiles/activejob_4.2.x.gemfile +7 -0
- data/gemfiles/activejob_5.2.x.gemfile +7 -0
- data/gemfiles/activejob_6.0.x.gemfile +7 -0
- data/lib/advanced_sneakers_activejob.rb +2 -2
- data/lib/advanced_sneakers_activejob/version.rb +1 -1
- metadata +26 -35
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c9c85eff744ad5d1de5009fc25cf53ad1b11922d4ed75b65c87045615850143
|
4
|
+
data.tar.gz: a67cc5ac97620471e7424066acab3ac5b513da37888ccd70599946c107b0a0fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ba5450df0c6b7dd824c468d5962d77085c2cabcf3db3b009485cee68c917fbdf3d3109355b9148176f4841c388065402c9ce15c7bd2093bc89eec47cf6488a5
|
7
|
+
data.tar.gz: b9780aa81dc55deb3a311ba5d658b5c584398ee4df82a2e963acca9d9429bbfa6fbd34f3e1794e4e407ba7624456e6ea92cb19e47de22d8f3ccb7670cd76b323
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
data/.travis.yml
CHANGED
@@ -2,20 +2,24 @@
|
|
2
2
|
dist: xenial
|
3
3
|
language: ruby
|
4
4
|
cache: bundler
|
5
|
+
|
5
6
|
rvm:
|
6
7
|
- 2.5.8
|
7
8
|
- 2.6.6
|
8
9
|
- 2.7.1
|
9
|
-
|
10
|
-
|
11
|
-
-
|
12
|
-
-
|
13
|
-
|
10
|
+
|
11
|
+
gemfile:
|
12
|
+
- gemfiles/activejob_4.2.x.gemfile
|
13
|
+
- gemfiles/activejob_5.2.x.gemfile
|
14
|
+
- gemfiles/activejob_6.0.x.gemfile
|
15
|
+
|
16
|
+
matrix:
|
14
17
|
exclude:
|
15
18
|
- rvm: 2.7.1
|
16
|
-
|
19
|
+
gemfile: gemfiles/activejob_4.2.x.gemfile
|
20
|
+
|
21
|
+
before_install: 'gem install bundler -v "$(ruby -e "puts RUBY_VERSION.to_f >= 2.7 ? \">= 2.0\" : \"< 2\"")"'
|
22
|
+
|
23
|
+
before_script: .ci/install_rabbitmq
|
17
24
|
|
18
|
-
before_install: gem install bundler -v 1.17.3
|
19
|
-
before_script:
|
20
|
-
- ".ci/install_rabbitmq"
|
21
25
|
bundler_args: --jobs 3 --retry 3
|
data/Appraisals
ADDED
data/CHANGELOG.md
CHANGED
@@ -1,76 +1,85 @@
|
|
1
|
-
|
1
|
+
# Changelog
|
2
2
|
|
3
|
-
|
3
|
+
All notable changes to this project will be documented in this file.
|
4
4
|
|
5
|
-
|
6
|
-
NoMethodError: undefined method `message_options' for MyJob:Class
|
7
|
-
```
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
8
6
|
|
9
|
-
##
|
7
|
+
## [Unreleased](https://github.com/veeqo/advanced-sneakers-activejob/compare/v0.3.6...HEAD)
|
10
8
|
|
11
|
-
### [Support for wildcards to run ActiveJob consumers by queues](https://github.com/veeqo/advanced-sneakers-activejob/pull/10)
|
12
9
|
|
13
|
-
|
10
|
+
## [0.3.6](https://github.com/veeqo/advanced-sneakers-activejob/compare/v0.3.5...v0.3.6) - 2020-09-18
|
14
11
|
|
15
|
-
|
16
|
-
|
17
|
-
|
12
|
+
### Changed
|
13
|
+
- [#12](https://github.com/veeqo/advanced-sneakers-activejob/pull/12) Refactor changelog to comply with Keep a Changelog
|
14
|
+
- [#13](https://github.com/veeqo/advanced-sneakers-activejob/pull/13) Use appraisals for Travis matrix
|
18
15
|
|
19
|
-
|
16
|
+
### Fixed
|
17
|
+
- [#14](https://github.com/veeqo/advanced-sneakers-activejob/pull/14) Fix deprecation warnings of ruby 2.7
|
20
18
|
|
21
|
-
### [Add ability to run ActiveJob consumers by queues](https://github.com/veeqo/advanced-sneakers-activejob/pull/9)
|
22
19
|
|
23
|
-
|
20
|
+
## [0.3.5](https://github.com/veeqo/advanced-sneakers-activejob/compare/v0.3.4...v0.3.5) - 2020-06-27
|
24
21
|
|
25
|
-
|
26
|
-
|
27
|
-
```
|
22
|
+
### Fixed
|
23
|
+
- [#11](https://github.com/veeqo/advanced-sneakers-activejob/pull/11) `NoMethodError` on `Rails.application.eager_load!` in Rails initializer
|
28
24
|
|
29
|
-
## Changes Between 0.3.1 and 0.3.2
|
30
25
|
|
31
|
-
|
26
|
+
## [0.3.4](https://github.com/veeqo/advanced-sneakers-activejob/compare/v0.3.3...v0.3.4) - 2020-06-11
|
32
27
|
|
33
|
-
|
28
|
+
### Added
|
29
|
+
- [#10](https://github.com/veeqo/advanced-sneakers-activejob/pull/10) Ability to run ActiveJob consumers by wildcards for queue names
|
34
30
|
|
35
|
-
```sh
|
36
|
-
WORKERS=MyConsumer rake sneakers:run
|
37
|
-
```
|
38
31
|
|
39
|
-
|
32
|
+
## [0.3.3](https://github.com/veeqo/advanced-sneakers-activejob/compare/v0.3.2...v0.3.3) - 2020-06-09
|
40
33
|
|
41
|
-
|
42
|
-
|
43
|
-
```
|
34
|
+
### Added
|
35
|
+
- [#9](https://github.com/veeqo/advanced-sneakers-activejob/pull/9) Ability to run ActiveJob consumers by queue names
|
44
36
|
|
45
|
-
## Changes Between 0.3.0 and 0.3.1
|
46
37
|
|
47
|
-
|
38
|
+
## [0.3.2](https://github.com/veeqo/advanced-sneakers-activejob/compare/v0.3.1...v0.3.2) - 2020-06-05
|
48
39
|
|
49
|
-
|
40
|
+
### Added
|
41
|
+
- [#8](https://github.com/veeqo/advanced-sneakers-activejob/pull/8) Ability to run specified ActiveJob queues consumers
|
50
42
|
|
51
|
-
This release does not change the observed behavior, but replaces the publisher with completely new implementation.
|
52
43
|
|
53
|
-
|
44
|
+
## [0.3.1](https://github.com/veeqo/advanced-sneakers-activejob/compare/v0.3.0...v0.3.1) - 2020-06-02
|
54
45
|
|
55
|
-
|
46
|
+
### Fixed
|
47
|
+
- [#6](https://github.com/veeqo/advanced-sneakers-activejob/pull/6) Restore Sneakers::Worker::Classes methods
|
56
48
|
|
57
|
-
### [Refactored support for ActiveJob prefix](https://github.com/veeqo/advanced-sneakers-activejob/pull/3)
|
58
|
-
### [Support for custom adapter per job](https://github.com/veeqo/advanced-sneakers-activejob/pull/4)
|
59
49
|
|
60
|
-
##
|
50
|
+
## [0.3.0](https://github.com/veeqo/advanced-sneakers-activejob/compare/v0.2.3...v0.3.0) - 2020-05-21
|
61
51
|
|
62
|
-
|
52
|
+
### Changed
|
53
|
+
- [#5](https://github.com/veeqo/advanced-sneakers-activejob/pull/5) Publisher is extracted to [bunny-publisher](https://github.com/veeqo/bunny-publisher)
|
63
54
|
|
64
|
-
## Changes Between 0.2.0 and 0.2.1
|
65
55
|
|
66
|
-
|
56
|
+
## [0.2.3](https://github.com/veeqo/advanced-sneakers-activejob/compare/v0.2.2...v0.2.3) - 2020-04-06
|
67
57
|
|
68
|
-
|
58
|
+
### Added
|
59
|
+
- [#4](https://github.com/veeqo/advanced-sneakers-activejob/pull/4) Support for custom adapter per job
|
69
60
|
|
70
|
-
|
61
|
+
### Changed
|
62
|
+
- [#3](https://github.com/veeqo/advanced-sneakers-activejob/pull/3) Refactored support for ActiveJob prefix
|
71
63
|
|
72
|
-
### [`message_options`](https://github.com/veeqo/advanced-sneakers-activejob/pull/1)
|
73
64
|
|
74
|
-
|
65
|
+
## [0.2.2](https://github.com/veeqo/advanced-sneakers-activejob/compare/v0.2.1...v0.2.2) - 2020-04-05
|
75
66
|
|
76
|
-
|
67
|
+
### Fixed
|
68
|
+
- Cleanup of `puts` and logger mistakenly introduced in version `0.2.1`
|
69
|
+
|
70
|
+
## [0.2.1](https://github.com/veeqo/advanced-sneakers-activejob/compare/v0.2.0...v0.2.1) - 2020-04-05
|
71
|
+
|
72
|
+
### Added
|
73
|
+
- [#2](https://github.com/veeqo/advanced-sneakers-activejob/pull/2) Support queue name prefixes
|
74
|
+
|
75
|
+
|
76
|
+
## [0.2.0](https://github.com/veeqo/advanced-sneakers-activejob/compare/v0.1.0...v0.2.0) - 2020-03-23
|
77
|
+
|
78
|
+
### Added
|
79
|
+
- [#1](https://github.com/veeqo/advanced-sneakers-activejob/pull/1) Customizable options for message publishing (`routing_key`, `headers`, etc)
|
80
|
+
|
81
|
+
|
82
|
+
## [0.1.0](https://github.com/veeqo/advanced-sneakers-activejob/releases/tag/v0.1.0) - 2020-03-19
|
83
|
+
|
84
|
+
### Added
|
85
|
+
- `:advanced_sneakers` adapter for ActiveJob
|
data/Gemfile
CHANGED
@@ -2,10 +2,6 @@
|
|
2
2
|
|
3
3
|
source 'https://rubygems.org'
|
4
4
|
|
5
|
-
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
|
6
|
-
|
7
|
-
# Specify your gem's dependencies in advanced-sneakers-activejob.gemspec
|
8
5
|
gemspec
|
9
6
|
|
10
|
-
gem 'rails'
|
11
|
-
gem 'sneakers', ENV.fetch('SNEAKERS_VERSION', '~> 2.11')
|
7
|
+
gem 'rails'
|
@@ -30,10 +30,9 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.add_dependency 'bunny-publisher', '~> 0.1'
|
31
31
|
spec.add_dependency 'sneakers', '~> 2.7'
|
32
32
|
|
33
|
+
spec.add_development_dependency 'appraisal', '~> 2.3.0'
|
33
34
|
spec.add_development_dependency 'bundler'
|
34
35
|
spec.add_development_dependency 'pry-byebug'
|
35
36
|
spec.add_development_dependency 'rabbitmq_http_api_client', '~> 1.13'
|
36
|
-
spec.add_development_dependency '
|
37
|
-
spec.add_development_dependency 'rake'
|
38
|
-
spec.add_development_dependency 'rspec'
|
37
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
39
38
|
end
|
@@ -54,11 +54,11 @@ module AdvancedSneakersActiveJob
|
|
54
54
|
end
|
55
55
|
|
56
56
|
def publisher
|
57
|
-
@publisher ||= AdvancedSneakersActiveJob::Publisher.new(config.publisher_config)
|
57
|
+
@publisher ||= AdvancedSneakersActiveJob::Publisher.new(**config.publisher_config)
|
58
58
|
end
|
59
59
|
|
60
60
|
def delayed_publisher
|
61
|
-
@delayed_publisher ||= AdvancedSneakersActiveJob::DelayedPublisher.new(config.publisher_config)
|
61
|
+
@delayed_publisher ||= AdvancedSneakersActiveJob::DelayedPublisher.new(**config.publisher_config)
|
62
62
|
end
|
63
63
|
|
64
64
|
# Based on ActiveSupport::Inflector#parameterize
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: advanced-sneakers-activejob
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rustam Sharshenov
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-
|
12
|
+
date: 2020-09-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activejob
|
@@ -54,21 +54,21 @@ dependencies:
|
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '2.7'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
|
-
name:
|
57
|
+
name: appraisal
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- - "
|
60
|
+
- - "~>"
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version:
|
62
|
+
version: 2.3.0
|
63
63
|
type: :development
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- - "
|
67
|
+
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
69
|
+
version: 2.3.0
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
|
-
name:
|
71
|
+
name: bundler
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
74
|
- - ">="
|
@@ -82,61 +82,47 @@ dependencies:
|
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: '0'
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
|
-
name:
|
86
|
-
requirement: !ruby/object:Gem::Requirement
|
87
|
-
requirements:
|
88
|
-
- - "~>"
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
version: '1.13'
|
91
|
-
type: :development
|
92
|
-
prerelease: false
|
93
|
-
version_requirements: !ruby/object:Gem::Requirement
|
94
|
-
requirements:
|
95
|
-
- - "~>"
|
96
|
-
- !ruby/object:Gem::Version
|
97
|
-
version: '1.13'
|
98
|
-
- !ruby/object:Gem::Dependency
|
99
|
-
name: rails
|
85
|
+
name: pry-byebug
|
100
86
|
requirement: !ruby/object:Gem::Requirement
|
101
87
|
requirements:
|
102
88
|
- - ">="
|
103
89
|
- !ruby/object:Gem::Version
|
104
|
-
version: '
|
90
|
+
version: '0'
|
105
91
|
type: :development
|
106
92
|
prerelease: false
|
107
93
|
version_requirements: !ruby/object:Gem::Requirement
|
108
94
|
requirements:
|
109
95
|
- - ">="
|
110
96
|
- !ruby/object:Gem::Version
|
111
|
-
version: '
|
97
|
+
version: '0'
|
112
98
|
- !ruby/object:Gem::Dependency
|
113
|
-
name:
|
99
|
+
name: rabbitmq_http_api_client
|
114
100
|
requirement: !ruby/object:Gem::Requirement
|
115
101
|
requirements:
|
116
|
-
- - "
|
102
|
+
- - "~>"
|
117
103
|
- !ruby/object:Gem::Version
|
118
|
-
version: '
|
104
|
+
version: '1.13'
|
119
105
|
type: :development
|
120
106
|
prerelease: false
|
121
107
|
version_requirements: !ruby/object:Gem::Requirement
|
122
108
|
requirements:
|
123
|
-
- - "
|
109
|
+
- - "~>"
|
124
110
|
- !ruby/object:Gem::Version
|
125
|
-
version: '
|
111
|
+
version: '1.13'
|
126
112
|
- !ruby/object:Gem::Dependency
|
127
113
|
name: rspec
|
128
114
|
requirement: !ruby/object:Gem::Requirement
|
129
115
|
requirements:
|
130
|
-
- - "
|
116
|
+
- - "~>"
|
131
117
|
- !ruby/object:Gem::Version
|
132
|
-
version: '0'
|
118
|
+
version: '3.0'
|
133
119
|
type: :development
|
134
120
|
prerelease: false
|
135
121
|
version_requirements: !ruby/object:Gem::Requirement
|
136
122
|
requirements:
|
137
|
-
- - "
|
123
|
+
- - "~>"
|
138
124
|
- !ruby/object:Gem::Version
|
139
|
-
version: '0'
|
125
|
+
version: '3.0'
|
140
126
|
description: Advanced Sneakers adapter for ActiveJob
|
141
127
|
email:
|
142
128
|
- rustam@sharshenov.com
|
@@ -149,12 +135,17 @@ files:
|
|
149
135
|
- ".rspec"
|
150
136
|
- ".rubocop.yml"
|
151
137
|
- ".travis.yml"
|
138
|
+
- Appraisals
|
152
139
|
- CHANGELOG.md
|
153
140
|
- Gemfile
|
154
141
|
- LICENSE.txt
|
155
142
|
- README.md
|
156
143
|
- Rakefile
|
157
144
|
- advanced-sneakers-activejob.gemspec
|
145
|
+
- gemfiles/.bundle/config
|
146
|
+
- gemfiles/activejob_4.2.x.gemfile
|
147
|
+
- gemfiles/activejob_5.2.x.gemfile
|
148
|
+
- gemfiles/activejob_6.0.x.gemfile
|
158
149
|
- lib/active_job/queue_adapters/advanced_sneakers_adapter.rb
|
159
150
|
- lib/advanced/sneakers/activejob.rb
|
160
151
|
- lib/advanced_sneakers_activejob.rb
|
@@ -193,7 +184,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
193
184
|
- !ruby/object:Gem::Version
|
194
185
|
version: '0'
|
195
186
|
requirements: []
|
196
|
-
rubygems_version: 3.
|
187
|
+
rubygems_version: 3.1.4
|
197
188
|
signing_key:
|
198
189
|
specification_version: 4
|
199
190
|
summary: Advanced Sneakers adapter for ActiveJob
|