dhl-ecommerce 1.0 → 1.0.1

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: 9fdcd2715365cddaefd2c83251042ead98c90bc4
4
- data.tar.gz: cd2b1f3aa0c60ded06018d0061a62fe4cb6b0b74
3
+ metadata.gz: 45088ce10084ec7cdcc09f9d03efb1f2b2b1bbc6
4
+ data.tar.gz: fbaf340588cb07b326c473ad8a6f38de7c7f7ad0
5
5
  SHA512:
6
- metadata.gz: 171ad8b6de6315759b2bda5af0addc55c32d031070ad5e2067013de9136d7cf7b0594826411d9e34fac36431240cc7eea41e77983554b8b1766166d4ceba0f11
7
- data.tar.gz: 5eb55a54b412c6e6a34129b97dc979b53051c7c2000ece228e742fc3a934e415122352532fa4dce376078dbda397daf4fbbf33b353a015dd714bf9ae47886aaa
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
+ [![Gem Version](https://badge.fury.io/rb/dhl-ecommerce.svg)](https://badge.fury.io/rb/dhl-ecommerce)
3
4
  [![Build Status](https://travis-ci.org/meowbox/dhl-ecommerce-ruby.svg)](https://travis-ci.org/meowbox/dhl-ecommerce-ruby)
4
5
 
5
6
  ## Installation
@@ -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
- location_attributes.each_slice(500).collect do |slice|
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
@@ -1,5 +1,5 @@
1
1
  module DHL
2
2
  module Ecommerce
3
- VERSION = "1.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  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: '1.0'
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-30 00:00:00.000000000 Z
11
+ date: 2015-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler