recurly 2.0.12 → 2.0.13

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: a62eae4775c67dbc8656926de970406a767756b2
4
- data.tar.gz: 3d649056863adea4798517c03689df7303ce5865
3
+ metadata.gz: 437c4a81180281f6f4dd54eb30b91c7eb4676d5e
4
+ data.tar.gz: 537a4f242930c94b17f7f97d954d92cc25222641
5
5
  SHA512:
6
- metadata.gz: 9a942089e762eeff8a947feed849dee403a4b2931ad97fc1440b9d528cb79ef4df3004e156db37a7788db880853f69bc7787a83c220f4ec71b8a130285153941
7
- data.tar.gz: e46e3e18ad76f7aa6c961089f9298e144ef9e1d697b313792481a8fade13aa019e93d1c8b0d16f0f885bd37a201485b6f69fb45af1063d00128f9cd6cb0bcb2b
6
+ metadata.gz: 016155a2129b09108017a0a2c02cbc0eb1913d651ac6449584d3b8fec62b11192359b26b4149fc93206dd66c1542ee3f4aa9d61f107cb76b69cc202bd4fd93cd
7
+ data.tar.gz: 3e3f641760e89cf9f6662949168b3ab9e1e5ac021e2026464ce8d05f54fdf4c40ef69eb103436f7a923d1ddf2e8e2386fd5a30c813d1978db1c21a43d51243b0
data/README.markdown 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.0.10'
15
+ gem 'recurly', '~> 2.0.13'
16
16
  ```
17
17
 
18
18
  Recurly will automatically use [Nokogiri](http://nokogiri.org/) (for a nice
@@ -552,9 +552,12 @@ module Recurly
552
552
  return if response.body.length.zero?
553
553
  fresh = self.class.from_response response
554
554
  else
555
- fresh = self.class.find(
556
- @href || to_param, :etag => (etag unless changed?)
557
- )
555
+ options = {:etag => (etag unless changed?)}
556
+ fresh = if @href
557
+ self.class.from_response API.get(@href, {}, options)
558
+ else
559
+ self.class.find(to_param, options)
560
+ end
558
561
  end
559
562
  fresh and copy_from fresh
560
563
  persist! true
@@ -2,7 +2,7 @@ module Recurly
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 0
5
- PATCH = 12
5
+ PATCH = 13
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.0.12
4
+ version: 2.0.13
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,18 +60,15 @@ extensions: []
60
60
  extra_rdoc_files:
61
61
  - README.markdown
62
62
  files:
63
- - README.markdown
64
- - bin/recurly
65
63
  - lib/rails/generators/recurly/config_generator.rb
66
64
  - lib/rails/recurly.rb
67
- - lib/recurly.rb
68
65
  - lib/recurly/account.rb
69
66
  - lib/recurly/add_on.rb
70
67
  - lib/recurly/adjustment.rb
71
68
  - lib/recurly/all.rb
72
- - lib/recurly/api.rb
73
69
  - lib/recurly/api/errors.rb
74
70
  - lib/recurly/api/net_http_adapter.rb
71
+ - lib/recurly/api.rb
75
72
  - lib/recurly/billing_info.rb
76
73
  - lib/recurly/coupon.rb
77
74
  - lib/recurly/helper.rb
@@ -80,40 +77,44 @@ files:
80
77
  - lib/recurly/money.rb
81
78
  - lib/recurly/plan.rb
82
79
  - lib/recurly/redemption.rb
83
- - lib/recurly/resource.rb
84
80
  - lib/recurly/resource/pager.rb
85
- - lib/recurly/subscription.rb
81
+ - lib/recurly/resource.rb
86
82
  - lib/recurly/subscription/add_ons.rb
87
- - lib/recurly/transaction.rb
83
+ - lib/recurly/subscription.rb
88
84
  - lib/recurly/transaction/errors.rb
85
+ - lib/recurly/transaction.rb
89
86
  - lib/recurly/version.rb
90
- - lib/recurly/xml.rb
91
87
  - lib/recurly/xml/nokogiri.rb
92
88
  - lib/recurly/xml/rexml.rb
89
+ - lib/recurly/xml.rb
90
+ - lib/recurly.rb
91
+ - README.markdown
92
+ - bin/recurly
93
93
  homepage: http://github.com/recurly/recurly-client-ruby
94
94
  licenses:
95
95
  - MIT
96
96
  metadata: {}
97
97
  post_install_message:
98
98
  rdoc_options:
99
- - "--main"
99
+ - --main
100
100
  - README.markdown
101
101
  require_paths:
102
102
  - lib
103
103
  required_ruby_version: !ruby/object:Gem::Requirement
104
104
  requirements:
105
- - - ">="
105
+ - - '>='
106
106
  - !ruby/object:Gem::Version
107
107
  version: '0'
108
108
  required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  requirements:
110
- - - ">="
110
+ - - '>='
111
111
  - !ruby/object:Gem::Version
112
112
  version: '0'
113
113
  requirements: []
114
114
  rubyforge_project:
115
- rubygems_version: 2.6.13
115
+ rubygems_version: 2.0.14.1
116
116
  signing_key:
117
117
  specification_version: 4
118
118
  summary: Recurly API Client
119
119
  test_files: []
120
+ has_rdoc: true