stackup 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +4 -0
- data/lib/stackup/source.rb +9 -5
- data/lib/stackup/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: 8d9136bd380d1644176d3b65c7ee93315016d455
|
4
|
+
data.tar.gz: ea8bdd9c6766e6f581557073a2afb5134efd3902
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f9a13acc03300f01506f109ae336c794e49753ef592e630462faa89fa39f6e858e43fe56c33c3c03c59ded1132e063a1eb7c2431005b674ee6f43d39a6749d4
|
7
|
+
data.tar.gz: 48b38607b8e0ee0015ab1fd81e049e62c9b53ab7338b005be51e15a9fcf8e573bbde69cd9352fec2688111ae2c1b60492234dacaed56d25cfdab9bfaa2610dde
|
data/CHANGES.md
CHANGED
data/lib/stackup/source.rb
CHANGED
@@ -29,6 +29,8 @@ module Stackup
|
|
29
29
|
|
30
30
|
private
|
31
31
|
|
32
|
+
LOOKS_LIKE_JSON = /\A\s*[\{\[]/
|
33
|
+
|
32
34
|
def uri
|
33
35
|
URI(location)
|
34
36
|
end
|
@@ -50,11 +52,13 @@ module Stackup
|
|
50
52
|
end
|
51
53
|
|
52
54
|
def parse_body
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
55
|
+
if body =~ LOOKS_LIKE_JSON
|
56
|
+
# Psych has issues parsing some JSON, so let's use a JSON parser.
|
57
|
+
# (see https://github.com/realestate-com-au/stackup/issues/35)
|
58
|
+
MultiJson.load(body)
|
59
|
+
else
|
60
|
+
Stackup::YAML.load(body)
|
61
|
+
end
|
58
62
|
end
|
59
63
|
|
60
64
|
class ReadError < StandardError
|
data/lib/stackup/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stackup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Williams
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-05-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: aws-sdk-resources
|