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 +4 -4
- data/lib/recurly/resource.rb +6 -3
- data/lib/recurly/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c2bb3abcd64e881fcd8172cf8505051a6c50234
|
4
|
+
data.tar.gz: a592fc7b27402540fc0aed4d67017e6985fb438e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7d8529b6c7ab19780c5614cf4347ebe1a96854e245209a18adc668f83cb1f36f4a6808ba4811f273a5cf7c43b331e42b07f2a690893f21b7de9518cb97f8736
|
7
|
+
data.tar.gz: 7d1693efcc5ec7bbee57230621ddc1eef39debae676e299347c97ca86cc0b2a6770e9915d6fbf591facb7ae8cac6e4942abccf0d150e42a9ad569e32903ea3dc
|
data/lib/recurly/resource.rb
CHANGED
@@ -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
|
-
|
637
|
-
|
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
|
data/lib/recurly/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|