foaas-client 1.6.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -0
- data/CHANGELOG.md +6 -0
- data/LICENSE +1 -1
- data/README.md +12 -5
- data/foaas-client.gemspec +5 -5
- data/lib/foaas-client/client.rb +8 -8
- data/lib/foaas-client/version.rb +1 -1
- data/spec/foaas-client/client_spec.rb +41 -41
- metadata +32 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15a8a776a432acf7371feb60ba51e06f114ec8f7
|
4
|
+
data.tar.gz: 0611e06a5ab4bc10080d9fa7475d51748c6ef404
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c336ed36c3766394ff77ba87a68414958c179af7886bbf3c13a5dbb810616d7c7afe9794248868e390ad1268a3ecd9e3ccfe1c0fa0bd9cfdd72cf5b7aa6e84bd
|
7
|
+
data.tar.gz: e3336eb1a321669943eb9fe1b1a4b068b644f09a9f0bd907ddbce95c0488c36bc599a5feae9403e4f5ca13ea3fe436d25bc9ccdb58572d3034f31f9c613adb02
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -30,19 +30,19 @@ fuck.off('Bob', 'Alice', i18n: :es)
|
|
30
30
|
### Response Types
|
31
31
|
|
32
32
|
```ruby
|
33
|
-
fuck.off('Bob', 'Alice', :html)
|
33
|
+
fuck.off('Bob', 'Alice', type: :html)
|
34
34
|
#=> '<html>...</html>'
|
35
35
|
|
36
|
-
fuck.off('Bob', 'Alice', :json)
|
36
|
+
fuck.off('Bob', 'Alice', type: :json)
|
37
37
|
#=> '{ "message": "Fuck off, Bob.", "subtitle": "- Alice" }'
|
38
38
|
|
39
|
-
fuck.off('Bob', 'Alice', :jsonp)
|
39
|
+
fuck.off('Bob', 'Alice', type: :jsonp)
|
40
40
|
#=> 'fuck && fuck({ "message": "Fuck off, Bob.", "subtitle": "- Alice" });'
|
41
41
|
|
42
|
-
fuck.off('Bob', 'Alice', :text)
|
42
|
+
fuck.off('Bob', 'Alice', type: :text)
|
43
43
|
#=> 'Fuck off, Bob. - Alice'
|
44
44
|
|
45
|
-
fuck.off('Bob', 'Alice', :xml)
|
45
|
+
fuck.off('Bob', 'Alice', type: :xml)
|
46
46
|
#=> '<?xml version="1.0" encoding="utf-8"?>...'
|
47
47
|
```
|
48
48
|
|
@@ -236,6 +236,13 @@ fuck.greed('greed', 'Alice')
|
|
236
236
|
#=> { 'message' => 'The point is, ladies and gentleman, that greed -- for lack of a better word -- is good. :noun is right. greed works. greed clarifies, cuts through, and captures the essence of the evolutionary spirit. greed, in all of its forms -- greed for life, for money, for love, knowledge -- has marked the upward surge of mankind', 'subtitle' => '- Alice'}
|
237
237
|
```
|
238
238
|
|
239
|
+
#### Horse
|
240
|
+
|
241
|
+
```ruby
|
242
|
+
fuck.horse('Alice')
|
243
|
+
#=> { 'message' => 'Fuck you and the horse you rode in on.', 'subtitle' => '- Alice' }
|
244
|
+
```
|
245
|
+
|
239
246
|
#### Keep
|
240
247
|
|
241
248
|
```ruby
|
data/foaas-client.gemspec
CHANGED
@@ -18,10 +18,10 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ['lib']
|
20
20
|
|
21
|
-
spec.add_dependency 'rest-client', '~> 1.6.7'
|
22
|
-
spec.add_dependency 'addressable', '~> 2.3.5'
|
23
|
-
spec.add_development_dependency 'rspec', '~> 2.12.0'
|
21
|
+
spec.add_dependency 'rest-client', '~> 1.6', '>= 1.6.7'
|
22
|
+
spec.add_dependency 'addressable', '~> 2.3', '>= 2.3.5'
|
23
|
+
spec.add_development_dependency 'rspec', '~> 2.12', '>= 2.12.0'
|
24
24
|
|
25
|
-
spec.add_development_dependency 'bundler', '~> 1.3'
|
26
|
-
spec.add_development_dependency 'rake', '~> 10.1.0'
|
25
|
+
spec.add_development_dependency 'bundler', '~> 1.3', '>= 1.3.7'
|
26
|
+
spec.add_development_dependency 'rake', '~> 10.1', '>= 10.1.0'
|
27
27
|
end
|
data/lib/foaas-client/client.rb
CHANGED
@@ -7,7 +7,7 @@ module Foaas
|
|
7
7
|
|
8
8
|
URL = Addressable::Template.new("http://foaas.com/{method}{/name}/{from}{/other}")
|
9
9
|
|
10
|
-
METHODS_ONE_PARAM = [:anyway, :awesome, :because, :bucket, :bye, :cool, :diabetes, :everyone, :everything, :family, :fascinating, :flying, :give, :life, :looking, :me, :mornin, :pink, :retard, :sake, :thanks, :this, :tucker, :thumbs,:what, :zayn, :zero]
|
10
|
+
METHODS_ONE_PARAM = [:anyway, :awesome, :because, :bucket, :bye, :cool, :diabetes, :everyone, :everything, :family, :fascinating, :flying, :give, :horse, :life, :looking, :me, :mornin, :pink, :retard, :sake, :thanks, :this, :tucker, :thumbs,:what, :zayn, :zero]
|
11
11
|
METHODS_TWO_PARAMS = [:back, :bday, :bm, :bus, :caniuse, :chainsaw, :dalton, :donut, :greed, :gfy, :keep, :keepcalm, :king, :linus, :look, :madison, :no, :nugget, :off, :outside, :pulp, :shakespeare, :shutup, :single,:think, :you, :xmas, :yoda]
|
12
12
|
METHODS_THREE_PARAMS = [:ballmer, :dosomething, :field]
|
13
13
|
|
@@ -15,13 +15,13 @@ module Foaas
|
|
15
15
|
kwargs = {}
|
16
16
|
kwargs = args[-1] if args[-1].class == Hash
|
17
17
|
if METHODS_TWO_PARAMS.include? sym
|
18
|
-
make_request(URL.expand(method: sym, name: args[0], from: args[1]),
|
18
|
+
make_request(URL.expand(method: sym, name: args[0], from: args[1]), type=kwargs[:type], i18n=kwargs[:i18n], shoutcloud=kwargs[:shoutcloud])
|
19
19
|
elsif METHODS_ONE_PARAM.include? sym
|
20
|
-
make_request(URL.expand(method: sym, from: args[0]),
|
20
|
+
make_request(URL.expand(method: sym, from: args[0]), type=kwargs[:type], i18n=kwargs[:i18n], shoutcloud=kwargs[:shoutcloud])
|
21
21
|
elsif METHODS_THREE_PARAMS.include? sym
|
22
|
-
make_request(URL.expand(method: sym, name: args[0], from: args[1], other: args[2]),
|
22
|
+
make_request(URL.expand(method: sym, name: args[0], from: args[1], other: args[2]), type=kwargs[:type], i18n=kwargs[:i18n], shoutcloud=kwargs[:shoutcloud])
|
23
23
|
elsif sym == :thing
|
24
|
-
make_request(URL.expand(method: args[0], from: args[1]),
|
24
|
+
make_request(URL.expand(method: args[0], from: args[1]), type=kwargs[:type], i18n=kwargs[:i18n], shoutcloud=kwargs[:shoutcloud])
|
25
25
|
else
|
26
26
|
super(sym, *args, &block)
|
27
27
|
end
|
@@ -35,13 +35,13 @@ module Foaas
|
|
35
35
|
METHODS_ONE_PARAM.include?(sym) or METHODS_TWO_PARAMS.include?(sym) or sym == :thing or super(sym, include_private)
|
36
36
|
end
|
37
37
|
|
38
|
-
def version(
|
39
|
-
make_request(URL.expand(method: :version), type)
|
38
|
+
def version(opts={})
|
39
|
+
make_request(URL.expand(method: :version), opts[:type])
|
40
40
|
end
|
41
41
|
|
42
42
|
private
|
43
43
|
|
44
|
-
def make_request(url, type, i18n=nil, shoutcloud=false)
|
44
|
+
def make_request(url, type=:json, i18n=nil, shoutcloud=false)
|
45
45
|
query_params = {}
|
46
46
|
url = url.to_s
|
47
47
|
accept_type = case type
|
data/lib/foaas-client/version.rb
CHANGED
@@ -31,7 +31,7 @@ describe Foaas::Client do
|
|
31
31
|
let(:url) { "http://foaas.com/#{method}/#{name}/#{from}/#{other}?i18n=es" }
|
32
32
|
|
33
33
|
it 'sets the i18n parameter on the url' do
|
34
|
-
client.send(method, name, from, other, type, i18n: i18n)
|
34
|
+
client.send(method, name, from, other, type: type, i18n: i18n)
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
@@ -42,7 +42,7 @@ describe Foaas::Client do
|
|
42
42
|
let(:url) { "http://foaas.com/#{method}/#{name}/#{from}/#{other}?shoutcloud" }
|
43
43
|
|
44
44
|
it 'sets the shoutcloud parameter on the url' do
|
45
|
-
client.send(method, name, from, other, type, shoutcloud: true)
|
45
|
+
client.send(method, name, from, other, type: type, shoutcloud: true)
|
46
46
|
end
|
47
47
|
end
|
48
48
|
|
@@ -53,12 +53,12 @@ describe Foaas::Client do
|
|
53
53
|
let(:accept) { :json }
|
54
54
|
|
55
55
|
it 'defaults to JSON' do
|
56
|
-
client.send(method, name, from, other, type)
|
56
|
+
client.send(method, name, from, other, type: type)
|
57
57
|
end
|
58
58
|
|
59
59
|
|
60
60
|
it 'parses the response into a hash' do
|
61
|
-
client.send(method, name, from, other, type).should == { 'message' => '', 'subtitle' => ''}
|
61
|
+
client.send(method, name, from, other, type: type).should == { 'message' => '', 'subtitle' => ''}
|
62
62
|
end
|
63
63
|
|
64
64
|
end
|
@@ -71,7 +71,7 @@ describe Foaas::Client do
|
|
71
71
|
let(:accept) { :html }
|
72
72
|
|
73
73
|
it 'specifies text/html as the accept type' do
|
74
|
-
client.send(method, name, from, other, type)
|
74
|
+
client.send(method, name, from, other, type: type)
|
75
75
|
end
|
76
76
|
end
|
77
77
|
|
@@ -81,7 +81,7 @@ describe Foaas::Client do
|
|
81
81
|
let(:accept) { :json}
|
82
82
|
|
83
83
|
it 'specifies application/json as the accept type' do
|
84
|
-
client.send(method, name, from, other, type)
|
84
|
+
client.send(method, name, from, other, type: type)
|
85
85
|
end
|
86
86
|
|
87
87
|
end
|
@@ -93,7 +93,7 @@ describe Foaas::Client do
|
|
93
93
|
let(:accept) { :json}
|
94
94
|
|
95
95
|
it 'specifies application/json as the accept type' do
|
96
|
-
client.send(method, name, from, other, type)
|
96
|
+
client.send(method, name, from, other, type: type)
|
97
97
|
end
|
98
98
|
|
99
99
|
end
|
@@ -104,7 +104,7 @@ describe Foaas::Client do
|
|
104
104
|
let(:accept) { 'text/plain' }
|
105
105
|
|
106
106
|
it 'specifies text/plain as the accept type' do
|
107
|
-
client.send(method, name, from, other, type)
|
107
|
+
client.send(method, name, from, other, type: type)
|
108
108
|
end
|
109
109
|
end
|
110
110
|
|
@@ -114,7 +114,7 @@ describe Foaas::Client do
|
|
114
114
|
let(:accept) { :xml }
|
115
115
|
|
116
116
|
it 'specifies application/xml as the acccept type' do
|
117
|
-
client.send(method, name, from, other, type)
|
117
|
+
client.send(method, name, from, other, type: type)
|
118
118
|
end
|
119
119
|
end
|
120
120
|
|
@@ -146,7 +146,7 @@ describe Foaas::Client do
|
|
146
146
|
let(:url) { "http://foaas.com/#{method}/#{name}/#{from}?i18n=es" }
|
147
147
|
|
148
148
|
it 'sets the i18n parameter on the url' do
|
149
|
-
client.send(method, name, from, type, i18n: i18n)
|
149
|
+
client.send(method, name, from, type: type, i18n: i18n)
|
150
150
|
end
|
151
151
|
end
|
152
152
|
|
@@ -157,7 +157,7 @@ describe Foaas::Client do
|
|
157
157
|
let(:url) { "http://foaas.com/#{method}/#{name}/#{from}?shoutcloud" }
|
158
158
|
|
159
159
|
it 'sets the shoutcloud parameter on the url' do
|
160
|
-
client.send(method, name, from, type, shoutcloud: true)
|
160
|
+
client.send(method, name, from, type: type, shoutcloud: true)
|
161
161
|
end
|
162
162
|
end
|
163
163
|
|
@@ -168,11 +168,11 @@ describe Foaas::Client do
|
|
168
168
|
let(:accept) { :json }
|
169
169
|
|
170
170
|
it 'defaults to JSON' do
|
171
|
-
client.send(method, name, from, type)
|
171
|
+
client.send(method, name, from, type: type)
|
172
172
|
end
|
173
173
|
|
174
174
|
it 'parses the response into a hash' do
|
175
|
-
client.send(method, name, from, type).should == { 'message' => '', 'subtitle' => ''}
|
175
|
+
client.send(method, name, from, type: type).should == { 'message' => '', 'subtitle' => ''}
|
176
176
|
end
|
177
177
|
|
178
178
|
end
|
@@ -185,7 +185,7 @@ describe Foaas::Client do
|
|
185
185
|
let(:accept) { :html }
|
186
186
|
|
187
187
|
it 'specifies text/html as the accept type' do
|
188
|
-
client.send(method, name, from, type)
|
188
|
+
client.send(method, name, from, type: type)
|
189
189
|
end
|
190
190
|
end
|
191
191
|
|
@@ -195,7 +195,7 @@ describe Foaas::Client do
|
|
195
195
|
let(:accept) { :json}
|
196
196
|
|
197
197
|
it 'specifies application/json as the accept type' do
|
198
|
-
client.send(method, name, from, type)
|
198
|
+
client.send(method, name, from, type: type)
|
199
199
|
end
|
200
200
|
|
201
201
|
end
|
@@ -207,7 +207,7 @@ describe Foaas::Client do
|
|
207
207
|
let(:accept) { :json}
|
208
208
|
|
209
209
|
it 'specifies application/json as the accept type' do
|
210
|
-
client.send(method, name, from, type)
|
210
|
+
client.send(method, name, from, type: type)
|
211
211
|
end
|
212
212
|
|
213
213
|
end
|
@@ -218,7 +218,7 @@ describe Foaas::Client do
|
|
218
218
|
let(:accept) { 'text/plain' }
|
219
219
|
|
220
220
|
it 'specifies text/plain as the accept type' do
|
221
|
-
client.send(method, name, from, type)
|
221
|
+
client.send(method, name, from, type: type)
|
222
222
|
end
|
223
223
|
end
|
224
224
|
|
@@ -228,7 +228,7 @@ describe Foaas::Client do
|
|
228
228
|
let(:accept) { :xml }
|
229
229
|
|
230
230
|
it 'specifies application/xml as the acccept type' do
|
231
|
-
client.send(method, name, from, type)
|
231
|
+
client.send(method, name, from, type: type)
|
232
232
|
end
|
233
233
|
end
|
234
234
|
|
@@ -258,7 +258,7 @@ describe Foaas::Client do
|
|
258
258
|
let(:url) { "http://foaas.com/#{method}/#{from}?i18n=es" }
|
259
259
|
|
260
260
|
it 'sets the i18n parameter on the url' do
|
261
|
-
client.send(method, from, type, i18n: i18n)
|
261
|
+
client.send(method, from, type: type, i18n: i18n)
|
262
262
|
end
|
263
263
|
end
|
264
264
|
|
@@ -269,7 +269,7 @@ describe Foaas::Client do
|
|
269
269
|
let(:url) { "http://foaas.com/#{method}/#{from}?shoutcloud" }
|
270
270
|
|
271
271
|
it 'sets the shoutcloud parameter on the url' do
|
272
|
-
client.send(method, from, type, shoutcloud: true)
|
272
|
+
client.send(method, from, type: type, shoutcloud: true)
|
273
273
|
end
|
274
274
|
end
|
275
275
|
|
@@ -280,11 +280,11 @@ describe Foaas::Client do
|
|
280
280
|
let(:accept) { :json }
|
281
281
|
|
282
282
|
it 'defaults to JSON' do
|
283
|
-
client.send(method, from, type)
|
283
|
+
client.send(method, from, type: type)
|
284
284
|
end
|
285
285
|
|
286
286
|
it 'parses the response into a hash' do
|
287
|
-
client.send(method, from, type).should == { 'message' => '', 'subtitle' => ''}
|
287
|
+
client.send(method, from, type: type).should == { 'message' => '', 'subtitle' => ''}
|
288
288
|
end
|
289
289
|
|
290
290
|
end
|
@@ -297,7 +297,7 @@ describe Foaas::Client do
|
|
297
297
|
let(:accept) { :html }
|
298
298
|
|
299
299
|
it 'specifies text/html as the accept type' do
|
300
|
-
client.send(method, from, type)
|
300
|
+
client.send(method, from, type: type)
|
301
301
|
end
|
302
302
|
end
|
303
303
|
|
@@ -307,7 +307,7 @@ describe Foaas::Client do
|
|
307
307
|
let(:accept) { :json }
|
308
308
|
|
309
309
|
it 'specifies application/json as the accept type' do
|
310
|
-
client.send(method, from, type)
|
310
|
+
client.send(method, from, type: type)
|
311
311
|
end
|
312
312
|
|
313
313
|
end
|
@@ -319,7 +319,7 @@ describe Foaas::Client do
|
|
319
319
|
let(:accept) { :json}
|
320
320
|
|
321
321
|
it 'specifies application/json as the accept type' do
|
322
|
-
client.send(method, from, type)
|
322
|
+
client.send(method, from, type: type)
|
323
323
|
end
|
324
324
|
|
325
325
|
end
|
@@ -330,7 +330,7 @@ describe Foaas::Client do
|
|
330
330
|
let(:accept) { 'text/plain'}
|
331
331
|
|
332
332
|
it 'specifies text/plain as the accept type' do
|
333
|
-
client.send(method, from, type)
|
333
|
+
client.send(method, from, type: type)
|
334
334
|
end
|
335
335
|
end
|
336
336
|
|
@@ -339,7 +339,7 @@ describe Foaas::Client do
|
|
339
339
|
let(:accept) { :xml }
|
340
340
|
|
341
341
|
it 'specifies application/xml as the accept type' do
|
342
|
-
client.send(method, from, type)
|
342
|
+
client.send(method, from, type: type)
|
343
343
|
end
|
344
344
|
end
|
345
345
|
end
|
@@ -367,7 +367,7 @@ describe Foaas::Client do
|
|
367
367
|
let(:url) { "http://foaas.com/#{thing}/#{from}?i18n=es" }
|
368
368
|
|
369
369
|
it 'sets the i18n parameter on the url' do
|
370
|
-
client.thing(thing, from, type, i18n: i18n)
|
370
|
+
client.thing(thing, from, type: type, i18n: i18n)
|
371
371
|
end
|
372
372
|
end
|
373
373
|
|
@@ -379,7 +379,7 @@ describe Foaas::Client do
|
|
379
379
|
let(:url) { "http://foaas.com/#{thing}/#{from}?shoutcloud" }
|
380
380
|
|
381
381
|
it 'sets the shoutcloud parameter on the url' do
|
382
|
-
client.thing(thing, from, type, shoutcloud: true)
|
382
|
+
client.thing(thing, from, type: type, shoutcloud: true)
|
383
383
|
end
|
384
384
|
end
|
385
385
|
|
@@ -390,11 +390,11 @@ describe Foaas::Client do
|
|
390
390
|
let(:accept) { :json }
|
391
391
|
|
392
392
|
it 'defaults to JSON' do
|
393
|
-
client.thing(thing, from, type)
|
393
|
+
client.thing(thing, from, type: type)
|
394
394
|
end
|
395
395
|
|
396
396
|
it 'parses the response into a hash' do
|
397
|
-
client.thing(thing, from, type).should == { 'message' => '', 'subtitle' => ''}
|
397
|
+
client.thing(thing, from, type: type).should == { 'message' => '', 'subtitle' => ''}
|
398
398
|
end
|
399
399
|
|
400
400
|
end
|
@@ -407,7 +407,7 @@ describe Foaas::Client do
|
|
407
407
|
let(:accept) { :html }
|
408
408
|
|
409
409
|
it 'specifies text/html as the accept type' do
|
410
|
-
client.thing(thing, from, type)
|
410
|
+
client.thing(thing, from, type: type)
|
411
411
|
end
|
412
412
|
end
|
413
413
|
|
@@ -417,7 +417,7 @@ describe Foaas::Client do
|
|
417
417
|
let(:accept) { :json }
|
418
418
|
|
419
419
|
it 'specifies application/json as the accept type' do
|
420
|
-
client.thing(thing, from, type)
|
420
|
+
client.thing(thing, from, type: type)
|
421
421
|
end
|
422
422
|
|
423
423
|
end
|
@@ -429,7 +429,7 @@ describe Foaas::Client do
|
|
429
429
|
let(:accept) { :json}
|
430
430
|
|
431
431
|
it 'specifies application/json as the accept type' do
|
432
|
-
client.thing(thing, from, type)
|
432
|
+
client.thing(thing, from, type: type)
|
433
433
|
end
|
434
434
|
|
435
435
|
end
|
@@ -440,7 +440,7 @@ describe Foaas::Client do
|
|
440
440
|
let(:accept) { 'text/plain' }
|
441
441
|
|
442
442
|
it 'specifies text/plain as the accept type' do
|
443
|
-
client.thing(thing, from, type)
|
443
|
+
client.thing(thing, from, type: type)
|
444
444
|
end
|
445
445
|
end
|
446
446
|
|
@@ -450,7 +450,7 @@ describe Foaas::Client do
|
|
450
450
|
let(:accept) { :xml }
|
451
451
|
|
452
452
|
it 'specifies application/xml as the accept type' do
|
453
|
-
client.thing(thing, from, type)
|
453
|
+
client.thing(thing, from, type: type)
|
454
454
|
end
|
455
455
|
end
|
456
456
|
end
|
@@ -536,7 +536,7 @@ describe Foaas::Client do
|
|
536
536
|
let(:accept) { :html }
|
537
537
|
|
538
538
|
it 'specifies text/html as the accept type' do
|
539
|
-
client.version(type)
|
539
|
+
client.version(type: type)
|
540
540
|
end
|
541
541
|
end
|
542
542
|
|
@@ -546,7 +546,7 @@ describe Foaas::Client do
|
|
546
546
|
let(:accept) { :json }
|
547
547
|
|
548
548
|
it 'specifies application/json as the accept type' do
|
549
|
-
client.version(type)
|
549
|
+
client.version(type: type)
|
550
550
|
end
|
551
551
|
|
552
552
|
end
|
@@ -558,7 +558,7 @@ describe Foaas::Client do
|
|
558
558
|
let(:accept) { :json}
|
559
559
|
|
560
560
|
it 'specifies application/json as the accept type' do
|
561
|
-
client.version(type)
|
561
|
+
client.version(type: type)
|
562
562
|
end
|
563
563
|
|
564
564
|
end
|
@@ -569,7 +569,7 @@ describe Foaas::Client do
|
|
569
569
|
let(:accept) { 'text/plain' }
|
570
570
|
|
571
571
|
it 'specifies text/plain as the accept type' do
|
572
|
-
client.version(type)
|
572
|
+
client.version(type: type)
|
573
573
|
end
|
574
574
|
end
|
575
575
|
|
@@ -579,7 +579,7 @@ describe Foaas::Client do
|
|
579
579
|
let(:accept) { :xml }
|
580
580
|
|
581
581
|
it 'specifies application/xml as the accept type' do
|
582
|
-
client.version(type)
|
582
|
+
client.version(type: type)
|
583
583
|
end
|
584
584
|
end
|
585
585
|
end
|
metadata
CHANGED
@@ -1,20 +1,23 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foaas-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Marsh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.6'
|
20
|
+
- - '>='
|
18
21
|
- !ruby/object:Gem::Version
|
19
22
|
version: 1.6.7
|
20
23
|
type: :runtime
|
@@ -22,6 +25,9 @@ dependencies:
|
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
27
|
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.6'
|
30
|
+
- - '>='
|
25
31
|
- !ruby/object:Gem::Version
|
26
32
|
version: 1.6.7
|
27
33
|
- !ruby/object:Gem::Dependency
|
@@ -29,6 +35,9 @@ dependencies:
|
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
37
|
- - ~>
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '2.3'
|
40
|
+
- - '>='
|
32
41
|
- !ruby/object:Gem::Version
|
33
42
|
version: 2.3.5
|
34
43
|
type: :runtime
|
@@ -36,6 +45,9 @@ dependencies:
|
|
36
45
|
version_requirements: !ruby/object:Gem::Requirement
|
37
46
|
requirements:
|
38
47
|
- - ~>
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '2.3'
|
50
|
+
- - '>='
|
39
51
|
- !ruby/object:Gem::Version
|
40
52
|
version: 2.3.5
|
41
53
|
- !ruby/object:Gem::Dependency
|
@@ -43,6 +55,9 @@ dependencies:
|
|
43
55
|
requirement: !ruby/object:Gem::Requirement
|
44
56
|
requirements:
|
45
57
|
- - ~>
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '2.12'
|
60
|
+
- - '>='
|
46
61
|
- !ruby/object:Gem::Version
|
47
62
|
version: 2.12.0
|
48
63
|
type: :development
|
@@ -50,6 +65,9 @@ dependencies:
|
|
50
65
|
version_requirements: !ruby/object:Gem::Requirement
|
51
66
|
requirements:
|
52
67
|
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '2.12'
|
70
|
+
- - '>='
|
53
71
|
- !ruby/object:Gem::Version
|
54
72
|
version: 2.12.0
|
55
73
|
- !ruby/object:Gem::Dependency
|
@@ -59,6 +77,9 @@ dependencies:
|
|
59
77
|
- - ~>
|
60
78
|
- !ruby/object:Gem::Version
|
61
79
|
version: '1.3'
|
80
|
+
- - '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 1.3.7
|
62
83
|
type: :development
|
63
84
|
prerelease: false
|
64
85
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -66,11 +87,17 @@ dependencies:
|
|
66
87
|
- - ~>
|
67
88
|
- !ruby/object:Gem::Version
|
68
89
|
version: '1.3'
|
90
|
+
- - '>='
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: 1.3.7
|
69
93
|
- !ruby/object:Gem::Dependency
|
70
94
|
name: rake
|
71
95
|
requirement: !ruby/object:Gem::Requirement
|
72
96
|
requirements:
|
73
97
|
- - ~>
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: '10.1'
|
100
|
+
- - '>='
|
74
101
|
- !ruby/object:Gem::Version
|
75
102
|
version: 10.1.0
|
76
103
|
type: :development
|
@@ -78,6 +105,9 @@ dependencies:
|
|
78
105
|
version_requirements: !ruby/object:Gem::Requirement
|
79
106
|
requirements:
|
80
107
|
- - ~>
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '10.1'
|
110
|
+
- - '>='
|
81
111
|
- !ruby/object:Gem::Version
|
82
112
|
version: 10.1.0
|
83
113
|
description: A client for FOAAS
|