carousel-ruby-api 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/lib/carousel/shipping.rb +7 -3
- data/lib/carousel/version.rb +1 -1
- data/spec/lib/shipping_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82f63c108e9401de9dff15f30fa6715a097977ab
|
4
|
+
data.tar.gz: d9b3575b088f1949e820000a18bd0a41ca55d1fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42c8b5fba1a07d41ba8222e697b6fadbbf49de96d4e60b4f47658f423fb9d2349a2ca36691a6dc2a58cd2de418b7cb3236edb0fab4f641acbe81baeb280e22ce
|
7
|
+
data.tar.gz: bf20ea083338d8c63bdcfadf3b51bed80e5c0b786665155170074b713fc4f3757e95999970151b9cf146ba72136af6b6a47451eb689e6107e4f132594db7950c
|
data/.gitignore
CHANGED
data/lib/carousel/shipping.rb
CHANGED
@@ -2,9 +2,13 @@ module Carousel
|
|
2
2
|
class Shipping
|
3
3
|
|
4
4
|
SHIPPING_MAP = {
|
5
|
-
"next-day" => "
|
6
|
-
"
|
7
|
-
"
|
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)
|
data/lib/carousel/version.rb
CHANGED
data/spec/lib/shipping_spec.rb
CHANGED
@@ -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
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.
|
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-
|
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.
|
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
|