jackhammer 1.4.0 → 1.5.0.rc

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: 4aa6bdf41e8005dbbfbcdc2bacfc4fae0a8e182cb35b62fea8d961ba350ef600
4
- data.tar.gz: 7ce9c945039c1e09b4cec7406c6c1e767f5bc91baf76ace5a9dcdca940f7991b
3
+ metadata.gz: fe3c95c59d65b18dc571d1ed7d3a20b64ee124573167059c931ebc88201453d8
4
+ data.tar.gz: 39f7e8b0a4fc0217074fd39c2fc118abbfd411a5f1500b27e419f1cd13d2c599
5
5
  SHA512:
6
- metadata.gz: e6ace137b8bac8709c3c38cf7fe0109cda7a13e4fe59d4900bb059f9b1403c445eb67419375a9d1c7c438c84d8d55949bb59291f53aa9982f9658364f43a6283
7
- data.tar.gz: b2d6807b73211b09db3db88bc02de9d2d0509a4451c4b1fc252d92e98eb5b864038c25f3482169fe0325d58b820a5a659c16efea077bf32c668a9fafd2f90ec5
6
+ metadata.gz: 2777a62d62fd0f1f0c6fba1e50734666378c124a1ff8b31b5daefc4c6f7ee5f29ab2dcc03eafe1baca09f84a6abe95624bc306b8da4918edd577354f4684c6fc
7
+ data.tar.gz: e173c65281312be2d6af359d9714de1a849d0bc9f43489a48b76b25dcf6ff9373b6e6c5fb0487de3c8aa041b86770d159d7be2ba04dff12bf489f4d1e19cd439
data/.bundler-version ADDED
@@ -0,0 +1 @@
1
+ 2.2.21
@@ -3,9 +3,14 @@ version: 1
3
3
  update_configs:
4
4
  - package_manager: "ruby:bundler"
5
5
  directory: "/"
6
- update_schedule: "monthly"
6
+ update_schedule: "daily"
7
7
  commit_message:
8
8
  prefix: "[dependabot]"
9
9
  allowed_updates:
10
10
  - match:
11
- update_type: "all"
11
+ dependency_type: "all"
12
+ update_type: "security"
13
+ automerged_updates:
14
+ - match:
15
+ dependency_type: "all"
16
+ update_type: "security:patch"
@@ -1,15 +1,5 @@
1
1
  name: automerge
2
2
  on:
3
- pull_request:
4
- types:
5
- - labeled
6
- - unlabeled
7
- - synchronize
8
- - opened
9
- - edited
10
- - ready_for_review
11
- - reopened
12
- - unlocked
13
3
  pull_request_review:
14
4
  types:
15
5
  - submitted
@@ -22,7 +12,7 @@ jobs:
22
12
  runs-on: ubuntu-latest
23
13
  steps:
24
14
  - name: automerge
25
- uses: "pascalgn/automerge-action@v0.11.0"
15
+ uses: "pascalgn/automerge-action@v0.12.0"
26
16
  env:
27
17
  GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
28
18
  MERGE_METHOD: squash
data/.travis.yml CHANGED
@@ -5,6 +5,7 @@ cache: bundler
5
5
  rvm:
6
6
  - 2.6
7
7
  - 2.7
8
+ - 3.0
8
9
  before_install: gem install bundler
9
10
  script:
10
11
  - bundle exec rake spec
data/Gemfile.lock CHANGED
@@ -1,80 +1,86 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jackhammer (1.4.0)
5
- bunny (~> 2.14)
4
+ jackhammer (1.5.0.rc)
5
+ bunny (~> 2.17)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activemodel (6.0.3.4)
11
- activesupport (= 6.0.3.4)
12
- activerecord (6.0.3.4)
13
- activemodel (= 6.0.3.4)
14
- activesupport (= 6.0.3.4)
15
- activesupport (6.0.3.4)
10
+ activemodel (6.1.4)
11
+ activesupport (= 6.1.4)
12
+ activerecord (6.1.4)
13
+ activemodel (= 6.1.4)
14
+ activesupport (= 6.1.4)
15
+ activesupport (6.1.4)
16
16
  concurrent-ruby (~> 1.0, >= 1.0.2)
17
- i18n (>= 0.7, < 2)
18
- minitest (~> 5.1)
19
- tzinfo (~> 1.1)
20
- zeitwerk (~> 2.2, >= 2.2.2)
17
+ i18n (>= 1.6, < 2)
18
+ minitest (>= 5.1)
19
+ tzinfo (~> 2.0)
20
+ zeitwerk (~> 2.3)
21
21
  amq-protocol (2.3.2)
22
- ast (2.4.1)
23
- bunny (2.17.0)
22
+ ast (2.4.2)
23
+ bunny (2.19.0)
24
24
  amq-protocol (~> 2.3, >= 2.3.1)
25
+ sorted_set (~> 1, >= 1.0.2)
25
26
  bunny-mock (1.7.0)
26
27
  bunny (>= 1.7)
27
28
  byebug (11.1.3)
28
- concurrent-ruby (1.1.7)
29
+ concurrent-ruby (1.1.9)
29
30
  diff-lcs (1.4.4)
30
- i18n (1.8.5)
31
+ i18n (1.8.10)
31
32
  concurrent-ruby (~> 1.0)
32
- minitest (5.14.2)
33
- parallel (1.19.2)
34
- parser (2.7.2.0)
33
+ minitest (5.14.4)
34
+ parallel (1.20.1)
35
+ parser (3.0.1.1)
35
36
  ast (~> 2.4.1)
36
37
  rainbow (3.0.0)
37
- rake (13.0.1)
38
- regexp_parser (1.8.2)
39
- rexml (3.2.4)
40
- rspec (3.9.0)
41
- rspec-core (~> 3.9.0)
42
- rspec-expectations (~> 3.9.0)
43
- rspec-mocks (~> 3.9.0)
44
- rspec-core (3.9.3)
45
- rspec-support (~> 3.9.3)
46
- rspec-expectations (3.9.2)
38
+ rake (13.0.4)
39
+ rbtree (0.4.4)
40
+ regexp_parser (2.1.1)
41
+ rexml (3.2.5)
42
+ rspec (3.10.0)
43
+ rspec-core (~> 3.10.0)
44
+ rspec-expectations (~> 3.10.0)
45
+ rspec-mocks (~> 3.10.0)
46
+ rspec-core (3.10.1)
47
+ rspec-support (~> 3.10.0)
48
+ rspec-expectations (3.10.1)
47
49
  diff-lcs (>= 1.2.0, < 2.0)
48
- rspec-support (~> 3.9.0)
49
- rspec-mocks (3.9.1)
50
+ rspec-support (~> 3.10.0)
51
+ rspec-mocks (3.10.2)
50
52
  diff-lcs (>= 1.2.0, < 2.0)
51
- rspec-support (~> 3.9.0)
52
- rspec-support (3.9.3)
53
- rubocop (0.93.1)
53
+ rspec-support (~> 3.10.0)
54
+ rspec-support (3.10.2)
55
+ rubocop (1.18.3)
54
56
  parallel (~> 1.10)
55
- parser (>= 2.7.1.5)
57
+ parser (>= 3.0.0.0)
56
58
  rainbow (>= 2.2.2, < 4.0)
57
- regexp_parser (>= 1.8)
59
+ regexp_parser (>= 1.8, < 3.0)
58
60
  rexml
59
- rubocop-ast (>= 0.6.0)
61
+ rubocop-ast (>= 1.7.0, < 2.0)
60
62
  ruby-progressbar (~> 1.7)
61
- unicode-display_width (>= 1.4.0, < 2.0)
62
- rubocop-ast (0.7.1)
63
- parser (>= 2.7.1.5)
64
- rubocop-performance (1.8.1)
65
- rubocop (>= 0.87.0)
66
- rubocop-ast (>= 0.4.0)
67
- rubocop-rspec (1.43.2)
68
- rubocop (~> 0.87)
69
- ruby-progressbar (1.10.1)
70
- thread_safe (0.3.6)
71
- tzinfo (1.2.7)
72
- thread_safe (~> 0.1)
73
- unicode-display_width (1.7.0)
74
- zeitwerk (2.4.0)
63
+ unicode-display_width (>= 1.4.0, < 3.0)
64
+ rubocop-ast (1.7.0)
65
+ parser (>= 3.0.1.1)
66
+ rubocop-rake (0.6.0)
67
+ rubocop (~> 1.0)
68
+ rubocop-rspec (2.4.0)
69
+ rubocop (~> 1.0)
70
+ rubocop-ast (>= 1.1.0)
71
+ ruby-progressbar (1.11.0)
72
+ set (1.0.1)
73
+ sorted_set (1.0.3)
74
+ rbtree
75
+ set (~> 1.0)
76
+ tzinfo (2.0.4)
77
+ concurrent-ruby (~> 1.0)
78
+ unicode-display_width (2.0.0)
79
+ zeitwerk (2.4.2)
75
80
 
76
81
  PLATFORMS
77
82
  ruby
83
+ x86_64-linux
78
84
 
79
85
  DEPENDENCIES
80
86
  activerecord
@@ -85,8 +91,8 @@ DEPENDENCIES
85
91
  rake
86
92
  rspec
87
93
  rubocop
88
- rubocop-performance
94
+ rubocop-rake
89
95
  rubocop-rspec
90
96
 
91
97
  BUNDLED WITH
92
- 2.1.4
98
+ 2.2.15
data/jackhammer.gemspec CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
24
24
 
25
25
  spec.required_ruby_version = '>= 2.6'
26
26
 
27
- spec.add_dependency 'bunny', '~> 2.14'
27
+ spec.add_dependency 'bunny', '~> 2.17'
28
28
 
29
29
  spec.add_development_dependency 'activerecord'
30
30
  spec.add_development_dependency 'bundler'
@@ -33,6 +33,6 @@ Gem::Specification.new do |spec|
33
33
  spec.add_development_dependency 'rake'
34
34
  spec.add_development_dependency 'rspec'
35
35
  spec.add_development_dependency 'rubocop'
36
- spec.add_development_dependency 'rubocop-performance'
36
+ spec.add_development_dependency 'rubocop-rake'
37
37
  spec.add_development_dependency 'rubocop-rspec'
38
38
  end
@@ -4,25 +4,25 @@ module Jackhammer
4
4
  @entries = []
5
5
  end
6
6
 
7
- def use(klass, *args, &block)
8
- @entries << Entry.new(klass: klass, args: args, block: block)
7
+ def use(klass, *args, **kwargs, &block)
8
+ @entries << Entry.new(klass: klass, args: args, kwargs: kwargs, block: block)
9
9
  end
10
10
 
11
- def call(*args, &block)
11
+ def call(*args, **kwargs, &block)
12
12
  call_chain = @entries.map(&:instantiate) + [block]
13
13
 
14
- traverse = proc do |*arguments|
15
- call_chain.shift.call(*arguments, &traverse) unless call_chain.empty?
14
+ traverse = proc do |*procargs, **prockwargs|
15
+ call_chain.shift.call(*procargs, **prockwargs, &traverse) unless call_chain.empty?
16
16
  end
17
17
 
18
- traverse.call(*args)
18
+ traverse.call(*args, **kwargs)
19
19
  end
20
20
 
21
- Entry = Struct.new(:klass, :args, :block, keyword_init: true) do
21
+ Entry = Struct.new(:klass, :args, :kwargs, :block, keyword_init: true) do
22
22
  def instantiate
23
23
  return klass unless klass.respond_to?(:new)
24
24
 
25
- klass.new(*args, &block)
25
+ klass.new(*args, **kwargs, &block)
26
26
  end
27
27
  end
28
28
  end
@@ -3,8 +3,8 @@ module Jackhammer
3
3
  QUEUE_NAME_KEY = 'queue_name'.freeze
4
4
  ROUTING_KEY_KEY = 'routing_key'.freeze
5
5
 
6
- def initialize(name:, options:, queue_config:)
7
- @topic = Jackhammer.channel.topic name, options
6
+ def initialize(name:, queue_config:, options: {})
7
+ @topic = Jackhammer.channel.topic(name, options)
8
8
  @queue_config = normalize_queue_config(queue_config)
9
9
  end
10
10
 
@@ -1,3 +1,3 @@
1
1
  module Jackhammer
2
- VERSION = '1.4.0'.freeze
2
+ VERSION = '1.5.0.rc'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jackhammer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.0.rc
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Serok
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-10-20 00:00:00.000000000 Z
11
+ date: 2021-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bunny
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.14'
19
+ version: '2.17'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '2.14'
26
+ version: '2.17'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activerecord
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -123,7 +123,7 @@ dependencies:
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
- name: rubocop-performance
126
+ name: rubocop-rake
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - ">="
@@ -150,7 +150,7 @@ dependencies:
150
150
  - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
- description:
153
+ description:
154
154
  email:
155
155
  - scott@renofi.com
156
156
  executables:
@@ -158,6 +158,7 @@ executables:
158
158
  extensions: []
159
159
  extra_rdoc_files: []
160
160
  files:
161
+ - ".bundler-version"
161
162
  - ".dependabot/config.yml"
162
163
  - ".github/ISSUE_TEMPLATE/bug_report.md"
163
164
  - ".github/ISSUE_TEMPLATE/config.yml"
@@ -196,7 +197,7 @@ licenses:
196
197
  metadata:
197
198
  homepage_uri: https://github.com/renofi/jackhammer
198
199
  source_code_uri: https://github.com/renofi/jackhammer
199
- post_install_message:
200
+ post_install_message:
200
201
  rdoc_options: []
201
202
  require_paths:
202
203
  - lib
@@ -207,12 +208,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
207
208
  version: '2.6'
208
209
  required_rubygems_version: !ruby/object:Gem::Requirement
209
210
  requirements:
210
- - - ">="
211
+ - - ">"
211
212
  - !ruby/object:Gem::Version
212
- version: '0'
213
+ version: 1.3.1
213
214
  requirements: []
214
- rubygems_version: 3.1.4
215
- signing_key:
215
+ rubygems_version: 3.2.15
216
+ signing_key:
216
217
  specification_version: 4
217
218
  summary: Jackhammer is an opinionated facade over RabbitMQ Bunny
218
219
  test_files: []