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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6478be87d7d470eaec0ca8142a1bc13bd9385eec
4
- data.tar.gz: 68dc6e8aa2821f4d86f15543eef680be9a34f798
3
+ metadata.gz: 8af9e2153874a80f99898713503be8058c77beba
4
+ data.tar.gz: 44502b5f9555c1604dc1f59d822dd9a39d63943c
5
5
  SHA512:
6
- metadata.gz: 7a9870708b91d2bbcf436d295cfef6d73537090f9b1de4d3e9372bf58759a977e1e79b1c735b0fbdd460fc25602bb5e40abc00ef405e53bf70c071e7b8d7ec62
7
- data.tar.gz: f533ab6e93abd4395da473620be33f8330e2ab8c530a95c141b44dd3fc097cd60b85b80604e72229b2e45d0c3c64b1d5775e9ec1f130b26b99610cc3fd875766
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
@@ -1,3 +1,3 @@
1
1
  module ActiveShipping
2
- VERSION = "1.10.1"
2
+ VERSION = "1.11.0"
3
3
  end
@@ -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.10.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-01-30 00:00:00.000000000 Z
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.1
448
+ rubygems_version: 2.5.2
449
449
  signing_key:
450
450
  specification_version: 4
451
451
  summary: Simple shipping abstraction library