avatax-ruby 0.0.1 → 0.0.2

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: 8cd145141172657e1cff1479fffb4ca51ed0724f
4
- data.tar.gz: afa91da4845f340b0cbc00596f2fee25fcc22ad5
3
+ metadata.gz: bcb3ffaacaeb247976527ec07b2f499cb91949c8
4
+ data.tar.gz: 4ce1ff0d55b73959e697ad81a706f31b2d37bb61
5
5
  SHA512:
6
- metadata.gz: 8bd160627ebd839166ef0e8aad8f9777f8517baaf27f88898df3fb856d8eae7e2a7a1f99cafb50d58de8b9a46f15ded001b32ce7dfeb688daa60e64a9beff013
7
- data.tar.gz: 6c6baa7cd30609171adfe276f901e13a14e10bfa322b48951749d8a3daaa14f34ec107249aa9e1f0a8bf5bfd38cb7592e1fa24bed15c7f08a028477a40252346
6
+ metadata.gz: d141f70ce1dd1eec21a6ef62307c9555b04157f951fbc682b96f3a1102630229bd8f1f06d399a4903c58c155d7ca525e825a23ef5e8d4096b11569bc72c551c1
7
+ data.tar.gz: f103ec5ce463743f21adae2d515a1932b4b04d83e1d998b10f4ee1f8207a5abd04bd413f1b4bdc0fcd22d1217afdb26ea2353073b39baa44e8e5949e1bfb8d49
@@ -59,6 +59,8 @@ module Avatax
59
59
  @configuration.password
60
60
  )
61
61
 
62
+ conn.headers = @configuration.headers
63
+
62
64
  conn.response :json
63
65
  conn.response :logger
64
66
 
@@ -1,6 +1,6 @@
1
1
  module Avatax
2
2
  class Configuration
3
- attr_reader :sandbox, :base_url, :env, :username, :password
3
+ attr_reader :sandbox, :base_url, :env, :username, :password, :headers
4
4
 
5
5
  REST_URLS = {
6
6
  sandbox: 'https://sandbox-rest.avatax.com',
@@ -17,6 +17,8 @@ module Avatax
17
17
  @sandbox = @env == SANDBOX
18
18
  @base_url = REST_URLS[env]
19
19
 
20
+ @headers = args[:headers] || {}
21
+
20
22
  @username = args[:username]
21
23
  @password = args[:password]
22
24
  end
@@ -1,3 +1,3 @@
1
1
  module Avatax
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avatax-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taylor Scott
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-25 00:00:00.000000000 Z
11
+ date: 2017-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport