shipping 1.5.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
data/lib/shipping/base.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  # License:: LGPL
4
4
 
5
5
  module Shipping
6
- VERSION = "1.5.0"
6
+ VERSION = "1.5.1"
7
7
 
8
8
  class ShippingError < StandardError; end
9
9
  class ShippingRequiredFieldError < StandardError; end
data/lib/shipping/ups.rb CHANGED
@@ -17,7 +17,7 @@ module Shipping
17
17
  @country ||= 'US'
18
18
  @sender_country ||= 'US'
19
19
  @service_type ||= 'ground' # default to UPS ground
20
- @ups_url ||= "http://wwwcie.ups.com/ups.app/xml"
20
+ @ups_url ||= "https://wwwcie.ups.com/ups.app/xml"
21
21
  @ups_tool = '/Rate'
22
22
 
23
23
  state = STATES.has_value?(@state.downcase) ? STATES.index(@state.downcase).upcase : @state.upcase unless @state.blank?
@@ -102,7 +102,7 @@ module Shipping
102
102
  # See http://www.ups.com/gec/techdocs/pdf/dtk_AddrValidateXML_V1.zip for API info
103
103
  def valid_address?( delta = 1.0 )
104
104
  @required = [:ups_license_number, :ups_user, :ups_password]
105
- @ups_url ||= "http://wwwcie.ups.com/ups.app/xml"
105
+ @ups_url ||= "https://wwwcie.ups.com/ups.app/xml"
106
106
  @ups_tool = '/AV'
107
107
 
108
108
  state = nil
@@ -145,7 +145,7 @@ module Shipping
145
145
  @required = [:ups_license_number, :ups_shipper_number, :ups_user, :ups_password]
146
146
  @required += [:phone, :email, :company, :address, :city, :state, :zip]
147
147
  @required += [:sender_phone, :sender_email, :sender_company, :sender_address, :sender_city, :sender_state, :sender_zip ]
148
- @ups_url ||= "http://wwwcie.ups.com/ups.app/xml"
148
+ @ups_url ||= "https://wwwcie.ups.com/ups.app/xml"
149
149
  @ups_tool = '/ShipConfirm'
150
150
 
151
151
  state = STATES.has_value?(@state.downcase) ? STATES.index(@state.downcase).upcase : @state.upcase unless @state.blank?
@@ -329,7 +329,7 @@ module Shipping
329
329
 
330
330
  def void(tracking_number)
331
331
  @required = [:ups_license_number, :ups_shipper_number, :ups_user, :ups_password]
332
- @ups_url ||= "http://wwwcie.ups.com/ups.app/xml"
332
+ @ups_url ||= "https://wwwcie.ups.com/ups.app/xml"
333
333
  @ups_tool = '/Void'
334
334
 
335
335
  # make ConfirmRequest and get Confirm Response
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.0
2
+ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: shipping
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.5.0
7
- date: 2007-01-02 00:00:00 -08:00
6
+ version: 1.5.1
7
+ date: 2007-07-10 00:00:00 -07:00
8
8
  summary: A general shipping module to find out the shipping prices via UPS or FedEx.
9
9
  require_paths:
10
10
  - lib
@@ -25,7 +25,6 @@ required_ruby_version: !ruby/object:Gem::Version::Requirement
25
25
  platform: ruby
26
26
  signing_key:
27
27
  cert_chain:
28
- post_install_message:
29
28
  authors:
30
29
  - Lucas Carlson
31
30
  files: