chargify_api_ares 0.3.2 → 0.3.3

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.
data/README.md CHANGED
@@ -46,7 +46,7 @@ $ gem install chargify_api_ares
46
46
 
47
47
  ### Requirements
48
48
 
49
- This library requires ActiveResource version 2.3.4 or 2.3.5.
49
+ This library requires ActiveResource version 2.3.4 or greater.
50
50
 
51
51
  $ gem install activeresource
52
52
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.2
1
+ 0.3.3
@@ -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.2"
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-13}
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 = [
@@ -17,12 +17,12 @@ end
17
17
 
18
18
  # Version check
19
19
  module Chargify
20
- ARES_VERSIONS = ['2.3.4', '2.3.5', '2.3.6', '2.3.7', '2.3.8']
20
+ MIN_VERSION = '2.3.4'
21
21
  end
22
22
  require 'active_resource/version'
23
- unless Chargify::ARES_VERSIONS.include?(ActiveResource::VERSION::STRING)
23
+ unless ActiveResource::VERSION::STRING >= Chargify::MIN_VERSION
24
24
  abort <<-ERROR
25
- ActiveResource version #{Chargify::ARES_VERSIONS.join(' or ')} is required.
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
@@ -6,7 +6,6 @@ describe Chargify::Component do
6
6
  @subscription = Factory(:subscription)
7
7
  @component = Factory(:component)
8
8
  @now = DateTime.now.to_s
9
- puts test_domain
10
9
  end
11
10
 
12
11
  it "should create a usage record" do
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 2
9
- version: 0.3.2
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-13 00:00:00 -04:00
20
+ date: 2010-06-24 00:00:00 -04:00
21
21
  default_executable:
22
22
  dependencies: []
23
23