recurly 2.10.3 → 2.10.4

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: f2702f8bd8a51679c6d07306c1f72b91ee2c2c5d
4
- data.tar.gz: 2e784689bd680743a9e1733528fb9a3cb06404f8
3
+ metadata.gz: 6c2bb3abcd64e881fcd8172cf8505051a6c50234
4
+ data.tar.gz: a592fc7b27402540fc0aed4d67017e6985fb438e
5
5
  SHA512:
6
- metadata.gz: 9701540fa25472766bbe8b68025c269f93467337e2172bb6f140152136e5817fc6484180fc303bd9ff3ae448e173e5a86dbaa768e1ddf16e60f7629f8f825698
7
- data.tar.gz: c55ee71fdc52b69180b71504dbeb225aa8777dbeb5113f4534e546d24647a04ed30bbdf2969f32a7306eca510127702a63ec2b1d31c329dbdd0db557544ac4d9
6
+ metadata.gz: e7d8529b6c7ab19780c5614cf4347ebe1a96854e245209a18adc668f83cb1f36f4a6808ba4811f273a5cf7c43b331e42b07f2a690893f21b7de9518cb97f8736
7
+ data.tar.gz: 7d1693efcc5ec7bbee57230621ddc1eef39debae676e299347c97ca86cc0b2a6770e9915d6fbf591facb7ae8cac6e4942abccf0d150e42a9ad569e32903ea3dc
@@ -633,9 +633,12 @@ module Recurly
633
633
  return if response.body.to_s.length.zero?
634
634
  fresh = self.class.from_response response
635
635
  else
636
- fresh = self.class.find(
637
- @href || to_param, :etag => (etag unless changed?)
638
- )
636
+ options = {:etag => (etag unless changed?)}
637
+ fresh = if @href
638
+ self.class.from_response API.get(@href, {}, options)
639
+ else
640
+ self.class.find(to_param, options)
641
+ end
639
642
  end
640
643
  fresh and copy_from fresh
641
644
  persist! true
@@ -2,7 +2,7 @@ module Recurly
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 10
5
- PATCH = 3
5
+ PATCH = 4
6
6
  PRE = nil
7
7
 
8
8
  VERSION = [MAJOR, MINOR, PATCH, PRE].compact.join('.').freeze
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recurly
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.10.3
4
+ version: 2.10.4
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