apicasso 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/apicasso/application_controller.rb +2 -2
- data/lib/apicasso/version.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: 4da5cf7cdf70577aed43029b6a37a7b8ac8bc12c
|
4
|
+
data.tar.gz: 7f15d79c88fa86c7f0516162124a09b6cf054aea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0e03e999fb85197ce9d8d9214e7810101b76377cbde9224ac13d8a9355c90595c4df42ebb7405a3d6e59212d6321c412b803c460cc4ec26c907b91a9e8bddeb
|
7
|
+
data.tar.gz: 6cf2ea573ffc12f57cba2f0517ac61a38339d9167aec6b0475bec79972a69f162b54376a722dd759d97a4d41fc6b6c669936eb3b5d9e61b00f7eab257ef204bc
|
@@ -46,7 +46,7 @@ module Apicasso
|
|
46
46
|
def response_hash
|
47
47
|
{
|
48
48
|
status: response.status,
|
49
|
-
body: JSON.parse(response.body)
|
49
|
+
body: (response.body.present? ? JSON.parse(response.body): '')
|
50
50
|
}
|
51
51
|
end
|
52
52
|
|
@@ -110,7 +110,7 @@ module Apicasso
|
|
110
110
|
|
111
111
|
def preflight?
|
112
112
|
request.request_method == 'OPTIONS' &&
|
113
|
-
!request.
|
113
|
+
!request.headers['Authorization'].present?
|
114
114
|
end
|
115
115
|
end
|
116
116
|
end
|
data/lib/apicasso/version.rb
CHANGED