epay 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +15 -0
- data/.travis.yml +5 -0
- data/CHANGELOG.md +13 -0
- data/Gemfile +2 -0
- data/Guardfile +10 -0
- data/MIT-LICENSE +20 -0
- data/README.markdown +21 -0
- data/Rakefile +8 -0
- data/bin/epay-console +8 -0
- data/epay.gemspec +55 -0
- data/lib/epay.rb +104 -0
- data/lib/epay/api.rb +92 -0
- data/lib/epay/api/response.rb +29 -0
- data/lib/epay/card.rb +23 -0
- data/lib/epay/model.rb +23 -0
- data/lib/epay/subscription.rb +132 -0
- data/lib/epay/transaction.rb +171 -0
- data/lib/epay/version.rb +3 -0
- data/lib/extensions/hash.rb +4 -0
- data/spec/api/response_spec.rb +71 -0
- data/spec/api_spec.rb +58 -0
- data/spec/card_spec.rb +21 -0
- data/spec/fixtures/vcr_cassettes/existing_subscription.yml +75 -0
- data/spec/fixtures/vcr_cassettes/existing_transaction.yml +47 -0
- data/spec/fixtures/vcr_cassettes/non_existing_transaction.yml +48 -0
- data/spec/fixtures/vcr_cassettes/subscription_authorization.yml +95 -0
- data/spec/fixtures/vcr_cassettes/subscription_creation.yml +101 -0
- data/spec/fixtures/vcr_cassettes/subscription_invalid_creation.yml +47 -0
- data/spec/fixtures/vcr_cassettes/subscriptions.yml +87 -0
- data/spec/fixtures/vcr_cassettes/transaction_creation.yml +90 -0
- data/spec/fixtures/vcr_cassettes/transaction_invalid_creation.yml +47 -0
- data/spec/fixtures/vcr_cassettes/transactions.yml +50 -0
- data/spec/helpers/http_responses.rb +13 -0
- data/spec/model_spec.rb +36 -0
- data/spec/spec_helper.rb +20 -0
- data/spec/subscription_spec.rb +139 -0
- data/spec/transaction_spec.rb +245 -0
- metadata +280 -0
metadata
ADDED
@@ -0,0 +1,280 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: epay
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.4
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Mattias Pfeiffer
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-07-16 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rest-client
|
16
|
+
requirement: &2156714520 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 1.6.0
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *2156714520
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: activesupport
|
27
|
+
requirement: &2156714060 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ~>
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '3'
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *2156714060
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: builder
|
38
|
+
requirement: &2156713600 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ~>
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 2.1.2
|
44
|
+
type: :runtime
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *2156713600
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: bundler
|
49
|
+
requirement: &2156713140 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.0'
|
55
|
+
type: :development
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *2156713140
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: yajl-ruby
|
60
|
+
requirement: &2156712680 !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
62
|
+
requirements:
|
63
|
+
- - ~>
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: 0.8.0
|
66
|
+
type: :development
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *2156712680
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: shoulda
|
71
|
+
requirement: &2156712300 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - ! '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: *2156712300
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: rspec
|
82
|
+
requirement: &2156711840 !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
84
|
+
requirements:
|
85
|
+
- - ! '>='
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '0'
|
88
|
+
type: :development
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: *2156711840
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: webmock
|
93
|
+
requirement: &2156711340 !ruby/object:Gem::Requirement
|
94
|
+
none: false
|
95
|
+
requirements:
|
96
|
+
- - ~>
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '1.7'
|
99
|
+
type: :development
|
100
|
+
prerelease: false
|
101
|
+
version_requirements: *2156711340
|
102
|
+
- !ruby/object:Gem::Dependency
|
103
|
+
name: nokogiri
|
104
|
+
requirement: &2156710920 !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
type: :development
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: *2156710920
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: vcr
|
115
|
+
requirement: &2152013280 !ruby/object:Gem::Requirement
|
116
|
+
none: false
|
117
|
+
requirements:
|
118
|
+
- - ~>
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: 2.0.0.rc1
|
121
|
+
type: :development
|
122
|
+
prerelease: false
|
123
|
+
version_requirements: *2152013280
|
124
|
+
- !ruby/object:Gem::Dependency
|
125
|
+
name: rake
|
126
|
+
requirement: &2152012860 !ruby/object:Gem::Requirement
|
127
|
+
none: false
|
128
|
+
requirements:
|
129
|
+
- - ! '>='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: *2152012860
|
135
|
+
- !ruby/object:Gem::Dependency
|
136
|
+
name: guard
|
137
|
+
requirement: &2152012380 !ruby/object:Gem::Requirement
|
138
|
+
none: false
|
139
|
+
requirements:
|
140
|
+
- - ! '>='
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: '0'
|
143
|
+
type: :development
|
144
|
+
prerelease: false
|
145
|
+
version_requirements: *2152012380
|
146
|
+
- !ruby/object:Gem::Dependency
|
147
|
+
name: guard-rspec
|
148
|
+
requirement: &2152011960 !ruby/object:Gem::Requirement
|
149
|
+
none: false
|
150
|
+
requirements:
|
151
|
+
- - ! '>='
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: '0'
|
154
|
+
type: :development
|
155
|
+
prerelease: false
|
156
|
+
version_requirements: *2152011960
|
157
|
+
- !ruby/object:Gem::Dependency
|
158
|
+
name: rb-fsevent
|
159
|
+
requirement: &2152011540 !ruby/object:Gem::Requirement
|
160
|
+
none: false
|
161
|
+
requirements:
|
162
|
+
- - ! '>='
|
163
|
+
- !ruby/object:Gem::Version
|
164
|
+
version: '0'
|
165
|
+
type: :development
|
166
|
+
prerelease: false
|
167
|
+
version_requirements: *2152011540
|
168
|
+
- !ruby/object:Gem::Dependency
|
169
|
+
name: rdoc
|
170
|
+
requirement: &2152011120 !ruby/object:Gem::Requirement
|
171
|
+
none: false
|
172
|
+
requirements:
|
173
|
+
- - ! '>='
|
174
|
+
- !ruby/object:Gem::Version
|
175
|
+
version: '0'
|
176
|
+
type: :development
|
177
|
+
prerelease: false
|
178
|
+
version_requirements: *2152011120
|
179
|
+
- !ruby/object:Gem::Dependency
|
180
|
+
name: turn
|
181
|
+
requirement: &2152010620 !ruby/object:Gem::Requirement
|
182
|
+
none: false
|
183
|
+
requirements:
|
184
|
+
- - ~>
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: '0.9'
|
187
|
+
type: :development
|
188
|
+
prerelease: false
|
189
|
+
version_requirements: *2152010620
|
190
|
+
description: ! ' Coming soon..
|
191
|
+
|
192
|
+
'
|
193
|
+
email: mattias@netdate.dk
|
194
|
+
executables:
|
195
|
+
- epay-console
|
196
|
+
extensions: []
|
197
|
+
extra_rdoc_files:
|
198
|
+
- README.markdown
|
199
|
+
files:
|
200
|
+
- .gitignore
|
201
|
+
- .travis.yml
|
202
|
+
- CHANGELOG.md
|
203
|
+
- Gemfile
|
204
|
+
- Guardfile
|
205
|
+
- MIT-LICENSE
|
206
|
+
- README.markdown
|
207
|
+
- Rakefile
|
208
|
+
- bin/epay-console
|
209
|
+
- epay.gemspec
|
210
|
+
- lib/epay.rb
|
211
|
+
- lib/epay/api.rb
|
212
|
+
- lib/epay/api/response.rb
|
213
|
+
- lib/epay/card.rb
|
214
|
+
- lib/epay/model.rb
|
215
|
+
- lib/epay/subscription.rb
|
216
|
+
- lib/epay/transaction.rb
|
217
|
+
- lib/epay/version.rb
|
218
|
+
- lib/extensions/hash.rb
|
219
|
+
- spec/api/response_spec.rb
|
220
|
+
- spec/api_spec.rb
|
221
|
+
- spec/card_spec.rb
|
222
|
+
- spec/fixtures/vcr_cassettes/existing_subscription.yml
|
223
|
+
- spec/fixtures/vcr_cassettes/existing_transaction.yml
|
224
|
+
- spec/fixtures/vcr_cassettes/non_existing_transaction.yml
|
225
|
+
- spec/fixtures/vcr_cassettes/subscription_authorization.yml
|
226
|
+
- spec/fixtures/vcr_cassettes/subscription_creation.yml
|
227
|
+
- spec/fixtures/vcr_cassettes/subscription_invalid_creation.yml
|
228
|
+
- spec/fixtures/vcr_cassettes/subscriptions.yml
|
229
|
+
- spec/fixtures/vcr_cassettes/transaction_creation.yml
|
230
|
+
- spec/fixtures/vcr_cassettes/transaction_invalid_creation.yml
|
231
|
+
- spec/fixtures/vcr_cassettes/transactions.yml
|
232
|
+
- spec/helpers/http_responses.rb
|
233
|
+
- spec/model_spec.rb
|
234
|
+
- spec/spec_helper.rb
|
235
|
+
- spec/subscription_spec.rb
|
236
|
+
- spec/transaction_spec.rb
|
237
|
+
homepage: http://github.com/netdate/epay
|
238
|
+
licenses: []
|
239
|
+
post_install_message:
|
240
|
+
rdoc_options:
|
241
|
+
- --charset=UTF-8
|
242
|
+
require_paths:
|
243
|
+
- lib
|
244
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
245
|
+
none: false
|
246
|
+
requirements:
|
247
|
+
- - ! '>='
|
248
|
+
- !ruby/object:Gem::Version
|
249
|
+
version: '0'
|
250
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
251
|
+
none: false
|
252
|
+
requirements:
|
253
|
+
- - ! '>='
|
254
|
+
- !ruby/object:Gem::Version
|
255
|
+
version: 1.3.6
|
256
|
+
requirements: []
|
257
|
+
rubyforge_project:
|
258
|
+
rubygems_version: 1.8.17
|
259
|
+
signing_key:
|
260
|
+
specification_version: 3
|
261
|
+
summary: Ruby client for ePay API
|
262
|
+
test_files:
|
263
|
+
- spec/api/response_spec.rb
|
264
|
+
- spec/api_spec.rb
|
265
|
+
- spec/card_spec.rb
|
266
|
+
- spec/fixtures/vcr_cassettes/existing_subscription.yml
|
267
|
+
- spec/fixtures/vcr_cassettes/existing_transaction.yml
|
268
|
+
- spec/fixtures/vcr_cassettes/non_existing_transaction.yml
|
269
|
+
- spec/fixtures/vcr_cassettes/subscription_authorization.yml
|
270
|
+
- spec/fixtures/vcr_cassettes/subscription_creation.yml
|
271
|
+
- spec/fixtures/vcr_cassettes/subscription_invalid_creation.yml
|
272
|
+
- spec/fixtures/vcr_cassettes/subscriptions.yml
|
273
|
+
- spec/fixtures/vcr_cassettes/transaction_creation.yml
|
274
|
+
- spec/fixtures/vcr_cassettes/transaction_invalid_creation.yml
|
275
|
+
- spec/fixtures/vcr_cassettes/transactions.yml
|
276
|
+
- spec/helpers/http_responses.rb
|
277
|
+
- spec/model_spec.rb
|
278
|
+
- spec/spec_helper.rb
|
279
|
+
- spec/subscription_spec.rb
|
280
|
+
- spec/transaction_spec.rb
|