stripe 1.7.1 → 1.7.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stripe (1.7.1)
4
+ stripe (1.7.2)
5
5
  multi_json (~> 1.1)
6
6
  rest-client (~> 1.4)
7
7
 
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 1.7.2 2012-08-31
2
+
3
+ * Add support for new pay and update methods for Invoice objects
4
+
1
5
  === 1.7.1 2012-08-15
2
6
 
3
7
  * Add new Account API resource
data/README.rdoc CHANGED
@@ -1,4 +1,4 @@
1
- = Stripe Ruby bindings
1
+ = Stripe Ruby bindings {<img src="https://gemnasium.com/stripe/stripe-ruby.png" alt="Dependency Status" />}[https://gemnasium.com/stripe/stripe-ruby]
2
2
 
3
3
  == Installation
4
4
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.7.1
1
+ 1.7.2
@@ -1,16 +1,27 @@
1
1
  module Stripe
2
2
  class Invoice < APIResource
3
3
  include Stripe::APIOperations::List
4
+ include Stripe::APIOperations::Update
4
5
 
5
6
  def self.upcoming(params)
6
7
  response, api_key = Stripe.request(:get, upcoming_url, @api_key, params)
7
8
  Util.convert_to_stripe_object(response, api_key)
8
9
  end
9
10
 
11
+ def pay
12
+ response, api_key = Stripe.request(:post, pay_url, @api_key)
13
+ refresh_from(response, api_key)
14
+ self
15
+ end
16
+
10
17
  private
11
18
 
12
19
  def self.upcoming_url
13
20
  url + '/upcoming'
14
21
  end
22
+
23
+ def pay_url
24
+ url + '/pay'
25
+ end
15
26
  end
16
27
  end
@@ -1,3 +1,3 @@
1
1
  module Stripe
2
- VERSION = '1.7.1'
2
+ VERSION = '1.7.2'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stripe
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 7
9
- - 1
10
- version: 1.7.1
9
+ - 2
10
+ version: 1.7.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ross Boucher
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-08-17 00:00:00 Z
19
+ date: 2012-08-31 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  type: :runtime