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 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
- == How to use?
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 a simple
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
- If any of the tests fail, you don't have access to that API and may need to work with USPS to fix.
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
@@ -13,5 +13,5 @@ task :default => :spec
13
13
 
14
14
  desc "Run the certification tests against USPS's API. Requires ENV['USPS_USER'] to be set or passed in."
15
15
  task :certify do
16
- ruby "-rubygems -Ilib -rusps lib/usps/test.rb"
16
+ ruby "-rubygems -Ilib lib/usps/test.rb"
17
17
  end
data/lib/usps/test.rb CHANGED
@@ -1,5 +1,5 @@
1
+ require 'usps'
1
2
  require 'test/unit'
2
- require 'rubygems'
3
3
 
4
4
  module USPS
5
5
  # This class is a test runner for the various test requests that are outlined
data/lib/usps/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module USPS
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: usps
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Chris Gaffney