chargify_api_ares 1.3.0 → 1.3.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 48e64563d9deb05bde8aa0d73e6b26ca0d3a85da
4
- data.tar.gz: c25bfbc8d20991140071e2a5f99be2c399f095e7
3
+ metadata.gz: 9f9213ec824f1ee7c2a35e641fb313ae36fc2e77
4
+ data.tar.gz: aa6fcc1c79d21bb64a9ce44054b9e60f2afbe4ce
5
5
  SHA512:
6
- metadata.gz: 76ea7196b907b827ff34e7d40b874f256a2848ea5c7f9ae72a4e1bd7d75eb5da955b8d83082656c53cae8fe1e91563467f683e6b58b35207b18a09a699c0b6e7
7
- data.tar.gz: b930750ef0e56496b650c84bcaf8c597f4dff0f7b522d42e1a00bb2c172eb89ea3fef09ae938f38376bd3771c060ee1fbd2f4c35dad6854618e8332f3322b127
6
+ metadata.gz: 3206b4db9d7f546698dd91438a2dfdf74881854f73d28c8afb68203bae95b060b37f3d73aea7f7c977a5c7ae09a627bb15cac323343082c028139cdc1cbf8daa
7
+ data.tar.gz: 3248a345d6bb9b7a24bd230e11599b86383f0fa3b4960487eabcee9e622c63e5ed78ccf7bfbfa05cca50a93b85c3b6c7bdf15df4dda7f10b00aab735e5018ad6
data/.travis.yml CHANGED
@@ -16,3 +16,8 @@ matrix:
16
16
  - rvm: ruby-head
17
17
  - rvm: rbx-2
18
18
  fast_finish: true
19
+
20
+ gemfile:
21
+ - gemfiles/rails_3.gemfile
22
+ - gemfiles/rails_4.gemfile
23
+ - gemfiles/rails_4.1.gemfile
data/Appraisals ADDED
@@ -0,0 +1,11 @@
1
+ appraise "rails-3" do
2
+ gem "rails", "~> 3.2.14"
3
+ end
4
+
5
+ appraise "rails-4" do
6
+ gem "rails", "~> 4.0.0"
7
+ end
8
+
9
+ appraise "rails-4.1" do
10
+ gem "rails", "~> 4.1.0"
11
+ end
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- chargify_api_ares (1.3.0)
4
+ chargify_api_ares (1.3.1)
5
5
  activeresource (>= 3.2.16)
6
6
 
7
7
  GEM
@@ -16,6 +16,10 @@ GEM
16
16
  activesupport (3.2.19)
17
17
  i18n (~> 0.6, >= 0.6.4)
18
18
  multi_json (~> 1.0)
19
+ appraisal (1.0.2)
20
+ bundler
21
+ rake
22
+ thor (>= 0.14.0)
19
23
  builder (3.0.4)
20
24
  coderay (1.0.8)
21
25
  diff-lcs (1.1.3)
@@ -65,6 +69,7 @@ PLATFORMS
65
69
  ruby
66
70
 
67
71
  DEPENDENCIES
72
+ appraisal
68
73
  chargify_api_ares!
69
74
  dotenv
70
75
  factory_girl (~> 2.6)
data/HISTORY.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.3.1 / Dec 15 2014
2
+
3
+ * Update metadata / metafield endpoints to work with activeresource 4+
4
+
1
5
  ## 1.1.0 / Aug 20 2014
2
6
 
3
7
  * Added cancellation message option for subscription canceling
data/Rakefile CHANGED
@@ -12,4 +12,5 @@ namespace :spec do
12
12
  end
13
13
  end
14
14
 
15
+ task :test => :spec
15
16
  task :default => :spec
@@ -4,8 +4,8 @@ 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.0'
8
- s.date = '2014-10-19'
7
+ s.version = '1.3.1'
8
+ s.date = '2014-12-15'
9
9
  s.summary = 'A Chargify API wrapper for Ruby using ActiveResource'
10
10
  s.description = ''
11
11
  s.authors = ["Michael Klett", "Nathan Verni", "Jeremy W. Rowe", "Eric Farkas"]
@@ -31,4 +31,5 @@ Gem::Specification.new do |s|
31
31
  s.add_development_dependency('pry')
32
32
  s.add_development_dependency('vcr')
33
33
  s.add_development_dependency('dotenv')
34
+ s.add_development_dependency('appraisal')
34
35
  end
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 3.2.14"
6
+
7
+ gemspec :path => "../"
@@ -0,0 +1,313 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ chargify_api_ares (1.3.0)
5
+ activeresource (>= 3.2.16)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actionmailer (3.2.21)
11
+ actionpack (= 3.2.21)
12
+ mail (~> 2.5.4)
13
+ actionpack (3.2.21)
14
+ activemodel (= 3.2.21)
15
+ activesupport (= 3.2.21)
16
+ builder (~> 3.0.0)
17
+ erubis (~> 2.7.0)
18
+ journey (~> 1.0.4)
19
+ rack (~> 1.4.5)
20
+ rack-cache (~> 1.2)
21
+ rack-test (~> 0.6.1)
22
+ sprockets (~> 2.2.1)
23
+ activemodel (3.2.21)
24
+ activesupport (= 3.2.21)
25
+ builder (~> 3.0.0)
26
+ activerecord (3.2.21)
27
+ activemodel (= 3.2.21)
28
+ activesupport (= 3.2.21)
29
+ arel (~> 3.0.2)
30
+ tzinfo (~> 0.3.29)
31
+ activeresource (3.2.21)
32
+ activemodel (= 3.2.21)
33
+ activesupport (= 3.2.21)
34
+ activesupport (3.2.21)
35
+ i18n (~> 0.6, >= 0.6.4)
36
+ multi_json (~> 1.0)
37
+ appraisal (1.0.2)
38
+ bundler
39
+ rake
40
+ thor (>= 0.14.0)
41
+ arel (3.0.3)
42
+ builder (3.0.4)
43
+ celluloid (0.16.0)
44
+ timers (~> 4.0.0)
45
+ coderay (1.1.0)
46
+ diff-lcs (1.1.3)
47
+ dotenv (1.0.2)
48
+ erubis (2.7.0)
49
+ factory_girl (2.6.4)
50
+ activesupport (>= 2.3.9)
51
+ faker (1.1.2)
52
+ i18n (~> 0.5)
53
+ 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
+ hike (1.2.3)
67
+ hitimes (1.2.2)
68
+ i18n (0.6.11)
69
+ journey (1.0.4)
70
+ 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
+ mail (2.5.4)
77
+ mime-types (~> 1.16)
78
+ treetop (~> 1.4.8)
79
+ method_source (0.8.2)
80
+ mime-types (1.25.1)
81
+ multi_json (1.10.1)
82
+ polyglot (0.3.5)
83
+ pry (0.10.1)
84
+ coderay (~> 1.1.0)
85
+ method_source (~> 0.8.1)
86
+ slop (~> 3.4)
87
+ rack (1.4.5)
88
+ rack-cache (1.2)
89
+ rack (>= 0.4)
90
+ rack-ssl (1.3.4)
91
+ rack
92
+ rack-test (0.6.2)
93
+ rack (>= 1.0)
94
+ rails (3.2.21)
95
+ actionmailer (= 3.2.21)
96
+ actionpack (= 3.2.21)
97
+ activerecord (= 3.2.21)
98
+ activeresource (= 3.2.21)
99
+ activesupport (= 3.2.21)
100
+ bundler (~> 1.0)
101
+ railties (= 3.2.21)
102
+ railties (3.2.21)
103
+ actionpack (= 3.2.21)
104
+ activesupport (= 3.2.21)
105
+ rack-ssl (~> 1.3.2)
106
+ rake (>= 0.8.7)
107
+ rdoc (~> 3.4)
108
+ thor (>= 0.14.6, < 2.0)
109
+ rake (10.0.4)
110
+ rb-fsevent (0.9.4)
111
+ rb-inotify (0.9.5)
112
+ ffi (>= 0.5.0)
113
+ rdoc (3.12.2)
114
+ json (~> 1.4)
115
+ rspec (2.12.0)
116
+ rspec-core (~> 2.12.0)
117
+ rspec-expectations (~> 2.12.0)
118
+ rspec-mocks (~> 2.12.0)
119
+ rspec-core (2.12.2)
120
+ rspec-expectations (2.12.1)
121
+ diff-lcs (~> 1.1.3)
122
+ rspec-mocks (2.12.2)
123
+ slop (3.6.0)
124
+ sprockets (2.2.3)
125
+ hike (~> 1.2)
126
+ multi_json (~> 1.0)
127
+ rack (~> 1.0)
128
+ tilt (~> 1.1, != 1.3.0)
129
+ thor (0.19.1)
130
+ tilt (1.4.1)
131
+ timers (4.0.1)
132
+ hitimes
133
+ treetop (1.4.15)
134
+ 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
+ polyglot (>= 0.3.1)
293
+ tzinfo (0.3.42)
294
+ vcr (2.9.3)
295
+
296
+ PLATFORMS
297
+ ruby
298
+
299
+ DEPENDENCIES
300
+ appraisal
301
+ chargify_api_ares!
302
+ dotenv
303
+ factory_girl (~> 2.6)
304
+ faker (~> 1.1.2)
305
+ fakeweb (~> 1.3.0)
306
+ growl (~> 1.0.3)
307
+ guard-rspec (~> 2.4.0)
308
+ pry
309
+ rails (~> 3.2.14)
310
+ rake (~> 10.0.3)
311
+ rb-fsevent (~> 0.9.2)
312
+ rspec (~> 2.12.0)
313
+ vcr
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 4.1.0"
6
+
7
+ gemspec :path => "../"
@@ -0,0 +1,156 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ chargify_api_ares (1.3.0)
5
+ activeresource (>= 3.2.16)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actionmailer (4.1.6)
11
+ actionpack (= 4.1.6)
12
+ actionview (= 4.1.6)
13
+ mail (~> 2.5, >= 2.5.4)
14
+ actionpack (4.1.6)
15
+ actionview (= 4.1.6)
16
+ activesupport (= 4.1.6)
17
+ rack (~> 1.5.2)
18
+ rack-test (~> 0.6.2)
19
+ actionview (4.1.6)
20
+ activesupport (= 4.1.6)
21
+ builder (~> 3.1)
22
+ erubis (~> 2.7.0)
23
+ activemodel (4.1.6)
24
+ activesupport (= 4.1.6)
25
+ builder (~> 3.1)
26
+ activerecord (4.1.6)
27
+ activemodel (= 4.1.6)
28
+ activesupport (= 4.1.6)
29
+ arel (~> 5.0.0)
30
+ activeresource (4.0.0)
31
+ activemodel (~> 4.0)
32
+ activesupport (~> 4.0)
33
+ rails-observers (~> 0.1.1)
34
+ activesupport (4.1.6)
35
+ i18n (~> 0.6, >= 0.6.9)
36
+ json (~> 1.7, >= 1.7.7)
37
+ minitest (~> 5.1)
38
+ thread_safe (~> 0.1)
39
+ tzinfo (~> 1.1)
40
+ appraisal (1.0.2)
41
+ bundler
42
+ rake
43
+ thor (>= 0.14.0)
44
+ arel (5.0.1.20140414130214)
45
+ builder (3.2.2)
46
+ celluloid (0.16.0)
47
+ timers (~> 4.0.0)
48
+ coderay (1.1.0)
49
+ diff-lcs (1.1.3)
50
+ dotenv (1.0.2)
51
+ erubis (2.7.0)
52
+ factory_girl (2.6.4)
53
+ activesupport (>= 2.3.9)
54
+ faker (1.1.2)
55
+ i18n (~> 0.5)
56
+ 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
+ hike (1.2.3)
70
+ hitimes (1.2.2)
71
+ i18n (0.6.11)
72
+ 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
+ mail (2.6.3)
79
+ mime-types (>= 1.16, < 3)
80
+ method_source (0.8.2)
81
+ mime-types (2.4.3)
82
+ minitest (5.4.1)
83
+ multi_json (1.10.1)
84
+ pry (0.10.1)
85
+ coderay (~> 1.1.0)
86
+ method_source (~> 0.8.1)
87
+ slop (~> 3.4)
88
+ rack (1.5.2)
89
+ rack-test (0.6.2)
90
+ rack (>= 1.0)
91
+ rails (4.1.6)
92
+ actionmailer (= 4.1.6)
93
+ actionpack (= 4.1.6)
94
+ actionview (= 4.1.6)
95
+ activemodel (= 4.1.6)
96
+ activerecord (= 4.1.6)
97
+ activesupport (= 4.1.6)
98
+ bundler (>= 1.3.0, < 2.0)
99
+ railties (= 4.1.6)
100
+ sprockets-rails (~> 2.0)
101
+ rails-observers (0.1.2)
102
+ activemodel (~> 4.0)
103
+ railties (4.1.6)
104
+ actionpack (= 4.1.6)
105
+ activesupport (= 4.1.6)
106
+ rake (>= 0.8.7)
107
+ thor (>= 0.18.1, < 2.0)
108
+ rake (10.0.4)
109
+ rb-fsevent (0.9.4)
110
+ rb-inotify (0.9.5)
111
+ ffi (>= 0.5.0)
112
+ rspec (2.12.0)
113
+ rspec-core (~> 2.12.0)
114
+ rspec-expectations (~> 2.12.0)
115
+ rspec-mocks (~> 2.12.0)
116
+ rspec-core (2.12.2)
117
+ rspec-expectations (2.12.1)
118
+ diff-lcs (~> 1.1.3)
119
+ rspec-mocks (2.12.2)
120
+ slop (3.6.0)
121
+ sprockets (2.12.3)
122
+ hike (~> 1.2)
123
+ multi_json (~> 1.0)
124
+ rack (~> 1.0)
125
+ tilt (~> 1.1, != 1.3.0)
126
+ sprockets-rails (2.2.2)
127
+ actionpack (>= 3.0)
128
+ activesupport (>= 3.0)
129
+ sprockets (>= 2.8, < 4.0)
130
+ thor (0.19.1)
131
+ thread_safe (0.3.4)
132
+ tilt (1.4.1)
133
+ timers (4.0.1)
134
+ hitimes
135
+ tzinfo (1.2.2)
136
+ thread_safe (~> 0.1)
137
+ vcr (2.9.3)
138
+
139
+ PLATFORMS
140
+ ruby
141
+
142
+ DEPENDENCIES
143
+ appraisal
144
+ chargify_api_ares!
145
+ dotenv
146
+ factory_girl (~> 2.6)
147
+ faker (~> 1.1.2)
148
+ fakeweb (~> 1.3.0)
149
+ growl (~> 1.0.3)
150
+ guard-rspec (~> 2.4.0)
151
+ pry
152
+ rails (~> 4.1.0)
153
+ rake (~> 10.0.3)
154
+ rb-fsevent (~> 0.9.2)
155
+ rspec (~> 2.12.0)
156
+ vcr
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 4.0.0"
6
+
7
+ gemspec :path => "../"
@@ -0,0 +1,150 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ chargify_api_ares (1.3.0)
5
+ activeresource (>= 3.2.16)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actionmailer (4.0.12)
11
+ actionpack (= 4.0.12)
12
+ mail (~> 2.5, >= 2.5.4)
13
+ actionpack (4.0.12)
14
+ activesupport (= 4.0.12)
15
+ builder (~> 3.1.0)
16
+ erubis (~> 2.7.0)
17
+ rack (~> 1.5.2)
18
+ rack-test (~> 0.6.2)
19
+ activemodel (4.0.12)
20
+ activesupport (= 4.0.12)
21
+ builder (~> 3.1.0)
22
+ activerecord (4.0.12)
23
+ activemodel (= 4.0.12)
24
+ activerecord-deprecated_finders (~> 1.0.2)
25
+ activesupport (= 4.0.12)
26
+ arel (~> 4.0.0)
27
+ activerecord-deprecated_finders (1.0.3)
28
+ activeresource (4.0.0)
29
+ activemodel (~> 4.0)
30
+ activesupport (~> 4.0)
31
+ rails-observers (~> 0.1.1)
32
+ activesupport (4.0.12)
33
+ i18n (~> 0.6, >= 0.6.9)
34
+ minitest (~> 4.2)
35
+ multi_json (~> 1.3)
36
+ thread_safe (~> 0.1)
37
+ tzinfo (~> 0.3.37)
38
+ appraisal (1.0.2)
39
+ bundler
40
+ rake
41
+ thor (>= 0.14.0)
42
+ arel (4.0.2)
43
+ builder (3.1.4)
44
+ celluloid (0.16.0)
45
+ timers (~> 4.0.0)
46
+ coderay (1.1.0)
47
+ diff-lcs (1.1.3)
48
+ dotenv (1.0.2)
49
+ erubis (2.7.0)
50
+ factory_girl (2.6.4)
51
+ activesupport (>= 2.3.9)
52
+ faker (1.1.2)
53
+ i18n (~> 0.5)
54
+ 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
+ hike (1.2.3)
68
+ hitimes (1.2.2)
69
+ 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
+ mail (2.6.3)
76
+ mime-types (>= 1.16, < 3)
77
+ method_source (0.8.2)
78
+ mime-types (2.4.3)
79
+ minitest (4.7.5)
80
+ multi_json (1.10.1)
81
+ pry (0.10.1)
82
+ coderay (~> 1.1.0)
83
+ method_source (~> 0.8.1)
84
+ slop (~> 3.4)
85
+ rack (1.5.2)
86
+ rack-test (0.6.2)
87
+ rack (>= 1.0)
88
+ rails (4.0.12)
89
+ actionmailer (= 4.0.12)
90
+ actionpack (= 4.0.12)
91
+ activerecord (= 4.0.12)
92
+ activesupport (= 4.0.12)
93
+ bundler (>= 1.3.0, < 2.0)
94
+ railties (= 4.0.12)
95
+ sprockets-rails (~> 2.0)
96
+ rails-observers (0.1.2)
97
+ activemodel (~> 4.0)
98
+ railties (4.0.12)
99
+ actionpack (= 4.0.12)
100
+ activesupport (= 4.0.12)
101
+ rake (>= 0.8.7)
102
+ thor (>= 0.18.1, < 2.0)
103
+ rake (10.0.4)
104
+ rb-fsevent (0.9.4)
105
+ rb-inotify (0.9.5)
106
+ ffi (>= 0.5.0)
107
+ rspec (2.12.0)
108
+ rspec-core (~> 2.12.0)
109
+ rspec-expectations (~> 2.12.0)
110
+ rspec-mocks (~> 2.12.0)
111
+ rspec-core (2.12.2)
112
+ rspec-expectations (2.12.1)
113
+ diff-lcs (~> 1.1.3)
114
+ rspec-mocks (2.12.2)
115
+ slop (3.6.0)
116
+ sprockets (2.12.3)
117
+ hike (~> 1.2)
118
+ multi_json (~> 1.0)
119
+ rack (~> 1.0)
120
+ tilt (~> 1.1, != 1.3.0)
121
+ sprockets-rails (2.2.2)
122
+ actionpack (>= 3.0)
123
+ activesupport (>= 3.0)
124
+ sprockets (>= 2.8, < 4.0)
125
+ thor (0.19.1)
126
+ thread_safe (0.3.4)
127
+ tilt (1.4.1)
128
+ timers (4.0.1)
129
+ hitimes
130
+ tzinfo (0.3.42)
131
+ vcr (2.9.3)
132
+
133
+ PLATFORMS
134
+ ruby
135
+
136
+ DEPENDENCIES
137
+ appraisal
138
+ chargify_api_ares!
139
+ dotenv
140
+ factory_girl (~> 2.6)
141
+ faker (~> 1.1.2)
142
+ fakeweb (~> 1.3.0)
143
+ growl (~> 1.0.3)
144
+ guard-rspec (~> 2.4.0)
145
+ pry
146
+ rails (~> 4.0.0)
147
+ rake (~> 10.0.3)
148
+ rb-fsevent (~> 0.9.2)
149
+ rspec (~> 2.12.0)
150
+ vcr
@@ -43,8 +43,14 @@ module Chargify
43
43
  (class << self; self; end).send(:define_method, :element_name) do; name; end
44
44
  end
45
45
 
46
- def instantiate_collection(collection, prefix_options = {})
47
- collection[self.resource].collect! { |record| instantiate_record(record, prefix_options) }
46
+ if ActiveResource::VERSION::MAJOR > 3
47
+ def instantiate_collection(collection, original_params = {}, prefix_options = {})
48
+ collection[self.resource].collect! { |record| instantiate_record(record, prefix_options) }
49
+ end
50
+ else
51
+ def instantiate_collection(collection, prefix_options = {})
52
+ collection[self.resource].collect! { |record| instantiate_record(record, prefix_options) }
53
+ end
48
54
  end
49
55
 
50
56
  def instantiate_record(record, prefix_options = {})
@@ -168,6 +168,11 @@ module Chargify
168
168
  attrs.merge!(:payment_id => self.id)
169
169
  Subscription.find(self.prefix_options[:subscription_id]).refund(attrs)
170
170
  end
171
+
172
+ class Taxation < Base
173
+ class TaxRule < Base
174
+ end
175
+ end
171
176
  end
172
177
  end
173
178
  end
@@ -28,27 +28,33 @@ describe Chargify::Subscription::Component, :fake_resource do
28
28
  FakeWeb.register_uri(:get, "#{test_domain}/subscriptions/#{@subscription.id}.xml", :body => @subscription.to_xml)
29
29
  FakeWeb.register_uri(:get, "#{test_domain}/subscriptions/#{@subscription.id}/components.xml", :body => @subscriptions_components.to_xml(:root => 'components'))
30
30
  end
31
-
31
+
32
32
  it "returns an array of components from Chargify::Subscription::Component.find(:all, :params => {:subscription_id => @subscription.id})" do
33
- Chargify::Subscription::Component.find(:all, :params => {:subscription_id => @subscription.id}).should == @subscriptions_components
33
+ expected = @subscriptions_components
34
+ actual = Chargify::Subscription::Component.find(:all, :params => {:subscription_id => @subscription.id})
35
+ actual = actual.elements if actual.respond_to?(:elements)
36
+ expect(actual).to eql(expected)
34
37
  end
35
38
 
36
39
  it "returns an array of components from Chargify::Subscription.find(2).components" do
37
40
  subscription = Chargify::Subscription.find(@subscription.id)
38
- subscription.components.should == @subscriptions_components
41
+ expected = @subscriptions_components
42
+ actual = subscription.components
43
+ actual = actual.elements if actual.respond_to?(:elements)
44
+ expect(actual).to eql(expected)
39
45
  end
40
46
  end
41
-
47
+
42
48
  describe "reading a subscription component" do
43
49
  before(:each) do
44
50
  FakeWeb.register_uri(:get, "#{test_domain}/subscriptions/#{@subscription.id}.xml", :body => @subscription.to_xml)
45
51
  FakeWeb.register_uri(:get, "#{test_domain}/subscriptions/#{@subscription.id}/components/#{@sc1.component_id}.xml", :body => @sc1.to_xml)
46
52
  end
47
-
53
+
48
54
  it "returns the subscription's component resource from Chargify::Subscription::Component.find(1, :params => {:subscription_id => 1})" do
49
55
  Chargify::Subscription::Component.find(@sc1.component_id, :params => {:subscription_id => @subscription.id}).should == @sc1
50
56
  end
51
-
57
+
52
58
  it "returns the subscription's component resource from Chargify::Subscription.find(1).component(1)" do
53
59
  subscription = Chargify::Subscription.find(@subscription.id)
54
60
  subscription.component(@sc1.component_id).should == @sc1
@@ -58,7 +64,7 @@ describe Chargify::Subscription::Component, :fake_resource do
58
64
  describe "updating a subscription component" do
59
65
  before(:each) do
60
66
  @new_allocated_quantity = @sc1.allocated_quantity + 5
61
-
67
+
62
68
  FakeWeb.register_uri(:get, "#{test_domain}/subscriptions/#{@subscription.id}.xml", :body => @subscription.to_xml)
63
69
  FakeWeb.register_uri(:get, "#{test_domain}/subscriptions/#{@subscription.id}/components/#{@sc1.component_id}.xml", :body => @sc1.to_xml)
64
70
 
@@ -68,14 +74,14 @@ describe Chargify::Subscription::Component, :fake_resource do
68
74
  FakeWeb.register_uri(:put, "#{test_domain}/subscriptions/#{@subscription.id}/components/#{@sc1.component_id}.xml", :body => @sc1_prime.to_xml)
69
75
  FakeWeb.register_uri(:get, "#{test_domain}/subscriptions/#{@subscription.id}/components/#{@sc1.component_id}.xml", :body => @sc1_prime.to_xml)
70
76
  end
71
-
77
+
72
78
  it "updates the subscription's component allocated quantity" do
73
79
  component = Chargify::Subscription::Component.find(@sc1.component_id, :params => {:subscription_id => @subscription.id})
74
80
  component.allocated_quantity = @new_allocated_quantity
75
81
 
76
82
  result = component.save
77
83
  result.should be_true
78
-
84
+
79
85
  Chargify::Subscription::Component.find(@sc1.component_id, :params => {:subscription_id => @subscription.id}).should == @sc1_prime
80
86
  end
81
87
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chargify_api_ares
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Klett
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2014-10-19 00:00:00.000000000 Z
14
+ date: 2014-12-15 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activeresource
@@ -181,6 +181,20 @@ dependencies:
181
181
  - - ">="
182
182
  - !ruby/object:Gem::Version
183
183
  version: '0'
184
+ - !ruby/object:Gem::Dependency
185
+ name: appraisal
186
+ requirement: !ruby/object:Gem::Requirement
187
+ requirements:
188
+ - - ">="
189
+ - !ruby/object:Gem::Version
190
+ version: '0'
191
+ type: :development
192
+ prerelease: false
193
+ version_requirements: !ruby/object:Gem::Requirement
194
+ requirements:
195
+ - - ">="
196
+ - !ruby/object:Gem::Version
197
+ version: '0'
184
198
  description: ''
185
199
  email: support@chargify.com
186
200
  executables: []
@@ -191,6 +205,7 @@ files:
191
205
  - ".gitignore"
192
206
  - ".rspec"
193
207
  - ".travis.yml"
208
+ - Appraisals
194
209
  - Gemfile
195
210
  - Gemfile.lock
196
211
  - Guardfile
@@ -210,6 +225,12 @@ files:
210
225
  - examples/renewal_preview.rb
211
226
  - examples/subscriptions.rb
212
227
  - examples/transactions.rb
228
+ - gemfiles/rails_3.gemfile
229
+ - gemfiles/rails_3.gemfile.lock
230
+ - gemfiles/rails_4.1.gemfile
231
+ - gemfiles/rails_4.1.gemfile.lock
232
+ - gemfiles/rails_4.gemfile
233
+ - gemfiles/rails_4.gemfile.lock
213
234
  - lib/chargify_api_ares.rb
214
235
  - lib/chargify_api_ares/behaviors/inspectable.rb
215
236
  - lib/chargify_api_ares/behaviors/metadata.rb