omniship 0.4.5 → 0.4.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +2 -1
- data/README.markdown +2 -1
- data/lib/omniship/carriers/ups.rb +6 -4
- data/lib/omniship/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 761e1007810a5966fe5c379a2e3b00ae40491be7
|
4
|
+
data.tar.gz: 2433eb57b745f455f02c7f9a8893bfac1313f836
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8a34ffbfc5d22ae85554c6af834173cfaebe24338cbe8d63eebae71745ce59b7b2cfd9c39ccdfa8f1fd600f0edc525eaa44c901361e4b3d00ac48bfb118fdf4
|
7
|
+
data.tar.gz: 1a5198ee4f4bbed3065d53a012bf520344a58a3e572e67aa81a90dd17e481c6696ff55cfbd5dffda8328ab4880c90a310eaf3510acbccc9a6c776a7e31a00a57
|
data/CHANGELOG
CHANGED
data/README.markdown
CHANGED
@@ -83,9 +83,10 @@ into create_shipment and accept_shipment.
|
|
83
83
|
Currently this is on my TODO list. Check back for updates
|
84
84
|
|
85
85
|
## Change Log
|
86
|
-
**0.4.
|
86
|
+
**0.4.5**
|
87
87
|
* Bug fixes for UPS
|
88
88
|
* Updated syntax for gemspec
|
89
|
+
* Updated dependencies
|
89
90
|
|
90
91
|
**0.4.1**
|
91
92
|
* Bug fixes for dependencies
|
@@ -140,12 +140,12 @@ module Omniship
|
|
140
140
|
parse_ship_accept_response(response, options)
|
141
141
|
end
|
142
142
|
|
143
|
-
def void_shipment(ups_shipment_id,
|
143
|
+
def void_shipment(ups_shipment_id, tracking_numbers = [], options={})
|
144
144
|
@options = @options.merge(options)
|
145
145
|
options = @options.merge(options)
|
146
146
|
options[:test] = options[:test].nil? ? true : options[:test]
|
147
147
|
access_request = build_access_request
|
148
|
-
ship_void_request = build_void_request(ups_shipment_id,
|
148
|
+
ship_void_request = build_void_request(ups_shipment_id,tracking_numbers)
|
149
149
|
response = commit(:shipvoid, save_request(access_request.gsub("\n", "") + ship_void_request.gsub("\n", "")), options[:test])
|
150
150
|
parse_ship_void_response(response, options)
|
151
151
|
end
|
@@ -313,7 +313,7 @@ module Omniship
|
|
313
313
|
builder.to_xml
|
314
314
|
end
|
315
315
|
|
316
|
-
def build_void_request(ups_shipment_id,
|
316
|
+
def build_void_request(ups_shipment_id,tracking_numbers)
|
317
317
|
builder = Nokogiri::XML::Builder.new do |xml|
|
318
318
|
xml.VoidShipmentRequest {
|
319
319
|
xml.Request {
|
@@ -321,7 +321,9 @@ module Omniship
|
|
321
321
|
}
|
322
322
|
xml.ExpandedVoidShipment {
|
323
323
|
xml.ShipmentIdentificationNumber ups_shipment_id
|
324
|
-
|
324
|
+
tracking_numbers.each do |tracking_number|
|
325
|
+
xml.TrackingNumber tracking_number
|
326
|
+
end
|
325
327
|
}
|
326
328
|
}
|
327
329
|
end
|
data/lib/omniship/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniship
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Donavan White
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|