dhl-ecommerce 1.0 → 1.0.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.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/dhl/ecommerce/label.rb +3 -1
- data/lib/dhl/ecommerce/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: 45088ce10084ec7cdcc09f9d03efb1f2b2b1bbc6
|
|
4
|
+
data.tar.gz: fbaf340588cb07b326c473ad8a6f38de7c7f7ad0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: da613a7ef0b87bd5faa5efc0f10a03ab632443c84e078bc4527ea64e72973376641539c68d10ef6bc194f4d9398d19477734451e0a6d6070016e75f582e76972
|
|
7
|
+
data.tar.gz: a1526cdb93f9c110fd8a3097492aa67f629eb46fb6099f815ce66bd8daaa36601ffb4b30a75bbb6eb7951f06d7819480b6ec593daa65c9f522e5ef551a0885c3
|
data/README.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# DHL eCommerce API Wrapper for Ruby
|
|
2
2
|
|
|
3
|
+
[](https://badge.fury.io/rb/dhl-ecommerce)
|
|
3
4
|
[](https://travis-ci.org/meowbox/dhl-ecommerce-ruby)
|
|
4
5
|
|
|
5
6
|
## Installation
|
data/lib/dhl/ecommerce/label.rb
CHANGED
|
@@ -202,7 +202,9 @@ module DHL
|
|
|
202
202
|
url = "https://api.dhlglobalmail.com/v1/#{self.resource_name.downcase}/US/#{location_id}/zpl"
|
|
203
203
|
end
|
|
204
204
|
|
|
205
|
-
|
|
205
|
+
# DHL e-Commerce's documentation says they support creating 500 labels
|
|
206
|
+
# at once but as it turns out, they don't.
|
|
207
|
+
location_attributes.each_slice(1).collect do |slice|
|
|
206
208
|
labels = slice.map do |slice_attributes|
|
|
207
209
|
new slice_attributes
|
|
208
210
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dhl-ecommerce
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Francois Deschenes
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-10-
|
|
11
|
+
date: 2015-10-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|