docomo_image_recognition 0.1.0 → 0.1.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: ef826684f40faddb76c2a6bce951e932e471fd9b
4
- data.tar.gz: 118d6694e146b0dff2717d4b7128c3c278fe399e
3
+ metadata.gz: 326144258e2414e641f53dc8c938df0f5a415774
4
+ data.tar.gz: ff1e7a3bf6f0f2430d3e6dac2ee1278f376dff82
5
5
  SHA512:
6
- metadata.gz: b76d2a6f82173bcdd303e50a1e5453241d2c13b3f967825d1436defdd32cd2df429f2cc5fac821bf7a1ec2d50f74c3ef13f9ab45e89de3161b5a26c61247a557
7
- data.tar.gz: 8d07e368d0af6127c6cf1c0f3de72d2d8db2f5d8f556f1a78fc568a8b52944c12eee385fd0f27e28024202ba08d1113c04593f02cf4f5fe231384c81886c9317
6
+ metadata.gz: c9299c4eaa413e383a422b135a9362343859ebee6beddbb9ff3f43b5d052a8e716666fa2fe9a9323035fd1afb8c9f96e90cdb19c005a8266824c75bbfe102b09
7
+ data.tar.gz: 6e8cb40a7086a80ec717338d56556b18275d428892bd37b6fd88fa0678328ed75c735a1ebdc3be6a460277747694c24e2bf35f0ab0e92f406444987b51fca5e4
@@ -47,8 +47,8 @@ module DocomoImageRecognition
47
47
  def raise_on_error!(body, status)
48
48
  case status.split(' ')[0].to_i
49
49
  when 200 then return
50
- when 401 then fail 'not authorized', ApiError.new(body)
51
- when 400 then fail 'bad request', ApiError.new(body)
50
+ when 401 then fail ApiError.new(body), 'not authorized'
51
+ when 400 then fail ApiError.new(body), 'bad request'
52
52
  end
53
53
  end
54
54
  end
@@ -1,6 +1,6 @@
1
1
  module DocomoImageRecognition
2
2
  MAJOR = 0
3
3
  MINOR = 1
4
- PATCH = 0
4
+ PATCH = 1
5
5
  VERSION = "#{MAJOR}.#{MINOR}.#{PATCH}"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docomo_image_recognition
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Perez