moy_sklad 1.0.0.beta11 → 1.0.0.beta12

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: 4f32d92bedd351f661e1530c445e840416d901b5
4
- data.tar.gz: c165ab26969c87e8cb1dbd423dfc9ce3ad9b244a
3
+ metadata.gz: 9fe209184bd46abae73df7d39250c7f61dc9b4e7
4
+ data.tar.gz: 378daa8f64bf329e6ad3c100f2de1d4c368a5223
5
5
  SHA512:
6
- metadata.gz: 3de80c0bab7163d8bc9fda6061cd785f76dec394670b3b161d24ea585be99e2a20e63e457d7c2aaf62ba896965ca3a5ae185b760fc764f7c8377734d3bb8a928
7
- data.tar.gz: 0c925df6ea4045977e6b4acf94001d99092f2b05e14e00d84564b1f77046dfb22f5e1204b1cea9e28020b3f93381e93e2c1a38d0bcc0347293c7eca1a88e61c4
6
+ metadata.gz: 410d5ffb9979e8f64ffb53e71df3eda5df0f211e941880c32b1fd7e907278b24fd56821b73a490c0283522db73eca8f7fadd5a80a9da3b3526f680de3afb2174
7
+ data.tar.gz: 15093c2f8588b435373c44b2a6e5d9a42e8e50d4c3ed296a89d4bf9f79baa1edd9c1b77ef22877172b1dd9df4990fcee4a46918c35e18d41d942ac958bfaaddf
@@ -12,7 +12,7 @@ module MoySklad::Client
12
12
 
13
13
  def decode(_data)
14
14
  data = Hash.from_xml(_data)
15
- fail MoySklad::BadApiResponseError unless data
15
+ fail MoySklad::BadApiResponse unless data
16
16
 
17
17
  if data.has_key?('collection')
18
18
  collection(data)
@@ -1,4 +1,4 @@
1
1
  module MoySklad
2
2
  class BaseError < RuntimeError; end
3
- class BadApiResponseError < BaseError; end
3
+ class BadApiResponse < BaseError; end
4
4
  end
@@ -1,3 +1,3 @@
1
1
  module MoySklad
2
- VERSION = '1.0.0.beta11'
2
+ VERSION = '1.0.0.beta12'
3
3
  end
@@ -3,7 +3,7 @@ require 'spec_helper'
3
3
  describe MoySklad::Client::Formatter do
4
4
  describe '#decode' do
5
5
  it 'should rise BadApiResponse when data is empty' do
6
- expect { subject.decode(nil) }.to raise_error(MoySklad::BadApiResponseError)
6
+ expect { subject.decode(nil) }.to raise_error(MoySklad::BadApiResponse)
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moy_sklad
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta11
4
+ version: 1.0.0.beta12
5
5
  platform: ruby
6
6
  authors:
7
7
  - uno4ki