active_shipping 1.10.1 → 1.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_shipping/carrier.rb +10 -0
- data/lib/active_shipping/version.rb +1 -1
- data/test/unit/carrier_test.rb +6 -0
- 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: 8af9e2153874a80f99898713503be8058c77beba
|
4
|
+
data.tar.gz: 44502b5f9555c1604dc1f59d822dd9a39d63943c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 234d7598e5596d9f0cea50f1923b8d678965a8b7b2b6c586c7c820948cb054480ee3a7d6e6a17fc835c6f79c180ba65338e7603d3a081b4d48d9bdefd9977397
|
7
|
+
data.tar.gz: 00ee373990ad7a7f95f998bc33ace440efdad4cfe65be76e5457fc39cd2b8fce353905becef31c3e5bcce9ec5365b717f6e4c7d2a2255af91db3e1d162d6d83a
|
@@ -94,6 +94,16 @@ module ActiveShipping
|
|
94
94
|
raise NotImplementedError, "#find_tracking_info is not supported by #{self.class.name}."
|
95
95
|
end
|
96
96
|
|
97
|
+
# Get a list of services available for the a specific route
|
98
|
+
#
|
99
|
+
# @param origin_country_code [String] The country of origin
|
100
|
+
# @param destination_country_code [String] The destination country
|
101
|
+
# @return [Array<String>] A list of names of the available services
|
102
|
+
#
|
103
|
+
def available_services(origin_country_code, destination_country_code, options = {})
|
104
|
+
raise NotImplementedError, "#available_services is not supported by #{self.class.name}."
|
105
|
+
end
|
106
|
+
|
97
107
|
# Validate credentials with a call to the API.
|
98
108
|
#
|
99
109
|
# By default this just does a `find_rates` call with the origin and destination both as
|
data/test/unit/carrier_test.rb
CHANGED
@@ -121,4 +121,10 @@ class CarrierTest < Minitest::Test
|
|
121
121
|
assert_equal "1-310-285-1013", result.phone
|
122
122
|
assert_equal "1-310-275-8159", result.fax
|
123
123
|
end
|
124
|
+
|
125
|
+
def test_available_services_is_not_implemented
|
126
|
+
assert_raises NotImplementedError do
|
127
|
+
@carrier.available_services(nil, nil)
|
128
|
+
end
|
129
|
+
end
|
124
130
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_shipping
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shopify
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: quantified
|
@@ -445,7 +445,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
445
445
|
version: '0'
|
446
446
|
requirements: []
|
447
447
|
rubyforge_project:
|
448
|
-
rubygems_version: 2.5.
|
448
|
+
rubygems_version: 2.5.2
|
449
449
|
signing_key:
|
450
450
|
specification_version: 4
|
451
451
|
summary: Simple shipping abstraction library
|