domoscio_rails 0.4.28 → 0.4.29

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
  SHA256:
3
- metadata.gz: a46f750a1045192193b8fbe7aed58125255031b3a43b1098fdb0b4eb2172a015
4
- data.tar.gz: 0115a644b0d3eda31dad83c393a25bb4b2678bb37cfd1e935e96bb6ef8998b0f
3
+ metadata.gz: d216d522972e9cfaa92864e4f6a3309326d0098bbf0dc5034bb6f3ad06f3359c
4
+ data.tar.gz: 4a727393dc2565d4ece362e20a1c56f2addf1ea65077ffcc8c6303a77dffa4b9
5
5
  SHA512:
6
- metadata.gz: ece75e6ed8b2905f4a1e13c84efa708d1c9a6f63b5d131b88aa6a0aa312618b628f49343b4a6a4e247c83e23bb95d40904279094318bf388fc864b613ea9dbaa
7
- data.tar.gz: 7d809c5e588c2d08a9bc8b7f5a2f408b7fb624d676f1676a5edfa01b6fc402c923930368348218b392d2168e7af46f5d942fbdf3836da39d0789a0e1b9d43afb
6
+ metadata.gz: 7def1982b13e734ef3d02122549b28d7df0053641a62d250fe120f26c6d1faf1c1dc83df95818d0ba5f3d88a6d0051a6e25e7f4c77095f090d16bb745737c83d
7
+ data.tar.gz: 379d7165d1b52397f23d5416f7cb81ddf5d5dcbcb3344da260d22ff63a4fdb9136a47da6655c5c626b28b758717f0e2052f04fd70b4023bfff0a4ecfb9831d5e
@@ -1,3 +1,3 @@
1
1
  module DomoscioRails
2
- VERSION = '0.4.28'.freeze
2
+ VERSION = '0.4.29'.freeze
3
3
  end
@@ -105,6 +105,8 @@ module DomoscioRails
105
105
 
106
106
  if response['Content-Type'] == 'application/zip' || response['Content-Type'] == 'application/xlsx'
107
107
  data = response
108
+ elsif response.is_a?(Net::HTTPNoContent)
109
+ data = []
108
110
  else
109
111
  data = DomoscioRails::JSON.load(response.body.nil? ? '' : response.body)
110
112
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: domoscio_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.28
4
+ version: 0.4.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benoit Praly