legion-transport 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/legion-transport.gemspec +7 -8
- data/lib/legion/transport.rb +1 -1
- data/lib/legion/transport/message.rb +1 -1
- data/lib/legion/transport/queue.rb +2 -2
- data/lib/legion/transport/version.rb +1 -1
- metadata +26 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aca9d21a2d161f0838dc16ce328d81c3ba42360a777c63e6aa805f6c52502e13
|
4
|
+
data.tar.gz: 46af9353894537c81d73a68e01522498181d6d2fb54ae3fcdec465ebb75f8675
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: add6818532d2159f4fa2be2a40148694f24511f7ca5095ad4477c9e0b72d70c546b2c7ba7ce6b60b44fa9b538c64e08d032dede1f341bbcb6e1831f541828d0e
|
7
|
+
data.tar.gz: 754b708ce889ff36ab763f4f72887895195721a9f5e43bea168e802ad6cde0e3fc813ef9ed7ac2e11d677388777d264fc635b57912376f96dff1b03d71108ce3
|
data/CHANGELOG.md
CHANGED
data/legion-transport.gemspec
CHANGED
@@ -11,6 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
spec.summary = 'Used by Legion to connect with RabbitMQ'
|
12
12
|
spec.description = 'The Legion transport gem'
|
13
13
|
spec.homepage = 'https://bitbucket.org/legion-io/legion-transport'
|
14
|
+
spec.required_ruby_version = '>= 2.5.0'
|
14
15
|
|
15
16
|
spec.metadata = {
|
16
17
|
'bug_tracker_uri' => 'https://legionio.atlassian.net/projects/TRANSPORT/issues',
|
@@ -29,16 +30,14 @@ Gem::Specification.new do |spec|
|
|
29
30
|
spec.add_development_dependency 'codecov'
|
30
31
|
spec.add_development_dependency 'legion-logging'
|
31
32
|
spec.add_development_dependency 'legion-settings'
|
32
|
-
spec.add_development_dependency '
|
33
|
-
spec.add_development_dependency '
|
33
|
+
spec.add_development_dependency 'march_hare' if RUBY_ENGINE == 'jruby'
|
34
|
+
spec.add_development_dependency 'rake'
|
35
|
+
spec.add_development_dependency 'rspec'
|
34
36
|
spec.add_development_dependency 'rspec_junit_formatter'
|
35
37
|
spec.add_development_dependency 'rubocop'
|
36
38
|
spec.add_development_dependency 'simplecov'
|
37
|
-
spec.add_dependency 'concurrent-ruby'
|
38
39
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
spec.add_dependency 'bunny'
|
43
|
-
end
|
40
|
+
spec.add_dependency 'bunny'
|
41
|
+
spec.add_dependency 'concurrent-ruby'
|
42
|
+
spec.add_dependency 'legion-json'
|
44
43
|
end
|
data/lib/legion/transport.rb
CHANGED
@@ -38,7 +38,7 @@ module Legion
|
|
38
38
|
{}
|
39
39
|
end
|
40
40
|
|
41
|
-
def queue_name
|
41
|
+
def queue_name
|
42
42
|
ancestor = self.class.ancestors.first.to_s.split('::')
|
43
43
|
name = if ancestor[5].scan(/[A-Z]/).length > 1
|
44
44
|
ancestor[5].gsub!(/(.)([A-Z])/, '\1_\2').downcase!
|
@@ -59,7 +59,7 @@ module Legion
|
|
59
59
|
channel.acknowledge(delivery_tag)
|
60
60
|
end
|
61
61
|
|
62
|
-
def reject(delivery_tag, requeue
|
62
|
+
def reject(delivery_tag, requeue: false)
|
63
63
|
channel.reject(delivery_tag, requeue)
|
64
64
|
end
|
65
65
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: legion-transport
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Esity
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-08-
|
11
|
+
date: 2020-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -70,30 +70,30 @@ dependencies:
|
|
70
70
|
name: rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rspec
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rspec_junit_formatter
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -136,6 +136,20 @@ dependencies:
|
|
136
136
|
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: bunny
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
139
153
|
- !ruby/object:Gem::Dependency
|
140
154
|
name: concurrent-ruby
|
141
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -151,7 +165,7 @@ dependencies:
|
|
151
165
|
- !ruby/object:Gem::Version
|
152
166
|
version: '0'
|
153
167
|
- !ruby/object:Gem::Dependency
|
154
|
-
name:
|
168
|
+
name: legion-json
|
155
169
|
requirement: !ruby/object:Gem::Requirement
|
156
170
|
requirements:
|
157
171
|
- - ">="
|
@@ -177,7 +191,6 @@ files:
|
|
177
191
|
- ".rubocop.yml"
|
178
192
|
- CHANGELOG.md
|
179
193
|
- Gemfile
|
180
|
-
- Gemfile.lock
|
181
194
|
- README.md
|
182
195
|
- Rakefile
|
183
196
|
- bin/console
|
@@ -227,7 +240,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
227
240
|
requirements:
|
228
241
|
- - ">="
|
229
242
|
- !ruby/object:Gem::Version
|
230
|
-
version:
|
243
|
+
version: 2.5.0
|
231
244
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
232
245
|
requirements:
|
233
246
|
- - ">="
|