purolator-web-services 3.0.1 → 3.1.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: 63102cc3a7f68767c20f269859d722fb11b0e0b3
4
- data.tar.gz: ae026322a18127d13c1834cc12254fc5b8705b32
3
+ metadata.gz: 36abac0921a63a0b95c5a7fc2863ab48d749fcd6
4
+ data.tar.gz: 8619935a661a2a2497fc2a0651981b719301d3e5
5
5
  SHA512:
6
- metadata.gz: 430c5510567d856b6ea2da2182990a31381e1d64d4950bf64785c27d3ed16ebf7c0373d293487ff15cda6bacc266f6411657eebb398fa8836089c61ce28ab762
7
- data.tar.gz: 5618ee6b3348e08b7bf617aa3e0c67cd103d6dcbeb2a2ef15440257654e5a24ef1e23107e726511caed3f92971324c31d7006ac9f361a06733e91ca0ebcece7a
6
+ metadata.gz: 77db8e79426043f58f56af628088f453f58e1d94913573aba642faa5aa6cfc79e9e63993314ccf3c53f9c48aa4e4ec23644dec22948459b12fedd0f159585b2b
7
+ data.tar.gz: 04b11355fdf406489454415b54a27a469745c641f3866543505b015050abb9eda146d0dd513f9c8c6b0489334e948e059b4b539e55706cb1b3aa88e199218bec
data/README.md CHANGED
@@ -99,7 +99,7 @@ request.currency = "USD"
99
99
  request.packages = packages
100
100
  request.items = items
101
101
 
102
- api = PurolatorWebServices::Api.new(:test)
102
+ api = PurolatorWebServices::Api.new(ShippingServicesV3Soap::TestEndpointUrl)
103
103
 
104
104
  begin
105
105
  puts "Getting Rates"
@@ -134,7 +134,7 @@ void_request = OrderListRequest.new
134
134
  void_request.credentials = credentials
135
135
  void_request.orderNumbers = [ request.orderNumber ]
136
136
 
137
- api = PurolatorWebServices::Api.new(:test)
137
+ api = PurolatorWebServices::Api.new(ShippingServicesV3Soap::TestEndpointUrl)
138
138
 
139
139
  begin
140
140
  response = api.voidOrders(VoidOrders.new(void_request))
@@ -15,8 +15,8 @@ module PurolatorWebServices
15
15
  attr_accessor :port
16
16
  attr_reader :wiredump
17
17
 
18
- def initialize(environment)
19
- self.port = Soap::ShippingServicesV3Soap.new(environment)
18
+ def initialize(api_url)
19
+ self.port = Soap::ShippingServicesV3Soap.new(api_url)
20
20
  init_service_methods
21
21
  end
22
22
 
@@ -7,7 +7,7 @@ module Soap
7
7
 
8
8
  class ShippingServicesV3Soap < ::SOAP::RPC::Driver
9
9
  TestEndpointUrl = "http://sandbox.purolatorshipping.com/WebServices/ShippingServicesV3.asmx"
10
- ProductionEndpointUrl = "https://www.purolatorshipping.com/WebServices/ShippingServicesV3.asmx"
10
+ ProductionEndpointUrl = "https://www3.purolatorshipping.com/WebServices/ShippingServicesV3.asmx"
11
11
 
12
12
  Methods = [
13
13
  [ "http://PurolatorServices.com/GetRates",
@@ -140,8 +140,8 @@ class ShippingServicesV3Soap < ::SOAP::RPC::Driver
140
140
  ]
141
141
  ]
142
142
 
143
- def initialize(environment)
144
- super(environment == :production ? ProductionEndpointUrl : TestEndpointUrl, nil)
143
+ def initialize(api_url)
144
+ super(api_url, nil)
145
145
  self.mapping_registry = DefaultMappingRegistry::EncodedRegistry
146
146
  self.literal_mapping_registry = DefaultMappingRegistry::LiteralRegistry
147
147
  init_methods
@@ -1,3 +1,3 @@
1
1
  module PurolatorWebServices
2
- VERSION = "3.0.1"
3
- end
2
+ VERSION = "3.1.0"
3
+ end
@@ -18,7 +18,7 @@ class IntegrationTest < MiniTest::Unit::TestCase
18
18
  end
19
19
 
20
20
  @credentials = CredentialInfo.new(username, password, client_id)
21
- @api = PurolatorWebServices::Api.new(:test)
21
+ @api = PurolatorWebServices::Api.new(ShippingServicesV3Soap::TestEndpointUrl)
22
22
  end
23
23
 
24
24
  def test_add_order_request
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: purolator-web-services
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Abreu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-21 00:00:00.000000000 Z
11
+ date: 2015-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: soap4r-ruby1.9