semaphore_client 2.5.0 → 2.6.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: e6d4c0a4082eacb1e30c4c17c06d8b58b3addaf4
4
- data.tar.gz: 1046b7f04b0edb7823b79ba55bd2d0bf195f7822
3
+ metadata.gz: ea367bad5bf63a2fb367feecccda015e8c69f4c8
4
+ data.tar.gz: 1a3205112ff51dd8ecdb2ca14a9347396041526c
5
5
  SHA512:
6
- metadata.gz: cef6ebcf123d8ab3fdb7494d0176ac9a76cc16bfe8d46acb9e14205cb00a58a35a63ef807c25479d6fe34fae97326cdb483657167f784a79ad377c5b4121b592
7
- data.tar.gz: 008885de133cbfbf9640f5b45e4a4039bf0f0924bac45ab8242107902a3c20c70421a68cf278f81ff86517ac52a56785402e5a67c3f348c23de429bcddd42282
6
+ metadata.gz: ae7f047f3eb3969c1ccfc90c17a670fff0b4c151ec690ecd7d5f37961749627afeb3908144bd1bbc92bf7486a4630d5e462872210064aca51f2533d0be52813e
7
+ data.tar.gz: 61b11722e92077a0510c381e124d518bdccb02823cb304b1df312708373140a18b9b82efcb2a5a44bc88c40abc3c7ef627c2ff6a7c0d9e4149e316f93e525999
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- semaphore_client (2.5.0)
4
+ semaphore_client (2.6.0)
5
5
  faraday
6
6
 
7
7
  GEM
@@ -34,7 +34,9 @@ class SemaphoreClient
34
34
  # 422
35
35
  class UnprocessableEntity < ResponseError
36
36
  def errors
37
- JSON.parse(@env[:body])["erorrs"].map { |error| ApiError.new(error) }
37
+ JSON.parse(@env[:body])["errors"].map do |error|
38
+ ApiError.new(error["resource"], error["field"], error["code"])
39
+ end
38
40
  end
39
41
  end
40
42
 
@@ -1,3 +1,3 @@
1
1
  class SemaphoreClient
2
- VERSION = "2.5.0"
2
+ VERSION = "2.6.0"
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.5.0
4
+ version: 2.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jovan Ivanović