recurly 2.1.10 → 2.1.11

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: 12853807c04655302f78fb9b87992d4f992593b6
4
- data.tar.gz: f5696cc8f9df986d54246fbe19d0e2fd0a7e811b
3
+ metadata.gz: 0221f7e72427e94cbb2aad714485fe9332884e01
4
+ data.tar.gz: 3cdc6943de88599f679b1e51d9d54ca57962aa16
5
5
  SHA512:
6
- metadata.gz: 7d4858275495cde312e387918ae21479d4729ab681cf8e60d206af13b488f03db41ea27c93f51835815e44939f42e9f1e548f5cdc6b805ac80d49ac4fbb16119
7
- data.tar.gz: 0c38e035af4367919685481359ecd5017ff614da9fb155863381798d1a07717809bcf11c1b42cd7a0589fc1d1afedbc92b6569e315862a387e95b316c3bdceed
6
+ metadata.gz: d5e7d6d79df3b86c3f4cfed1e7126d853541b98fca160857c220263556e3fb65b27f7621775c0ea0073124b897e5b3b52e7a800413040f119131cc68d6399021
7
+ data.tar.gz: f0c9e6a1d6ad26768a9b952898b5d9c5cfa0e8281f6f8fd5889384ff346647918514d1e68c86160be3c9a5519e8dfb75013d0157b9c2ab43f63276cdcf71ab0e
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.1.8'
15
+ gem 'recurly', '~> 2.1.11'
16
16
  ```
17
17
 
18
18
  Recurly will automatically use [Nokogiri](http://nokogiri.org/) (for a nice
@@ -562,9 +562,12 @@ module Recurly
562
562
  return if response.body.to_s.length.zero?
563
563
  fresh = self.class.from_response response
564
564
  else
565
- fresh = self.class.find(
566
- @href || to_param, :etag => (etag unless changed?)
567
- )
565
+ options = {:etag => (etag unless changed?)}
566
+ fresh = if @href
567
+ self.class.from_response API.get(@href, {}, options)
568
+ else
569
+ self.class.find(to_param, options)
570
+ end
568
571
  end
569
572
  fresh and copy_from fresh
570
573
  persist! true
@@ -2,7 +2,7 @@ module Recurly
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 1
5
- PATCH = 10
5
+ PATCH = 11
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.1.10
4
+ version: 2.1.11
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,19 +60,16 @@ extensions: []
60
60
  extra_rdoc_files:
61
61
  - README.markdown
62
62
  files:
63
- - README.markdown
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/adjustment.rb
72
69
  - lib/recurly/all.rb
73
- - lib/recurly/api.rb
74
70
  - lib/recurly/api/errors.rb
75
71
  - lib/recurly/api/net_http_adapter.rb
72
+ - lib/recurly/api.rb
76
73
  - lib/recurly/billing_info.rb
77
74
  - lib/recurly/coupon.rb
78
75
  - lib/recurly/helper.rb
@@ -81,42 +78,46 @@ files:
81
78
  - lib/recurly/money.rb
82
79
  - lib/recurly/plan.rb
83
80
  - lib/recurly/redemption.rb
84
- - lib/recurly/resource.rb
85
81
  - lib/recurly/resource/errors.rb
86
82
  - lib/recurly/resource/pager.rb
87
- - lib/recurly/subscription.rb
83
+ - lib/recurly/resource.rb
88
84
  - lib/recurly/subscription/add_ons.rb
85
+ - lib/recurly/subscription.rb
89
86
  - lib/recurly/subscription_add_on.rb
90
- - lib/recurly/transaction.rb
91
87
  - lib/recurly/transaction/errors.rb
88
+ - lib/recurly/transaction.rb
92
89
  - lib/recurly/version.rb
93
- - lib/recurly/xml.rb
94
90
  - lib/recurly/xml/nokogiri.rb
95
91
  - lib/recurly/xml/rexml.rb
92
+ - lib/recurly/xml.rb
93
+ - lib/recurly.rb
94
+ - README.markdown
95
+ - bin/recurly
96
96
  homepage: https://github.com/recurly/recurly-client-ruby
97
97
  licenses:
98
98
  - MIT
99
99
  metadata: {}
100
100
  post_install_message:
101
101
  rdoc_options:
102
- - "--main"
102
+ - --main
103
103
  - README.markdown
104
104
  require_paths:
105
105
  - lib
106
106
  required_ruby_version: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ">="
108
+ - - '>='
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  requirements:
113
- - - ">="
113
+ - - '>='
114
114
  - !ruby/object:Gem::Version
115
115
  version: '0'
116
116
  requirements: []
117
117
  rubyforge_project:
118
- rubygems_version: 2.6.13
118
+ rubygems_version: 2.0.14.1
119
119
  signing_key:
120
120
  specification_version: 4
121
121
  summary: Recurly API Client
122
122
  test_files: []
123
+ has_rdoc: true