routemaster-client 3.1.2 → 3.2.0

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: 8f238d31c8aacf8c09fd5743a84fea68afeecd82148d6bd1700ad30fdb2831e6
4
- data.tar.gz: f7d502218b458e553e0af0b5b3248b5acfff9dd7e3d3f107e1387756bb765d8f
3
+ metadata.gz: '0384440865d526f1b3dbe9efd6546ce97f434955973584a33282bc03d507f0a8'
4
+ data.tar.gz: d48c76712c3091bc8740960a67d29d82413355423dad308b4b7b7d9fae47ab75
5
5
  SHA512:
6
- metadata.gz: 8209d5dc0d6cda84ffd2c4635911a3b00986c06928ed5a4945efa2131319e182ed8cd3498416c7a2dbf1d39768a6412e5e6671810b4a45d80054159c115738a6
7
- data.tar.gz: '019120a2ce5567c8d819e28eba8fa78c4ef0250769eff05080a32de3f94f921643a3d36ffa012b618154c3fa940aeec5671cbdcbd472dbf18a44ac4354d3a696'
6
+ metadata.gz: 34fc6f879ce1b79f629ad744948657e5173e38939dcc7c48012a79b81dfcf47719e8906a65ea0dd3bc23adc4825afeb84f18b5d5b932650a05d1130d57f87b9e
7
+ data.tar.gz: d095b52a84f3f6f4e55ca53e3a95513eda7e204309a3b087bf619b40b6c0c1b353c636067e27ca61f308e6aa94694c0f4cfe98d9e80add440bdaa1449d1e1ef9
@@ -1,3 +1,13 @@
1
+ ## 3.2.0 (2018-01-08)
2
+
3
+ Changes:
4
+
5
+ - Unpin oj (#25)
6
+
7
+ Bug fixes:
8
+
9
+ - Fixes out of scope config (#30)
10
+
1
11
  ## 3.1.2 (2018-01-05)
2
12
 
3
13
  Bug fixes:
@@ -1,10 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- routemaster-client (3.1.2)
4
+ routemaster-client (3.2.0)
5
5
  faraday (>= 0.9.0)
6
6
  hashie
7
- oj (~> 2.17)
7
+ oj (>= 2.17)
8
8
  typhoeus (~> 1.1)
9
9
  wisper (~> 1.6.1)
10
10
 
@@ -57,7 +57,7 @@ GEM
57
57
  notiffany (0.1.1)
58
58
  nenv (~> 0.1)
59
59
  shellany (~> 0.0)
60
- oj (2.18.5)
60
+ oj (3.3.10)
61
61
  pry (0.10.4)
62
62
  coderay (~> 1.1.0)
63
63
  method_source (~> 0.8.1)
@@ -22,7 +22,6 @@ Gem::Specification.new do |spec|
22
22
  spec.add_runtime_dependency 'typhoeus', '~> 1.1'
23
23
  spec.add_runtime_dependency 'faraday', '>= 0.9.0'
24
24
  spec.add_runtime_dependency 'wisper', '~> 1.6.1'
25
- spec.add_runtime_dependency 'oj', '~> 2.17'
26
-
25
+ spec.add_runtime_dependency 'oj', '>= 2.17'
27
26
  spec.add_runtime_dependency 'hashie'
28
27
  end
@@ -100,7 +100,7 @@ module Routemaster
100
100
 
101
101
  if self.class.options
102
102
  p.separator 'Options:'
103
- self.class.options.call(p)
103
+ instance_exec(p, &self.class.options)
104
104
  end
105
105
 
106
106
  p.separator 'Common options:'
@@ -1,5 +1,5 @@
1
1
  module Routemaster
2
2
  module Client
3
- VERSION = '3.1.2'
3
+ VERSION = '3.2.0'
4
4
  end
5
5
  end
@@ -7,10 +7,18 @@ describe Routemaster::CLI::Sub, type: :cli do
7
7
 
8
8
  describe 'add' do
9
9
  context 'with correct arguments' do
10
- let(:argv) { %w[sub add https://my-service.dev cats dogs -b bus.dev -t s3cr3t] }
10
+ let(:argv) do
11
+ %w[sub add https://my-service.dev cats dogs -b bus.dev -t s3cr3t --batch-size 30 --latency 200]
12
+ end
11
13
 
12
14
  it {
13
- expect(client).to receive(:subscribe).with(topics: %w[cats dogs], callback: 'https://my-service.dev', uuid: 's3cr3t')
15
+ expect(client).to receive(:subscribe).with(
16
+ topics: %w[cats dogs],
17
+ callback: 'https://my-service.dev',
18
+ uuid: 's3cr3t',
19
+ max: 30,
20
+ timeout: 200
21
+ )
14
22
  perform
15
23
  }
16
24
  end
@@ -209,7 +209,7 @@ describe Routemaster::Client do
209
209
  end
210
210
 
211
211
  context 'with non-serializable data' do
212
- let(:data) { [:foo, 'bar'] }
212
+ let(:data) { [Object.new, 'bar'] }
213
213
 
214
214
  it 'fails' do
215
215
  expect { perform }.to raise_error(Routemaster::Client::InvalidArgumentError)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: routemaster-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.2
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien Letessier
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-01-05 00:00:00.000000000 Z
11
+ date: 2018-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -56,14 +56,14 @@ dependencies:
56
56
  name: oj
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '2.17'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '2.17'
69
69
  - !ruby/object:Gem::Dependency