Avatax_AddressService 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/Avatax_AddressService.gemspec +2 -1
- data/lib/avatax_addressservice.rb +7 -7
- metadata +6 -11
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
OTRjMDdhZmFjZGUxNzdjZjA5N2EyMDM5OTIwNGM4NWEyZDBmNGQzMQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
MjAyYjBhYmMxN2RjMjM3MGZlNWIxZTgzODE0MjU2MWI4NTIwZDM3OA==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
Yzc2ZWIwNTMxNGRkZDkyODk3NDNkOGZiMGM2YTBhNzg4NGMxMTdhN2IxZTY3
|
10
|
+
YzY3Nzk3YWY5NzY1M2ViOTBmZDljMzU0YWU2MThlYjAwMTg2OGUxZTg2N2Qx
|
11
|
+
YTI2Nzc5ODVjZDUzMDY4NWU3OWZhZTEwYmM3ZDVjNzkxYTE0NGY=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
NmRiOTVmYzIzMTcxZmQ0YjMwMGE2NjU0MDdhNmUyNDkzMjdkMTU2M2E3Mzc3
|
14
|
+
ZThhMmFjNWQ0ODdmNDgxZGRkNTRhOTU5MzJmNzU0MDUzZjgyMWE5N2RlY2E4
|
15
|
+
MWY1MzdiYTVjMWMyMzdiNGJlMmU0NDVmNDA0NTgyNzgyZjE3NzE=
|
@@ -1,11 +1,12 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "Avatax_AddressService"
|
3
|
-
s.version = "1.0.
|
3
|
+
s.version = "1.0.6"
|
4
4
|
s.date = "2012-12-16"
|
5
5
|
s.author = "Graham S Wilson"
|
6
6
|
s.email = "support@Avalara.com"
|
7
7
|
s.summary = "Ruby SDK for Avatax Address Web Services"
|
8
8
|
s.homepage = "http://www.avalara.com/"
|
9
|
+
s.license = 'MIT'
|
9
10
|
s.description = "Ruby SDK provides means of communication with Avatax Web Services."
|
10
11
|
s.files = ["lib/address_log.txt", "lib/addressservice_dev.wsdl", "lib/addressservice_prd.wsdl", "lib/avatax_addressservice.rb",
|
11
12
|
"lib/template_validate.erb","lib/template_ping.erb","lib/template_isauthorized.erb",
|
@@ -30,7 +30,7 @@ module AvaTax
|
|
30
30
|
@def_locn = gem_root + "/lib"
|
31
31
|
|
32
32
|
#Open Avatax Error Log
|
33
|
-
@log = File.new(@def_locn + '
|
33
|
+
@log = File.new(@def_locn + '/address_log.txt', "w")
|
34
34
|
@log.puts "#{Time.now}: Address service started"
|
35
35
|
|
36
36
|
#log :false turns off HTTP logging
|
@@ -38,21 +38,21 @@ module AvaTax
|
|
38
38
|
|
39
39
|
begin
|
40
40
|
#Read in the SOAP template for Ping
|
41
|
-
@template_ping = ERB.new(File.read(@def_locn + '
|
41
|
+
@template_ping = ERB.new(File.read(@def_locn + '/template_ping.erb'))
|
42
42
|
rescue
|
43
43
|
@log.puts "#{Time.now}: Error loading the Ping template"
|
44
44
|
end
|
45
45
|
|
46
46
|
begin
|
47
47
|
#Read in the SOAP template for Validate
|
48
|
-
@template_validate = ERB.new(File.read(@def_locn + '
|
48
|
+
@template_validate = ERB.new(File.read(@def_locn + '/template_validate.erb'))
|
49
49
|
rescue
|
50
50
|
@log.puts "#{Time.now}: Error loading the Validate template"
|
51
51
|
end
|
52
52
|
|
53
53
|
begin
|
54
54
|
#Read in the SOAP template for IsAuthorized
|
55
|
-
@template_isauthorized = ERB.new(File.read(@def_locn + '
|
55
|
+
@template_isauthorized = ERB.new(File.read(@def_locn + '/template_isauthorized.erb'))
|
56
56
|
rescue
|
57
57
|
@log.puts "#{Time.now}: Error loading the IsAuthorized template"
|
58
58
|
end
|
@@ -83,7 +83,7 @@ module AvaTax
|
|
83
83
|
@doc = Nokogiri::XML(@response).remove_namespaces!
|
84
84
|
|
85
85
|
#Read in an array of XPATH pointers
|
86
|
-
@ping_xpath = File.readlines(@def_locn + '
|
86
|
+
@ping_xpath = File.readlines(@def_locn + '/xpath_ping.txt')
|
87
87
|
|
88
88
|
#Read each array element, extract the result returned by the service and place in a the @return_data hash
|
89
89
|
@ping_xpath.each{|xpath| @return_data[xpath[2...xpath.length].chomp.to_sym] = @doc.xpath(xpath).text}
|
@@ -146,7 +146,7 @@ module AvaTax
|
|
146
146
|
@doc = Nokogiri::XML(@response).remove_namespaces!
|
147
147
|
|
148
148
|
#Read in an array of XPATH pointers
|
149
|
-
@validate_xpath = File.readlines(@def_locn + '
|
149
|
+
@validate_xpath = File.readlines(@def_locn + '/xpath_validate.txt')
|
150
150
|
|
151
151
|
#Read each array element, extract the result returned by the service and place in a the @return_data hash
|
152
152
|
@validate_xpath.each{|xpath| @return_data[xpath[2...xpath.length].chomp.to_sym] = @doc.xpath(xpath).text}
|
@@ -178,7 +178,7 @@ module AvaTax
|
|
178
178
|
@doc = Nokogiri::XML(@response).remove_namespaces!
|
179
179
|
|
180
180
|
#Read in an array of XPATH pointers
|
181
|
-
@isauthorized_xpath = File.readlines(@def_locn + '
|
181
|
+
@isauthorized_xpath = File.readlines(@def_locn + '/xpath_isauthorized.txt')
|
182
182
|
|
183
183
|
#Read each array element, extract the result returned by the service and place in a the @return_data hash
|
184
184
|
@isauthorized_xpath.each{|xpath| @return_data[xpath[2...xpath.length].chomp.to_sym] = @doc.xpath(xpath).text}
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: Avatax_AddressService
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.6
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Graham S Wilson
|
@@ -14,7 +13,6 @@ dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: nokogiri
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ! '>='
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ! '>='
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -30,7 +27,6 @@ dependencies:
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: savon
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - ! '>='
|
36
32
|
- !ruby/object:Gem::Version
|
@@ -38,7 +34,6 @@ dependencies:
|
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - ! '>='
|
44
39
|
- !ruby/object:Gem::Version
|
@@ -64,28 +59,28 @@ files:
|
|
64
59
|
- Avatax Ruby SDK Guide.docx
|
65
60
|
- LICENSE.txt
|
66
61
|
homepage: http://www.avalara.com/
|
67
|
-
licenses:
|
62
|
+
licenses:
|
63
|
+
- MIT
|
64
|
+
metadata: {}
|
68
65
|
post_install_message: Thanks for installing the Avalara AddressService Ruby SDK. Refer
|
69
66
|
to "Avatax Ruby SDK User Guide.docx" to get started.
|
70
67
|
rdoc_options: []
|
71
68
|
require_paths:
|
72
69
|
- lib
|
73
70
|
required_ruby_version: !ruby/object:Gem::Requirement
|
74
|
-
none: false
|
75
71
|
requirements:
|
76
72
|
- - ! '>='
|
77
73
|
- !ruby/object:Gem::Version
|
78
74
|
version: 1.9.1
|
79
75
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
|
-
none: false
|
81
76
|
requirements:
|
82
77
|
- - ! '>='
|
83
78
|
- !ruby/object:Gem::Version
|
84
79
|
version: '0'
|
85
80
|
requirements: []
|
86
81
|
rubyforge_project:
|
87
|
-
rubygems_version: 1.
|
82
|
+
rubygems_version: 2.1.11
|
88
83
|
signing_key:
|
89
|
-
specification_version:
|
84
|
+
specification_version: 4
|
90
85
|
summary: Ruby SDK for Avatax Address Web Services
|
91
86
|
test_files: []
|