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 +4 -4
- data/CHANGELOG.md +10 -0
- data/Gemfile.lock +3 -3
- data/routemaster-client.gemspec +1 -2
- data/routemaster/cli/base.rb +1 -1
- data/routemaster/client/version.rb +1 -1
- data/spec/cli/sub_spec.rb +10 -2
- data/spec/client_spec.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0384440865d526f1b3dbe9efd6546ce97f434955973584a33282bc03d507f0a8'
|
4
|
+
data.tar.gz: d48c76712c3091bc8740960a67d29d82413355423dad308b4b7b7d9fae47ab75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34fc6f879ce1b79f629ad744948657e5173e38939dcc7c48012a79b81dfcf47719e8906a65ea0dd3bc23adc4825afeb84f18b5d5b932650a05d1130d57f87b9e
|
7
|
+
data.tar.gz: d095b52a84f3f6f4e55ca53e3a95513eda7e204309a3b087bf619b40b6c0c1b353c636067e27ca61f308e6aa94694c0f4cfe98d9e80add440bdaa1449d1e1ef9
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
routemaster-client (3.
|
4
|
+
routemaster-client (3.2.0)
|
5
5
|
faraday (>= 0.9.0)
|
6
6
|
hashie
|
7
|
-
oj (
|
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 (
|
60
|
+
oj (3.3.10)
|
61
61
|
pry (0.10.4)
|
62
62
|
coderay (~> 1.1.0)
|
63
63
|
method_source (~> 0.8.1)
|
data/routemaster-client.gemspec
CHANGED
@@ -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', '
|
26
|
-
|
25
|
+
spec.add_runtime_dependency 'oj', '>= 2.17'
|
27
26
|
spec.add_runtime_dependency 'hashie'
|
28
27
|
end
|
data/routemaster/cli/base.rb
CHANGED
data/spec/cli/sub_spec.rb
CHANGED
@@ -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)
|
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(
|
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
|
data/spec/client_spec.rb
CHANGED
@@ -209,7 +209,7 @@ describe Routemaster::Client do
|
|
209
209
|
end
|
210
210
|
|
211
211
|
context 'with non-serializable data' do
|
212
|
-
let(:data) { [
|
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.
|
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-
|
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
|