apicasso 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7477dc97e3d73988a899cc2da5fb2c9df999c36b
4
- data.tar.gz: 19a09019b0bdcefd37a1e14a1941960eb2193215
3
+ metadata.gz: 4da5cf7cdf70577aed43029b6a37a7b8ac8bc12c
4
+ data.tar.gz: 7f15d79c88fa86c7f0516162124a09b6cf054aea
5
5
  SHA512:
6
- metadata.gz: 9801cb5611575d417b32634d8a0357303375777df20898c1f6d2305baa1156123b23ce69a18ed0ce5e304267a97f1992a6a20f3745fb5a1f324ceca0dd64ad46
7
- data.tar.gz: 5411d098d67a781576ac2493a7161851af530c4a9791f3e7ebd4767ce86f8bc7ee8727265a2ee3ead7ac62aacfc6a6ec3eb8e2a7615960c281d63b2d4eae8d8d
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.env['Authorization'].present?
113
+ !request.headers['Authorization'].present?
114
114
  end
115
115
  end
116
116
  end
@@ -1,3 +1,3 @@
1
1
  module Apicasso
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apicasso
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fernando Bellincanta