foaas-client 1.5.0 → 1.6.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
  SHA1:
3
- metadata.gz: 0623e2847687ee8449e883c6391d008b4c5b6e3b
4
- data.tar.gz: bce3122bb279cb14b001d08f39d04d60df3b46b2
3
+ metadata.gz: 2893c255e652da87a4e8355e5ff9c15c2013e469
4
+ data.tar.gz: 85fbb560ed916b3d527b8990a1d10bcdb3d77f80
5
5
  SHA512:
6
- metadata.gz: 0c1f793a53702f74f04bf72bc1b71977c716e7ffe6ef1536e5e08eec2964d45d77e2d0eb408e02af15a16b485965761832eba7f73bea5a0ddaa13088a087392e
7
- data.tar.gz: 274180e2d5a2a99fe6a3bf116078d2bbacec4bac76490fae2588778ac6a7e1982990cee2aed0a29b9f409006673942d1f731228209111be98d17d9c1ad1268f5
6
+ metadata.gz: 4f42999ce772cf32200c1fa472eb13afca449b6f8abc7bdfb71354485441827107dbb0f00776eed8140bb302944953fec6900c9672c2ad27272925332fb646dd
7
+ data.tar.gz: ef1ab133ddbe103b78ab0168a255bce4b43262b40027f7bee92c30e925b176c6d32269fd427cc0763d0400374be4e30da1bc42631cf21c693dcfc1c153152638
@@ -1,5 +1,32 @@
1
1
  # Changelog
2
2
 
3
+ ## v1.6.0
4
+
5
+ * Implement the following FOAAS methods:
6
+ * Anyway
7
+ * Back
8
+ * Bday
9
+ * Bm
10
+ * Gfy
11
+ * Give
12
+ * Greed
13
+ * Keep
14
+ * Keep calm
15
+ * Look
16
+ * Looking
17
+ * Me
18
+ * Mornin
19
+ * No
20
+ * Pulp
21
+ * Sake
22
+ * Single
23
+ * Think
24
+ * Zero
25
+ * Fix shoutcloud example in README (wrong Hash syntax)
26
+ * Fix example for Awesome method in README (too few tite hashes)
27
+ * Fix example for Madison method in README (missing 'message' key)
28
+ * Fix example for Zayn method in README (double quotes)
29
+
3
30
  ## v1.5.0
4
31
 
5
32
  * Implement the following FOAAS methods:
data/README.md CHANGED
@@ -7,7 +7,7 @@ A client for [FOAAS](http://foaas.com).
7
7
 
8
8
  ## API Version
9
9
 
10
- Version `0.1.8` of the FOAAS API is supported.
10
+ Version `1.0.0` of the FOAAS API is supported.
11
11
 
12
12
  ## Usage
13
13
 
@@ -50,18 +50,32 @@ fuck.off('Bob', 'Alice', :xml)
50
50
 
51
51
  ```ruby
52
52
  fuck.off('Bob', 'Alice', shoutcloud: true)
53
- #=> { 'message': 'FUCK OFF, BOB', 'subtitle': '- ALICE' }
53
+ #=> { 'message' => 'FUCK OFF, BOB', 'subtitle' => '- ALICE' }
54
54
  ```
55
55
 
56
56
  ### Methods
57
57
 
58
- ### Awesome
58
+ #### Anyway
59
+
60
+ ```ruby
61
+ fuck.anyway('Acme', 'Alice')
62
+ #=> { 'message' => 'Who the fuck are you anyway, Acme, why are you stirring up so much trouble, and, who pays you?', 'subtitle' => '- Alice' }
63
+ ```
64
+
65
+ #### Awesome
59
66
 
60
67
  ```ruby
61
68
  fuck.awesome('Alice')
62
69
  #=> { 'message' => 'This is Fucking Awesome.', subtitle => '- Alice' }
63
70
  ```
64
71
 
72
+ #### Back
73
+
74
+ ```ruby
75
+ fuck.back('Bob', 'Alice')
76
+ #=> { 'message' => 'Bob, back the fuck off.', 'subtitle' => '- Alice' }
77
+ ```
78
+
65
79
  #### Ballmer
66
80
 
67
81
  ```ruby
@@ -69,6 +83,13 @@ fuck.ballmer('Bob', 'Alice', 'Clara')
69
83
  #=> { 'message' => 'Fucking Bob is a fucking pussy. I'm going to fucking bury that guy, I have done it before, and I will do it again. I'm going to fucking kill Alice.', 'subtitle' => '- Clara' }
70
84
  ```
71
85
 
86
+ #### Bday
87
+
88
+ ```ruby
89
+ fuck.bady('Bob', 'Alice')
90
+ #=> { 'message' => 'Happy Fucking Birthday, Bob', 'subtitle' => '- Alice'}
91
+ ```
92
+
72
93
  #### Because
73
94
 
74
95
  ```ruby
@@ -76,6 +97,13 @@ fuck.because('Alice')
76
97
  #=> { 'message' => 'Why? Because Fuck you, that\'s why.', 'subtitle' => '- Alice' }
77
98
  ```
78
99
 
100
+ #### Bm
101
+
102
+ ```ruby
103
+ fuck.bm('Bob', 'Alice')
104
+ #=> { 'message' => 'Bravo mike, Bob.', 'subtitle' => '-Alice '}
105
+ ```
106
+
79
107
  #### Bucket
80
108
 
81
109
  ```ruby
@@ -187,6 +215,41 @@ fuck.field('Alice', 'Bob', 'Clara')
187
215
  fuck.flying('Alice')
188
216
  #=> { 'message' => 'I don\'t give a flying fuck.', 'subtitle' => '- Alice' }
189
217
 
218
+ #### Gfy
219
+
220
+ ```ruby
221
+ fuck.gfy('Bob', 'Alice')
222
+ #=> { 'message' => 'Golf foxtrot yankee, Bob.', 'subtilte' => '- Alice' }
223
+ ```
224
+
225
+ ### Give
226
+
227
+ ```ruby
228
+ fuck.give('Alice')
229
+ #=> { 'message' => 'I give zero fucks.', 'subtitle' => '- Alice' }
230
+ ```
231
+
232
+ #### Greed
233
+
234
+ ```ruby
235
+ fuck.greed('greed', 'Alice')
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
+ ```
238
+
239
+ #### Keep
240
+
241
+ ```ruby
242
+ fuck.keep('Bob', 'Alice')
243
+ #=> { 'message' => 'Bob Fuck off. And when you get there, fuck off from there too. Then fuck off some more. Keep fucking off until you get back here. Then fuck off again', 'subtitle' => '- Alice' }
244
+ ```
245
+
246
+ #### Keep calm
247
+
248
+ ```ruby
249
+ fuck.keepcalm('paddle', 'Alice')
250
+ #=> { 'message' => 'Keep the fuck calm and paddle!', 'subtitle' => '- Alice' }
251
+ ```
252
+
190
253
  #### King
191
254
 
192
255
  ```ruby
@@ -208,11 +271,46 @@ fuck.linus('Bob', 'Alice')
208
271
  #=> { 'message' => 'Bob, there aren't enough swear-words in the English language, so now I'll have to call you perkeleen vittupää just to express my disgust and frustration with this crap.', 'subtitle' => '- Alice' }
209
272
  ```
210
273
 
274
+ #### Look
275
+
276
+ ```ruby
277
+ fuck.look('Bob', 'Alice')
278
+ #=> { 'message' => 'Bob, do I look like I give a fuck?', 'subtitle' => '- Alice' }
279
+ ```
280
+
281
+ #### Looking
282
+
283
+ ```ruby
284
+ fuck.looking('Alice')
285
+ #=> { 'message' => 'Looking for a fuck to give.', 'subtitle' => '- Alice' }
286
+ ```
287
+
211
288
  #### Madison
212
289
 
213
290
  ```ruby
214
291
  fuck.madison('Bob', 'Alice')
215
- #=> { 'What you\'ve said is one of the most insantely idiotic things I have ever heard, Bob. At no point in your rambling, incoherent response were you even close to anything that could be considered a rational thought. Everyone in this room is now dumber for having listened to it. I award you no points Bob, and may God have mercy on your soul.', 'subtitle' => '- Alice' }
292
+ #=> { 'message' => What you\'ve said is one of the most insantely idiotic things I have ever heard, Bob. At no point in your rambling, incoherent response were you even close to anything that could be considered a rational thought. Everyone in this room is now dumber for having listened to it. I award you no points Bob, and may God have mercy on your soul.', 'subtitle' => '- Alice' }
293
+ ```
294
+
295
+ ### Me
296
+
297
+ ```ruby
298
+ fuck.me('Alice')
299
+ #=> { 'message' => 'Fuck me.', 'subtitle' => '- Alice'}
300
+ ```
301
+
302
+ #### Mornin
303
+
304
+ ```ruby
305
+ fuck.mornin('Alice')
306
+ #=> { 'message' => 'Happy fuckin\' Morning\'!', 'subtitle' => '- Alice'}
307
+ ```
308
+
309
+ #### No
310
+
311
+ ```ruby
312
+ fuck.no('Bob', Alice')
313
+ #=> { 'message' => 'No fucks given.', 'subtitle' => '- Alice'}
216
314
  ```
217
315
 
218
316
  #### Nugget
@@ -253,6 +351,13 @@ fuck.pink('Alice')
253
351
  #=> { 'message' => 'Well, Fuck me pink.', 'subtitle' => '- Alice' }
254
352
  ```
255
353
 
354
+ #### Pulp
355
+
356
+ ```ruby
357
+ fuck.pulp('English', 'Alice')
358
+ #=> { 'messsage' => 'English, motherfucker, do you speak it?', '- Alice' }
359
+ ```
360
+
256
361
  #### Retard
257
362
 
258
363
  ```ruby
@@ -260,6 +365,13 @@ fuck.retard('Alice')
260
365
  #=> { 'message' => 'You Fucktard!', 'subtitle' => '- Alice' }
261
366
  ```
262
367
 
368
+ #### Sake
369
+
370
+ ```ruby
371
+ fuck.sake('Alice')
372
+ #=> { 'message' => 'For Fuck's sake!', 'subtitle' => '- Alice'}
373
+ ```
374
+
263
375
  #### Shakespeare
264
376
 
265
377
  ```ruby
@@ -274,6 +386,13 @@ fuck.shutup('Bob', 'Alice')
274
386
  #=> { 'messasge' => 'Bob, shut the fuck up.', 'subtitle' => '- Alice' }
275
387
  ```
276
388
 
389
+ #### Single
390
+
391
+ ```ruby
392
+ fuck.single('Alice')
393
+ #=> { 'message' => 'Not a single fuck was given.', 'subtitle' => '- Alice' }
394
+ ```
395
+
277
396
  #### Thanks
278
397
 
279
398
  ```ruby
@@ -295,6 +414,13 @@ fuck.thing('it', 'Alice')
295
414
  #=> { 'message' => 'Fuck it.', 'subtitle' => '- Alice' }
296
415
  ```
297
416
 
417
+ #### Think
418
+
419
+ ```ruby
420
+ fuck.think('Bob', 'Alice')
421
+ #=> { 'message' => 'Bob, you think I give a fuck?', 'subtitle' => '- Alice' }
422
+ ```
423
+
298
424
  #### This
299
425
 
300
426
  ```ruby
@@ -357,5 +483,12 @@ fuck.you('Bob', 'Alice')
357
483
 
358
484
  ```ruby
359
485
  fuck.zayn('Alice')
360
- #=> { 'message' => ''Ask me if I give a motherfuck ?!!', 'subtitle' => '- Alice' }
486
+ #=> { 'message' => 'Ask me if I give a motherfuck ?!!', 'subtitle' => '- Alice' }
487
+ ```
488
+
489
+ #### Zero
490
+
491
+ ```ruby
492
+ fuck.zero('Alice')
493
+ #=> { 'message' => 'Zero, thats the number of fucks I give.', 'subtitle' => '- Alice' }
361
494
  ```
@@ -7,8 +7,8 @@ module Foaas
7
7
 
8
8
  URL = Addressable::Template.new("http://foaas.com/{method}{/name}/{from}{/other}")
9
9
 
10
- METHODS_ONE_PARAM = [:awesome, :because, :bucket, :bye, :cool, :diabetes, :everyone, :everything, :family, :fascinating, :flying, :life, :pink, :retard, :thanks, :this, :tucker, :thumbs,:what, :zayn]
11
- METHODS_TWO_PARAMS = [:bus, :caniuse, :chainsaw, :dalton, :donut, :king, :linus, :madison, :nugget, :off, :outside, :shakespeare, :shutup, :you, :xmas, :yoda]
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]
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
 
14
14
  def method_missing(sym, *args, &block)
@@ -1,3 +1,3 @@
1
1
  module Foaas
2
- VERSION = '1.5.0'
2
+ VERSION = '1.6.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foaas-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.6.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: 2015-08-31 00:00:00.000000000 Z
11
+ date: 2016-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -127,3 +127,4 @@ summary: A client for FOAAS
127
127
  test_files:
128
128
  - spec/foaas-client/client_spec.rb
129
129
  - spec/spec_helper.rb
130
+ has_rdoc: