shipping 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,4 @@
1
+ $:.unshift(File.dirname(__FILE__) + '/../lib')
2
+
3
+ require 'test/unit'
4
+ require 'shipping'
@@ -0,0 +1,16 @@
1
+ require File.dirname(__FILE__) + '/../test_helper'
2
+ class UpsTest < Test::Unit::TestCase
3
+ def setup
4
+ @ship = Shipping::UPS.new :zip => 97202, :state => "OR", :sender_zip => 10001, :sender_state => "New York", :weight => 2
5
+ end
6
+
7
+ def test_price
8
+ assert_equal 8.77, @ship.price
9
+ end
10
+
11
+ def test_valid_address
12
+ assert !@ship.valid_address?
13
+ @ship.city = "Portland"
14
+ assert @ship.valid_address?
15
+ end
16
+ end
metadata ADDED
@@ -0,0 +1,81 @@
1
+ --- !ruby/object:Gem::Specification
2
+ rubygems_version: 0.8.6
3
+ specification_version: 1
4
+ name: shipping
5
+ version: !ruby/object:Gem::Version
6
+ version: 1.0.0
7
+ date: 2005-04-27
8
+ summary: A general shipping module to find out the shipping prices via UPS or FedEx.
9
+ require_paths:
10
+ - lib
11
+ email: lucas@rufy.com
12
+ homepage: http://shipping.rufy.com/
13
+ rubyforge_project:
14
+ description: A general shipping module to find out the shipping prices via UPS or FedEx.
15
+ autorequire: shipping
16
+ default_executable:
17
+ bindir: bin
18
+ has_rdoc: true
19
+ required_ruby_version: !ruby/object:Gem::Version::Requirement
20
+ requirements:
21
+ -
22
+ - ">"
23
+ - !ruby/object:Gem::Version
24
+ version: 0.0.0
25
+ version:
26
+ platform: ruby
27
+ authors:
28
+ - Lucas Carlson
29
+ files:
30
+ - lib/shipping
31
+ - lib/shipping.rb
32
+ - lib/shipping/base.rb
33
+ - lib/shipping/fedex.rb
34
+ - lib/shipping/ups.rb
35
+ - test/base
36
+ - test/fedex
37
+ - test/test_helper.rb
38
+ - test/ups
39
+ - test/base/base_test.rb
40
+ - test/fedex/fedex_test.rb
41
+ - test/ups/ups_test.rb
42
+ - Rakefile
43
+ - README
44
+ - doc/classes
45
+ - doc/created.rid
46
+ - doc/files
47
+ - doc/fr_class_index.html
48
+ - doc/fr_file_index.html
49
+ - doc/fr_method_index.html
50
+ - doc/index.html
51
+ - doc/rdoc-style.css
52
+ - doc/classes/Shipping
53
+ - doc/classes/Shipping.html
54
+ - doc/classes/Shipping/Base.html
55
+ - doc/classes/Shipping/Base.src
56
+ - doc/classes/Shipping/FedEx.html
57
+ - doc/classes/Shipping/FedEx.src
58
+ - doc/classes/Shipping/ShippingError.html
59
+ - doc/classes/Shipping/UPS.html
60
+ - doc/classes/Shipping/UPS.src
61
+ - doc/classes/Shipping/Base.src/M000005.html
62
+ - doc/classes/Shipping/Base.src/M000006.html
63
+ - doc/classes/Shipping/Base.src/M000007.html
64
+ - doc/classes/Shipping/FedEx.src/M000003.html
65
+ - doc/classes/Shipping/FedEx.src/M000004.html
66
+ - doc/classes/Shipping/UPS.src/M000001.html
67
+ - doc/classes/Shipping/UPS.src/M000002.html
68
+ - doc/files/lib
69
+ - doc/files/README.html
70
+ - doc/files/lib/shipping
71
+ - doc/files/lib/shipping_rb.html
72
+ - doc/files/lib/shipping/base_rb.html
73
+ - doc/files/lib/shipping/fedex_rb.html
74
+ - doc/files/lib/shipping/ups_rb.html
75
+ test_files: []
76
+ rdoc_options: []
77
+ extra_rdoc_files: []
78
+ executables: []
79
+ extensions: []
80
+ requirements: []
81
+ dependencies: []