auth-lh 0.6.0 → 0.6.1

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: 1b0cc0bb9068688a7e6dece42b7876c0b5d3c07c
4
- data.tar.gz: 7be6e37a78c37e5f197584e7b07d720bd294df2f
3
+ metadata.gz: 347f574f4775171f4fb1cda518db251daeadc5f2
4
+ data.tar.gz: 5a4b85c093c1128c92980792f01193823d28dd5e
5
5
  SHA512:
6
- metadata.gz: d6c9da94b3687277a5b09e5739f03696185588b4f56681bf1195c93bd07d5b1ce5703ca05c7ce9d555049788c0d508cd9baf48883ead83496094419a4372ca17
7
- data.tar.gz: b28d99fc63a3968d1a33b73737b5e54405eb606132a6f7aebb73e2a9132e3c595535432e3b97d31d99038ebae9e8f623a8c5f39d5424d071796d2b1ea54778a1
6
+ metadata.gz: 1d895933bd1093f474403605140339c3e224097bd155e070dd5f6cef51a2176d0a2922a29a928df6e83370ec91909f97460995836c74ce454351ee2c4a3ee056
7
+ data.tar.gz: 9c1fe2113d6aeb8834a318c4798516974e4b9e1797fadb6a72514e6b30755af75638938bb495a9c7eabc535bf40bf525ac74f4bba6f1b70be4f9cc41b9ff09c3
data/CHANGELOG.md CHANGED
@@ -105,3 +105,7 @@
105
105
  ## v0.6.0
106
106
 
107
107
  * Changed get current shop return type
108
+
109
+ ## v0.6.1
110
+
111
+ * Bugfix on response for get current shop
@@ -1,5 +1,5 @@
1
1
  module Auth
2
2
  module Lh
3
- VERSION = "0.6.0"
3
+ VERSION = "0.6.1"
4
4
  end
5
5
  end
data/lib/auth_lh.rb CHANGED
@@ -82,7 +82,11 @@ module AuthLh
82
82
 
83
83
  def self.get_request(action, params={})
84
84
  response = RestClient.get("#{@endpoint}#{action}", {params: params}.merge(auth_headers))
85
- JSON.parse(response.body)
85
+ if response.body == 'null'
86
+ nil
87
+ else
88
+ JSON.parse(response.body)
89
+ end
86
90
  end
87
91
 
88
92
  def self.auth_headers
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auth-lh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matias Hick