carousel-ruby-api 0.0.3 → 0.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0607f6afe1f613f3d1a4dd544943245a1369622c
4
- data.tar.gz: 95e533b637628ccd13dcbfbca702b2bd210b5605
3
+ metadata.gz: 82f63c108e9401de9dff15f30fa6715a097977ab
4
+ data.tar.gz: d9b3575b088f1949e820000a18bd0a41ca55d1fd
5
5
  SHA512:
6
- metadata.gz: 6869340ee67affff0b03f571933e7a974bd4f8e175a64a376d859cd9d5678335fe7de31c8548e82472b205110df91b70594927ae4a9276f7e8b26602245659a0
7
- data.tar.gz: 7e2e6c202c7185eaa8eb7ae8c96daa9b19d5fe060765286782962edee818bbb8bde40419b989a2a9836ec7abe16775627f65955ff557cf6c98bc7522a639860a
6
+ metadata.gz: 42c8b5fba1a07d41ba8222e697b6fadbbf49de96d4e60b4f47658f423fb9d2349a2ca36691a6dc2a58cd2de418b7cb3236edb0fab4f641acbe81baeb280e22ce
7
+ data.tar.gz: bf20ea083338d8c63bdcfadf3b51bed80e5c0b786665155170074b713fc4f3757e95999970151b9cf146ba72136af6b6a47451eb689e6107e4f132594db7950c
data/.gitignore CHANGED
@@ -15,3 +15,4 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
+ *.DS_Store
@@ -2,9 +2,13 @@ module Carousel
2
2
  class Shipping
3
3
 
4
4
  SHIPPING_MAP = {
5
- "next-day" => "ND",
6
- "express" => "EXPRESS",
7
- "standard" => "ECONOMY"
5
+ "EU:next-day" => "EXPRESS",
6
+ "EU:standard" => "ECONOMY",
7
+ "UK:next-day" => "ND",
8
+ "US:standard" => "EXPRESS",
9
+ "AU:standard" => "ECONOMY",
10
+ "KR:standard" => "ECONOMY",
11
+ "SG:standard" => "ECONOMY"
8
12
  }
9
13
 
10
14
  def self.map(code)
@@ -1,3 +1,3 @@
1
1
  module Carousel
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -4,7 +4,7 @@ describe Carousel::Shipping do
4
4
  describe '.map' do
5
5
  context 'with the code within the shipping map' do
6
6
  it 'returns the value for the given key' do
7
- expect(Carousel::Shipping.map("standard")).to eq("ECONOMY")
7
+ expect(Carousel::Shipping.map("EU:standard")).to eq("ECONOMY")
8
8
  end
9
9
  end
10
10
  context 'with the code not in the shipping map' do
data/spec/spec_helper.rb CHANGED
@@ -119,7 +119,7 @@ def order_hash
119
119
  line_items: line_items_array,
120
120
  warehouse: 'DC123',
121
121
  date: '2013-12-12',
122
- shipping_method: 'standard'
122
+ shipping_method: 'EU:standard'
123
123
  }
124
124
  end
125
125
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carousel-ruby-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Grubbs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-06 00:00:00.000000000 Z
11
+ date: 2014-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: builder
@@ -187,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
187
187
  version: '0'
188
188
  requirements: []
189
189
  rubyforge_project:
190
- rubygems_version: 2.0.6
190
+ rubygems_version: 2.2.2
191
191
  signing_key:
192
192
  specification_version: 4
193
193
  summary: This is a library for interfacing with the Carousel Fulfillment API