chargify_api_ares 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/VERSION +1 -1
- data/chargify_api_ares.gemspec +2 -2
- data/lib/chargify_api_ares.rb +11 -3
- data/spec/components_spec.rb +0 -1
- metadata +3 -3
data/README.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.3
|
data/chargify_api_ares.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{chargify_api_ares}
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Michael Klett", "The Lab Rats @ Phase Two Labs", "Brian Rose", "Nathan Verni"]
|
12
|
-
s.date = %q{2010-06-
|
12
|
+
s.date = %q{2010-06-24}
|
13
13
|
s.description = %q{}
|
14
14
|
s.email = %q{mklett@grasshopper.com}
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/chargify_api_ares.rb
CHANGED
@@ -17,12 +17,12 @@ end
|
|
17
17
|
|
18
18
|
# Version check
|
19
19
|
module Chargify
|
20
|
-
|
20
|
+
MIN_VERSION = '2.3.4'
|
21
21
|
end
|
22
22
|
require 'active_resource/version'
|
23
|
-
unless
|
23
|
+
unless ActiveResource::VERSION::STRING >= Chargify::MIN_VERSION
|
24
24
|
abort <<-ERROR
|
25
|
-
ActiveResource version #{Chargify::
|
25
|
+
ActiveResource version #{Chargify::MIN_VERSION} or greater is required.
|
26
26
|
ERROR
|
27
27
|
end
|
28
28
|
|
@@ -121,6 +121,10 @@ module Chargify
|
|
121
121
|
post :charges, :charge => attrs
|
122
122
|
end
|
123
123
|
|
124
|
+
def transactions()
|
125
|
+
Transaction.find(:all, :params =>{:subscription_id => self.id})
|
126
|
+
end
|
127
|
+
|
124
128
|
class Component < Base
|
125
129
|
# All Subscription Components are considered already existing records, but the id isn't used
|
126
130
|
def id
|
@@ -149,4 +153,8 @@ module Chargify
|
|
149
153
|
|
150
154
|
class Component < Base
|
151
155
|
end
|
156
|
+
|
157
|
+
class Transaction < Base
|
158
|
+
end
|
159
|
+
|
152
160
|
end
|
data/spec/components_spec.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 3
|
8
|
-
-
|
9
|
-
version: 0.3.
|
8
|
+
- 3
|
9
|
+
version: 0.3.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Michael Klett
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2010-06-
|
20
|
+
date: 2010-06-24 00:00:00 -04:00
|
21
21
|
default_executable:
|
22
22
|
dependencies: []
|
23
23
|
|