chargify_api_ares 1.3.3 → 1.3.4

Sign up to get free protection for your applications and to get access to all the features.
data/.rspec CHANGED
@@ -1 +1 @@
1
- --fail-fast --format d --color
1
+ --format d --color
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- chargify_api_ares (1.3.2)
4
+ chargify_api_ares (1.3.4)
5
5
  activeresource (>= 3.2.16)
6
6
 
7
7
  GEM
@@ -31,19 +31,7 @@ GEM
31
31
  faker (1.1.2)
32
32
  i18n (~> 0.5)
33
33
  fakeweb (1.3.0)
34
- growl (1.0.3)
35
- guard (1.6.2)
36
- listen (>= 0.6.0)
37
- lumberjack (>= 1.0.2)
38
- pry (>= 0.9.10)
39
- terminal-table (>= 1.4.3)
40
- thor (>= 0.14.6)
41
- guard-rspec (2.4.0)
42
- guard (>= 1.1)
43
- rspec (~> 2.11)
44
34
  i18n (0.6.11)
45
- listen (0.7.2)
46
- lumberjack (1.0.2)
47
35
  method_source (0.8.1)
48
36
  multi_json (1.10.1)
49
37
  pry (0.9.12)
@@ -51,7 +39,6 @@ GEM
51
39
  method_source (~> 0.8)
52
40
  slop (~> 3.4)
53
41
  rake (10.0.3)
54
- rb-fsevent (0.9.3)
55
42
  rspec (2.12.0)
56
43
  rspec-core (~> 2.12.0)
57
44
  rspec-expectations (~> 2.12.0)
@@ -61,7 +48,6 @@ GEM
61
48
  diff-lcs (~> 1.1.3)
62
49
  rspec-mocks (2.12.2)
63
50
  slop (3.4.3)
64
- terminal-table (1.4.5)
65
51
  thor (0.17.0)
66
52
  vcr (2.9.2)
67
53
 
@@ -75,10 +61,7 @@ DEPENDENCIES
75
61
  factory_girl (~> 2.6)
76
62
  faker (~> 1.1.2)
77
63
  fakeweb (~> 1.3.0)
78
- growl (~> 1.0.3)
79
- guard-rspec (~> 2.4.0)
80
64
  pry
81
65
  rake (~> 10.0.3)
82
- rb-fsevent (~> 0.9.2)
83
66
  rspec (~> 2.12.0)
84
67
  vcr
data/HISTORY.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.3.4 / May 14 2015
2
+
3
+ * Adds duplicate prevention support
4
+
1
5
  ## 1.3.3 / Mar 27 2015
2
6
 
3
7
  * When reconfiguring, the site should recalculate based on new settings
data/README.md CHANGED
@@ -123,6 +123,22 @@ customer.save
123
123
 
124
124
  Check out the examples in the `examples` directory. If you're not familiar with how ActiveResource works, you may be interested in some [ActiveResource Documentation](http://apidock.com/rails/ActiveResource/Base)
125
125
 
126
+ ### Duplicate Prevention
127
+
128
+ [Duplicate Prevention](https://docs.chargify.com/api-duplicate-prevention) is supported by including the `uniqueness_token` attribute, for example:
129
+
130
+ ```ruby
131
+ subscription = Chargify::Subscription.create(
132
+ :product_handle => 'product-with-trial',
133
+ :customer_attributes => {
134
+ :first_name => "Test",
135
+ :last_name => "Customer",
136
+ :email => "test@example.com"
137
+ },
138
+ :uniqueness_token => "abc-123-def-456"
139
+ )
140
+ ```
141
+
126
142
  ### Compatibility
127
143
 
128
144
  * Rails/ActiveResource 2.3.x, use 0.5.x
@@ -4,11 +4,11 @@ Gem::Specification.new do |s|
4
4
  s.rubygems_version = '1.3.7'
5
5
 
6
6
  s.name = 'chargify_api_ares'
7
- s.version = '1.3.3'
8
- s.date = '2015-03-27'
7
+ s.version = '1.3.4'
8
+ s.date = '2015-05-14'
9
9
  s.summary = 'A Chargify API wrapper for Ruby using ActiveResource'
10
10
  s.description = ''
11
- s.authors = ["Michael Klett", "Nathan Verni", "Jeremy W. Rowe", "Eric Farkas", "Wendy Smoak"]
11
+ s.authors = ["Michael Klett", "Nathan Verni", "Eric Farkas", "Wendy Smoak"]
12
12
  s.email = 'support@chargify.com'
13
13
  s.homepage = 'http://github.com/chargify/chargify_api_ares'
14
14
 
@@ -25,9 +25,6 @@ Gem::Specification.new do |s|
25
25
  s.add_development_dependency('factory_girl', '~> 2.6')
26
26
  s.add_development_dependency('fakeweb', '~> 1.3.0')
27
27
  s.add_development_dependency('faker', '~> 1.1.2')
28
- s.add_development_dependency('guard-rspec', '~> 2.4.0')
29
- s.add_development_dependency('growl', '~> 1.0.3')
30
- s.add_development_dependency('rb-fsevent', '~> 0.9.2')
31
28
  s.add_development_dependency('pry')
32
29
  s.add_development_dependency('vcr')
33
30
  s.add_development_dependency('dotenv')
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- chargify_api_ares (1.3.2)
4
+ chargify_api_ares (1.3.3)
5
5
  activeresource (>= 3.2.16)
6
6
 
7
7
  GEM
@@ -40,8 +40,6 @@ GEM
40
40
  thor (>= 0.14.0)
41
41
  arel (3.0.3)
42
42
  builder (3.0.4)
43
- celluloid (0.16.0)
44
- timers (~> 4.0.0)
45
43
  coderay (1.1.0)
46
44
  diff-lcs (1.1.3)
47
45
  dotenv (1.0.2)
@@ -51,28 +49,10 @@ GEM
51
49
  faker (1.1.2)
52
50
  i18n (~> 0.5)
53
51
  fakeweb (1.3.0)
54
- ffi (1.9.6)
55
- formatador (0.2.5)
56
- growl (1.0.3)
57
- guard (2.10.2)
58
- formatador (>= 0.2.4)
59
- listen (~> 2.7)
60
- lumberjack (~> 1.0)
61
- pry (>= 0.9.12)
62
- thor (>= 0.18.1)
63
- guard-rspec (2.4.1)
64
- guard (>= 1.1)
65
- rspec (~> 2.11)
66
52
  hike (1.2.3)
67
- hitimes (1.2.2)
68
53
  i18n (0.6.11)
69
54
  journey (1.0.4)
70
55
  json (1.8.1)
71
- listen (2.8.3)
72
- celluloid (>= 0.15.2)
73
- rb-fsevent (>= 0.9.3)
74
- rb-inotify (>= 0.9)
75
- lumberjack (1.0.9)
76
56
  mail (2.5.4)
77
57
  mime-types (~> 1.16)
78
58
  treetop (~> 1.4.8)
@@ -107,9 +87,6 @@ GEM
107
87
  rdoc (~> 3.4)
108
88
  thor (>= 0.14.6, < 2.0)
109
89
  rake (10.0.4)
110
- rb-fsevent (0.9.4)
111
- rb-inotify (0.9.5)
112
- ffi (>= 0.5.0)
113
90
  rdoc (3.12.2)
114
91
  json (~> 1.4)
115
92
  rspec (2.12.0)
@@ -128,167 +105,8 @@ GEM
128
105
  tilt (~> 1.1, != 1.3.0)
129
106
  thor (0.19.1)
130
107
  tilt (1.4.1)
131
- timers (4.0.1)
132
- hitimes
133
108
  treetop (1.4.15)
134
109
  polyglot
135
- polyglot
136
- polyglot
137
- polyglot
138
- polyglot
139
- polyglot
140
- polyglot
141
- polyglot
142
- polyglot
143
- polyglot
144
- polyglot
145
- polyglot
146
- polyglot
147
- polyglot
148
- polyglot
149
- polyglot
150
- polyglot
151
- polyglot (>= 0.3.1)
152
- polyglot (>= 0.3.1)
153
- polyglot (>= 0.3.1)
154
- polyglot (>= 0.3.1)
155
- polyglot (>= 0.3.1)
156
- polyglot (>= 0.3.1)
157
- polyglot (>= 0.3.1)
158
- polyglot (>= 0.3.1)
159
- polyglot (>= 0.3.1)
160
- polyglot (>= 0.3.1)
161
- polyglot (>= 0.3.1)
162
- polyglot (>= 0.3.1)
163
- polyglot (>= 0.3.1)
164
- polyglot (>= 0.3.1)
165
- polyglot (>= 0.3.1)
166
- polyglot (>= 0.3.1)
167
- polyglot (>= 0.3.1)
168
- polyglot (>= 0.3.1)
169
- polyglot (>= 0.3.1)
170
- polyglot (>= 0.3.1)
171
- polyglot (>= 0.3.1)
172
- polyglot (>= 0.3.1)
173
- polyglot (>= 0.3.1)
174
- polyglot (>= 0.3.1)
175
- polyglot (>= 0.3.1)
176
- polyglot (>= 0.3.1)
177
- polyglot (>= 0.3.1)
178
- polyglot (>= 0.3.1)
179
- polyglot (>= 0.3.1)
180
- polyglot (>= 0.3.1)
181
- polyglot (>= 0.3.1)
182
- polyglot (>= 0.3.1)
183
- polyglot (>= 0.3.1)
184
- polyglot (>= 0.3.1)
185
- polyglot (>= 0.3.1)
186
- polyglot (>= 0.3.1)
187
- polyglot (>= 0.3.1)
188
- polyglot (>= 0.3.1)
189
- polyglot (>= 0.3.1)
190
- polyglot (>= 0.3.1)
191
- polyglot (>= 0.3.1)
192
- polyglot (>= 0.3.1)
193
- polyglot (>= 0.3.1)
194
- polyglot (>= 0.3.1)
195
- polyglot (>= 0.3.1)
196
- polyglot (>= 0.3.1)
197
- polyglot (>= 0.3.1)
198
- polyglot (>= 0.3.1)
199
- polyglot (>= 0.3.1)
200
- polyglot (>= 0.3.1)
201
- polyglot (>= 0.3.1)
202
- polyglot (>= 0.3.1)
203
- polyglot (>= 0.3.1)
204
- polyglot (>= 0.3.1)
205
- polyglot (>= 0.3.1)
206
- polyglot (>= 0.3.1)
207
- polyglot (>= 0.3.1)
208
- polyglot (>= 0.3.1)
209
- polyglot (>= 0.3.1)
210
- polyglot (>= 0.3.1)
211
- polyglot (>= 0.3.1)
212
- polyglot (>= 0.3.1)
213
- polyglot (>= 0.3.1)
214
- polyglot (>= 0.3.1)
215
- polyglot (>= 0.3.1)
216
- polyglot (>= 0.3.1)
217
- polyglot (>= 0.3.1)
218
- polyglot (>= 0.3.1)
219
- polyglot (>= 0.3.1)
220
- polyglot (>= 0.3.1)
221
- polyglot (>= 0.3.1)
222
- polyglot (>= 0.3.1)
223
- polyglot (>= 0.3.1)
224
- polyglot (>= 0.3.1)
225
- polyglot (>= 0.3.1)
226
- polyglot (>= 0.3.1)
227
- polyglot (>= 0.3.1)
228
- polyglot (>= 0.3.1)
229
- polyglot (>= 0.3.1)
230
- polyglot (>= 0.3.1)
231
- polyglot (>= 0.3.1)
232
- polyglot (>= 0.3.1)
233
- polyglot (>= 0.3.1)
234
- polyglot (>= 0.3.1)
235
- polyglot (>= 0.3.1)
236
- polyglot (>= 0.3.1)
237
- polyglot (>= 0.3.1)
238
- polyglot (>= 0.3.1)
239
- polyglot (>= 0.3.1)
240
- polyglot (>= 0.3.1)
241
- polyglot (>= 0.3.1)
242
- polyglot (>= 0.3.1)
243
- polyglot (>= 0.3.1)
244
- polyglot (>= 0.3.1)
245
- polyglot (>= 0.3.1)
246
- polyglot (>= 0.3.1)
247
- polyglot (>= 0.3.1)
248
- polyglot (>= 0.3.1)
249
- polyglot (>= 0.3.1)
250
- polyglot (>= 0.3.1)
251
- polyglot (>= 0.3.1)
252
- polyglot (>= 0.3.1)
253
- polyglot (>= 0.3.1)
254
- polyglot (>= 0.3.1)
255
- polyglot (>= 0.3.1)
256
- polyglot (>= 0.3.1)
257
- polyglot (>= 0.3.1)
258
- polyglot (>= 0.3.1)
259
- polyglot (>= 0.3.1)
260
- polyglot (>= 0.3.1)
261
- polyglot (>= 0.3.1)
262
- polyglot (>= 0.3.1)
263
- polyglot (>= 0.3.1)
264
- polyglot (>= 0.3.1)
265
- polyglot (>= 0.3.1)
266
- polyglot (>= 0.3.1)
267
- polyglot (>= 0.3.1)
268
- polyglot (>= 0.3.1)
269
- polyglot (>= 0.3.1)
270
- polyglot (>= 0.3.1)
271
- polyglot (>= 0.3.1)
272
- polyglot (>= 0.3.1)
273
- polyglot (>= 0.3.1)
274
- polyglot (>= 0.3.1)
275
- polyglot (>= 0.3.1)
276
- polyglot (>= 0.3.1)
277
- polyglot (>= 0.3.1)
278
- polyglot (>= 0.3.1)
279
- polyglot (>= 0.3.1)
280
- polyglot (>= 0.3.1)
281
- polyglot (>= 0.3.1)
282
- polyglot (>= 0.3.1)
283
- polyglot (>= 0.3.1)
284
- polyglot (>= 0.3.1)
285
- polyglot (>= 0.3.1)
286
- polyglot (>= 0.3.1)
287
- polyglot (>= 0.3.1)
288
- polyglot (>= 0.3.1)
289
- polyglot (>= 0.3.1)
290
- polyglot (>= 0.3.1)
291
- polyglot (>= 0.3.1)
292
110
  polyglot (>= 0.3.1)
293
111
  tzinfo (0.3.42)
294
112
  vcr (2.9.3)
@@ -303,11 +121,8 @@ DEPENDENCIES
303
121
  factory_girl (~> 2.6)
304
122
  faker (~> 1.1.2)
305
123
  fakeweb (~> 1.3.0)
306
- growl (~> 1.0.3)
307
- guard-rspec (~> 2.4.0)
308
124
  pry
309
125
  rails (~> 3.2.14)
310
126
  rake (~> 10.0.3)
311
- rb-fsevent (~> 0.9.2)
312
127
  rspec (~> 2.12.0)
313
128
  vcr
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- chargify_api_ares (1.3.2)
4
+ chargify_api_ares (1.3.3)
5
5
  activeresource (>= 3.2.16)
6
6
 
7
7
  GEM
@@ -43,8 +43,6 @@ GEM
43
43
  thor (>= 0.14.0)
44
44
  arel (5.0.1.20140414130214)
45
45
  builder (3.2.2)
46
- celluloid (0.16.0)
47
- timers (~> 4.0.0)
48
46
  coderay (1.1.0)
49
47
  diff-lcs (1.1.3)
50
48
  dotenv (1.0.2)
@@ -54,27 +52,9 @@ GEM
54
52
  faker (1.1.2)
55
53
  i18n (~> 0.5)
56
54
  fakeweb (1.3.0)
57
- ffi (1.9.6)
58
- formatador (0.2.5)
59
- growl (1.0.3)
60
- guard (2.10.2)
61
- formatador (>= 0.2.4)
62
- listen (~> 2.7)
63
- lumberjack (~> 1.0)
64
- pry (>= 0.9.12)
65
- thor (>= 0.18.1)
66
- guard-rspec (2.4.1)
67
- guard (>= 1.1)
68
- rspec (~> 2.11)
69
55
  hike (1.2.3)
70
- hitimes (1.2.2)
71
56
  i18n (0.6.11)
72
57
  json (1.8.1)
73
- listen (2.8.3)
74
- celluloid (>= 0.15.2)
75
- rb-fsevent (>= 0.9.3)
76
- rb-inotify (>= 0.9)
77
- lumberjack (1.0.9)
78
58
  mail (2.6.3)
79
59
  mime-types (>= 1.16, < 3)
80
60
  method_source (0.8.2)
@@ -106,9 +86,6 @@ GEM
106
86
  rake (>= 0.8.7)
107
87
  thor (>= 0.18.1, < 2.0)
108
88
  rake (10.0.4)
109
- rb-fsevent (0.9.4)
110
- rb-inotify (0.9.5)
111
- ffi (>= 0.5.0)
112
89
  rspec (2.12.0)
113
90
  rspec-core (~> 2.12.0)
114
91
  rspec-expectations (~> 2.12.0)
@@ -130,8 +107,6 @@ GEM
130
107
  thor (0.19.1)
131
108
  thread_safe (0.3.4)
132
109
  tilt (1.4.1)
133
- timers (4.0.1)
134
- hitimes
135
110
  tzinfo (1.2.2)
136
111
  thread_safe (~> 0.1)
137
112
  vcr (2.9.3)
@@ -146,11 +121,8 @@ DEPENDENCIES
146
121
  factory_girl (~> 2.6)
147
122
  faker (~> 1.1.2)
148
123
  fakeweb (~> 1.3.0)
149
- growl (~> 1.0.3)
150
- guard-rspec (~> 2.4.0)
151
124
  pry
152
125
  rails (~> 4.1.0)
153
126
  rake (~> 10.0.3)
154
- rb-fsevent (~> 0.9.2)
155
127
  rspec (~> 2.12.0)
156
128
  vcr
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- chargify_api_ares (1.3.2)
4
+ chargify_api_ares (1.3.3)
5
5
  activeresource (>= 3.2.16)
6
6
 
7
7
  GEM
@@ -41,8 +41,6 @@ GEM
41
41
  thor (>= 0.14.0)
42
42
  arel (4.0.2)
43
43
  builder (3.1.4)
44
- celluloid (0.16.0)
45
- timers (~> 4.0.0)
46
44
  coderay (1.1.0)
47
45
  diff-lcs (1.1.3)
48
46
  dotenv (1.0.2)
@@ -52,26 +50,8 @@ GEM
52
50
  faker (1.1.2)
53
51
  i18n (~> 0.5)
54
52
  fakeweb (1.3.0)
55
- ffi (1.9.6)
56
- formatador (0.2.5)
57
- growl (1.0.3)
58
- guard (2.10.2)
59
- formatador (>= 0.2.4)
60
- listen (~> 2.7)
61
- lumberjack (~> 1.0)
62
- pry (>= 0.9.12)
63
- thor (>= 0.18.1)
64
- guard-rspec (2.4.1)
65
- guard (>= 1.1)
66
- rspec (~> 2.11)
67
53
  hike (1.2.3)
68
- hitimes (1.2.2)
69
54
  i18n (0.6.11)
70
- listen (2.8.3)
71
- celluloid (>= 0.15.2)
72
- rb-fsevent (>= 0.9.3)
73
- rb-inotify (>= 0.9)
74
- lumberjack (1.0.9)
75
55
  mail (2.6.3)
76
56
  mime-types (>= 1.16, < 3)
77
57
  method_source (0.8.2)
@@ -101,9 +81,6 @@ GEM
101
81
  rake (>= 0.8.7)
102
82
  thor (>= 0.18.1, < 2.0)
103
83
  rake (10.0.4)
104
- rb-fsevent (0.9.4)
105
- rb-inotify (0.9.5)
106
- ffi (>= 0.5.0)
107
84
  rspec (2.12.0)
108
85
  rspec-core (~> 2.12.0)
109
86
  rspec-expectations (~> 2.12.0)
@@ -125,8 +102,6 @@ GEM
125
102
  thor (0.19.1)
126
103
  thread_safe (0.3.4)
127
104
  tilt (1.4.1)
128
- timers (4.0.1)
129
- hitimes
130
105
  tzinfo (0.3.42)
131
106
  vcr (2.9.3)
132
107
 
@@ -140,11 +115,8 @@ DEPENDENCIES
140
115
  factory_girl (~> 2.6)
141
116
  faker (~> 1.1.2)
142
117
  fakeweb (~> 1.3.0)
143
- growl (~> 1.0.3)
144
- guard-rspec (~> 2.4.0)
145
118
  pry
146
119
  rails (~> 4.0.0)
147
120
  rake (~> 10.0.3)
148
- rb-fsevent (~> 0.9.2)
149
121
  rspec (~> 2.12.0)
150
122
  vcr