codewars_api 0.4.1 → 0.4.2

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: 95b67630306cd7baae05bb70c5158e3a6a2d1e83
4
- data.tar.gz: 8bf2bcc0aa0c7e1687efb8fd4478b1d357b877c4
3
+ metadata.gz: fbdbe3b37eb8d4ebd912e0e6fc6e5892aee324cb
4
+ data.tar.gz: 01c194571c871c4c343eadb0dc99110f3e35945f
5
5
  SHA512:
6
- metadata.gz: 5dfd98777bde1240bcd7fa134e5ca996a4162d23281c34a5ae1d746e5dfd0a2b7a2d14c94791a835dbcd517e5da16ff67581d5de5e39576f352adb26f09c471c
7
- data.tar.gz: 8f0b0a7928750f46a0b570d69db4185475532dfbef220420becaa7542044021a3dc4f1ad434876c587773ddcefab651ba1e945ae881188cb9b46a1c12e2356fd
6
+ metadata.gz: 4ea7f082749e81eaad36da9891476e8c7f148b3f94202381e83bdf1b0f50f46518bfc43cd13ca776b6707111a3a4891c2befc41ff37ab72b8873775a85d6e9dd
7
+ data.tar.gz: 57768ffb9128235507143354d4d8302013b2b9d78d3e1a0ca88ad27ad1e2e4b0eedf1e1951ba3baea160294960346d2521866c9edb3d8a360bdf75f0e05c5a2f
@@ -1,7 +1,9 @@
1
1
  module CodewarsApi
2
2
  class ResponseChecker
3
3
  def self.check_errors(response)
4
- raise response.message unless response.code == 200
4
+ unless response.code.to_i == 200
5
+ raise "Response code is '#{response.code}'\n#{response.message}"
6
+ end
5
7
  end
6
8
  end
7
9
  end
@@ -1,3 +1,3 @@
1
1
  module CodewarsApi
2
- VERSION = '0.4.1'.freeze
2
+ VERSION = '0.4.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codewars_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evgeny Morozov