foaas-client 1.4.0 → 1.5.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 +23 -2
- data/lib/foaas-client/client.rb +3 -3
- 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: 0623e2847687ee8449e883c6391d008b4c5b6e3b
|
4
|
+
data.tar.gz: bce3122bb279cb14b001d08f39d04d60df3b46b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c1f793a53702f74f04bf72bc1b71977c716e7ffe6ef1536e5e08eec2964d45d77e2d0eb408e02af15a16b485965761832eba7f73bea5a0ddaa13088a087392e
|
7
|
+
data.tar.gz: 274180e2d5a2a99fe6a3bf116078d2bbacec4bac76490fae2588778ac6a7e1982990cee2aed0a29b9f409006673942d1f731228209111be98d17d9c1ad1268f5
|
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.8` of the FOAAS API is supported.
|
11
11
|
|
12
12
|
## Usage
|
13
13
|
|
@@ -139,6 +139,13 @@ fuck.donut('Bob', 'Alice')
|
|
139
139
|
#=> { 'message' => 'Bob, go and take a flying fuck at a rolling donut.', 'subtitle' => '- Alice' }
|
140
140
|
```
|
141
141
|
|
142
|
+
#### Do something
|
143
|
+
|
144
|
+
```ruby
|
145
|
+
fuck.dosomething('Write', 'Code', 'Alice')
|
146
|
+
#=> { 'message' => ' 'Write the fucking code!', 'subtitle' => '- Alice' }
|
147
|
+
```
|
148
|
+
|
142
149
|
#### Everyone
|
143
150
|
|
144
151
|
```ruby
|
@@ -170,7 +177,7 @@ fuck.fascinating('Alice')
|
|
170
177
|
#### Field
|
171
178
|
|
172
179
|
```ruby
|
173
|
-
fuck.field('
|
180
|
+
fuck.field('Alice', 'Bob', 'Clara')
|
174
181
|
#=> { 'message' => 'And Alice said on to Bob, "Verily, cast thine eyes upon the field in which I grow my fucks", and Bobgave witness onto the field, and saw that it was barren.', 'subtitle' => '- Clara' }
|
175
182
|
```
|
176
183
|
|
@@ -246,6 +253,13 @@ fuck.pink('Alice')
|
|
246
253
|
#=> { 'message' => 'Well, Fuck me pink.', 'subtitle' => '- Alice' }
|
247
254
|
```
|
248
255
|
|
256
|
+
#### Retard
|
257
|
+
|
258
|
+
```ruby
|
259
|
+
fuck.retard('Alice')
|
260
|
+
#=> { 'message' => 'You Fucktard!', 'subtitle' => '- Alice' }
|
261
|
+
```
|
262
|
+
|
249
263
|
#### Shakespeare
|
250
264
|
|
251
265
|
```ruby
|
@@ -295,6 +309,13 @@ fuck.tucker('Alice')
|
|
295
309
|
#=> { 'message' => 'Come the fuck in or fuck the fuck off.', 'subtitle' => '- Alice' }
|
296
310
|
```
|
297
311
|
|
312
|
+
#### Thumbs
|
313
|
+
|
314
|
+
```ruby
|
315
|
+
fuck.thumbs('Alice')
|
316
|
+
#=> { 'message' => 'Who has two thumbs and doesn't give a fuck? Alice.', 'subtitle' => '- Alice' }
|
317
|
+
```
|
318
|
+
|
298
319
|
#### Version
|
299
320
|
|
300
321
|
__Note:__ This is not an "insult" method, it returns the version of the service.
|
data/lib/foaas-client/client.rb
CHANGED
@@ -7,9 +7,9 @@ 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, :thanks, :this, :tucker, :what, :zayn]
|
11
|
-
METHODS_TWO_PARAMS = [:bus, :
|
12
|
-
METHODS_THREE_PARAMS = [:ballmer, :field]
|
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]
|
12
|
+
METHODS_THREE_PARAMS = [:ballmer, :dosomething, :field]
|
13
13
|
|
14
14
|
def method_missing(sym, *args, &block)
|
15
15
|
kwargs = {}
|
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.5.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-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|