semaphore_client 2.8.0 → 2.8.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 63fb8994b35036df3f1eaba9637049b1be44d967
4
- data.tar.gz: d88dfbc95c10218a36987fe41280136df88027e5
3
+ metadata.gz: 60da0c7ccba919a12a7784026ef700ab2478aefa
4
+ data.tar.gz: 4756b1e2caeeb572270d3f9d0b6b8ccc1a58552d
5
5
  SHA512:
6
- metadata.gz: 8c65a1f29a5589d07e95ad067e52edcacaeb0615dd2c3432889a17d200bd7b58ba8133f3b00577797794b6a5d08b1b320396367bf0e6e57033882da87205c1aa
7
- data.tar.gz: 7a8fbbb42acf8e5bb3e18fd8724328bbb68b51d28c12d127524455e083de0d101bbc28cffbdd38c365afd53eea692e5e2e203da3ea2a68d60697bf23becf8949
6
+ metadata.gz: 470205fb482399ea3cdae888e3f2b1d1b909932cd7e53c44aea5d933651d9ec6120ce9cb6a27adff74833e2784f9a469592d9aded7136949ee24908687380f24
7
+ data.tar.gz: 71e701d89b24c57a02a5317ab69baa548d49d512e30c3100a722d3ea66f05841ae98ec857bc841f2e42408ffb34139c8a490d09c928bec1ae6d54dc886717913
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- semaphore_client (2.8.0)
4
+ semaphore_client (2.8.1)
5
5
  faraday
6
6
 
7
7
  GEM
@@ -20,7 +20,11 @@ class SemaphoreClient
20
20
  end
21
21
 
22
22
  def message
23
- JSON.parse(@env[:body])["message"]
23
+ body["message"] if body.is_a?(Hash)
24
+ end
25
+
26
+ def body
27
+ JSON.parse(@env[:body])
24
28
  end
25
29
  end
26
30
 
@@ -1,3 +1,3 @@
1
1
  class SemaphoreClient
2
- VERSION = "2.8.0"
2
+ VERSION = "2.8.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: semaphore_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.0
4
+ version: 2.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jovan Ivanović