rspreedly 0.1.15 → 0.1.16

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -20,7 +20,7 @@ spec = Gem::Specification.new do |s|
20
20
 
21
21
  # Change these as appropriate
22
22
  s.name = "rspreedly"
23
- s.version = "0.1.15"
23
+ s.version = "0.1.16"
24
24
  s.summary = "Ruby library for the Spreedly API"
25
25
  s.author = "Richard Livsey"
26
26
  s.email = "richard@livsey.org"
@@ -146,10 +146,10 @@ module RSpreedly
146
146
  end
147
147
 
148
148
  # Give a subscriber a credit (or reduce credit by supplying a negative value (more)
149
- # POST /api/v4[short site name]/subscribers/[subscriber id]/credit.xml
149
+ # POST /api/v4[short site name]/subscribers/[subscriber id]/credits.xml
150
150
  def credit(amount)
151
151
  credit = Credit.new(:amount => amount)
152
- result = api_request(:post, "/subscribers/#{self.customer_id}/credit.xml", :body => credit.to_xml)
152
+ result = api_request(:post, "/subscribers/#{self.customer_id}/credits.xml", :body => credit.to_xml)
153
153
  self.store_credit = (self.store_credit || 0) + amount
154
154
  true
155
155
  end
@@ -193,7 +193,8 @@ module RSpreedly
193
193
  :grace_until, :in_grace_period, :lifetime_subscription,
194
194
  :on_trial, :ready_to_renew, :recurring,
195
195
  :store_credit, :store_credit_currency_code, :subscription_plan_name,
196
- :token, :updated_at, :ready_to_renew_since
196
+ :token, :updated_at, :ready_to_renew_since,
197
+ :invoices
197
198
  ]
198
199
 
199
200
  opts[:exclude] ||= []
data/rspreedly.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{rspreedly}
5
- s.version = "0.1.15"
5
+ s.version = "0.1.16"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Richard Livsey"]
9
- s.date = %q{2011-07-21}
9
+ s.date = %q{2011-08-17}
10
10
  s.email = %q{richard@livsey.org}
11
11
  s.extra_rdoc_files = ["README.rdoc"]
12
12
  s.files = ["LICENSE", "Rakefile", "README.rdoc", "rspreedly.gemspec", "spec/base_spec.rb", "spec/config_spec.rb", "spec/fixtures", "spec/fixtures/complimentary_failed_active.xml", "spec/fixtures/complimentary_failed_inactive.xml", "spec/fixtures/complimentary_not_valid.xml", "spec/fixtures/complimentary_success.xml", "spec/fixtures/create_subscriber.xml", "spec/fixtures/credit_not_valid.xml", "spec/fixtures/credit_success.xml", "spec/fixtures/error.xml", "spec/fixtures/error_string.txt", "spec/fixtures/errors.xml", "spec/fixtures/existing_subscriber.xml", "spec/fixtures/feature_level_blank.xml", "spec/fixtures/free_plan_not_elligable.xml", "spec/fixtures/free_plan_not_free.xml", "spec/fixtures/free_plan_not_set.xml", "spec/fixtures/free_plan_success.xml", "spec/fixtures/invalid_subscriber.xml", "spec/fixtures/invalid_update.xml", "spec/fixtures/invoice_created.xml", "spec/fixtures/invoice_invalid.xml", "spec/fixtures/lifetime_subscription_success.xml", "spec/fixtures/no_plans.xml", "spec/fixtures/no_subscribers.xml", "spec/fixtures/no_transactions.xml", "spec/fixtures/payment_already_paid.xml", "spec/fixtures/payment_invalid.xml", "spec/fixtures/payment_not_found.xml", "spec/fixtures/payment_success.xml", "spec/fixtures/plan_disabled.xml", "spec/fixtures/plan_not_found.xml", "spec/fixtures/subscriber.xml", "spec/fixtures/subscriber_not_found.xml", "spec/fixtures/subscribers.xml", "spec/fixtures/subscription_plan_list.xml", "spec/fixtures/transactions.xml", "spec/invoice_spec.rb", "spec/spec_helper.rb", "spec/subscriber_spec.rb", "spec/subscription_plan_spec.rb", "spec/transaction_spec.rb", "lib/rspreedly", "lib/rspreedly/base.rb", "lib/rspreedly/complimentary_subscription.rb", "lib/rspreedly/complimentary_time_extension.rb", "lib/rspreedly/config.rb", "lib/rspreedly/credit.rb", "lib/rspreedly/error.rb", "lib/rspreedly/invoice.rb", "lib/rspreedly/lifetime_complimentary_subscription.rb", "lib/rspreedly/line_item.rb", "lib/rspreedly/payment_method.rb", "lib/rspreedly/subscriber.rb", "lib/rspreedly/subscription_plan.rb", "lib/rspreedly/transaction.rb", "lib/rspreedly.rb"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspreedly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.15
4
+ version: 0.1.16
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,12 +9,12 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-07-21 00:00:00.000000000 +01:00
12
+ date: 2011-08-17 00:00:00.000000000 +03:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: httparty
17
- requirement: &2164641520 !ruby/object:Gem::Requirement
17
+ requirement: &2156234480 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 0.5.0
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2164641520
25
+ version_requirements: *2156234480
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: rspec
28
- requirement: &2164640940 !ruby/object:Gem::Requirement
28
+ requirement: &2156232940 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
- version_requirements: *2164640940
36
+ version_requirements: *2156232940
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: webmock
39
- requirement: &2164640420 !ruby/object:Gem::Requirement
39
+ requirement: &2156231660 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,7 +44,7 @@ dependencies:
44
44
  version: '0'
45
45
  type: :development
46
46
  prerelease: false
47
- version_requirements: *2164640420
47
+ version_requirements: *2156231660
48
48
  description:
49
49
  email: richard@livsey.org
50
50
  executables: []