recurly 2.3.0 → 2.3.1
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.
- data/README.md +1 -1
- data/lib/recurly/subscription.rb +2 -4
- data/lib/recurly/version.rb +1 -1
- metadata +21 -13
- checksums.yaml +0 -15
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.1'
|
16
16
|
```
|
17
17
|
|
18
18
|
Recurly will automatically use [Nokogiri](http://nokogiri.org/) (for a nice
|
data/lib/recurly/subscription.rb
CHANGED
@@ -2,8 +2,6 @@ module Recurly
|
|
2
2
|
class Subscription < Resource
|
3
3
|
autoload :AddOns, 'recurly/subscription/add_ons'
|
4
4
|
|
5
|
-
class NotPreviewableError < StandardError; end
|
6
|
-
|
7
5
|
# @macro [attach] scope
|
8
6
|
# @scope class
|
9
7
|
# @return [Pager<Subscription>] A pager that yields +$1+ subscriptions.
|
@@ -31,6 +29,7 @@ module Recurly
|
|
31
29
|
uuid
|
32
30
|
state
|
33
31
|
unit_amount_in_cents
|
32
|
+
cost_in_cents
|
34
33
|
currency
|
35
34
|
quantity
|
36
35
|
activated_at
|
@@ -44,6 +43,7 @@ module Recurly
|
|
44
43
|
subscription_add_ons
|
45
44
|
coupon_code
|
46
45
|
total_billing_cycles
|
46
|
+
remaining_billing_cycles
|
47
47
|
net_terms
|
48
48
|
collection_method
|
49
49
|
po_number
|
@@ -58,8 +58,6 @@ module Recurly
|
|
58
58
|
end
|
59
59
|
|
60
60
|
def preview
|
61
|
-
raise NotPreviewableError.new('Cannot preview an existing subscription') unless new_record?
|
62
|
-
|
63
61
|
clear_errors
|
64
62
|
@response = API.send(:post, "#{path}/preview", to_xml)
|
65
63
|
reload response
|
data/lib/recurly/version.rb
CHANGED
metadata
CHANGED
@@ -1,18 +1,20 @@
|
|
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.1
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Recurly
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
12
|
+
date: 2014-05-23 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: rake
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
19
|
- - ~>
|
18
20
|
- !ruby/object:Gem::Version
|
@@ -20,6 +22,7 @@ dependencies:
|
|
20
22
|
type: :development
|
21
23
|
prerelease: false
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
23
26
|
requirements:
|
24
27
|
- - ~>
|
25
28
|
- !ruby/object:Gem::Version
|
@@ -27,6 +30,7 @@ dependencies:
|
|
27
30
|
- !ruby/object:Gem::Dependency
|
28
31
|
name: minitest
|
29
32
|
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
30
34
|
requirements:
|
31
35
|
- - ~>
|
32
36
|
- !ruby/object:Gem::Version
|
@@ -34,6 +38,7 @@ dependencies:
|
|
34
38
|
type: :development
|
35
39
|
prerelease: false
|
36
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
37
42
|
requirements:
|
38
43
|
- - ~>
|
39
44
|
- !ruby/object:Gem::Version
|
@@ -41,6 +46,7 @@ dependencies:
|
|
41
46
|
- !ruby/object:Gem::Dependency
|
42
47
|
name: webmock
|
43
48
|
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
44
50
|
requirements:
|
45
51
|
- - ~>
|
46
52
|
- !ruby/object:Gem::Version
|
@@ -48,6 +54,7 @@ dependencies:
|
|
48
54
|
type: :development
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
51
58
|
requirements:
|
52
59
|
- - ~>
|
53
60
|
- !ruby/object:Gem::Version
|
@@ -60,20 +67,17 @@ extensions: []
|
|
60
67
|
extra_rdoc_files:
|
61
68
|
- README.md
|
62
69
|
files:
|
63
|
-
- README.md
|
64
|
-
- bin/recurly
|
65
70
|
- lib/ecurly.rb
|
66
71
|
- lib/rails/generators/recurly/config_generator.rb
|
67
72
|
- lib/rails/recurly.rb
|
68
|
-
- lib/recurly.rb
|
69
73
|
- lib/recurly/account.rb
|
70
74
|
- lib/recurly/add_on.rb
|
71
75
|
- lib/recurly/address.rb
|
72
76
|
- lib/recurly/adjustment.rb
|
73
77
|
- lib/recurly/all.rb
|
74
|
-
- lib/recurly/api.rb
|
75
78
|
- lib/recurly/api/errors.rb
|
76
79
|
- lib/recurly/api/net_http_adapter.rb
|
80
|
+
- lib/recurly/api.rb
|
77
81
|
- lib/recurly/billing_info.rb
|
78
82
|
- lib/recurly/coupon.rb
|
79
83
|
- lib/recurly/helper.rb
|
@@ -82,23 +86,25 @@ files:
|
|
82
86
|
- lib/recurly/money.rb
|
83
87
|
- lib/recurly/plan.rb
|
84
88
|
- lib/recurly/redemption.rb
|
85
|
-
- lib/recurly/resource.rb
|
86
89
|
- lib/recurly/resource/errors.rb
|
87
90
|
- lib/recurly/resource/pager.rb
|
88
|
-
- lib/recurly/
|
91
|
+
- lib/recurly/resource.rb
|
89
92
|
- lib/recurly/subscription/add_ons.rb
|
93
|
+
- lib/recurly/subscription.rb
|
90
94
|
- lib/recurly/subscription_add_on.rb
|
91
95
|
- lib/recurly/tax_detail.rb
|
92
|
-
- lib/recurly/transaction.rb
|
93
96
|
- lib/recurly/transaction/errors.rb
|
97
|
+
- lib/recurly/transaction.rb
|
94
98
|
- lib/recurly/version.rb
|
95
|
-
- lib/recurly/xml.rb
|
96
99
|
- lib/recurly/xml/nokogiri.rb
|
97
100
|
- lib/recurly/xml/rexml.rb
|
101
|
+
- lib/recurly/xml.rb
|
102
|
+
- lib/recurly.rb
|
103
|
+
- README.md
|
104
|
+
- bin/recurly
|
98
105
|
homepage: https://github.com/recurly/recurly-client-ruby
|
99
106
|
licenses:
|
100
107
|
- MIT
|
101
|
-
metadata: {}
|
102
108
|
post_install_message:
|
103
109
|
rdoc_options:
|
104
110
|
- --main
|
@@ -106,20 +112,22 @@ rdoc_options:
|
|
106
112
|
require_paths:
|
107
113
|
- lib
|
108
114
|
required_ruby_version: !ruby/object:Gem::Requirement
|
115
|
+
none: false
|
109
116
|
requirements:
|
110
117
|
- - ! '>='
|
111
118
|
- !ruby/object:Gem::Version
|
112
119
|
version: 1.9.3
|
113
120
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
114
122
|
requirements:
|
115
123
|
- - ! '>='
|
116
124
|
- !ruby/object:Gem::Version
|
117
125
|
version: '0'
|
118
126
|
requirements: []
|
119
127
|
rubyforge_project:
|
120
|
-
rubygems_version:
|
128
|
+
rubygems_version: 1.8.23
|
121
129
|
signing_key:
|
122
|
-
specification_version:
|
130
|
+
specification_version: 3
|
123
131
|
summary: Recurly API Client
|
124
132
|
test_files: []
|
125
133
|
has_rdoc: true
|
checksums.yaml
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
!binary "U0hBMQ==":
|
3
|
-
metadata.gz: !binary |-
|
4
|
-
NWZhMjQwMTY2MDFjMWZhZjk5NWQ5OTYzOGYxZjdhYWFkZDIxOTYwYw==
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
OWRhNjkwMjAwOTAzYTA0OTY0MDE1Mzg3Y2QwMTE2YmE1OWQ1NDBiMg==
|
7
|
-
SHA512:
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
YjMwMjRjNjkwNTliZjlkODBmNDE5MTY4ZjYzZTY3ODFmMTlmOGJmZTU0MzM4
|
10
|
-
YjY0ZGRlMTkyZjAyZTcwMDg3ZDdkMDdmMzRiNDMyZmNlMTk3ZTc1MzIxNzlm
|
11
|
-
MThiZDU4ZWFiYjRhZWMwZTQwMGVkM2MzMzliNTIxY2IwZGY5MGM=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
OTkyZmRkYWE0NjY2MDkwZDViOTQ2YzNjMjUwNmVkYmVhNzI2Y2I4MmQzN2Iw
|
14
|
-
M2Q0Nzk4MzI0ZmRiODE0MWVjYWFiMDE1Zjc4ZjlmY2EyZDVkZTBkZjkxODI0
|
15
|
-
OTRjOGMwYmI1MGQyZWVjMjZmZWY4NDAyMGE1NzlkZTA1ZDJkMDA=
|