recurly 2.5.3 → 2.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/recurly/resource.rb +6 -3
- data/lib/recurly/version.rb +1 -1
- metadata +22 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ee16999294eef1c5d634f15d1ae192591febde0
|
4
|
+
data.tar.gz: 2d1ec58e908665d2911c152ac00bc0d274075501
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 920b4bada0d56e9b51f2d11851e64643d9a77b790521a185522626916a33c127a25b56bc9c1349096b2ce00072953a3424323bbf58ea654998a193937f258c61
|
7
|
+
data.tar.gz: 3ccb35cf04a540ed6c99dab86d34b89f6190f233f97a6d37e870b84eebdc82395ce0f97bfbc0fa2459b889e758b763a1a9f68560f493a69e40501fd13563db0d
|
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.5.
|
15
|
+
gem 'recurly', '~> 2.5.4'
|
16
16
|
```
|
17
17
|
|
18
18
|
Recurly will automatically use [Nokogiri](http://nokogiri.org/) (for a nice
|
data/lib/recurly/resource.rb
CHANGED
@@ -607,9 +607,12 @@ module Recurly
|
|
607
607
|
return if response.body.to_s.length.zero?
|
608
608
|
fresh = self.class.from_response response
|
609
609
|
else
|
610
|
-
|
611
|
-
|
612
|
-
|
610
|
+
options = {:etag => (etag unless changed?)}
|
611
|
+
fresh = if @href
|
612
|
+
self.class.from_response API.get(@href, {}, options)
|
613
|
+
else
|
614
|
+
self.class.find(to_param, options)
|
615
|
+
end
|
613
616
|
end
|
614
617
|
fresh and copy_from fresh
|
615
618
|
persist! true
|
data/lib/recurly/version.rb
CHANGED
metadata
CHANGED
@@ -1,55 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: recurly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.
|
4
|
+
version: 2.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Recurly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '11.1'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '11.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: minitest
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '5.8'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '5.8'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: webmock
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '1.24'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '1.24'
|
55
55
|
description: 'An API client library for Recurly: http://recurly.com'
|
@@ -60,20 +60,17 @@ extensions: []
|
|
60
60
|
extra_rdoc_files:
|
61
61
|
- README.md
|
62
62
|
files:
|
63
|
-
- README.md
|
64
|
-
- bin/recurly
|
65
63
|
- lib/ecurly.rb
|
66
64
|
- lib/rails/generators/recurly/config_generator.rb
|
67
65
|
- lib/rails/recurly.rb
|
68
|
-
- lib/recurly.rb
|
69
66
|
- lib/recurly/account.rb
|
70
67
|
- lib/recurly/add_on.rb
|
71
68
|
- lib/recurly/address.rb
|
72
69
|
- lib/recurly/adjustment.rb
|
73
70
|
- lib/recurly/all.rb
|
74
|
-
- lib/recurly/api.rb
|
75
71
|
- lib/recurly/api/errors.rb
|
76
72
|
- lib/recurly/api/net_http_adapter.rb
|
73
|
+
- lib/recurly/api.rb
|
77
74
|
- lib/recurly/billing_info.rb
|
78
75
|
- lib/recurly/coupon.rb
|
79
76
|
- lib/recurly/error.rb
|
@@ -84,19 +81,18 @@ files:
|
|
84
81
|
- lib/recurly/money.rb
|
85
82
|
- lib/recurly/plan.rb
|
86
83
|
- lib/recurly/redemption.rb
|
87
|
-
- lib/recurly/resource.rb
|
88
84
|
- lib/recurly/resource/association.rb
|
89
85
|
- lib/recurly/resource/errors.rb
|
90
86
|
- lib/recurly/resource/pager.rb
|
91
|
-
- lib/recurly/
|
87
|
+
- lib/recurly/resource.rb
|
92
88
|
- lib/recurly/subscription/add_ons.rb
|
89
|
+
- lib/recurly/subscription.rb
|
93
90
|
- lib/recurly/subscription_add_on.rb
|
94
91
|
- lib/recurly/tax_detail.rb
|
95
|
-
- lib/recurly/transaction.rb
|
96
92
|
- lib/recurly/transaction/errors.rb
|
93
|
+
- lib/recurly/transaction.rb
|
97
94
|
- lib/recurly/usage.rb
|
98
95
|
- lib/recurly/version.rb
|
99
|
-
- lib/recurly/webhook.rb
|
100
96
|
- lib/recurly/webhook/account_notification.rb
|
101
97
|
- lib/recurly/webhook/billing_info_updated_notification.rb
|
102
98
|
- lib/recurly/webhook/canceled_account_notification.rb
|
@@ -121,33 +117,38 @@ files:
|
|
121
117
|
- lib/recurly/webhook/transaction_notification.rb
|
122
118
|
- lib/recurly/webhook/updated_subscription_notification.rb
|
123
119
|
- lib/recurly/webhook/void_payment_notification.rb
|
124
|
-
- lib/recurly/
|
120
|
+
- lib/recurly/webhook.rb
|
125
121
|
- lib/recurly/xml/nokogiri.rb
|
126
122
|
- lib/recurly/xml/rexml.rb
|
123
|
+
- lib/recurly/xml.rb
|
124
|
+
- lib/recurly.rb
|
125
|
+
- README.md
|
126
|
+
- bin/recurly
|
127
127
|
homepage: https://github.com/recurly/recurly-client-ruby
|
128
128
|
licenses:
|
129
129
|
- MIT
|
130
130
|
metadata: {}
|
131
131
|
post_install_message:
|
132
132
|
rdoc_options:
|
133
|
-
-
|
133
|
+
- --main
|
134
134
|
- README.md
|
135
135
|
require_paths:
|
136
136
|
- lib
|
137
137
|
required_ruby_version: !ruby/object:Gem::Requirement
|
138
138
|
requirements:
|
139
|
-
- -
|
139
|
+
- - '>='
|
140
140
|
- !ruby/object:Gem::Version
|
141
141
|
version: 1.9.3
|
142
142
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
143
143
|
requirements:
|
144
|
-
- -
|
144
|
+
- - '>='
|
145
145
|
- !ruby/object:Gem::Version
|
146
146
|
version: '0'
|
147
147
|
requirements: []
|
148
148
|
rubyforge_project:
|
149
|
-
rubygems_version: 2.
|
149
|
+
rubygems_version: 2.0.14.1
|
150
150
|
signing_key:
|
151
151
|
specification_version: 4
|
152
152
|
summary: Recurly API Client
|
153
153
|
test_files: []
|
154
|
+
has_rdoc: true
|