foaas-client 1.0.0 → 1.1.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: ecf9e557d80d2f2d2a82db773e35e8bc117f890c
4
- data.tar.gz: b899311c9c0c914a7e0c3aa10f8d1297c0868926
3
+ metadata.gz: 77d8ac1e17d5ff1344373bf4baf233db3d4365a3
4
+ data.tar.gz: 6b7b6003f300a494b728083484bd100404407c7e
5
5
  SHA512:
6
- metadata.gz: 96712fadd99a8d1f6ae6a93880be768e8e424397a2a170bd9099ec729e33c51a658120776454f1adbdaf691a9274bb61db7803fffb99a7b5b6c00cf75e3ac0b2
7
- data.tar.gz: bb0fecd8cb52e26dc75972d931ae32cf609fe3237f26e06004d98cf8e9010a24e4d0b2887c9ea5e042806eb691e81958ddada6c4688c5720eefbe252d860d510
6
+ metadata.gz: d92c5e52eb9cbd346c2bbc3d1722a3db7df7ac851a5c60346490a87289df1fdccc736f739b3029591940fa6d285f3892d7bf7809523609bb23089b99fb8aa98a
7
+ data.tar.gz: 0bedf1e04724ad903ecc05762e446ed4f343ae995b0b2a9cd624b6e0ce7e16af124c5f01428f88e7d3ff6f3245a1f93cd2008abd0e060d68681ec2efa3c2cecb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## v1.1.0
4
+
5
+ * Fix example for JSONP response type (typo: `\` instead of `"`)
6
+ * Implement the following FOAAS methods:
7
+ * Awesome
8
+ * Fix example for Ballmer method in README (subtile was missing '- ' prefix)
9
+ * Fix example for Field method in README (parameters incorrectly ordered)
10
+
3
11
  ## v1.0.0
4
12
 
5
13
  * Fix formatting errors in README (heading level for method names)
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.0` of the FOAAS API is supported.
10
+ Version `0.1.2` of the FOAAS API is supported.
11
11
 
12
12
  ## Usage
13
13
 
@@ -30,7 +30,7 @@ fuck.off('Bob', 'Alice', :json)
30
30
  #=> '{ "message": "Fuck off, Bob.", "subtitle": "- Alice" }'
31
31
 
32
32
  fuck.off('Bob', 'Alice', :jsonp)
33
- #=> 'fuck && fuck({ "message": "Fuck off, Bob.", "subtitle": "- Alice\ });'
33
+ #=> 'fuck && fuck({ "message": "Fuck off, Bob.", "subtitle": "- Alice" });'
34
34
 
35
35
  fuck.off('Bob', 'Alice', :text)
36
36
  #=> 'Fuck off, Bob. - Alice'
@@ -41,11 +41,18 @@ fuck.off('Bob', 'Alice', :xml)
41
41
 
42
42
  ### Methods
43
43
 
44
+ ### Awesome
45
+
46
+ ```ruby
47
+ fuck.awesome('Alice')
48
+ #=> { 'message' => 'This is Fucking Awesome.', subtitle => '- Alice' }
49
+ ```
50
+
44
51
  #### Ballmer
45
52
 
46
53
  ```ruby
47
54
  fuck.ballmer('Bob', 'Alice', 'Clara')
48
- #=> { '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' }
55
+ #=> { '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' }
49
56
  ```
50
57
 
51
58
  #### Because
@@ -128,7 +135,7 @@ fuck.fascinating('Alice')
128
135
  #### Field
129
136
 
130
137
  ```ruby
131
- fuck.field('Bob', 'Alice', 'Clara')
138
+ fuck.field('Alicew', 'Bob', 'Clara')
132
139
  #=> { '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' }
133
140
  ```
134
141
 
@@ -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 = [:because, :bye, :cool, :diabetes, :everyone, :everything, :fascinating, :flying, :life, :pink, :thanks, :this, :what]
10
+ METHODS_ONE_PARAM = [:awesome, :because, :bye, :cool, :diabetes, :everyone, :everything, :fascinating, :flying, :life, :pink, :thanks, :this, :what]
11
11
  METHODS_TWO_PARAMS = [:bus, :donut, :caniuse, :chainsaw, :king, :linus, :madison, :nugget, :off, :outside, :shakespeare, :you, :xmas, :yoda]
12
12
  METHODS_THREE_PARAMS = [:ballmer, :field]
13
13
 
@@ -1,3 +1,3 @@
1
1
  module Foaas
2
- VERSION = '1.0.0'
2
+ VERSION = '1.1.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.0.0
4
+ version: 1.1.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-01-02 00:00:00.000000000 Z
11
+ date: 2015-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client