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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3e2232c31cbc0403864750faa7c8afef0b7bf756
4
- data.tar.gz: cf194b84a52a2ecd36d3dffb1189b99a5a4c52a6
3
+ metadata.gz: 761e1007810a5966fe5c379a2e3b00ae40491be7
4
+ data.tar.gz: 2433eb57b745f455f02c7f9a8893bfac1313f836
5
5
  SHA512:
6
- metadata.gz: a503ef3cdaad139d41b2a09cf83d5307b6cc8334b2115a314bedfac20e6e26913ab606574dfb4593e4889f4421cf5db27205dc3f41f1b2d10a074ef94237cdc2
7
- data.tar.gz: cd2b8d7b9aa94c7ef85f773fb67d4626e2f9ca0cdcbbd9ecd0c9ee31791d489a51dd3b33fa0d46dd9c97a6c72946bfcbdb01929a40b529cf14f90efed73ba571
6
+ metadata.gz: c8a34ffbfc5d22ae85554c6af834173cfaebe24338cbe8d63eebae71745ce59b7b2cfd9c39ccdfa8f1fd600f0edc525eaa44c901361e4b3d00ac48bfb118fdf4
7
+ data.tar.gz: 1a5198ee4f4bbed3065d53a012bf520344a58a3e572e67aa81a90dd17e481c6696ff55cfbd5dffda8328ab4880c90a310eaf3510acbccc9a6c776a7e31a00a57
data/CHANGELOG CHANGED
@@ -1,6 +1,7 @@
1
- 0.4.2
1
+ 0.4.5
2
2
  Bug fixes for UPS
3
3
  Updated syntax for gemspec
4
+ Updated dependencies
4
5
 
5
6
  0.4.1
6
7
  Bug fixes for dependencies
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.2**
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, tracking_number, options={})
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,tracking_number)
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,tracking_number)
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
- xml.TrackingNumber tracking_number
324
+ tracking_numbers.each do |tracking_number|
325
+ xml.TrackingNumber tracking_number
326
+ end
325
327
  }
326
328
  }
327
329
  end
@@ -1,3 +1,3 @@
1
1
  module Omniship
2
- VERSION = "0.4.5"
2
+ VERSION = "0.4.6"
3
3
  end
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.5
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-03-16 00:00:00.000000000 Z
11
+ date: 2015-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport