ontrac-web-services 0.9.0 → 0.9.1
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.
- data/lib/ontrac/version.rb +2 -2
- data/lib/ontrac/web_services/service.rb +1 -2
- data/ontrac-web-services.gemspec +2 -2
- metadata +4 -4
data/lib/ontrac/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
module Ontrac
|
2
|
-
VERSION = "0.9.
|
3
|
-
end
|
2
|
+
VERSION = "0.9.1"
|
3
|
+
end
|
@@ -95,7 +95,7 @@ module Ontrac::WebServices
|
|
95
95
|
raise err
|
96
96
|
rescue Exception => root_exception
|
97
97
|
err = ServiceException.new(root_exception.message)
|
98
|
-
err.details = { request: request_xml, response:
|
98
|
+
err.details = { request: request_xml.to_s, response: response.body }
|
99
99
|
err.set_backtrace([ "#{__FILE__}:#{__LINE__ + 1}", *root_exception.backtrace ])
|
100
100
|
raise err
|
101
101
|
end
|
@@ -108,7 +108,6 @@ module Ontrac::WebServices
|
|
108
108
|
if (status.empty? || status != "1" || response_xml.xpath("//PackageData/Status != 1"))
|
109
109
|
msg = "No status information was returned for the request" if (status.empty?)
|
110
110
|
msg = message || "The request returned a status of #{status}" if (status != "1")
|
111
|
-
|
112
111
|
msg << " -- " + [ *package_messages.to_a ] * " ; " if (!package_messages.empty?)
|
113
112
|
|
114
113
|
raise msg
|
data/ontrac-web-services.gemspec
CHANGED
@@ -4,9 +4,9 @@ require File.expand_path('../lib/ontrac/version', __FILE__)
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
5
|
gem.authors = ["Brian Abreu"]
|
6
6
|
gem.email = ["brian@nuts.com"]
|
7
|
-
gem.description = %q{
|
7
|
+
gem.description = %q{Provides an interface to the OnTrac web services API}
|
8
8
|
gem.summary = %q{Interfaces with the OnTrac web services API to look up shipping rates, generate labels, and track shipments}
|
9
|
-
gem.homepage = ""
|
9
|
+
gem.homepage = "https://github.com/brewski/ontrac-web-services"
|
10
10
|
|
11
11
|
gem.files = `git ls-files`.split($\)
|
12
12
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ontrac-web-services
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-12-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
- - ! '>='
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
version: '0'
|
46
|
-
description:
|
46
|
+
description: Provides an interface to the OnTrac web services API
|
47
47
|
email:
|
48
48
|
- brian@nuts.com
|
49
49
|
executables: []
|
@@ -68,7 +68,7 @@ files:
|
|
68
68
|
- lib/ontrac/web_services/definitions/shipper_data.rb
|
69
69
|
- lib/ontrac/web_services/service.rb
|
70
70
|
- ontrac-web-services.gemspec
|
71
|
-
homepage:
|
71
|
+
homepage: https://github.com/brewski/ontrac-web-services
|
72
72
|
licenses: []
|
73
73
|
post_install_message:
|
74
74
|
rdoc_options: []
|