stripe 1.7.9 → 1.7.10
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -0
- data/VERSION +1 -1
- data/lib/stripe.rb +1 -1
- data/lib/stripe/api_resource.rb +1 -1
- data/lib/stripe/stripe_object.rb +9 -0
- data/lib/stripe/version.rb +1 -1
- metadata +75 -115
data/History.txt
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
=== 1.7.10 2013-02-01
|
2
|
+
* Add support for passing options when retrieving Stripe objects
|
3
|
+
e.g., Stripe::Charge.retrieve({id:"foo", expand:["customer"]})
|
4
|
+
Stripe::Charge("foo") is still supported as well
|
5
|
+
|
1
6
|
=== 1.7.9 2013-01-15
|
2
7
|
* Add support for setting a Stripe API version override.
|
3
8
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.7.
|
1
|
+
1.7.10
|
data/lib/stripe.rb
CHANGED
data/lib/stripe/api_resource.rb
CHANGED
data/lib/stripe/stripe_object.rb
CHANGED
@@ -11,6 +11,15 @@ module Stripe
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def initialize(id=nil, api_key=nil)
|
14
|
+
# parameter overloading!
|
15
|
+
if id.kind_of?(Hash)
|
16
|
+
@retrieve_options = id.dup
|
17
|
+
@retrieve_options.delete(:id)
|
18
|
+
id = id[:id]
|
19
|
+
else
|
20
|
+
@retrieve_options = {}
|
21
|
+
end
|
22
|
+
|
14
23
|
@api_key = api_key
|
15
24
|
@values = {}
|
16
25
|
# This really belongs in APIResource, but not putting it there allows us
|
data/lib/stripe/version.rb
CHANGED
metadata
CHANGED
@@ -1,127 +1,96 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: stripe
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.7.10
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 7
|
9
|
-
- 9
|
10
|
-
version: 1.7.9
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Ross Boucher
|
14
9
|
- Greg Brockman
|
15
10
|
autorequire:
|
16
11
|
bindir: bin
|
17
12
|
cert_chain: []
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
requirement: &
|
13
|
+
date: 2013-02-05 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: rest-client
|
17
|
+
requirement: &70206697605080 !ruby/object:Gem::Requirement
|
23
18
|
none: false
|
24
|
-
requirements:
|
19
|
+
requirements:
|
25
20
|
- - ~>
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
|
28
|
-
segments:
|
29
|
-
- 1
|
30
|
-
- 4
|
31
|
-
version: "1.4"
|
32
|
-
prerelease: false
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '1.4'
|
33
23
|
type: :runtime
|
34
|
-
|
35
|
-
version_requirements: *
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
|
-
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: *70206697605080
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: multi_json
|
28
|
+
requirement: &70206697592220 !ruby/object:Gem::Requirement
|
38
29
|
none: false
|
39
|
-
requirements:
|
40
|
-
- -
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
hash: 31
|
43
|
-
segments:
|
44
|
-
- 1
|
45
|
-
- 0
|
46
|
-
- 4
|
30
|
+
requirements:
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
47
33
|
version: 1.0.4
|
48
34
|
- - <
|
49
|
-
- !ruby/object:Gem::Version
|
50
|
-
|
51
|
-
segments:
|
52
|
-
- 2
|
53
|
-
version: "2"
|
54
|
-
prerelease: false
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '2'
|
55
37
|
type: :runtime
|
56
|
-
name: multi_json
|
57
|
-
version_requirements: *id002
|
58
|
-
- !ruby/object:Gem::Dependency
|
59
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
60
|
-
none: false
|
61
|
-
requirements:
|
62
|
-
- - ">="
|
63
|
-
- !ruby/object:Gem::Version
|
64
|
-
hash: 3
|
65
|
-
segments:
|
66
|
-
- 0
|
67
|
-
version: "0"
|
68
38
|
prerelease: false
|
69
|
-
|
39
|
+
version_requirements: *70206697592220
|
40
|
+
- !ruby/object:Gem::Dependency
|
70
41
|
name: mocha
|
71
|
-
|
72
|
-
- !ruby/object:Gem::Dependency
|
73
|
-
requirement: &id004 !ruby/object:Gem::Requirement
|
42
|
+
requirement: &70206697588800 !ruby/object:Gem::Requirement
|
74
43
|
none: false
|
75
|
-
requirements:
|
76
|
-
- -
|
77
|
-
- !ruby/object:Gem::Version
|
78
|
-
|
79
|
-
segments:
|
80
|
-
- 0
|
81
|
-
version: "0"
|
82
|
-
prerelease: false
|
44
|
+
requirements:
|
45
|
+
- - ! '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
83
48
|
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: *70206697588800
|
51
|
+
- !ruby/object:Gem::Dependency
|
84
52
|
name: shoulda
|
85
|
-
|
86
|
-
- !ruby/object:Gem::Dependency
|
87
|
-
requirement: &id005 !ruby/object:Gem::Requirement
|
53
|
+
requirement: &70206697446460 !ruby/object:Gem::Requirement
|
88
54
|
none: false
|
89
|
-
requirements:
|
90
|
-
- -
|
91
|
-
- !ruby/object:Gem::Version
|
92
|
-
|
93
|
-
segments:
|
94
|
-
- 0
|
95
|
-
version: "0"
|
96
|
-
prerelease: false
|
55
|
+
requirements:
|
56
|
+
- - ! '>='
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
version: '0'
|
97
59
|
type: :development
|
60
|
+
prerelease: false
|
61
|
+
version_requirements: *70206697446460
|
62
|
+
- !ruby/object:Gem::Dependency
|
98
63
|
name: test-unit
|
99
|
-
|
100
|
-
- !ruby/object:Gem::Dependency
|
101
|
-
requirement: &id006 !ruby/object:Gem::Requirement
|
64
|
+
requirement: &70206697442120 !ruby/object:Gem::Requirement
|
102
65
|
none: false
|
103
|
-
requirements:
|
104
|
-
- -
|
105
|
-
- !ruby/object:Gem::Version
|
106
|
-
|
107
|
-
segments:
|
108
|
-
- 0
|
109
|
-
version: "0"
|
110
|
-
prerelease: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
111
70
|
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: *70206697442120
|
73
|
+
- !ruby/object:Gem::Dependency
|
112
74
|
name: rake
|
113
|
-
|
114
|
-
|
115
|
-
|
75
|
+
requirement: &70206697439340 !ruby/object:Gem::Requirement
|
76
|
+
none: false
|
77
|
+
requirements:
|
78
|
+
- - ! '>='
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '0'
|
81
|
+
type: :development
|
82
|
+
prerelease: false
|
83
|
+
version_requirements: *70206697439340
|
84
|
+
description: Stripe is the easiest way to accept payments online. See https://stripe.com
|
85
|
+
for details.
|
86
|
+
email:
|
116
87
|
- boucher@stripe.com
|
117
88
|
- gdb@stripe.com
|
118
|
-
executables:
|
89
|
+
executables:
|
119
90
|
- stripe-console
|
120
91
|
extensions: []
|
121
|
-
|
122
92
|
extra_rdoc_files: []
|
123
|
-
|
124
|
-
files:
|
93
|
+
files:
|
125
94
|
- .gitignore
|
126
95
|
- .travis.yml
|
127
96
|
- CONTRIBUTORS
|
@@ -170,38 +139,29 @@ files:
|
|
170
139
|
- test/test_stripe_with_active_support.rb
|
171
140
|
homepage: https://stripe.com/api
|
172
141
|
licenses: []
|
173
|
-
|
174
142
|
post_install_message:
|
175
143
|
rdoc_options: []
|
176
|
-
|
177
|
-
require_paths:
|
144
|
+
require_paths:
|
178
145
|
- lib
|
179
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
146
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
180
147
|
none: false
|
181
|
-
requirements:
|
182
|
-
- -
|
183
|
-
- !ruby/object:Gem::Version
|
184
|
-
|
185
|
-
|
186
|
-
- 0
|
187
|
-
version: "0"
|
188
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - ! '>='
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: '0'
|
152
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
189
153
|
none: false
|
190
|
-
requirements:
|
191
|
-
- -
|
192
|
-
- !ruby/object:Gem::Version
|
193
|
-
|
194
|
-
segments:
|
195
|
-
- 0
|
196
|
-
version: "0"
|
154
|
+
requirements:
|
155
|
+
- - ! '>='
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '0'
|
197
158
|
requirements: []
|
198
|
-
|
199
159
|
rubyforge_project:
|
200
|
-
rubygems_version: 1.8.
|
160
|
+
rubygems_version: 1.8.15
|
201
161
|
signing_key:
|
202
162
|
specification_version: 3
|
203
163
|
summary: Ruby bindings for the Stripe API
|
204
|
-
test_files:
|
164
|
+
test_files:
|
205
165
|
- test/test_helper.rb
|
206
166
|
- test/test_stripe.rb
|
207
167
|
- test/test_stripe_with_active_support.rb
|