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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1aaae2951e9e941f00eaf9ef8c51a0c56d04cc9c562feed490a245c1d918ba07
4
- data.tar.gz: 6489ed0097e980a21f10183422835ebc937d89cce253f5dc7a9074672747d83d
3
+ metadata.gz: 7c9c85eff744ad5d1de5009fc25cf53ad1b11922d4ed75b65c87045615850143
4
+ data.tar.gz: a67cc5ac97620471e7424066acab3ac5b513da37888ccd70599946c107b0a0fe
5
5
  SHA512:
6
- metadata.gz: 3d5694a6f435e4fdb73be0f6966a5167b10b1c58075a6f52a8022a7954f4d40fe50d4b17de24cdd5d8141936a4c6b7235e93c69d14a4ba3eefd5483d1f6f63b8
7
- data.tar.gz: 228835587b2413b91d6ac65e1a1aa5b4275e4feb8506b283a2622aa7798a768b352ab84d2ab0fa8355be25fa25e5362eaa017ed7bf190d7898e14dcdd018e866
6
+ metadata.gz: 2ba5450df0c6b7dd824c468d5962d77085c2cabcf3db3b009485cee68c917fbdf3d3109355b9148176f4841c388065402c9ce15c7bd2093bc89eec47cf6488a5
7
+ data.tar.gz: b9780aa81dc55deb3a311ba5d658b5c584398ee4df82a2e963acca9d9429bbfa6fbd34f3e1794e4e407ba7624456e6ea92cb19e47de22d8f3ccb7670cd76b323
data/.gitignore CHANGED
@@ -7,6 +7,7 @@
7
7
  /spec/reports/
8
8
  /tmp/
9
9
  /Gemfile.lock
10
+ /gemfiles/*.lock
10
11
  /.ruby-gemset
11
12
  /.ruby-version
12
13
 
@@ -1,5 +1,7 @@
1
1
  AllCops:
2
2
  NewCops: enable
3
+ Exclude:
4
+ - gemfiles/**/*
3
5
 
4
6
  Layout/LineLength:
5
7
  Max: 140
@@ -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
- env:
10
- - RAILS_VERSION="~> 4.2.11"
11
- - RAILS_VERSION="~> 5.2.4"
12
- - RAILS_VERSION="~> 6.0.2"
13
- jobs:
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
- env: RAILS_VERSION="~> 4.2.11"
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
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ appraise 'activejob-4.2.x' do
4
+ gem 'rails', '~> 4.2.11'
5
+ end
6
+
7
+ appraise 'activejob-5.2.x' do
8
+ gem 'rails', '~> 5.2.4'
9
+ end
10
+
11
+ appraise 'activejob-6.0.x' do
12
+ gem 'rails', '~> 6.0.3'
13
+ end
@@ -1,76 +1,85 @@
1
- ## Changes Between 0.3.4 and 0.3.5
1
+ # Changelog
2
2
 
3
- [Fixed NoMethodError on Rails.application.eager_load! in Rails initializer](https://github.com/veeqo/advanced-sneakers-activejob/pull/11)
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
- ## Changes Between 0.3.3 and 0.3.4
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
- Works with `sneakers:active_job` task only!
10
+ ## [0.3.6](https://github.com/veeqo/advanced-sneakers-activejob/compare/v0.3.5...v0.3.6) - 2020-09-18
14
11
 
15
- ```sh
16
- QUEUES=mailers,index.*,telemetery.# rake sneakers:active_job
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
- ## Changes Between 0.3.2 and 0.3.3
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
- Works with `sneakers:active_job` task only!
20
+ ## [0.3.5](https://github.com/veeqo/advanced-sneakers-activejob/compare/v0.3.4...v0.3.5) - 2020-06-27
24
21
 
25
- ```sh
26
- QUEUES=mailers,default rake sneakers:active_job
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
- ### [Add ability to run specified ActiveJob queues consumers](https://github.com/veeqo/advanced-sneakers-activejob/pull/8)
26
+ ## [0.3.4](https://github.com/veeqo/advanced-sneakers-activejob/compare/v0.3.3...v0.3.4) - 2020-06-11
32
27
 
33
- Sneakers allows to specify consumer classes to run:
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
- Now it works for ActiveJob queues consumers as well:
32
+ ## [0.3.3](https://github.com/veeqo/advanced-sneakers-activejob/compare/v0.3.2...v0.3.3) - 2020-06-09
40
33
 
41
- ```sh
42
- WORKERS=AdvancedSneakersActiveJob::MailersConsumer rake sneakers:run
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
- ### [Restore Sneakers::Worker::Classes methods](https://github.com/veeqo/advanced-sneakers-activejob/pull/6)
38
+ ## [0.3.2](https://github.com/veeqo/advanced-sneakers-activejob/compare/v0.3.1...v0.3.2) - 2020-06-05
48
39
 
49
- ## Changes Between 0.2.3 and 0.3.0
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
- ### Reusable parts of publisher are extracted to [bunny-publisher](https://github.com/veeqo/bunny-publisher)
44
+ ## [0.3.1](https://github.com/veeqo/advanced-sneakers-activejob/compare/v0.3.0...v0.3.1) - 2020-06-02
54
45
 
55
- ## Changes Between 0.2.2 and 0.2.3
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
- ## Changes Between 0.2.1 and 0.2.2
50
+ ## [0.3.0](https://github.com/veeqo/advanced-sneakers-activejob/compare/v0.2.3...v0.3.0) - 2020-05-21
61
51
 
62
- Cleanup of `puts` and logger mistakenly introduced in previous version
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
- ### [Support for ActiveJob prefix](https://github.com/veeqo/advanced-sneakers-activejob/pull/2)
56
+ ## [0.2.3](https://github.com/veeqo/advanced-sneakers-activejob/compare/v0.2.2...v0.2.3) - 2020-04-06
67
57
 
68
- Fixed worker class name in rake task description
58
+ ### Added
59
+ - [#4](https://github.com/veeqo/advanced-sneakers-activejob/pull/4) Support for custom adapter per job
69
60
 
70
- ## Changes Between 0.1.0 and 0.2.0
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
- Customizable options for message publishing (`routing_key`, `headers`, etc)
65
+ ## [0.2.2](https://github.com/veeqo/advanced-sneakers-activejob/compare/v0.2.1...v0.2.2) - 2020-04-05
75
66
 
76
- ## Original Release: 0.1.0
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', ENV.fetch('RAILS_VERSION', '~> 4.2.11')
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 'rails', '>= 4.2'
37
- spec.add_development_dependency 'rake'
38
- spec.add_development_dependency 'rspec'
37
+ spec.add_development_dependency 'rspec', '~> 3.0'
39
38
  end
@@ -0,0 +1,3 @@
1
+ ---
2
+ BUNDLE_RETRY: "3"
3
+ BUNDLE_JOBS: "3"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 4.2.11"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 5.2.4"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 6.0.3"
6
+
7
+ gemspec path: "../"
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AdvancedSneakersActiveJob
4
- VERSION = '0.3.5'
4
+ VERSION = '0.3.6'
5
5
  end
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.5
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-07-27 00:00:00.000000000 Z
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: bundler
57
+ name: appraisal
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - ">="
60
+ - - "~>"
61
61
  - !ruby/object:Gem::Version
62
- version: '0'
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: '0'
69
+ version: 2.3.0
70
70
  - !ruby/object:Gem::Dependency
71
- name: pry-byebug
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: rabbitmq_http_api_client
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: '4.2'
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: '4.2'
97
+ version: '0'
112
98
  - !ruby/object:Gem::Dependency
113
- name: rake
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: '0'
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: '0'
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.0.6
187
+ rubygems_version: 3.1.4
197
188
  signing_key:
198
189
  specification_version: 4
199
190
  summary: Advanced Sneakers adapter for ActiveJob