foaas-client 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +22 -1
- data/lib/foaas-client/client.rb +2 -2
- data/lib/foaas-client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef08efde730819ccda5292e6f515665268f21992
|
4
|
+
data.tar.gz: 3265ea2b2ab0bdd8ed8681cbef06a8472a5a984f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 428ef8421e1e1044e26b123d8013498ae9b304d1e751531b6ff55b76c3e4fd53704eba1e0feac77b8bfdec4cad12c55e4566fb6f84acab3758fd4ec7b19e99ae
|
7
|
+
data.tar.gz: 5249a2cd7a69d89cd2faac247f5abfe41c3d1ec36e3f84e017e0c38d9167df9f1f69d2885a69a1b3377c0496f27e13a53a8d5854ca51e83ed8b3d424f865b141
|
data/CHANGELOG.md
CHANGED
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.
|
10
|
+
Version `0.1.7` of the FOAAS API is supported.
|
11
11
|
|
12
12
|
## Usage
|
13
13
|
|
@@ -153,6 +153,13 @@ fuck.everything('Alice')
|
|
153
153
|
#=> { 'message' => 'Fuck everything.', 'subtitle' => '- Alice' }
|
154
154
|
```
|
155
155
|
|
156
|
+
#### Family
|
157
|
+
|
158
|
+
```ruby
|
159
|
+
fuck.family('Alice')
|
160
|
+
#=> { 'message' => 'Fuck you, your whole family, your pets, and your feces', 'subtitle' => '- Alice'}
|
161
|
+
```
|
162
|
+
|
156
163
|
#### Fascinating
|
157
164
|
|
158
165
|
```ruby
|
@@ -246,6 +253,13 @@ fuck.shakespeare('Bob', 'Alice')
|
|
246
253
|
#=> { 'message' => 'Thou clay-brained guts, thou knotty-pated fool, thou whoreson obscene greasy tallow-catch!', 'subtitle' => '- Alice' }
|
247
254
|
```
|
248
255
|
|
256
|
+
#### Shutup
|
257
|
+
|
258
|
+
```ruby
|
259
|
+
fuck.shutup('Bob', 'Alice')
|
260
|
+
#=> { 'messasge' => 'Bob, shut the fuck up.', 'subtitle' => '- Alice' }
|
261
|
+
```
|
262
|
+
|
249
263
|
#### Thanks
|
250
264
|
|
251
265
|
```ruby
|
@@ -317,3 +331,10 @@ fuck.yoda('Bob', 'Alice')
|
|
317
331
|
fuck.you('Bob', 'Alice')
|
318
332
|
#=> { 'message' => 'Fuck you, Bob.', 'subtitle' => '- Alice' }
|
319
333
|
```
|
334
|
+
|
335
|
+
#### Zayn
|
336
|
+
|
337
|
+
```ruby
|
338
|
+
fuck.zayn('Alice')
|
339
|
+
#=> { 'message' => ''Ask me if I give a motherfuck ?!!', 'subtitle' => '- Alice' }
|
340
|
+
```
|
data/lib/foaas-client/client.rb
CHANGED
@@ -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, :fascinating, :flying, :life, :pink, :thanks, :this, :tucker, :what]
|
11
|
-
METHODS_TWO_PARAMS = [:bus, :donut, :caniuse, :chainsaw, :dalton, :king, :linus, :madison, :nugget, :off, :outside, :shakespeare, :you, :xmas, :yoda]
|
10
|
+
METHODS_ONE_PARAM = [:awesome, :because, :bucket, :bye, :cool, :diabetes, :everyone, :everything, :family, :fascinating, :flying, :life, :pink, :thanks, :this, :tucker, :what, :zayn]
|
11
|
+
METHODS_TWO_PARAMS = [:bus, :donut, :caniuse, :chainsaw, :dalton, :king, :linus, :madison, :nugget, :off, :outside, :shakespeare, :shutup, :you, :xmas, :yoda]
|
12
12
|
METHODS_THREE_PARAMS = [:ballmer, :field]
|
13
13
|
|
14
14
|
def method_missing(sym, *args, &block)
|
data/lib/foaas-client/version.rb
CHANGED
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.
|
4
|
+
version: 1.4.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-
|
11
|
+
date: 2015-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|