routemaster-client 3.1.1 → 3.1.2

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
- SHA1:
3
- metadata.gz: 5f38e0d37b7b2438fdc823e0df9d08ae2a45df05
4
- data.tar.gz: 9ebb5aacf9ac9cf1e806f29b8908fb1f2b1c13a9
2
+ SHA256:
3
+ metadata.gz: 8f238d31c8aacf8c09fd5743a84fea68afeecd82148d6bd1700ad30fdb2831e6
4
+ data.tar.gz: f7d502218b458e553e0af0b5b3248b5acfff9dd7e3d3f107e1387756bb765d8f
5
5
  SHA512:
6
- metadata.gz: 6d9ae9d682feb8add9c4946e9fd2a8e1a2f803a6d6cd7802d255498df54f02ad763dd9f90f9a65ae6cbbaccc5f48efb2116ad05f9ba76348bdd7c036b36da74c
7
- data.tar.gz: d02d9fd0b1cff7ccba425bc67efb38cd14e0a41cadea41c8d2ed28e3df0ffcd09b5e876148942f4a2fc8f4351859aad28c7e4868ae33937eb859214b94df34bb
6
+ metadata.gz: 8209d5dc0d6cda84ffd2c4635911a3b00986c06928ed5a4945efa2131319e182ed8cd3498416c7a2dbf1d39768a6412e5e6671810b4a45d80054159c115738a6
7
+ data.tar.gz: '019120a2ce5567c8d819e28eba8fa78c4ef0250769eff05080a32de3f94f921643a3d36ffa012b618154c3fa940aeec5671cbdcbd472dbf18a44ac4354d3a696'
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 3.1.2 (2018-01-05)
2
+
3
+ Bug fixes:
4
+
5
+ - Send UUID from given TOKEN when adding/updating subscription(s) (#28)
6
+
1
7
  ## 3.1.1 (2017-08-15)
2
8
 
3
9
  Features:
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- routemaster-client (3.1.1)
4
+ routemaster-client (3.1.2)
5
5
  faraday (>= 0.9.0)
6
6
  hashie
7
7
  oj (~> 2.17)
@@ -23,9 +23,9 @@ GEM
23
23
  safe_yaml (~> 1.0.0)
24
24
  diff-lcs (1.3)
25
25
  docile (1.1.5)
26
- ethon (0.10.1)
26
+ ethon (0.11.0)
27
27
  ffi (>= 1.3.0)
28
- faraday (0.12.2)
28
+ faraday (0.13.1)
29
29
  multipart-post (>= 1.2, < 3)
30
30
  ffi (1.9.18)
31
31
  formatador (0.2.5)
@@ -44,7 +44,7 @@ GEM
44
44
  guard-compat (~> 1.1)
45
45
  rspec (>= 2.99.0, < 4.0)
46
46
  hashdiff (0.3.4)
47
- hashie (3.5.6)
47
+ hashie (3.5.7)
48
48
  json (2.1.0)
49
49
  listen (3.1.5)
50
50
  rb-fsevent (~> 0.9, >= 0.9.4)
@@ -105,7 +105,7 @@ GEM
105
105
  simplecov-html (0.10.1)
106
106
  slop (3.6.0)
107
107
  thor (0.19.4)
108
- typhoeus (1.1.2)
108
+ typhoeus (1.3.0)
109
109
  ethon (>= 0.9.0)
110
110
  webmock (3.0.1)
111
111
  addressable (>= 2.3.6)
@@ -130,4 +130,4 @@ DEPENDENCIES
130
130
  webmock
131
131
 
132
132
  BUNDLED WITH
133
- 1.15.3
133
+ 1.16.0
@@ -19,7 +19,7 @@ module Routemaster
19
19
 
20
20
  options do |p|
21
21
  p.on('--latency MS', %{
22
- The target delivery latency for this subscriber (ie. how long to buffer events for).
22
+ The target delivery latency for this subscriber (ie. how long to buffer events for).
23
23
  }) do |x|
24
24
  config.latency = Integer(x)
25
25
  end
@@ -38,6 +38,7 @@ module Routemaster
38
38
  params = {}
39
39
  params[:timeout] = config.latency if config.latency
40
40
  params[:max] = config.batch_size if config.batch_size
41
+ params[:uuid] = config.token
41
42
  helper.client.subscribe(callback: url, topics: topics, **params)
42
43
  end
43
44
  end
@@ -1,5 +1,5 @@
1
1
  module Routemaster
2
2
  module Client
3
- VERSION = '3.1.1'
3
+ VERSION = '3.1.2'
4
4
  end
5
5
  end
data/spec/cli/sub_spec.rb CHANGED
@@ -9,8 +9,8 @@ describe Routemaster::CLI::Sub, type: :cli do
9
9
  context 'with correct arguments' do
10
10
  let(:argv) { %w[sub add https://my-service.dev cats dogs -b bus.dev -t s3cr3t] }
11
11
 
12
- it {
13
- expect(client).to receive(:subscribe).with(topics: %w[cats dogs], callback: 'https://my-service.dev')
12
+ it {
13
+ expect(client).to receive(:subscribe).with(topics: %w[cats dogs], callback: 'https://my-service.dev', uuid: 's3cr3t')
14
14
  perform
15
15
  }
16
16
  end
@@ -19,7 +19,7 @@ describe Routemaster::CLI::Sub, type: :cli do
19
19
  describe 'del' do
20
20
  context 'with a list of topics' do
21
21
  let(:argv) { %w[sub del cats dogs -b bus.dev -t s3cr3t] }
22
- it {
22
+ it {
23
23
  expect(client).to receive(:unsubscribe).with('cats', 'dogs')
24
24
  perform
25
25
  }
@@ -27,7 +27,7 @@ describe Routemaster::CLI::Sub, type: :cli do
27
27
 
28
28
  context 'without arguments' do
29
29
  let(:argv) { %w[sub del -b bus.dev -t s3cr3t] }
30
- it {
30
+ it {
31
31
  expect(client).to receive(:unsubscribe_all).with(no_args)
32
32
  perform
33
33
  }
@@ -49,7 +49,7 @@ describe Routemaster::CLI::Sub, type: :cli do
49
49
  ])
50
50
  }
51
51
 
52
- it {
52
+ it {
53
53
  expect(client).to receive(:monitor_subscriptions).with(no_args)
54
54
  perform
55
55
  }
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.1
4
+ version: 3.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien Letessier
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-08-15 00:00:00.000000000 Z
11
+ date: 2018-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -153,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
153
  version: '0'
154
154
  requirements: []
155
155
  rubyforge_project:
156
- rubygems_version: 2.6.11
156
+ rubygems_version: 2.7.0
157
157
  signing_key:
158
158
  specification_version: 4
159
159
  summary: Client API for the Routemaster event bus