recurly 2.11.2 → 2.11.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ffb320df6929520f201436ff189be27b2ad5e125
4
- data.tar.gz: 6b11ae2cfa60a6ed68af8eccc0249a43bd0293cf
3
+ metadata.gz: 6b41bd699d990ad64a7c6281f78896ef191aa26f
4
+ data.tar.gz: b608859ee203fafc174708f9c4cc66339c0432d6
5
5
  SHA512:
6
- metadata.gz: 9fe37e553370efbb51f1bc6c148d5f7c0ed7457908e09ff39433aca5b6557837fafc2b72b5d5a6ea17e7c640a91a12e7251fa3eec40277a200b5815ae0bdd4e1
7
- data.tar.gz: 62731a6f158035af2eb90e5c23cd09b2e65daf7e05743192f486ff05d6287b76dd2f9ab96bbb481e5ab56f5b490d290f43e1480c99b63db55aac04ae8c208761
6
+ metadata.gz: d65920a39f0386ee5036cabcb5128d40d1f0e8208e357758f2bb53ef6705df0f37a11838a982cd42252a71c83b52abc55c4f7bf3b184313ba33a05199a361780
7
+ data.tar.gz: 9871c54b8463e1b84297bdae829b5a6adc3f6c73ea0e378aa8e98b23f0cbb00c4653b2c3fa453692ece10e2e905ced24a5035baf2324552c1be04aacb815fd48
data/README.md CHANGED
@@ -14,7 +14,7 @@ Recurly is packaged as a Ruby gem. We recommend you install it with
14
14
  [Bundler](http://gembundler.com/) by adding the following line to your Gemfile:
15
15
 
16
16
  ``` ruby
17
- gem 'recurly', '~> 2.11.2'
17
+ gem 'recurly', '~> 2.11.3'
18
18
  ```
19
19
 
20
20
  Recurly will automatically use [Nokogiri](http://nokogiri.org/) (for a nice
@@ -633,9 +633,12 @@ module Recurly
633
633
  return if response.body.to_s.length.zero?
634
634
  fresh = self.class.from_response response
635
635
  else
636
- fresh = self.class.find(
637
- @href || to_param, :etag => (etag unless changed?)
638
- )
636
+ options = {:etag => (etag unless changed?)}
637
+ fresh = if @href
638
+ self.class.from_response API.get(@href, {}, options)
639
+ else
640
+ self.class.find(to_param, options)
641
+ end
639
642
  end
640
643
  fresh and copy_from fresh
641
644
  persist! true
@@ -2,7 +2,7 @@ module Recurly
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 11
5
- PATCH = 2
5
+ PATCH = 3
6
6
  PRE = nil
7
7
 
8
8
  VERSION = [MAJOR, MINOR, PATCH, PRE].compact.join('.').freeze
metadata CHANGED
@@ -1,139 +1,125 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recurly
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.11.2
4
+ version: 2.11.3
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-08 00:00:00.000000000 Z
11
+ date: 2017-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: nokogiri
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: 1.7.1
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: 1.7.1
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: rake
29
15
  requirement: !ruby/object:Gem::Requirement
30
16
  requirements:
31
- - - "~>"
17
+ - - ~>
32
18
  - !ruby/object:Gem::Version
33
19
  version: '11.3'
34
20
  type: :development
35
21
  prerelease: false
36
22
  version_requirements: !ruby/object:Gem::Requirement
37
23
  requirements:
38
- - - "~>"
24
+ - - ~>
39
25
  - !ruby/object:Gem::Version
40
26
  version: '11.3'
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: minitest
43
29
  requirement: !ruby/object:Gem::Requirement
44
30
  requirements:
45
- - - "~>"
31
+ - - ~>
46
32
  - !ruby/object:Gem::Version
47
33
  version: 5.8.0
48
34
  type: :development
49
35
  prerelease: false
50
36
  version_requirements: !ruby/object:Gem::Requirement
51
37
  requirements:
52
- - - "~>"
38
+ - - ~>
53
39
  - !ruby/object:Gem::Version
54
40
  version: 5.8.0
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: addressable
57
43
  requirement: !ruby/object:Gem::Requirement
58
44
  requirements:
59
- - - "~>"
45
+ - - ~>
60
46
  - !ruby/object:Gem::Version
61
47
  version: 2.4.0
62
48
  type: :development
63
49
  prerelease: false
64
50
  version_requirements: !ruby/object:Gem::Requirement
65
51
  requirements:
66
- - - "~>"
52
+ - - ~>
67
53
  - !ruby/object:Gem::Version
68
54
  version: 2.4.0
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: webmock
71
57
  requirement: !ruby/object:Gem::Requirement
72
58
  requirements:
73
- - - "~>"
59
+ - - ~>
74
60
  - !ruby/object:Gem::Version
75
61
  version: 2.3.2
76
62
  type: :development
77
63
  prerelease: false
78
64
  version_requirements: !ruby/object:Gem::Requirement
79
65
  requirements:
80
- - - "~>"
66
+ - - ~>
81
67
  - !ruby/object:Gem::Version
82
68
  version: 2.3.2
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: yard
85
71
  requirement: !ruby/object:Gem::Requirement
86
72
  requirements:
87
- - - "~>"
73
+ - - ~>
88
74
  - !ruby/object:Gem::Version
89
75
  version: 0.9.9
90
76
  type: :development
91
77
  prerelease: false
92
78
  version_requirements: !ruby/object:Gem::Requirement
93
79
  requirements:
94
- - - "~>"
80
+ - - ~>
95
81
  - !ruby/object:Gem::Version
96
82
  version: 0.9.9
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: redcarpet
99
85
  requirement: !ruby/object:Gem::Requirement
100
86
  requirements:
101
- - - ">="
87
+ - - '>='
102
88
  - !ruby/object:Gem::Version
103
89
  version: '0'
104
90
  type: :development
105
91
  prerelease: false
106
92
  version_requirements: !ruby/object:Gem::Requirement
107
93
  requirements:
108
- - - ">="
94
+ - - '>='
109
95
  - !ruby/object:Gem::Version
110
96
  version: '0'
111
97
  - !ruby/object:Gem::Dependency
112
98
  name: racc
113
99
  requirement: !ruby/object:Gem::Requirement
114
100
  requirements:
115
- - - ">="
101
+ - - '>='
116
102
  - !ruby/object:Gem::Version
117
103
  version: '0'
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
107
  requirements:
122
- - - ">="
108
+ - - '>='
123
109
  - !ruby/object:Gem::Version
124
110
  version: '0'
125
111
  - !ruby/object:Gem::Dependency
126
112
  name: pry
127
113
  requirement: !ruby/object:Gem::Requirement
128
114
  requirements:
129
- - - ">="
115
+ - - '>='
130
116
  - !ruby/object:Gem::Version
131
117
  version: '0'
132
118
  type: :development
133
119
  prerelease: false
134
120
  version_requirements: !ruby/object:Gem::Requirement
135
121
  requirements:
136
- - - ">="
122
+ - - '>='
137
123
  - !ruby/object:Gem::Version
138
124
  version: '0'
139
125
  description: 'An API client library for Recurly: http://recurly.com'
@@ -144,19 +130,16 @@ extensions: []
144
130
  extra_rdoc_files:
145
131
  - README.md
146
132
  files:
147
- - README.md
148
- - bin/recurly
149
133
  - lib/rails/generators/recurly/config_generator.rb
150
134
  - lib/rails/recurly.rb
151
- - lib/recurly.rb
152
135
  - lib/recurly/account.rb
153
136
  - lib/recurly/account_balance.rb
154
137
  - lib/recurly/add_on.rb
155
138
  - lib/recurly/address.rb
156
139
  - lib/recurly/adjustment.rb
157
- - lib/recurly/api.rb
158
140
  - lib/recurly/api/errors.rb
159
141
  - lib/recurly/api/net_http_adapter.rb
142
+ - lib/recurly/api.rb
160
143
  - lib/recurly/billing_info.rb
161
144
  - lib/recurly/coupon.rb
162
145
  - lib/recurly/delivery.rb
@@ -171,21 +154,20 @@ files:
171
154
  - lib/recurly/plan.rb
172
155
  - lib/recurly/purchase.rb
173
156
  - lib/recurly/redemption.rb
174
- - lib/recurly/resource.rb
175
157
  - lib/recurly/resource/association.rb
176
158
  - lib/recurly/resource/errors.rb
177
159
  - lib/recurly/resource/pager.rb
160
+ - lib/recurly/resource.rb
178
161
  - lib/recurly/shipping_address.rb
179
- - lib/recurly/subscription.rb
180
162
  - lib/recurly/subscription/add_ons.rb
163
+ - lib/recurly/subscription.rb
181
164
  - lib/recurly/subscription_add_on.rb
182
165
  - lib/recurly/tax_detail.rb
183
166
  - lib/recurly/tax_type.rb
184
- - lib/recurly/transaction.rb
185
167
  - lib/recurly/transaction/errors.rb
168
+ - lib/recurly/transaction.rb
186
169
  - lib/recurly/usage.rb
187
170
  - lib/recurly/version.rb
188
- - lib/recurly/webhook.rb
189
171
  - lib/recurly/webhook/account_notification.rb
190
172
  - lib/recurly/webhook/billing_info_updated_notification.rb
191
173
  - lib/recurly/webhook/canceled_account_notification.rb
@@ -213,33 +195,38 @@ files:
213
195
  - lib/recurly/webhook/updated_account_notification.rb
214
196
  - lib/recurly/webhook/updated_subscription_notification.rb
215
197
  - lib/recurly/webhook/void_payment_notification.rb
216
- - lib/recurly/xml.rb
198
+ - lib/recurly/webhook.rb
217
199
  - lib/recurly/xml/nokogiri.rb
218
200
  - lib/recurly/xml/rexml.rb
201
+ - lib/recurly/xml.rb
202
+ - lib/recurly.rb
203
+ - README.md
204
+ - bin/recurly
219
205
  homepage: https://github.com/recurly/recurly-client-ruby
220
206
  licenses:
221
207
  - MIT
222
208
  metadata: {}
223
209
  post_install_message:
224
210
  rdoc_options:
225
- - "--main"
211
+ - --main
226
212
  - README.md
227
213
  require_paths:
228
214
  - lib
229
215
  required_ruby_version: !ruby/object:Gem::Requirement
230
216
  requirements:
231
- - - ">="
217
+ - - '>='
232
218
  - !ruby/object:Gem::Version
233
219
  version: 1.9.3
234
220
  required_rubygems_version: !ruby/object:Gem::Requirement
235
221
  requirements:
236
- - - ">="
222
+ - - '>='
237
223
  - !ruby/object:Gem::Version
238
224
  version: '0'
239
225
  requirements: []
240
226
  rubyforge_project:
241
- rubygems_version: 2.6.13
227
+ rubygems_version: 2.0.14.1
242
228
  signing_key:
243
229
  specification_version: 4
244
230
  summary: Recurly API Client
245
231
  test_files: []
232
+ has_rdoc: true