payture_ruby 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +14 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +56 -0
- data/Rakefile +14 -0
- data/lib/faraday/payture_auth.rb +25 -0
- data/lib/faraday/raise_http_exeption.rb +53 -0
- data/lib/faraday/underscore.rb +33 -0
- data/lib/payture/api.rb +27 -0
- data/lib/payture/client/vwapi.rb +20 -0
- data/lib/payture/client.rb +7 -0
- data/lib/payture/configuration.rb +58 -0
- data/lib/payture/connection.rb +30 -0
- data/lib/payture/error.rb +19 -0
- data/lib/payture/helper.rb +7 -0
- data/lib/payture/request.rb +55 -0
- data/lib/payture/response.rb +9 -0
- data/lib/payture/version.rb +3 -0
- data/lib/payture.rb +23 -0
- data/payture.gemspec +31 -0
- data/test/cassettes/activate/existing_user/existing_card.yml +37 -0
- data/test/cassettes/add/new_user/existing_card.yml +37 -0
- data/test/cassettes/add/new_user/new_card.yml +37 -0
- data/test/cassettes/get_list/existing_user.yml +39 -0
- data/test/cassettes/pay/existing_user/active_card.yml +37 -0
- data/test/cassettes/pay/existing_user/inactive_card.yml +37 -0
- data/test/cassettes/register/duplicate.yml +37 -0
- data/test/cassettes/register/new.yml +36 -0
- data/test/payture/api_test.rb +76 -0
- data/test/payture/client/vwapi_test.rb +260 -0
- data/test/payture/configuration_test.rb +13 -0
- data/test/payture_test.rb +15 -0
- data/test/test_helper.rb +20 -0
- metadata +230 -0
metadata
ADDED
@@ -0,0 +1,230 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: payture_ruby
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Igor Davydov
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-08-21 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.6'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.6'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '5'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '5'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: webmock
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: minitest-vcr
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: vcr
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: faraday
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: faraday_middleware
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: multi_xml
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: hashie
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
description: Optional.
|
154
|
+
email:
|
155
|
+
- iskiche@gmail.com
|
156
|
+
executables: []
|
157
|
+
extensions: []
|
158
|
+
extra_rdoc_files: []
|
159
|
+
files:
|
160
|
+
- ".gitignore"
|
161
|
+
- Gemfile
|
162
|
+
- LICENSE.txt
|
163
|
+
- README.md
|
164
|
+
- Rakefile
|
165
|
+
- lib/faraday/payture_auth.rb
|
166
|
+
- lib/faraday/raise_http_exeption.rb
|
167
|
+
- lib/faraday/underscore.rb
|
168
|
+
- lib/payture.rb
|
169
|
+
- lib/payture/api.rb
|
170
|
+
- lib/payture/client.rb
|
171
|
+
- lib/payture/client/vwapi.rb
|
172
|
+
- lib/payture/configuration.rb
|
173
|
+
- lib/payture/connection.rb
|
174
|
+
- lib/payture/error.rb
|
175
|
+
- lib/payture/helper.rb
|
176
|
+
- lib/payture/request.rb
|
177
|
+
- lib/payture/response.rb
|
178
|
+
- lib/payture/version.rb
|
179
|
+
- payture.gemspec
|
180
|
+
- test/cassettes/activate/existing_user/existing_card.yml
|
181
|
+
- test/cassettes/add/new_user/existing_card.yml
|
182
|
+
- test/cassettes/add/new_user/new_card.yml
|
183
|
+
- test/cassettes/get_list/existing_user.yml
|
184
|
+
- test/cassettes/pay/existing_user/active_card.yml
|
185
|
+
- test/cassettes/pay/existing_user/inactive_card.yml
|
186
|
+
- test/cassettes/register/duplicate.yml
|
187
|
+
- test/cassettes/register/new.yml
|
188
|
+
- test/payture/api_test.rb
|
189
|
+
- test/payture/client/vwapi_test.rb
|
190
|
+
- test/payture/configuration_test.rb
|
191
|
+
- test/payture_test.rb
|
192
|
+
- test/test_helper.rb
|
193
|
+
homepage: ''
|
194
|
+
licenses:
|
195
|
+
- MIT
|
196
|
+
metadata: {}
|
197
|
+
post_install_message:
|
198
|
+
rdoc_options: []
|
199
|
+
require_paths:
|
200
|
+
- lib
|
201
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
202
|
+
requirements:
|
203
|
+
- - ">="
|
204
|
+
- !ruby/object:Gem::Version
|
205
|
+
version: '0'
|
206
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
207
|
+
requirements:
|
208
|
+
- - ">="
|
209
|
+
- !ruby/object:Gem::Version
|
210
|
+
version: '0'
|
211
|
+
requirements: []
|
212
|
+
rubyforge_project:
|
213
|
+
rubygems_version: 2.2.2
|
214
|
+
signing_key:
|
215
|
+
specification_version: 4
|
216
|
+
summary: Payture api ruby gem
|
217
|
+
test_files:
|
218
|
+
- test/cassettes/activate/existing_user/existing_card.yml
|
219
|
+
- test/cassettes/add/new_user/existing_card.yml
|
220
|
+
- test/cassettes/add/new_user/new_card.yml
|
221
|
+
- test/cassettes/get_list/existing_user.yml
|
222
|
+
- test/cassettes/pay/existing_user/active_card.yml
|
223
|
+
- test/cassettes/pay/existing_user/inactive_card.yml
|
224
|
+
- test/cassettes/register/duplicate.yml
|
225
|
+
- test/cassettes/register/new.yml
|
226
|
+
- test/payture/api_test.rb
|
227
|
+
- test/payture/client/vwapi_test.rb
|
228
|
+
- test/payture/configuration_test.rb
|
229
|
+
- test/payture_test.rb
|
230
|
+
- test/test_helper.rb
|