bandiera-client 3.0.2 → 3.0.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
  SHA1:
3
- metadata.gz: d355a320745dae2b2b2311987766f6c2dae8e5c6
4
- data.tar.gz: 568db1b2382fb6638d2160ad69716aaa203d5c43
3
+ metadata.gz: d59a3e5cb3cf23e4137715345e15df7499e00e48
4
+ data.tar.gz: 1165f18f168f53e8695c575859b0ae841d9ac789
5
5
  SHA512:
6
- metadata.gz: 685d09170649a035942111d913e2ee9c71ec65f8c69a81f4c79843a444895e87388fe525d4301716ab292b18be71b5b21317e1218f516f0712a7082842ca8355
7
- data.tar.gz: f575bbf262113894f7b690d5aff2ec76109295695cdeed2d25321f3f5efc783425329aa77ea5b4ec637e855e33622c453c29900ffd93983853f0a87fa1cfe453
6
+ metadata.gz: e7b6ace839926487e8f938c4511e71ee7e96aaf69521094187e4005e73d548ffe6c1ce5dcd51f1a66309b199c15a573011abc84ed28abda38a36f61ce1e38bc0
7
+ data.tar.gz: ae4a2f37b35d439ede1d9de7965665d6ddd443f544efb5c3ffa3549faba78c204f33ccb1b40461f6a2556b7b3ae991517cba8714cf78793efb735eaf3ee9d3e8
data/.travis.yml CHANGED
@@ -9,7 +9,6 @@ rvm:
9
9
  - 2.2
10
10
  - 2.3.0
11
11
  - ruby
12
- - ruby-head
13
12
  - jruby
14
13
 
15
14
  # Ensure we don't build for *every* commit (doesn't apply to PR builds)
data/HISTORY CHANGED
@@ -1,3 +1,7 @@
1
+ = 3.0.3 / 11-April-2016
2
+
3
+ * Stop the client from logging warnings
4
+
1
5
  = 3.0.2 / 18-February-2016
2
6
 
3
7
  * Reduce the log level for missing user_id/user_group params to DEBUG (they were too noisy).
@@ -116,8 +116,7 @@ module Bandiera
116
116
  logger.debug("#{error_msg_prefix} - #{res['warning']}") if res['warning']
117
117
  block.call(res['response']) if block
118
118
  res['response']
119
- rescue *EXCEPTIONS_TO_HANDLE => error
120
- logger.warn("#{error_msg_prefix} - #{error.class} - #{error.message}")
119
+ rescue *EXCEPTIONS_TO_HANDLE
121
120
  return_upon_error
122
121
  end
123
122
 
@@ -1,5 +1,5 @@
1
1
  module Bandiera
2
2
  class Client
3
- VERSION = '3.0.2'.freeze
3
+ VERSION = '3.0.3'.freeze
4
4
  end
5
5
  end
@@ -81,11 +81,9 @@ describe Bandiera::Client do
81
81
  end
82
82
 
83
83
  context 'bandiera is down' do
84
- it 'returns a default response and logs a warning' do
84
+ it 'returns a default response' do
85
85
  stub_request(:get, url).to_return(status: [0, ''])
86
86
 
87
- expect(logger).to receive(:warn).once
88
-
89
87
  response = subject.get_feature(group, feature)
90
88
 
91
89
  expect(response).to be false
@@ -93,11 +91,9 @@ describe Bandiera::Client do
93
91
  end
94
92
 
95
93
  context 'bandiera is having some problems' do
96
- it 'returns a default response and logs a warning' do
94
+ it 'returns a default response' do
97
95
  stub_request(:get, url).to_return(status: 500, body: '')
98
96
 
99
- expect(logger).to receive(:warn).once
100
-
101
97
  response = subject.get_feature(group, feature)
102
98
 
103
99
  expect(response).to be false
@@ -105,11 +101,9 @@ describe Bandiera::Client do
105
101
  end
106
102
 
107
103
  context 'bandiera times out' do
108
- it 'returns a default response and logs a warning' do
104
+ it 'returns a default response' do
109
105
  stub_request(:get, url).to_timeout
110
106
 
111
- expect(logger).to receive(:warn).once
112
-
113
107
  response = subject.get_feature(group, feature)
114
108
 
115
109
  expect(response).to be false
@@ -162,11 +156,9 @@ describe Bandiera::Client do
162
156
  end
163
157
 
164
158
  context 'bandiera is down' do
165
- it 'returns a default response and logs a warning' do
159
+ it 'returns a default response' do
166
160
  stub_request(:get, url).to_return(status: [0, ''])
167
161
 
168
- expect(logger).to receive(:warn).once
169
-
170
162
  response = subject.get_features_for_group(group)
171
163
 
172
164
  expect(response).to be {}
@@ -174,11 +166,9 @@ describe Bandiera::Client do
174
166
  end
175
167
 
176
168
  context 'bandiera is having some problems' do
177
- it 'returns a default response and logs a warning' do
169
+ it 'returns a default response' do
178
170
  stub_request(:get, url).to_return(status: 500, body: '')
179
171
 
180
- expect(logger).to receive(:warn).once
181
-
182
172
  response = subject.get_features_for_group(group)
183
173
 
184
174
  expect(response).to be {}
@@ -186,11 +176,9 @@ describe Bandiera::Client do
186
176
  end
187
177
 
188
178
  context 'bandiera times out' do
189
- it 'returns a default response and logs a warning' do
179
+ it 'returns a default response' do
190
180
  stub_request(:get, url).to_timeout
191
181
 
192
- expect(logger).to receive(:warn).once
193
-
194
182
  response = subject.get_features_for_group(group)
195
183
 
196
184
  expect(response).to be {}
@@ -242,11 +230,9 @@ describe Bandiera::Client do
242
230
  end
243
231
 
244
232
  context 'bandiera is down' do
245
- it 'returns a default response and logs a warning' do
233
+ it 'returns a default response' do
246
234
  stub_request(:get, url).to_return(status: [0, ''])
247
235
 
248
- expect(logger).to receive(:warn).once
249
-
250
236
  response = subject.get_all
251
237
 
252
238
  expect(response).to be {}
@@ -254,11 +240,9 @@ describe Bandiera::Client do
254
240
  end
255
241
 
256
242
  context 'bandiera is having some problems' do
257
- it 'returns a default response and logs a warning' do
243
+ it 'returns a default response' do
258
244
  stub_request(:get, url).to_return(status: 200, body: '<html></html>')
259
245
 
260
- expect(logger).to receive(:warn).once
261
-
262
246
  response = subject.get_all
263
247
 
264
248
  expect(response).to be {}
@@ -266,11 +250,9 @@ describe Bandiera::Client do
266
250
  end
267
251
 
268
252
  context 'bandiera times out' do
269
- it 'returns a default response and logs a warning' do
253
+ it 'returns a default response' do
270
254
  stub_request(:get, url).to_timeout
271
255
 
272
- expect(logger).to receive(:warn).once
273
-
274
256
  response = subject.get_all
275
257
 
276
258
  expect(response).to be {}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bandiera-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Springer Nature
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-18 00:00:00.000000000 Z
11
+ date: 2016-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler