usps 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. data/.document +5 -0
  2. data/.gitignore +21 -0
  3. data/LICENSE +20 -0
  4. data/README.rdoc +56 -0
  5. data/Rakefile +56 -0
  6. data/VERSION +1 -0
  7. data/lib/usps.rb +45 -0
  8. data/lib/usps/address.rb +72 -0
  9. data/lib/usps/client.rb +56 -0
  10. data/lib/usps/configuration.rb +16 -0
  11. data/lib/usps/errors.rb +46 -0
  12. data/lib/usps/request.rb +13 -0
  13. data/lib/usps/request/address_standardization.rb +44 -0
  14. data/lib/usps/request/base.rb +42 -0
  15. data/lib/usps/request/city_and_state_lookup.rb +32 -0
  16. data/lib/usps/request/delivery_confirmation.rb +88 -0
  17. data/lib/usps/request/delivery_confirmation_certify.rb +10 -0
  18. data/lib/usps/request/tracking_lookup.rb +28 -0
  19. data/lib/usps/request/zip_code_lookup.rb +45 -0
  20. data/lib/usps/response.rb +7 -0
  21. data/lib/usps/response/address_standardization.rb +38 -0
  22. data/lib/usps/response/base.rb +13 -0
  23. data/lib/usps/response/city_and_state_lookup.rb +28 -0
  24. data/lib/usps/response/delivery_confirmation.rb +25 -0
  25. data/lib/usps/response/tracking_lookup.rb +19 -0
  26. data/lib/usps/test.rb +34 -0
  27. data/lib/usps/test/address_verification.rb +31 -0
  28. data/lib/usps/test/city_and_state_lookup.rb +19 -0
  29. data/lib/usps/test/delivery_confirmation.rb +59 -0
  30. data/lib/usps/test/tracking_lookup.rb +29 -0
  31. data/lib/usps/test/zip_code_lookup.rb +37 -0
  32. data/spec/address_spec.rb +65 -0
  33. data/spec/configuration_spec.rb +19 -0
  34. data/spec/data/address_standardization_1.xml +1 -0
  35. data/spec/data/address_standardization_2.xml +1 -0
  36. data/spec/data/city_and_state_lookup_1.xml +1 -0
  37. data/spec/data/city_and_state_lookup_2.xml +1 -0
  38. data/spec/data/delivery_confirmation_1.xml +1 -0
  39. data/spec/data/delivery_confirmation_2.xml +1 -0
  40. data/spec/data/tracking_lookup_1.xml +1 -0
  41. data/spec/data/tracking_lookup_2.xml +1 -0
  42. data/spec/request/address_standardization_spec.rb +45 -0
  43. data/spec/request/base_spec.rb +16 -0
  44. data/spec/request/city_and_state_lookup_spec.rb +32 -0
  45. data/spec/request/delivery_confirmation_certify_spec.rb +11 -0
  46. data/spec/request/delivery_confirmation_spec.rb +57 -0
  47. data/spec/request/signature_confirmation_spec.rb +0 -0
  48. data/spec/request/tracking_spec.rb +21 -0
  49. data/spec/request/zip_code_lookup_spec.rb +42 -0
  50. data/spec/response/address_standardization_spec.rb +54 -0
  51. data/spec/response/base_spec.rb +0 -0
  52. data/spec/response/city_and_state_lookup_spec.rb +27 -0
  53. data/spec/response/delivery_confirmation_spec.rb +43 -0
  54. data/spec/response/signature_confirmation_spec.rb +0 -0
  55. data/spec/response/tracking_lookup_spec.rb +27 -0
  56. data/spec/spec.opts +1 -0
  57. data/spec/spec_helper.rb +25 -0
  58. data/spec/usps_spec.rb +8 -0
  59. data/usps.gemspec +129 -0
  60. metadata +178 -0
@@ -0,0 +1,42 @@
1
+ require 'spec_helper'
2
+
3
+ describe USPS::Request::ZipCodeLookup do
4
+ it "should be using the proper USPS api settings" do
5
+ USPS::Request::ZipCodeLookup.tap do |klass|
6
+ klass.secure.should be_false
7
+ klass.api.should == 'ZipCodeLookup'
8
+ klass.tag.should == 'ZipCodeLookupRequest'
9
+ end
10
+ end
11
+
12
+ it "should not allow more than 5 addresses" do
13
+ Proc.new do
14
+ USPS::Request::AddressStandardization.new([USPS::Address.new] * 6)
15
+ end.should raise_exception(ArgumentError)
16
+ end
17
+
18
+ it "should be able to build a proper request" do
19
+ request = USPS::Request::AddressStandardization.new(
20
+ USPS::Address.new(
21
+ :name => 'Joe Jackson',
22
+ :company => 'Widget Tel Co.',
23
+ :address => '999 Serious Business Av',
24
+ :address2 => 'Suite 2000',
25
+ :city => 'Awesome Town',
26
+ :state => 'FL'
27
+ )
28
+ )
29
+
30
+ xml = Nokogiri::XML.parse(request.build)
31
+
32
+ xml.search('Address').first.tap do |node|
33
+ node.attr('ID').should == '0'
34
+
35
+ node.search('FirmName').text.should == 'Widget Tel Co.'
36
+ node.search('Address1').text.should == 'Suite 2000'
37
+ node.search('Address2').text.should == '999 Serious Business Av'
38
+ node.search('City').text.should == 'Awesome Town'
39
+ node.search('State').text.should == 'FL'
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,54 @@
1
+ require 'spec_helper'
2
+
3
+ describe USPS::Response::AddressStandardization do
4
+ it "should handle test request 1" do
5
+ address = USPS::Address.new(
6
+ :address => '6406 Ivy Lane',
7
+ :city => 'Greenbelt',
8
+ :state => 'MD'
9
+ )
10
+
11
+ response = USPS::Response::AddressStandardization.new(
12
+ address, load_xml('address_standardization_1.xml')
13
+ )
14
+
15
+ standard = response.get(address)
16
+
17
+ standard.address.should == '6406 IVY LN'
18
+ standard.city.should == 'GREENBELT'
19
+ standard.state.should == 'MD'
20
+ standard.zip.should == '20770-1441'
21
+ end
22
+
23
+ it "should handle test request 2" do
24
+ address = USPS::Address.new(
25
+ :address => '8 Wildwood Dr',
26
+ :city => 'Old Lyme',
27
+ :state => 'CT',
28
+ :zip => '06371'
29
+ )
30
+
31
+ response = USPS::Response::AddressStandardization.new(
32
+ address, load_xml('address_standardization_2.xml')
33
+ )
34
+
35
+ standard = response.get(address)
36
+
37
+ standard.address.should == '8 WILDWOOD DR'
38
+ standard.city.should == 'OLD LYME'
39
+ standard.state.should == 'CT'
40
+ standard.zip.should == '06371-1844'
41
+ end
42
+
43
+ it "should propogate name to the result address as it is not returned from api" do
44
+ address = USPS::Address.new(
45
+ :name => 'Carl Sagan'
46
+ )
47
+
48
+ response = USPS::Response::AddressStandardization.new(
49
+ address, load_xml('address_standardization_2.xml')
50
+ )
51
+
52
+ response.get(address).name.should == 'Carl Sagan'
53
+ end
54
+ end
File without changes
@@ -0,0 +1,27 @@
1
+ require 'spec_helper'
2
+
3
+ describe USPS::Response::CityAndStateLookup do
4
+ it "should handle test request 1" do
5
+ response = USPS::Response::CityAndStateLookup.new(
6
+ load_xml('city_and_state_lookup_1.xml')
7
+ )
8
+
9
+ response.get(90210).tap do |r|
10
+ r.zip.should == 90210
11
+ r.city.should == 'BEVERLY HILLS'
12
+ r.state.should == 'CA'
13
+ end
14
+ end
15
+
16
+ it "should handle test request 2" do
17
+ response = USPS::Response::CityAndStateLookup.new(
18
+ load_xml('city_and_state_lookup_2.xml')
19
+ )
20
+
21
+ response.get(20770).tap do |r|
22
+ r.zip.should == 20770
23
+ r.city.should == 'GREENBELT'
24
+ r.state.should == 'MD'
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,43 @@
1
+ require 'spec_helper'
2
+
3
+ describe USPS::Response::DeliveryConfirmation do
4
+ it "should handle test request 1" do
5
+ response = USPS::Response::DeliveryConfirmation.new(
6
+ load_xml('delivery_confirmation_1.xml')
7
+ )
8
+
9
+ response.confirmation.should == '420381199101805213907126809651'
10
+ response.label.should == 'LABEL DATA GOES HERE'
11
+ response.postnet.should == '38119571851'
12
+
13
+ # Check the address
14
+ addy = response.address
15
+ addy.name.should == 'Joe Customer'
16
+ addy.address.should == '6060 PRIMACY PKWY'
17
+ addy.address2.should == 'STE 201'
18
+ addy.city.should == 'Memphis'
19
+ addy.state.should == 'TN'
20
+ addy.zip.should == '38119-5718'
21
+ end
22
+
23
+ # TODO: Test is still missing custom fields
24
+ it "should handle test request 2" do
25
+ response = USPS::Response::DeliveryConfirmation.new(
26
+ load_xml('delivery_confirmation_2.xml')
27
+ )
28
+
29
+ response.confirmation.should == '420381199101805213907116323891'
30
+ response.label.should == 'LABEL DATA GOES HERE'
31
+ response.postnet.should == '38119571851'
32
+
33
+ # Check the address
34
+ addy = response.address
35
+ addy.company.should == 'U.S. Postal Service NCSC'
36
+ addy.name.should == 'Joe Customer'
37
+ addy.address.should == '6060 PRIMACY PKWY'
38
+ addy.address2.should == 'STE 201'
39
+ addy.city.should == 'MEMPHIS'
40
+ addy.state.should == 'TN'
41
+ addy.zip.should == '38119-5718'
42
+ end
43
+ end
@@ -0,0 +1,27 @@
1
+ require 'spec_helper'
2
+
3
+ describe USPS::Response::TrackingLookup do
4
+
5
+ it "should handle test request 1" do
6
+ response = USPS::Response::TrackingLookup.new(load_xml("tracking_lookup_1.xml"))
7
+
8
+ response.summary.should == "Your item was delivered at 8:10 am on June 1 in Wilmington DE 19801."
9
+ response.details.length.should == 3
10
+
11
+ response.details[0].should == "May 30 11:07 am NOTICE LEFT WILMINGTON DE 19801."
12
+ response.details[1].should == "May 30 10:08 am ARRIVAL AT UNIT WILMINGTON DE 19850."
13
+ response.details[2].should == "May 29 9:55 am ACCEPT OR PICKUP EDGEWATER NJ 07020."
14
+ end
15
+
16
+ it "should handle test request 2" do
17
+ response = USPS::Response::TrackingLookup.new(load_xml("tracking_lookup_2.xml"))
18
+
19
+ response.summary.should == "Your item was delivered at 1:39 pm on June 1 in WOBURN MA 01815."
20
+ response.details.length.should == 3
21
+
22
+ response.details[0].should == "May 30 7:44 am NOTICE LEFT WOBURN MA 01815."
23
+ response.details[1].should == "May 30 7:36 am ARRIVAL AT UNIT NORTH READING MA 01889."
24
+ response.details[2].should == "May 29 6:00 pm ACCEPT OR PICKUP PORTSMOUTH NH 03801."
25
+ end
26
+
27
+ end
@@ -0,0 +1 @@
1
+ --color
@@ -0,0 +1,25 @@
1
+ $:.unshift(File.dirname(__FILE__))
2
+ $:.unshift(File.join(File.dirname(__FILE__), %w(.. lib)))
3
+
4
+ require 'rubygems'
5
+
6
+ require 'usps'
7
+ require 'spec'
8
+ require 'spec/autorun'
9
+
10
+ require 'builder'
11
+ require 'nokogiri'
12
+
13
+ Spec::Runner.configure do |config|
14
+ config.mock_with :mocha
15
+ end
16
+
17
+ USPS.username = 'TESTING'
18
+
19
+ def load_data(path)
20
+ (@_file_cache ||= {})[path] ||= File.read(File.expand_path(File.join(File.dirname(__FILE__), 'data', path)))
21
+ end
22
+
23
+ def load_xml(path)
24
+ Nokogiri::XML.parse(load_data(path))
25
+ end
@@ -0,0 +1,8 @@
1
+ require 'spec_helper'
2
+
3
+ describe USPS do
4
+ it "should allow setting the USPS API username" do
5
+ USPS.username = 'melvin'
6
+ USPS.username.should == 'melvin'
7
+ end
8
+ end
@@ -0,0 +1,129 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{usps}
8
+ s.version = "0.1.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Chris Gaffney"]
12
+ s.date = %q{2010-02-05}
13
+ s.description = %q{USPS Webtools API for Ruby.}
14
+ s.email = %q{gaffneyc@gmail.com}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE",
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ ".gitignore",
22
+ "LICENSE",
23
+ "README.rdoc",
24
+ "Rakefile",
25
+ "VERSION",
26
+ "lib/usps.rb",
27
+ "lib/usps/address.rb",
28
+ "lib/usps/client.rb",
29
+ "lib/usps/configuration.rb",
30
+ "lib/usps/errors.rb",
31
+ "lib/usps/request.rb",
32
+ "lib/usps/request/address_standardization.rb",
33
+ "lib/usps/request/base.rb",
34
+ "lib/usps/request/city_and_state_lookup.rb",
35
+ "lib/usps/request/delivery_confirmation.rb",
36
+ "lib/usps/request/delivery_confirmation_certify.rb",
37
+ "lib/usps/request/tracking_lookup.rb",
38
+ "lib/usps/request/zip_code_lookup.rb",
39
+ "lib/usps/response.rb",
40
+ "lib/usps/response/address_standardization.rb",
41
+ "lib/usps/response/base.rb",
42
+ "lib/usps/response/city_and_state_lookup.rb",
43
+ "lib/usps/response/delivery_confirmation.rb",
44
+ "lib/usps/response/tracking_lookup.rb",
45
+ "lib/usps/test.rb",
46
+ "lib/usps/test/address_verification.rb",
47
+ "lib/usps/test/city_and_state_lookup.rb",
48
+ "lib/usps/test/delivery_confirmation.rb",
49
+ "lib/usps/test/tracking_lookup.rb",
50
+ "lib/usps/test/zip_code_lookup.rb",
51
+ "spec/address_spec.rb",
52
+ "spec/configuration_spec.rb",
53
+ "spec/data/address_standardization_1.xml",
54
+ "spec/data/address_standardization_2.xml",
55
+ "spec/data/city_and_state_lookup_1.xml",
56
+ "spec/data/city_and_state_lookup_2.xml",
57
+ "spec/data/delivery_confirmation_1.xml",
58
+ "spec/data/delivery_confirmation_2.xml",
59
+ "spec/data/tracking_lookup_1.xml",
60
+ "spec/data/tracking_lookup_2.xml",
61
+ "spec/request/address_standardization_spec.rb",
62
+ "spec/request/base_spec.rb",
63
+ "spec/request/city_and_state_lookup_spec.rb",
64
+ "spec/request/delivery_confirmation_certify_spec.rb",
65
+ "spec/request/delivery_confirmation_spec.rb",
66
+ "spec/request/tracking_spec.rb",
67
+ "spec/request/zip_code_lookup_spec.rb",
68
+ "spec/response/address_standardization_spec.rb",
69
+ "spec/response/base_spec.rb",
70
+ "spec/response/city_and_state_lookup_spec.rb",
71
+ "spec/response/delivery_confirmation_spec.rb",
72
+ "spec/response/tracking_lookup_spec.rb",
73
+ "spec/spec.opts",
74
+ "spec/spec_helper.rb",
75
+ "spec/usps_spec.rb",
76
+ "usps.gemspec"
77
+ ]
78
+ s.homepage = %q{http://github.com/gaffneyc/usps}
79
+ s.rdoc_options = ["--charset=UTF-8"]
80
+ s.require_paths = ["lib"]
81
+ s.rubygems_version = %q{1.3.5}
82
+ s.summary = %q{USPS Webtools API for Ruby}
83
+ s.test_files = [
84
+ "spec/address_spec.rb",
85
+ "spec/configuration_spec.rb",
86
+ "spec/request/address_standardization_spec.rb",
87
+ "spec/request/base_spec.rb",
88
+ "spec/request/city_and_state_lookup_spec.rb",
89
+ "spec/request/delivery_confirmation_certify_spec.rb",
90
+ "spec/request/delivery_confirmation_spec.rb",
91
+ "spec/request/signature_confirmation_spec.rb",
92
+ "spec/request/tracking_spec.rb",
93
+ "spec/request/zip_code_lookup_spec.rb",
94
+ "spec/response/address_standardization_spec.rb",
95
+ "spec/response/base_spec.rb",
96
+ "spec/response/city_and_state_lookup_spec.rb",
97
+ "spec/response/delivery_confirmation_spec.rb",
98
+ "spec/response/signature_confirmation_spec.rb",
99
+ "spec/response/tracking_lookup_spec.rb",
100
+ "spec/spec_helper.rb",
101
+ "spec/usps_spec.rb"
102
+ ]
103
+
104
+ if s.respond_to? :specification_version then
105
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
106
+ s.specification_version = 3
107
+
108
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
109
+ s.add_runtime_dependency(%q<builder>, [">= 2.1.2"])
110
+ s.add_runtime_dependency(%q<nokogiri>, [">= 1.4.1"])
111
+ s.add_runtime_dependency(%q<typhoeus>, [">= 0.1.18"])
112
+ s.add_development_dependency(%q<mocha>, [">= 0.9.8"])
113
+ s.add_development_dependency(%q<rspec>, [">= 1.3.0"])
114
+ else
115
+ s.add_dependency(%q<builder>, [">= 2.1.2"])
116
+ s.add_dependency(%q<nokogiri>, [">= 1.4.1"])
117
+ s.add_dependency(%q<typhoeus>, [">= 0.1.18"])
118
+ s.add_dependency(%q<mocha>, [">= 0.9.8"])
119
+ s.add_dependency(%q<rspec>, [">= 1.3.0"])
120
+ end
121
+ else
122
+ s.add_dependency(%q<builder>, [">= 2.1.2"])
123
+ s.add_dependency(%q<nokogiri>, [">= 1.4.1"])
124
+ s.add_dependency(%q<typhoeus>, [">= 0.1.18"])
125
+ s.add_dependency(%q<mocha>, [">= 0.9.8"])
126
+ s.add_dependency(%q<rspec>, [">= 1.3.0"])
127
+ end
128
+ end
129
+
metadata ADDED
@@ -0,0 +1,178 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: usps
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Chris Gaffney
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2010-02-05 00:00:00 -05:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: builder
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 2.1.2
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: nokogiri
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 1.4.1
34
+ version:
35
+ - !ruby/object:Gem::Dependency
36
+ name: typhoeus
37
+ type: :runtime
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: 0.1.18
44
+ version:
45
+ - !ruby/object:Gem::Dependency
46
+ name: mocha
47
+ type: :development
48
+ version_requirement:
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: 0.9.8
54
+ version:
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ type: :development
58
+ version_requirement:
59
+ version_requirements: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: 1.3.0
64
+ version:
65
+ description: USPS Webtools API for Ruby.
66
+ email: gaffneyc@gmail.com
67
+ executables: []
68
+
69
+ extensions: []
70
+
71
+ extra_rdoc_files:
72
+ - LICENSE
73
+ - README.rdoc
74
+ files:
75
+ - .document
76
+ - .gitignore
77
+ - LICENSE
78
+ - README.rdoc
79
+ - Rakefile
80
+ - VERSION
81
+ - lib/usps.rb
82
+ - lib/usps/address.rb
83
+ - lib/usps/client.rb
84
+ - lib/usps/configuration.rb
85
+ - lib/usps/errors.rb
86
+ - lib/usps/request.rb
87
+ - lib/usps/request/address_standardization.rb
88
+ - lib/usps/request/base.rb
89
+ - lib/usps/request/city_and_state_lookup.rb
90
+ - lib/usps/request/delivery_confirmation.rb
91
+ - lib/usps/request/delivery_confirmation_certify.rb
92
+ - lib/usps/request/tracking_lookup.rb
93
+ - lib/usps/request/zip_code_lookup.rb
94
+ - lib/usps/response.rb
95
+ - lib/usps/response/address_standardization.rb
96
+ - lib/usps/response/base.rb
97
+ - lib/usps/response/city_and_state_lookup.rb
98
+ - lib/usps/response/delivery_confirmation.rb
99
+ - lib/usps/response/tracking_lookup.rb
100
+ - lib/usps/test.rb
101
+ - lib/usps/test/address_verification.rb
102
+ - lib/usps/test/city_and_state_lookup.rb
103
+ - lib/usps/test/delivery_confirmation.rb
104
+ - lib/usps/test/tracking_lookup.rb
105
+ - lib/usps/test/zip_code_lookup.rb
106
+ - spec/address_spec.rb
107
+ - spec/configuration_spec.rb
108
+ - spec/data/address_standardization_1.xml
109
+ - spec/data/address_standardization_2.xml
110
+ - spec/data/city_and_state_lookup_1.xml
111
+ - spec/data/city_and_state_lookup_2.xml
112
+ - spec/data/delivery_confirmation_1.xml
113
+ - spec/data/delivery_confirmation_2.xml
114
+ - spec/data/tracking_lookup_1.xml
115
+ - spec/data/tracking_lookup_2.xml
116
+ - spec/request/address_standardization_spec.rb
117
+ - spec/request/base_spec.rb
118
+ - spec/request/city_and_state_lookup_spec.rb
119
+ - spec/request/delivery_confirmation_certify_spec.rb
120
+ - spec/request/delivery_confirmation_spec.rb
121
+ - spec/request/tracking_spec.rb
122
+ - spec/request/zip_code_lookup_spec.rb
123
+ - spec/response/address_standardization_spec.rb
124
+ - spec/response/base_spec.rb
125
+ - spec/response/city_and_state_lookup_spec.rb
126
+ - spec/response/delivery_confirmation_spec.rb
127
+ - spec/response/tracking_lookup_spec.rb
128
+ - spec/spec.opts
129
+ - spec/spec_helper.rb
130
+ - spec/usps_spec.rb
131
+ - usps.gemspec
132
+ has_rdoc: true
133
+ homepage: http://github.com/gaffneyc/usps
134
+ licenses: []
135
+
136
+ post_install_message:
137
+ rdoc_options:
138
+ - --charset=UTF-8
139
+ require_paths:
140
+ - lib
141
+ required_ruby_version: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: "0"
146
+ version:
147
+ required_rubygems_version: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - ">="
150
+ - !ruby/object:Gem::Version
151
+ version: "0"
152
+ version:
153
+ requirements: []
154
+
155
+ rubyforge_project:
156
+ rubygems_version: 1.3.5
157
+ signing_key:
158
+ specification_version: 3
159
+ summary: USPS Webtools API for Ruby
160
+ test_files:
161
+ - spec/address_spec.rb
162
+ - spec/configuration_spec.rb
163
+ - spec/request/address_standardization_spec.rb
164
+ - spec/request/base_spec.rb
165
+ - spec/request/city_and_state_lookup_spec.rb
166
+ - spec/request/delivery_confirmation_certify_spec.rb
167
+ - spec/request/delivery_confirmation_spec.rb
168
+ - spec/request/signature_confirmation_spec.rb
169
+ - spec/request/tracking_spec.rb
170
+ - spec/request/zip_code_lookup_spec.rb
171
+ - spec/response/address_standardization_spec.rb
172
+ - spec/response/base_spec.rb
173
+ - spec/response/city_and_state_lookup_spec.rb
174
+ - spec/response/delivery_confirmation_spec.rb
175
+ - spec/response/signature_confirmation_spec.rb
176
+ - spec/response/tracking_lookup_spec.rb
177
+ - spec/spec_helper.rb
178
+ - spec/usps_spec.rb