quaderno 1.12.3 → 1.12.4

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: 13a20f5d07e03a044cf3675dc2e5be62bc52586c
4
- data.tar.gz: 30310e571145312613f838177430c9ef4818f69b
3
+ metadata.gz: 89d49f7283f9a82860cdccb324d5f143b43453f9
4
+ data.tar.gz: 7dfa0a8d1b8808705fb8097aa0b294f09fb8c842
5
5
  SHA512:
6
- metadata.gz: 8bfda04f778eb1db5c50daeae87b2cf6f3f8074e168e4ee8b95409ba9ad49bc46e365c1b13050e3bf8ca7034faef4ea6ad11fcd02c403e052e9e83a43c588c8f
7
- data.tar.gz: dc40e3227dd53c8ea23400e0ed663e0a61e78f47a98b24101005a235123d4954063d8a169d7029163fb635163b1285fb1c96d1614135e9d913d130142760bb63
6
+ metadata.gz: c28a9a1815179b1b6b6034dcdd05c44c454216259a21cbb960846bb6be425a2e6249e0a39878601bc5aeea6e19d6fc7dd555017d0978b12e9b47fd44cffdaba1
7
+ data.tar.gz: 91d71ef1c50a398623ed3753047f12e53122300758e28fb5d0dd3a3c3b67c505f6906a4d480f53623554818cd89c10d04ad7a6fe5fcec248aa0f7a1fee328dc4
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  Quaderno-ruby is a ruby wrapper for [Quaderno API] (https://github.com/quaderno/quaderno-api).
4
4
  As the API, it's mostly CRUD.
5
5
 
6
- Current version is 1.12.3 See the changelog [here](https://github.com/quaderno/quaderno-ruby/blob/master/changelog.md)
6
+ Current version is 1.12.4 See the changelog [here](https://github.com/quaderno/quaderno-ruby/blob/master/changelog.md)
7
7
 
8
8
  ## Installation & Configuration
9
9
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.12.3
1
+ 1.12.4
data/changelog.md CHANGED
@@ -1,4 +1,7 @@
1
1
  #Changelog
2
+ ##1.12.4
3
+ * Use version headers on taxes requests.
4
+
2
5
  ##1.12.3
3
6
  * Return integers insteado of strings on pagination readers.
4
7
 
@@ -17,7 +17,7 @@ module Quaderno
17
17
  response = get("#{authentication[:url]}taxes/calculate.json",
18
18
  query: params,
19
19
  basic_auth: authentication[:basic_auth],
20
- headers: authentication[:headers]
20
+ headers: version_header.merge(authentication[:headers])
21
21
  )
22
22
 
23
23
  check_exception_for(response, { rate_limit: true, subdomain_or_token: true, id: true })
@@ -30,7 +30,7 @@ module Quaderno
30
30
  response = get("#{authentication[:url]}taxes/validate.json",
31
31
  query: { country: country, vat_number: vat_number },
32
32
  basic_auth: authentication[:basic_auth],
33
- headers: authentication[:headers]
33
+ headers: version_header.merge(authentication[:headers])
34
34
  )
35
35
 
36
36
  check_exception_for(response, { rate_limit: true, subdomain_or_token: true, id: true })
@@ -45,7 +45,7 @@ module Quaderno
45
45
  response = get("#{authentication[:url]}taxes/reports.json",
46
46
  query: params,
47
47
  basic_auth: authentication[:basic_auth],
48
- headers: authentication[:headers]
48
+ headers: version_header.merge(authentication[:headers])
49
49
  )
50
50
 
51
51
  array = response.parsed_response
data/quaderno.gemspec CHANGED
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: quaderno 1.12.3 ruby lib
5
+ # stub: quaderno 1.12.4 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "quaderno"
9
- s.version = "1.12.3"
9
+ s.version = "1.12.4"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Recrea"]
14
- s.date = "2017-07-13"
14
+ s.date = "2017-07-27"
15
15
  s.description = " A ruby wrapper for Quaderno API "
16
16
  s.email = "carlos@recrea.es"
17
17
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quaderno
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.3
4
+ version: 1.12.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Recrea
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-13 00:00:00.000000000 Z
11
+ date: 2017-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty