airborne 0.1.17 → 0.1.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/airborne.gemspec +1 -1
- data/lib/airborne/base.rb +13 -1
- data/lib/airborne/request_expectations.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e289f3395f52a122f5fca086f49c2e1e3662b0d
|
4
|
+
data.tar.gz: 4491c4125ef5cd612135c99ed9532ed568db144f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3056fa06e76948beae93b3da120ee47cfc43d8374c072eb6a1bb58c18a7960dfb401bb15dcc82ec2681a04d59fd0aee4e4a5842b91bb65a9cb3b16fbf48255c
|
7
|
+
data.tar.gz: 8d681af152de9992e2e4a09be491072f98431d42e08b243d0ba19158999665f13ba2c346f16dde8aa93ced4fdfc65718e7ed10e957e2572a519ad45ed2690232
|
data/airborne.gemspec
CHANGED
data/lib/airborne/base.rb
CHANGED
@@ -57,8 +57,20 @@ module Airborne
|
|
57
57
|
set_response(make_request(:options, url, headers: headers))
|
58
58
|
end
|
59
59
|
|
60
|
+
def response
|
61
|
+
@response
|
62
|
+
end
|
63
|
+
|
64
|
+
def headers
|
65
|
+
@headers
|
66
|
+
end
|
67
|
+
|
68
|
+
def body
|
69
|
+
@body
|
70
|
+
end
|
71
|
+
|
60
72
|
def json_body
|
61
|
-
set_response(
|
73
|
+
set_response(response) unless response.nil?
|
62
74
|
fail InvalidJsonError, 'Api request returned invalid json' unless @json_body
|
63
75
|
@json_body
|
64
76
|
end
|