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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5bd62b9624fec1655427b9957cf33e78ce0e6d3e6334ffbbc271013ed8aa7986
4
- data.tar.gz: 6b33728ef477505532c606b6ff298e4d0210305a5ca8834b9d47408f084f630b
3
+ metadata.gz: aca9d21a2d161f0838dc16ce328d81c3ba42360a777c63e6aa805f6c52502e13
4
+ data.tar.gz: 46af9353894537c81d73a68e01522498181d6d2fb54ae3fcdec465ebb75f8675
5
5
  SHA512:
6
- metadata.gz: a883f32e68e869a703769199c3276eea70d0587a90553adf3c3a09623131976a3a51f725856a25aaa7a7401e3a8bed44908bbf9e4ac9b7f680bc89a29f2d249a
7
- data.tar.gz: 2f7777a6aa714ad9fb69247052985a24f70fd007f29647226000bd8296d5de6c853616a1f341e3f9e65ff45042c11da3cd23ea65f42449da25d511acc300a937
6
+ metadata.gz: add6818532d2159f4fa2be2a40148694f24511f7ca5095ad4477c9e0b72d70c546b2c7ba7ce6b60b44fa9b538c64e08d032dede1f341bbcb6e1831f541828d0e
7
+ data.tar.gz: 754b708ce889ff36ab763f4f72887895195721a9f5e43bea168e802ad6cde0e3fc813ef9ed7ac2e11d677388777d264fc635b57912376f96dff1b03d71108ce3
@@ -1,4 +1,9 @@
1
1
  # Legion::Transport ChangeLog
2
2
 
3
+ ## v1.1.3
4
+ * Adding JRuby support via a different gem
5
+ * Adding more logic on choosing which gem to pick for the CONNECTOR
6
+ * Cleaning up some rubocop things
7
+
3
8
  ## v1.1.2
4
9
  Updating queue auto_delete to be false
@@ -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 'rake', '~> 10.0'
33
- spec.add_development_dependency 'rspec', '~> 3.0'
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
- if RUBY_ENGINE == 'jruby'
40
- spec.add_dependency 'march_hare'
41
- else
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
@@ -3,7 +3,7 @@ require_relative 'transport/settings'
3
3
 
4
4
  module Legion
5
5
  module Transport
6
- if RUBY_ENGINE == 'jruby'
6
+ if RUBY_ENGINE == 'jruby' && defined?(::Marchhare)
7
7
  require 'marchhare'
8
8
  TYPE = 'marchhare'.freeze
9
9
  CONNECTOR = ::Marchhare
@@ -103,4 +103,4 @@ module Legion
103
103
  end
104
104
  end
105
105
 
106
- Dir[__dir__ + '/messages/*.rb'].sort.each { |file| require file }
106
+ Dir["#{__dir__}/messages/*.rb"].sort.each { |file| require file }
@@ -38,7 +38,7 @@ module Legion
38
38
  {}
39
39
  end
40
40
 
41
- def queue_name # rubocop:disable Metrics/AbcSize
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 = false)
62
+ def reject(delivery_tag, requeue: false)
63
63
  channel.reject(delivery_tag, requeue)
64
64
  end
65
65
  end
@@ -1,5 +1,5 @@
1
1
  module Legion
2
2
  module Transport
3
- VERSION = '1.1.2'.freeze
3
+ VERSION = '1.1.3'.freeze
4
4
  end
5
5
  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.2
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-24 00:00:00.000000000 Z
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: '10.0'
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: '10.0'
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: '3.0'
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: '3.0'
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: bunny
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: '0'
243
+ version: 2.5.0
231
244
  required_rubygems_version: !ruby/object:Gem::Requirement
232
245
  requirements:
233
246
  - - ">="