recurly 2.3.3 → 2.3.4

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of recurly might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6482bc17f6c22a3d01e1b0c3ec61b56c5f105674
4
- data.tar.gz: 056afe083b350e3624f8dffbf9dd5bacd545a32e
3
+ metadata.gz: 6bb9d947bf4ade1ba41d01af854492a0aaed2c14
4
+ data.tar.gz: 932f32fbeb55ffe0a0283329b41233884ebbba42
5
5
  SHA512:
6
- metadata.gz: fb8d75b080de1bad9fefdbf2ea6193550c2b64f44e5490872fedd958f8b76677d448760a39e8721ef043328c55f83e0899b419b1008b64a4649493c288b4931d
7
- data.tar.gz: ec7c2244eb4408f2bbd8dada7251eb3b2a82fd8b22086b736b1508121fbe053b18caaac6abffb5ad82fa178f4388eacd74d493ba078a01633a7bf9cd5c1f250b
6
+ metadata.gz: 11495e4a90f61e568b5b4fda91a19b874d22fae871fc18ff0116907f3999bd29263104394267958c32cd79b331e3d1449050397edb698f87b7c46dfe7575a913
7
+ data.tar.gz: 874619eb79b2875b69efe9dcac271c1b1a9ae625da96d9ac7979727ccf9ab9793408dfebd74a031c72b2e76e64eb6de1b5824562316cc0f03bfbe3a6412c33ad
data/README.md CHANGED
@@ -12,7 +12,7 @@ Recurly is packaged as a Ruby gem. We recommend you install it with
12
12
  [Bundler](http://gembundler.com/) by adding the following line to your Gemfile:
13
13
 
14
14
  ``` ruby
15
- gem 'recurly', '~> 2.3.3'
15
+ gem 'recurly', '~> 2.3.4'
16
16
  ```
17
17
 
18
18
  Recurly will automatically use [Nokogiri](http://nokogiri.org/) (for a nice
@@ -49,6 +49,14 @@ module Recurly
49
49
  raise Invalid, e.message
50
50
  end
51
51
 
52
+ # @return [Invoice] The newly-built invoice that has not been persisted.
53
+ # @raise [Invalid] Raised if the account cannot be invoiced.
54
+ def build_invoice
55
+ Invoice.from_response API.post("#{invoices.uri}/preview")
56
+ rescue Recurly::API::UnprocessableEntity => e
57
+ raise Invalid, e.message
58
+ end
59
+
52
60
  # Reopen an account.
53
61
  #
54
62
  # @return [true, false] +true+ when successful, +false+ when unable to
@@ -2,7 +2,7 @@ module Recurly
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 3
5
- PATCH = 3
5
+ PATCH = 4
6
6
  PRE = nil
7
7
 
8
8
  VERSION = [MAJOR, MINOR, PATCH, PRE].compact.join('.').freeze
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recurly
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.3
4
+ version: 2.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Recurly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-29 00:00:00.000000000 Z
11
+ date: 2014-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake