usps 0.1.1 → 0.1.2
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.
- data/README.rdoc +8 -4
- data/Rakefile +1 -1
- data/lib/usps/test.rb +1 -1
- data/lib/usps/version.rb +1 -1
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -16,7 +16,7 @@ The following USPS API calls are currently exposed through this library:
|
|
16
16
|
<DeliveryConfirmationV3.0Request> -- USPS::Request::DeliveryConfirmation (for production)
|
17
17
|
<DeliveryConfirmCertifyV3.0Request> -- USPS::Request::DeliveryConfirmationCertify (for testing)
|
18
18
|
|
19
|
-
==
|
19
|
+
== Usage
|
20
20
|
|
21
21
|
Using the library is as simple as building a new USPS::Request::[type] object, calling #send! and using the response.
|
22
22
|
For example, to send a tracking request you'd do the following:
|
@@ -34,11 +34,15 @@ See the individual USPS::Request classes for details on how to use them.
|
|
34
34
|
== USPS API Certification
|
35
35
|
|
36
36
|
Part of the process of setting up an account with the USPS API is to run certain tests against the USPS API.
|
37
|
-
This library has all the requisite tests built in, runnable with
|
37
|
+
This library has all the requisite tests built in, runnable with rake:
|
38
38
|
|
39
39
|
USPS_USER="[username]" rake certify
|
40
40
|
|
41
|
-
|
41
|
+
or as an installed gem:
|
42
|
+
|
43
|
+
USPS_USER="[username]" ruby -rubygems -e "require 'usps/test'"
|
44
|
+
|
45
|
+
If any of the tests fail, you don't have access to that API and may need to work with USPS to fix it.
|
42
46
|
|
43
47
|
== Note on Patches/Pull Requests
|
44
48
|
|
@@ -53,4 +57,4 @@ If any of the tests fail, you don't have access to that API and may need to work
|
|
53
57
|
|
54
58
|
== Copyright
|
55
59
|
|
56
|
-
Copyright (c) 2010 Chris Gaffney. See LICENSE for details.
|
60
|
+
Copyright (c) 2010, 2011 Chris Gaffney. See LICENSE for details.
|
data/Rakefile
CHANGED
data/lib/usps/test.rb
CHANGED
data/lib/usps/version.rb
CHANGED
metadata
CHANGED