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 +4 -4
- data/README.md +1 -1
- data/lib/recurly/account.rb +8 -0
- data/lib/recurly/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6bb9d947bf4ade1ba41d01af854492a0aaed2c14
|
4
|
+
data.tar.gz: 932f32fbeb55ffe0a0283329b41233884ebbba42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
15
|
+
gem 'recurly', '~> 2.3.4'
|
16
16
|
```
|
17
17
|
|
18
18
|
Recurly will automatically use [Nokogiri](http://nokogiri.org/) (for a nice
|
data/lib/recurly/account.rb
CHANGED
@@ -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
|
data/lib/recurly/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2014-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|