semaphore_client 2.7.0 → 2.8.0

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: 8b0f7c76664b09561c46dc77c85a51a4f831b629
4
- data.tar.gz: 141c965e420683c86c8e7dc3fcba4a4846c261f7
3
+ metadata.gz: 63fb8994b35036df3f1eaba9637049b1be44d967
4
+ data.tar.gz: d88dfbc95c10218a36987fe41280136df88027e5
5
5
  SHA512:
6
- metadata.gz: 851ae149946a390782ff7c6b7c82f68a3d624e80cfc3e1470e4b4fbb1db7169dc3153a121197098950b579a8038ea122fa10101bf91ce80af0a9f5189aefcc13
7
- data.tar.gz: b4c332064b557deafaa2ccafef905b517ead1aace0e101854a7246f90ced331b98572880f0375d3f4e2c6fdc4cd8144e30448e2b79425d6720e5fa199f0d409a
6
+ metadata.gz: 8c65a1f29a5589d07e95ad067e52edcacaeb0615dd2c3432889a17d200bd7b58ba8133f3b00577797794b6a5d08b1b320396367bf0e6e57033882da87205c1aa
7
+ data.tar.gz: 7a8fbbb42acf8e5bb3e18fd8724328bbb68b51d28c12d127524455e083de0d101bbc28cffbdd38c365afd53eea692e5e2e203da3ea2a68d60697bf23becf8949
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- semaphore_client (2.7.0)
4
+ semaphore_client (2.8.0)
5
5
  faraday
6
6
 
7
7
  GEM
@@ -12,7 +12,15 @@ class SemaphoreClient
12
12
  def initialize(env)
13
13
  @env = env
14
14
 
15
- super(env[:message])
15
+ super(message)
16
+ end
17
+
18
+ def code
19
+ @env[:status]
20
+ end
21
+
22
+ def message
23
+ JSON.parse(@env[:body])["message"]
16
24
  end
17
25
  end
18
26
 
@@ -1,3 +1,3 @@
1
1
  class SemaphoreClient
2
- VERSION = "2.7.0"
2
+ VERSION = "2.8.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: semaphore_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.0
4
+ version: 2.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jovan Ivanović
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-10-05 00:00:00.000000000 Z
11
+ date: 2017-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday