reverb 0.0.1 → 0.0.2

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: 16ba987129d16e5ad5bc09117b0d9a3fa85b2c8b
4
- data.tar.gz: 0ef7d1a67f2c2ab89de2f180e15c2838cb121098
3
+ metadata.gz: 11efca3926d8903876f4b9ca864254d32e2f666a
4
+ data.tar.gz: 9216caef214c52fad0564d088b428baa0da1de9c
5
5
  SHA512:
6
- metadata.gz: 7bed57840e7a268c07c5334b5a8520c058f334cf8e01ac184e514cbee9e0dbe1893c93080613bc2ebb69b5efba361781579eb6a013c7311f2400a0a81a97d463
7
- data.tar.gz: f89d62f914904b7f9ed85004a5afba9699c904aef0d82c936a5e987846756f00c4c7838b9118177eeb831795834d9cd1001cb3b4782931ffb7ad4818adf263de
6
+ metadata.gz: c371aa23800ca395b222a35eaa16bef5642284bb47e268ae57148d1442b876ff7f8e64d276ac38e9f509740931c74699378fa39514dac01af7bcdb6220461c5e
7
+ data.tar.gz: e11345bf58ff74079c955364f119b4a934871208c96f12a4aede2492405d67024ef81d8def79a32a82979c7de5a83ff91de4b27e8ce4de296bd398b6dc92efef
data/README.md CHANGED
@@ -49,7 +49,16 @@ The only methods that are considered part of the public API are:
49
49
  We recommend that the data set in `on_success` is a ruby object
50
50
  (or array of ruby objects) with specific attributes for that request.
51
51
 
52
- See [zombie][zombie] for an example.
52
+ See [brainzz][brainzz] for an example.
53
53
 
54
54
 
55
- [zombie]: https://www.github.com/awesomenesstv/zombie
55
+ Factories
56
+ ---------
57
+
58
+ Reverb includes FactoryGirl factories for your convenience.
59
+ Include them after requiring FactoryGirl:
60
+
61
+ require 'reverb/factories'
62
+
63
+
64
+ [brainzz]: https://www.github.com/awesomenesstv/brainzz
@@ -0,0 +1,21 @@
1
+ FactoryGirl.define do
2
+ factory :reverb_response, :class => Reverb::Response do
3
+ success true
4
+ status 200
5
+ data 'data-value'
6
+
7
+ factory :reverb_response_unsuccessful do
8
+ success false
9
+ status 400
10
+ data nil
11
+
12
+ factory :reverb_response_unprocessable_entity do
13
+ status 422
14
+ end
15
+
16
+ factory :reverb_response_server_error do
17
+ status 500
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1 @@
1
+ require_relative 'factories/response'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reverb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Herrick
@@ -9,22 +9,36 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-02-05 00:00:00.000000000 Z
12
+ date: 2015-02-21 00:00:00.000000000 Z
13
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: gems
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: '0'
21
+ type: :development
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: '0'
14
28
  - !ruby/object:Gem::Dependency
15
29
  name: rake_tasks
16
30
  requirement: !ruby/object:Gem::Requirement
17
31
  requirements:
18
32
  - - "~>"
19
33
  - !ruby/object:Gem::Version
20
- version: '3'
34
+ version: '4'
21
35
  type: :development
22
36
  prerelease: false
23
37
  version_requirements: !ruby/object:Gem::Requirement
24
38
  requirements:
25
39
  - - "~>"
26
40
  - !ruby/object:Gem::Version
27
- version: '3'
41
+ version: '4'
28
42
  - !ruby/object:Gem::Dependency
29
43
  name: cane
30
44
  requirement: !ruby/object:Gem::Requirement
@@ -93,6 +107,8 @@ extra_rdoc_files:
93
107
  files:
94
108
  - README.md
95
109
  - lib/reverb.rb
110
+ - lib/reverb/factories.rb
111
+ - lib/reverb/factories/response.rb
96
112
  - lib/reverb/response.rb
97
113
  - license/gplv3.md
98
114
  - license/lgplv3.md