recurly 2.7.7 → 2.7.8

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: afbc3bb6037d107f1f36c30b255d5e93c238b8bd
4
- data.tar.gz: e2b014696c8bf5ec21069049f6fb1f1739977c35
3
+ metadata.gz: ed4bbbc23337641ff5e5d8d1b503a3edc7ba3da8
4
+ data.tar.gz: ad44b5e78baa8b041e0fe3e8e34c832e7a8ab63a
5
5
  SHA512:
6
- metadata.gz: 4d6d450dc243d756b7bbbfff5baac7d607c3fbf48057a876bb79eb582b098fd0433139e3c84d89cc8364c4f5b327be99035a81dc93e05d7d5e73edbac24931a1
7
- data.tar.gz: 0ce64ffb3794adf9ca2ad2ee4d72a5214d461daf265e6cbb65791704a7ccd30bae83764ba589d936e9273153051b95602a7dbc33b48aba561d3da5acac2af1e0
6
+ metadata.gz: e904a0278493ec3767e0593ed8652c3cb7d686fbf344608097fb48f2b79957eb75b5c53ce202785c32fe1c71e44096fd0554a671f472a4a30a95e423ff5705e4
7
+ data.tar.gz: 0f1d0798e93ab49f73004b40005817c259fc46d191fb201aae8b01ab3588792179d97e1d180e1f10c08b9387bcc6c383605558d22ee783629b96cc011c7caa9e
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.7.7'
15
+ gem 'recurly', '~> 2.7.8'
16
16
  ```
17
17
 
18
18
  Recurly will automatically use [Nokogiri](http://nokogiri.org/) (for a nice
@@ -622,9 +622,12 @@ module Recurly
622
622
  return if response.body.to_s.length.zero?
623
623
  fresh = self.class.from_response response
624
624
  else
625
- fresh = self.class.find(
626
- @href || to_param, :etag => (etag unless changed?)
627
- )
625
+ options = {:etag => (etag unless changed?)}
626
+ fresh = if @href
627
+ self.class.from_response API.get(@href, {}, options)
628
+ else
629
+ self.class.find(to_param, options)
630
+ end
628
631
  end
629
632
  fresh and copy_from fresh
630
633
  persist! true
@@ -2,7 +2,7 @@ module Recurly
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 7
5
- PATCH = 7
5
+ PATCH = 8
6
6
  PRE = nil
7
7
 
8
8
  VERSION = [MAJOR, MINOR, PATCH, PRE].compact.join('.').freeze
metadata CHANGED
@@ -1,139 +1,139 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recurly
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.7
4
+ version: 2.7.8
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
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: 1.6.0
20
20
  type: :runtime
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: 1.6.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: 11.1.0
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: 11.1.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: minitest
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
47
  version: 5.8.0
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: 5.8.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: addressable
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ~>
60
60
  - !ruby/object:Gem::Version
61
61
  version: 2.4.0
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ~>
67
67
  - !ruby/object:Gem::Version
68
68
  version: 2.4.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: webmock
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ~>
74
74
  - !ruby/object:Gem::Version
75
75
  version: 1.24.6
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ~>
81
81
  - !ruby/object:Gem::Version
82
82
  version: 1.24.6
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: redcarpet
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - '>='
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - '>='
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: yard
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - '>='
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ">="
108
+ - - '>='
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: racc
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ">="
115
+ - - '>='
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ">="
122
+ - - '>='
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: pry
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ">="
129
+ - - '>='
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ">="
136
+ - - '>='
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  description: 'An API client library for Recurly: http://recurly.com'
@@ -144,21 +144,18 @@ extensions: []
144
144
  extra_rdoc_files:
145
145
  - README.md
146
146
  files:
147
- - README.md
148
- - bin/recurly
149
147
  - lib/ecurly.rb
150
148
  - lib/rails/generators/recurly/config_generator.rb
151
149
  - lib/rails/recurly.rb
152
- - lib/recurly.rb
153
150
  - lib/recurly/account.rb
154
151
  - lib/recurly/account_balance.rb
155
152
  - lib/recurly/add_on.rb
156
153
  - lib/recurly/address.rb
157
154
  - lib/recurly/adjustment.rb
158
155
  - lib/recurly/all.rb
159
- - lib/recurly/api.rb
160
156
  - lib/recurly/api/errors.rb
161
157
  - lib/recurly/api/net_http_adapter.rb
158
+ - lib/recurly/api.rb
162
159
  - lib/recurly/billing_info.rb
163
160
  - lib/recurly/coupon.rb
164
161
  - lib/recurly/delivery.rb
@@ -171,20 +168,19 @@ files:
171
168
  - lib/recurly/money.rb
172
169
  - lib/recurly/plan.rb
173
170
  - lib/recurly/redemption.rb
174
- - lib/recurly/resource.rb
175
171
  - lib/recurly/resource/association.rb
176
172
  - lib/recurly/resource/errors.rb
177
173
  - lib/recurly/resource/pager.rb
174
+ - lib/recurly/resource.rb
178
175
  - lib/recurly/shipping_address.rb
179
- - lib/recurly/subscription.rb
180
176
  - lib/recurly/subscription/add_ons.rb
177
+ - lib/recurly/subscription.rb
181
178
  - lib/recurly/subscription_add_on.rb
182
179
  - lib/recurly/tax_detail.rb
183
- - lib/recurly/transaction.rb
184
180
  - lib/recurly/transaction/errors.rb
181
+ - lib/recurly/transaction.rb
185
182
  - lib/recurly/usage.rb
186
183
  - lib/recurly/version.rb
187
- - lib/recurly/webhook.rb
188
184
  - lib/recurly/webhook/account_notification.rb
189
185
  - lib/recurly/webhook/billing_info_updated_notification.rb
190
186
  - lib/recurly/webhook/canceled_account_notification.rb
@@ -211,33 +207,38 @@ files:
211
207
  - lib/recurly/webhook/transaction_notification.rb
212
208
  - lib/recurly/webhook/updated_subscription_notification.rb
213
209
  - lib/recurly/webhook/void_payment_notification.rb
214
- - lib/recurly/xml.rb
210
+ - lib/recurly/webhook.rb
215
211
  - lib/recurly/xml/nokogiri.rb
216
212
  - lib/recurly/xml/rexml.rb
213
+ - lib/recurly/xml.rb
214
+ - lib/recurly.rb
215
+ - README.md
216
+ - bin/recurly
217
217
  homepage: https://github.com/recurly/recurly-client-ruby
218
218
  licenses:
219
219
  - MIT
220
220
  metadata: {}
221
221
  post_install_message:
222
222
  rdoc_options:
223
- - "--main"
223
+ - --main
224
224
  - README.md
225
225
  require_paths:
226
226
  - lib
227
227
  required_ruby_version: !ruby/object:Gem::Requirement
228
228
  requirements:
229
- - - ">="
229
+ - - '>='
230
230
  - !ruby/object:Gem::Version
231
231
  version: 1.9.3
232
232
  required_rubygems_version: !ruby/object:Gem::Requirement
233
233
  requirements:
234
- - - ">="
234
+ - - '>='
235
235
  - !ruby/object:Gem::Version
236
236
  version: '0'
237
237
  requirements: []
238
238
  rubyforge_project:
239
- rubygems_version: 2.6.13
239
+ rubygems_version: 2.0.14.1
240
240
  signing_key:
241
241
  specification_version: 4
242
242
  summary: Recurly API Client
243
243
  test_files: []
244
+ has_rdoc: true