recurly 2.3.9 → 2.3.10

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: 7c3f760be1460b7992dfd4e160ee13fa9a08c147
4
- data.tar.gz: e5ff35cb57c309d43b92e55286c5e3388396b36c
3
+ metadata.gz: 34a1d5f4c1f6999486d6f43fd5e30f8d70898311
4
+ data.tar.gz: af1ee3fdc53993b377dd526951ca9bdd99cfc7e8
5
5
  SHA512:
6
- metadata.gz: ab1d12ecb1aad622e9537c18c9ce2c90ded4a49f2a9ceb259d64ebbf038182330d2fec0108093aeca1a7ffef44685cf024c5dd4933140c84b425b7671ef427e8
7
- data.tar.gz: 1d3fcdc850fd0f065dc8d2f953ef8fca53c3116d87c06462d44222879998c82d9ce533f72423b66a2e10d994e2ed466002f1e4e9e7d740bf77e6a8b2e1962d14
6
+ metadata.gz: ae07b3126d06452fd9fcfe9d9b648fcd65ea26000d2dbd2da2cdb9ae5816ae8bcfb22869e262a1990534d2fbc749d9fb81506bfff5d067d9ed9c8af98f17666f
7
+ data.tar.gz: 15fa44abe07c8aed464604721a5a97859b61503d9273739270aa8815bc720e83421135da81428b3209673428e6f8300769adc3e53e73fd4a6e19c92d6eba29f4
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.9'
15
+ gem 'recurly', '~> 2.3.10'
16
16
  ```
17
17
 
18
18
  Recurly will automatically use [Nokogiri](http://nokogiri.org/) (for a nice
@@ -559,9 +559,12 @@ module Recurly
559
559
  return if response.body.to_s.length.zero?
560
560
  fresh = self.class.from_response response
561
561
  else
562
- fresh = self.class.find(
563
- @href || to_param, :etag => (etag unless changed?)
564
- )
562
+ options = {:etag => (etag unless changed?)}
563
+ fresh = if @href
564
+ self.class.from_response API.get(@href, {}, options)
565
+ else
566
+ self.class.find(to_param, options)
567
+ end
565
568
  end
566
569
  fresh and copy_from fresh
567
570
  persist! true
@@ -2,7 +2,7 @@ module Recurly
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 3
5
- PATCH = 9
5
+ PATCH = 10
6
6
  PRE = nil
7
7
 
8
8
  VERSION = [MAJOR, MINOR, PATCH, PRE].compact.join('.').freeze
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.3.9
4
+ version: 2.3.10
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: rake
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: 0.9.2
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: 0.9.2
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: 2.6.1
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: 2.6.1
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.7.6
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.7.6
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/helper.rb
@@ -82,43 +79,47 @@ files:
82
79
  - lib/recurly/money.rb
83
80
  - lib/recurly/plan.rb
84
81
  - lib/recurly/redemption.rb
85
- - lib/recurly/resource.rb
86
82
  - lib/recurly/resource/errors.rb
87
83
  - lib/recurly/resource/pager.rb
88
- - lib/recurly/subscription.rb
84
+ - lib/recurly/resource.rb
89
85
  - lib/recurly/subscription/add_ons.rb
86
+ - lib/recurly/subscription.rb
90
87
  - lib/recurly/subscription_add_on.rb
91
88
  - lib/recurly/tax_detail.rb
92
- - lib/recurly/transaction.rb
93
89
  - lib/recurly/transaction/errors.rb
90
+ - lib/recurly/transaction.rb
94
91
  - lib/recurly/version.rb
95
- - lib/recurly/xml.rb
96
92
  - lib/recurly/xml/nokogiri.rb
97
93
  - lib/recurly/xml/rexml.rb
94
+ - lib/recurly/xml.rb
95
+ - lib/recurly.rb
96
+ - README.md
97
+ - bin/recurly
98
98
  homepage: https://github.com/recurly/recurly-client-ruby
99
99
  licenses:
100
100
  - MIT
101
101
  metadata: {}
102
102
  post_install_message:
103
103
  rdoc_options:
104
- - "--main"
104
+ - --main
105
105
  - README.md
106
106
  require_paths:
107
107
  - lib
108
108
  required_ruby_version: !ruby/object:Gem::Requirement
109
109
  requirements:
110
- - - ">="
110
+ - - '>='
111
111
  - !ruby/object:Gem::Version
112
112
  version: 1.9.3
113
113
  required_rubygems_version: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ">="
115
+ - - '>='
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  requirements: []
119
119
  rubyforge_project:
120
- rubygems_version: 2.6.13
120
+ rubygems_version: 2.0.14.1
121
121
  signing_key:
122
122
  specification_version: 4
123
123
  summary: Recurly API Client
124
124
  test_files: []
125
+ has_rdoc: true