facturapi_ruby 1.1.1 → 1.1.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
  SHA256:
3
- metadata.gz: ab43ac978c359fba7cd5a919bc3ba03f4569e92523a7d39f0578c4773c577546
4
- data.tar.gz: a82ff27f7a128b41b7e21626252bf338d068382b6fb926d21517ba7ec7526892
3
+ metadata.gz: ab0caea89362d23d2923e2c672d65ba7e46db5f7cd7074fc0fef9eb770f54c36
4
+ data.tar.gz: 15060598f91e6b48b395529a4f631900e057394b7f930dad0aa5cab5598f63d0
5
5
  SHA512:
6
- metadata.gz: 446fc27b35cf98fad19570153ec04fcdd27091776d5c7482f0139c23eb41762f26f7bb97dcfec053656cab7102d8c9bceaa4222e1d4ad2c0a77e2c3332075d42
7
- data.tar.gz: 7837319218a56e8758f147719589cddb5c38d8010d81d04bcdeac377681948b46ff9057d0ef94e609c5a7908f511db71adabb1deec37167442d1717bb9c62bd5
6
+ metadata.gz: 5be6592e81eaa321eef0c1d8f86b3cadcfe4877f36173b40721334b64d9ff0329d6a48eb224b761acf47375095bcdc9db92f010bc8456d7f12ae365bba6a753b
7
+ data.tar.gz: 35da256d672fda82e32b4d932863848d553dda0da5083885895db697f6170c18c4b32da23fce5b723be16a9a7fe7a89f6007fb97c569258e8018ede5173a32a1
@@ -49,7 +49,8 @@ module FacturapiRuby
49
49
  http.set_debug_output($stdout)
50
50
 
51
51
  response = http.request(request)
52
- if response.code == '200'
52
+ puts response.code
53
+ if response.code.start_with? '20'
53
54
  JSON.parse(response.body)
54
55
  else
55
56
  raise FacturapiRubyError.new(JSON.parse(response.body))
@@ -1,3 +1,3 @@
1
1
  module FacturapiRuby
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: facturapi_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Diego Llamas Velasco
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-01-03 00:00:00.000000000 Z
11
+ date: 2019-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler