recurly 2.2.4 → 2.2.5

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: ab34994a1c9c447dfadd88e6a57ca425ea9e260e
4
- data.tar.gz: 1dad0cdd579adde8eeba75f613b9393e578e7609
3
+ metadata.gz: 118b3721b4b0794755c8594f051aa30ae867b6e8
4
+ data.tar.gz: bee32d625df95c318c9895d2908b1160f63c1a2d
5
5
  SHA512:
6
- metadata.gz: 2b8e90a4bb40f8ae9b90bf64ff8d905eed197ef9c06b4e38b5c5fa74cdb63f1732f3e0e70c25c66389569852dc952efaf395ff95496d93fa3873fa4b6fcb019d
7
- data.tar.gz: 1f989840edba57d172d368766b35d51cd5979da1b3475d924d73d408c60ed3d605ab2c04a11175710159676b48dc1c1312f021ddf5fc9ebe19913cde378d2413
6
+ metadata.gz: 88d2f765ffe1a0c158f8af0976de627555dfc14f2bfcb8408d59b1b6bbd887a88af5568ea8e345497311188186027b8b05f19c6bc588596f2d1e3e2dffdaf01f
7
+ data.tar.gz: 5dccca4c87c6841a94fc16c2fdd0395a163f2a27997df6f525bac4e962b105820b9549d5605151c0023f2279acabda44e366765a9419670d8944a6b705aa74f0
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.2.4'
15
+ gem 'recurly', '~> 2.2.5'
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 = 2
5
- PATCH = 4
5
+ PATCH = 5
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.2.4
4
+ version: 2.2.5
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,42 +79,46 @@ 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
- - lib/recurly/transaction.rb
92
88
  - lib/recurly/transaction/errors.rb
89
+ - lib/recurly/transaction.rb
93
90
  - lib/recurly/version.rb
94
- - lib/recurly/xml.rb
95
91
  - lib/recurly/xml/nokogiri.rb
96
92
  - lib/recurly/xml/rexml.rb
93
+ - lib/recurly/xml.rb
94
+ - lib/recurly.rb
95
+ - README.md
96
+ - bin/recurly
97
97
  homepage: https://github.com/recurly/recurly-client-ruby
98
98
  licenses:
99
99
  - MIT
100
100
  metadata: {}
101
101
  post_install_message:
102
102
  rdoc_options:
103
- - "--main"
103
+ - --main
104
104
  - README.md
105
105
  require_paths:
106
106
  - lib
107
107
  required_ruby_version: !ruby/object:Gem::Requirement
108
108
  requirements:
109
- - - ">="
109
+ - - '>='
110
110
  - !ruby/object:Gem::Version
111
111
  version: 1.9.3
112
112
  required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  requirements:
114
- - - ">="
114
+ - - '>='
115
115
  - !ruby/object:Gem::Version
116
116
  version: '0'
117
117
  requirements: []
118
118
  rubyforge_project:
119
- rubygems_version: 2.6.13
119
+ rubygems_version: 2.0.14.1
120
120
  signing_key:
121
121
  specification_version: 4
122
122
  summary: Recurly API Client
123
123
  test_files: []
124
+ has_rdoc: true