big-door 0.0.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.
- data/.bundle/config +2 -0
- data/.document +5 -0
- data/.gitignore +22 -0
- data/Gemfile +12 -0
- data/LICENSE +20 -0
- data/README.rdoc +17 -0
- data/Rakefile +59 -0
- data/VERSION +1 -0
- data/features/big-door.feature +26 -0
- data/features/step_definitions/big-door_steps.rb +83 -0
- data/features/support/env.rb +5 -0
- data/lib/big-door.rb +127 -0
- data/lib/big-door/base.rb +45 -0
- data/lib/big-door/currency.rb +25 -0
- data/lib/big-door/named_transaction.rb +25 -0
- data/lib/big-door/named_transaction_group.rb +27 -0
- data/lib/big-door/request.rb +7 -0
- data/lib/big-door/response_codes.rb +266 -0
- data/lib/big-door/user.rb +49 -0
- data/spec/.rspec +1 -0
- data/spec/big-door_spec.rb +105 -0
- data/spec/spec_helper.rb +19 -0
- data/spec/support/vcr.rb +7 -0
- data/vcr_cassettes/NamedTransaction/NamedTransaction.yml +213 -0
- data/vcr_cassettes/NamedTransaction/specific.yml +6043 -0
- data/vcr_cassettes/award/award_summary.yml +34 -0
- data/vcr_cassettes/currency/currency.yml +52 -0
- data/vcr_cassettes/currency/currency_type.yml +31 -0
- data/vcr_cassettes/currency/specific.yml +2980 -0
- data/vcr_cassettes/good/good_summary.yml +34 -0
- data/vcr_cassettes/level/level_summary.yml +34 -0
- data/vcr_cassettes/named_transaction/named_transactions.yml +107 -0
- data/vcr_cassettes/named_transaction_group/all.yml +145 -0
- data/vcr_cassettes/named_transaction_group/specific.yml +3171 -0
- data/vcr_cassettes/user/add_points.yml +36 -0
- data/vcr_cassettes/user/all.yml +473 -0
- data/vcr_cassettes/user/create.yml +393 -0
- data/vcr_cassettes/user/currency_balance.yml +738 -0
- data/vcr_cassettes/user/new.yml +5660 -0
- data/vcr_cassettes/user/new_currency_balance.yml +470 -0
- data/vcr_cassettes/user/specific.yml +213 -0
- metadata +175 -0
@@ -0,0 +1,213 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: http://api.bigdoor.com:80/api/publisher/0d38d9cd41b0440bbf22c0720be58b27/end_user/testers?sig=6260e154413adc31862bcb01207eb77e63268dd4479d179d5a1d79c4a685ae71&time=1282851686.10&format=json
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
connection:
|
9
|
+
- close
|
10
|
+
host:
|
11
|
+
- api.bigdoor.com
|
12
|
+
response: !ruby/struct:VCR::Response
|
13
|
+
status: !ruby/struct:VCR::ResponseStatus
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
content-type:
|
18
|
+
- application/json; charset=utf-8
|
19
|
+
connection:
|
20
|
+
- Close
|
21
|
+
date:
|
22
|
+
- Thu, 26 Aug 2010 19:41:27 GMT
|
23
|
+
server:
|
24
|
+
- Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with Suhosin-Patch mod_wsgi/2.5 Python/2.5.2
|
25
|
+
content-length:
|
26
|
+
- "1080"
|
27
|
+
vary:
|
28
|
+
- Authorization,Cookie
|
29
|
+
body: |-
|
30
|
+
[
|
31
|
+
{
|
32
|
+
"read_only": 0,
|
33
|
+
"modified_timestamp": 1281043384,
|
34
|
+
"resource_name": "end_user",
|
35
|
+
"award_summaries": [],
|
36
|
+
"level_summaries": [],
|
37
|
+
"sent_good_summaries": [],
|
38
|
+
"currency_balances": [
|
39
|
+
{
|
40
|
+
"end_user_description": null,
|
41
|
+
"transaction_group_id": "fc39d1ebc8ca49c7b8ee97a9cec32970",
|
42
|
+
"modified_timestamp": 1282689777,
|
43
|
+
"pub_title": "temp_points",
|
44
|
+
"urls": [],
|
45
|
+
"current_balance": "30.00",
|
46
|
+
"adjustment_amount": "30.00",
|
47
|
+
"currency_id": 579,
|
48
|
+
"previous_balance": "0.00",
|
49
|
+
"currency_adjusted": false,
|
50
|
+
"created_timestamp": 1282689777,
|
51
|
+
"pub_description": null,
|
52
|
+
"end_user_title": "Temp Points"
|
53
|
+
}
|
54
|
+
],
|
55
|
+
"created_timestamp": 1281043384,
|
56
|
+
"end_user_login": "testers",
|
57
|
+
"guid": "a24ff58ca0d711df966120ad2f73afad",
|
58
|
+
"received_good_summaries": []
|
59
|
+
},
|
60
|
+
{}
|
61
|
+
]
|
62
|
+
http_version: "1.1"
|
63
|
+
- !ruby/struct:VCR::HTTPInteraction
|
64
|
+
request: !ruby/struct:VCR::Request
|
65
|
+
method: :get
|
66
|
+
uri: http://api.bigdoor.com:80/api/publisher/0d38d9cd41b0440bbf22c0720be58b27/end_user/fakeemailer@trada.com?sig=c71b94dbca4c1d29d0b8ab9d8bf40c112c03e5233b519fe59697a55c4f3b9a98&time=1282851686.47&format=json
|
67
|
+
body:
|
68
|
+
headers:
|
69
|
+
connection:
|
70
|
+
- close
|
71
|
+
host:
|
72
|
+
- api.bigdoor.com
|
73
|
+
response: !ruby/struct:VCR::Response
|
74
|
+
status: !ruby/struct:VCR::ResponseStatus
|
75
|
+
code: 200
|
76
|
+
message: OK
|
77
|
+
headers:
|
78
|
+
connection:
|
79
|
+
- Close
|
80
|
+
content-type:
|
81
|
+
- application/json; charset=utf-8
|
82
|
+
server:
|
83
|
+
- Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny8 with Suhosin-Patch mod_wsgi/2.5 Python/2.5.2
|
84
|
+
date:
|
85
|
+
- Thu, 26 Aug 2010 19:41:27 GMT
|
86
|
+
content-length:
|
87
|
+
- "449"
|
88
|
+
vary:
|
89
|
+
- Authorization,Cookie
|
90
|
+
body: |-
|
91
|
+
[
|
92
|
+
{
|
93
|
+
"read_only": 0,
|
94
|
+
"modified_timestamp": 1282851363,
|
95
|
+
"resource_name": "end_user",
|
96
|
+
"award_summaries": [],
|
97
|
+
"level_summaries": [],
|
98
|
+
"sent_good_summaries": [],
|
99
|
+
"currency_balances": [],
|
100
|
+
"created_timestamp": 1282851363,
|
101
|
+
"end_user_login": "fakeemailer@trada.com",
|
102
|
+
"guid": "29fc6bf5b14911dfa15a55a9222eea83",
|
103
|
+
"received_good_summaries": []
|
104
|
+
},
|
105
|
+
{}
|
106
|
+
]
|
107
|
+
http_version: "1.1"
|
108
|
+
- !ruby/struct:VCR::HTTPInteraction
|
109
|
+
request: !ruby/struct:VCR::Request
|
110
|
+
method: :get
|
111
|
+
uri: http://api.bigdoor.com:80/api/publisher/0d38d9cd41b0440bbf22c0720be58b27/end_user/testers?sig=b60722add9c3942c253c4b1a492bf620e30491a72e0d5dc411e151e9e3189e3e&time=1282851765.66&format=json
|
112
|
+
body:
|
113
|
+
headers:
|
114
|
+
connection:
|
115
|
+
- close
|
116
|
+
host:
|
117
|
+
- api.bigdoor.com
|
118
|
+
response: !ruby/struct:VCR::Response
|
119
|
+
status: !ruby/struct:VCR::ResponseStatus
|
120
|
+
code: 200
|
121
|
+
message: OK
|
122
|
+
headers:
|
123
|
+
content-type:
|
124
|
+
- application/json; charset=utf-8
|
125
|
+
connection:
|
126
|
+
- Close
|
127
|
+
date:
|
128
|
+
- Thu, 26 Aug 2010 19:42:46 GMT
|
129
|
+
server:
|
130
|
+
- Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny8 with Suhosin-Patch mod_wsgi/2.5 Python/2.5.2
|
131
|
+
content-length:
|
132
|
+
- "1080"
|
133
|
+
vary:
|
134
|
+
- Authorization,Cookie
|
135
|
+
body: |-
|
136
|
+
[
|
137
|
+
{
|
138
|
+
"read_only": 0,
|
139
|
+
"modified_timestamp": 1281043384,
|
140
|
+
"resource_name": "end_user",
|
141
|
+
"award_summaries": [],
|
142
|
+
"level_summaries": [],
|
143
|
+
"sent_good_summaries": [],
|
144
|
+
"currency_balances": [
|
145
|
+
{
|
146
|
+
"end_user_description": null,
|
147
|
+
"transaction_group_id": "fc39d1ebc8ca49c7b8ee97a9cec32970",
|
148
|
+
"modified_timestamp": 1282689777,
|
149
|
+
"pub_title": "temp_points",
|
150
|
+
"urls": [],
|
151
|
+
"current_balance": "30.00",
|
152
|
+
"adjustment_amount": "30.00",
|
153
|
+
"currency_id": 579,
|
154
|
+
"previous_balance": "0.00",
|
155
|
+
"currency_adjusted": false,
|
156
|
+
"created_timestamp": 1282689777,
|
157
|
+
"pub_description": null,
|
158
|
+
"end_user_title": "Temp Points"
|
159
|
+
}
|
160
|
+
],
|
161
|
+
"created_timestamp": 1281043384,
|
162
|
+
"end_user_login": "testers",
|
163
|
+
"guid": "a24ff58ca0d711df966120ad2f73afad",
|
164
|
+
"received_good_summaries": []
|
165
|
+
},
|
166
|
+
{}
|
167
|
+
]
|
168
|
+
http_version: "1.1"
|
169
|
+
- !ruby/struct:VCR::HTTPInteraction
|
170
|
+
request: !ruby/struct:VCR::Request
|
171
|
+
method: :get
|
172
|
+
uri: http://api.bigdoor.com:80/api/publisher/0d38d9cd41b0440bbf22c0720be58b27/end_user/fakeemailer@trada.com?sig=b54fc6fa44e11d922b9f366846d08a2d2344057aaab9a505e3fe077828b8f9b4&time=1282851765.97&format=json
|
173
|
+
body:
|
174
|
+
headers:
|
175
|
+
connection:
|
176
|
+
- close
|
177
|
+
host:
|
178
|
+
- api.bigdoor.com
|
179
|
+
response: !ruby/struct:VCR::Response
|
180
|
+
status: !ruby/struct:VCR::ResponseStatus
|
181
|
+
code: 200
|
182
|
+
message: OK
|
183
|
+
headers:
|
184
|
+
connection:
|
185
|
+
- Close
|
186
|
+
content-type:
|
187
|
+
- application/json; charset=utf-8
|
188
|
+
server:
|
189
|
+
- Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with Suhosin-Patch mod_wsgi/2.5 Python/2.5.2
|
190
|
+
date:
|
191
|
+
- Thu, 26 Aug 2010 19:42:59 GMT
|
192
|
+
content-length:
|
193
|
+
- "449"
|
194
|
+
vary:
|
195
|
+
- Authorization,Cookie
|
196
|
+
body: |-
|
197
|
+
[
|
198
|
+
{
|
199
|
+
"read_only": 0,
|
200
|
+
"modified_timestamp": 1282851363,
|
201
|
+
"resource_name": "end_user",
|
202
|
+
"award_summaries": [],
|
203
|
+
"level_summaries": [],
|
204
|
+
"sent_good_summaries": [],
|
205
|
+
"currency_balances": [],
|
206
|
+
"created_timestamp": 1282851363,
|
207
|
+
"end_user_login": "fakeemailer@trada.com",
|
208
|
+
"guid": "29fc6bf5b14911dfa15a55a9222eea83",
|
209
|
+
"received_good_summaries": []
|
210
|
+
},
|
211
|
+
{}
|
212
|
+
]
|
213
|
+
http_version: "1.1"
|
metadata
ADDED
@@ -0,0 +1,175 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: big-door
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 31
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 0
|
10
|
+
version: 0.0.0
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Michael Lavrisha
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2010-08-30 00:00:00 -06:00
|
19
|
+
default_executable:
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: rspec
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 62196421
|
30
|
+
segments:
|
31
|
+
- 2
|
32
|
+
- 0
|
33
|
+
- 0
|
34
|
+
- beta
|
35
|
+
- 19
|
36
|
+
version: 2.0.0.beta.19
|
37
|
+
type: :development
|
38
|
+
version_requirements: *id001
|
39
|
+
- !ruby/object:Gem::Dependency
|
40
|
+
name: cucumber
|
41
|
+
prerelease: false
|
42
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
43
|
+
none: false
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
hash: 53
|
48
|
+
segments:
|
49
|
+
- 0
|
50
|
+
- 8
|
51
|
+
- 5
|
52
|
+
version: 0.8.5
|
53
|
+
type: :development
|
54
|
+
version_requirements: *id002
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: httparty
|
57
|
+
prerelease: false
|
58
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
59
|
+
none: false
|
60
|
+
requirements:
|
61
|
+
- - ~>
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
hash: 7
|
64
|
+
segments:
|
65
|
+
- 0
|
66
|
+
- 6
|
67
|
+
- 0
|
68
|
+
version: 0.6.0
|
69
|
+
type: :runtime
|
70
|
+
version_requirements: *id003
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: json
|
73
|
+
prerelease: false
|
74
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
75
|
+
none: false
|
76
|
+
requirements:
|
77
|
+
- - ~>
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
hash: 1
|
80
|
+
segments:
|
81
|
+
- 1
|
82
|
+
- 4
|
83
|
+
- 3
|
84
|
+
version: 1.4.3
|
85
|
+
type: :runtime
|
86
|
+
version_requirements: *id004
|
87
|
+
description: A gem to interact with Big Door Media's API
|
88
|
+
email: mlavrisha@trada.com
|
89
|
+
executables: []
|
90
|
+
|
91
|
+
extensions: []
|
92
|
+
|
93
|
+
extra_rdoc_files:
|
94
|
+
- LICENSE
|
95
|
+
- README.rdoc
|
96
|
+
files:
|
97
|
+
- .bundle/config
|
98
|
+
- .document
|
99
|
+
- .gitignore
|
100
|
+
- Gemfile
|
101
|
+
- LICENSE
|
102
|
+
- README.rdoc
|
103
|
+
- Rakefile
|
104
|
+
- VERSION
|
105
|
+
- features/big-door.feature
|
106
|
+
- features/step_definitions/big-door_steps.rb
|
107
|
+
- features/support/env.rb
|
108
|
+
- lib/big-door.rb
|
109
|
+
- lib/big-door/base.rb
|
110
|
+
- lib/big-door/currency.rb
|
111
|
+
- lib/big-door/named_transaction.rb
|
112
|
+
- lib/big-door/named_transaction_group.rb
|
113
|
+
- lib/big-door/request.rb
|
114
|
+
- lib/big-door/response_codes.rb
|
115
|
+
- lib/big-door/user.rb
|
116
|
+
- spec/.rspec
|
117
|
+
- spec/big-door_spec.rb
|
118
|
+
- spec/spec_helper.rb
|
119
|
+
- spec/support/vcr.rb
|
120
|
+
- vcr_cassettes/NamedTransaction/NamedTransaction.yml
|
121
|
+
- vcr_cassettes/NamedTransaction/specific.yml
|
122
|
+
- vcr_cassettes/award/award_summary.yml
|
123
|
+
- vcr_cassettes/currency/currency.yml
|
124
|
+
- vcr_cassettes/currency/currency_type.yml
|
125
|
+
- vcr_cassettes/currency/specific.yml
|
126
|
+
- vcr_cassettes/good/good_summary.yml
|
127
|
+
- vcr_cassettes/level/level_summary.yml
|
128
|
+
- vcr_cassettes/named_transaction/named_transactions.yml
|
129
|
+
- vcr_cassettes/named_transaction_group/all.yml
|
130
|
+
- vcr_cassettes/named_transaction_group/specific.yml
|
131
|
+
- vcr_cassettes/user/add_points.yml
|
132
|
+
- vcr_cassettes/user/all.yml
|
133
|
+
- vcr_cassettes/user/create.yml
|
134
|
+
- vcr_cassettes/user/currency_balance.yml
|
135
|
+
- vcr_cassettes/user/new.yml
|
136
|
+
- vcr_cassettes/user/new_currency_balance.yml
|
137
|
+
- vcr_cassettes/user/specific.yml
|
138
|
+
has_rdoc: true
|
139
|
+
homepage: http://github.com/vrish88/big-door
|
140
|
+
licenses: []
|
141
|
+
|
142
|
+
post_install_message:
|
143
|
+
rdoc_options:
|
144
|
+
- --charset=UTF-8
|
145
|
+
require_paths:
|
146
|
+
- lib
|
147
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
148
|
+
none: false
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
hash: 3
|
153
|
+
segments:
|
154
|
+
- 0
|
155
|
+
version: "0"
|
156
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
157
|
+
none: false
|
158
|
+
requirements:
|
159
|
+
- - ">="
|
160
|
+
- !ruby/object:Gem::Version
|
161
|
+
hash: 3
|
162
|
+
segments:
|
163
|
+
- 0
|
164
|
+
version: "0"
|
165
|
+
requirements: []
|
166
|
+
|
167
|
+
rubyforge_project:
|
168
|
+
rubygems_version: 1.3.7
|
169
|
+
signing_key:
|
170
|
+
specification_version: 3
|
171
|
+
summary: Big Door Media gem
|
172
|
+
test_files:
|
173
|
+
- spec/big-door_spec.rb
|
174
|
+
- spec/spec_helper.rb
|
175
|
+
- spec/support/vcr.rb
|