usps-proxy 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 400a3bb24f856c8ca53ef2869ff45b8e4ebd52d8
4
- data.tar.gz: 8124e127f5743e6580a48bfe4b2f1f3dd0715ab0
3
+ metadata.gz: b6252d02b23b4faaae9c310a1eac40d94daf309c
4
+ data.tar.gz: 2687df25ce1805746cc0e398bc3efed76bae268e
5
5
  SHA512:
6
- metadata.gz: d0c010b848ac738a9b8553e077196e41bc2aa4f40fcaacb0879fda44a6e91a04dbb60d93172616183843d0f34fb1ba92d29cbac1ff6c52d573b8157d38115c7f
7
- data.tar.gz: d54cdc2060eafd328726313a0f69f974f7227ab6667099dd70bc3c1e610f2d97764ab9c5337ed56f7f0eb5e19680d6f45e4a3038482fcc74d218e9eb9ba4abf1
6
+ metadata.gz: e93e0cb7e97f5273d69cb9418607c69746b9ec14d3c46ec2fba25a0236dd3988a5c5c1e0f38054cb25f13b22f3da365a4e39613aa54ea0e69585190024d3fc91
7
+ data.tar.gz: 412f6ddc643ec056d998e37cc219fff00e97a8169da70dc8dbafee67ef7b3e7b2eede480d7ce1847e46ec3040570e7b1ef9261f8301a45bbbd5219fb460ef3a0
@@ -1,10 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- usps-proxy (0.0.2)
4
+ usps-proxy (0.0.3)
5
5
  dotenv
6
6
  sinatra
7
- thin
8
7
  usps (~> 0.1)
9
8
 
10
9
  GEM
@@ -18,12 +17,12 @@ GEM
18
17
  daemons (1.1.9)
19
18
  diff-lcs (1.2.5)
20
19
  dotenv (1.0.2)
21
- ethon (0.7.1)
20
+ ethon (0.7.2)
22
21
  ffi (>= 1.3.0)
23
22
  eventmachine (1.0.3)
24
23
  ffi (1.9.6)
25
24
  method_source (0.8.2)
26
- mini_portile (0.6.1)
25
+ mini_portile (0.6.2)
27
26
  nokogiri (1.6.5)
28
27
  mini_portile (~> 0.6.0)
29
28
  pry (0.10.1)
@@ -59,7 +58,7 @@ GEM
59
58
  eventmachine (~> 1.0)
60
59
  rack (~> 1.0)
61
60
  tilt (1.4.1)
62
- typhoeus (0.6.9)
61
+ typhoeus (0.7.0)
63
62
  ethon (>= 0.7.1)
64
63
  usps (0.1.3)
65
64
  builder (>= 2.1.2)
@@ -78,6 +77,7 @@ DEPENDENCIES
78
77
  rack-test
79
78
  rake (~> 10.0)
80
79
  rspec
80
+ thin
81
81
  usps-proxy!
82
82
  vcr
83
83
  webmock
@@ -88,4 +88,92 @@ http_interactions:
88
88
  <AddressValidateResponse><Address ID="0"><Address2>1801 F ST NW</Address2><City>WASHINGTON</City><State>DC</State><Zip5>20006</Zip5><Zip4>4406</Zip4><ReturnText>Default address: The address you entered was found but more information is needed (such as an apartment, suite, or box number) to match to a specific address.</ReturnText></Address></AddressValidateResponse>
89
89
  http_version:
90
90
  recorded_at: Wed, 17 Dec 2014 21:22:07 GMT
91
+ - request:
92
+ method: get
93
+ uri: http://testing.shippingapis.com/ShippingAPITest.dll?API=Verify&XML=%3CAddressValidateRequest%20USERID=%22<USPS_USER_ID
94
+ (hidden)>%22%3E%3CAddress%20ID=%220%22%3E%3CFirmName/%3E%3CAddress1/%3E%3CAddress2%3E1800%20F%20street%20NW%3C/Address2%3E%3CCity%3Ewashington%3C/City%3E%3CState%3EDC%3C/State%3E%3CZip5%3E20006%3C/Zip5%3E%3CZip4/%3E%3C/Address%3E%3C/AddressValidateRequest%3E
95
+ body:
96
+ encoding: US-ASCII
97
+ string: ''
98
+ headers:
99
+ User-Agent:
100
+ - Typhoeus - https://github.com/typhoeus/typhoeus
101
+ response:
102
+ status:
103
+ code: 200
104
+ message: OK
105
+ headers:
106
+ X-Backside-Transport:
107
+ - OK OK
108
+ Cache-Control:
109
+ - private
110
+ Content-Type:
111
+ - text/xml
112
+ Server:
113
+ - Microsoft-IIS/7.5
114
+ X-Aspnet-Version:
115
+ - 2.0.50727
116
+ X-Powered-By:
117
+ - ASP.NET
118
+ Date:
119
+ - Thu, 18 Dec 2014 17:17:52 GMT
120
+ X-Client-Ip:
121
+ - 56.0.33.9
122
+ Access-Control-Allow-Origin:
123
+ - "*"
124
+ Connection:
125
+ - Keep-Alive
126
+ Content-Length:
127
+ - '224'
128
+ body:
129
+ encoding: UTF-8
130
+ string: |-
131
+ <?xml version="1.0" encoding="UTF-8"?>
132
+ <AddressValidateResponse><Address ID="0"><Address2>1800 F ST NW</Address2><City>WASHINGTON</City><State>DC</State><Zip5>20405</Zip5><Zip4>0001</Zip4></Address></AddressValidateResponse>
133
+ http_version:
134
+ recorded_at: Thu, 18 Dec 2014 17:17:53 GMT
135
+ - request:
136
+ method: get
137
+ uri: http://testing.shippingapis.com/ShippingAPITest.dll?API=Verify&XML=%3CAddressValidateRequest%20USERID=%22<USPS_USER_ID
138
+ (hidden)>%22%3E%3CAddress%20ID=%220%22%3E%3CFirmName/%3E%3CAddress1/%3E%3CAddress2%3E1801%20F%20street%20NW%3C/Address2%3E%3CCity%3Ewashington%3C/City%3E%3CState%3EDC%3C/State%3E%3CZip5%3E20006%3C/Zip5%3E%3CZip4/%3E%3C/Address%3E%3C/AddressValidateRequest%3E
139
+ body:
140
+ encoding: US-ASCII
141
+ string: ''
142
+ headers:
143
+ User-Agent:
144
+ - Typhoeus - https://github.com/typhoeus/typhoeus
145
+ response:
146
+ status:
147
+ code: 200
148
+ message: OK
149
+ headers:
150
+ X-Backside-Transport:
151
+ - OK OK
152
+ Cache-Control:
153
+ - private
154
+ Content-Type:
155
+ - text/xml
156
+ Server:
157
+ - Microsoft-IIS/7.5
158
+ X-Aspnet-Version:
159
+ - 2.0.50727
160
+ X-Powered-By:
161
+ - ASP.NET
162
+ Date:
163
+ - Thu, 18 Dec 2014 17:17:53 GMT
164
+ X-Client-Ip:
165
+ - 56.0.33.9
166
+ Access-Control-Allow-Origin:
167
+ - "*"
168
+ Connection:
169
+ - Keep-Alive
170
+ Content-Length:
171
+ - '407'
172
+ body:
173
+ encoding: UTF-8
174
+ string: |-
175
+ <?xml version="1.0" encoding="UTF-8"?>
176
+ <AddressValidateResponse><Address ID="0"><Address2>1801 F ST NW</Address2><City>WASHINGTON</City><State>DC</State><Zip5>20006</Zip5><Zip4>4406</Zip4><ReturnText>Default address: The address you entered was found but more information is needed (such as an apartment, suite, or box number) to match to a specific address.</ReturnText></Address></AddressValidateResponse>
177
+ http_version:
178
+ recorded_at: Thu, 18 Dec 2014 17:17:54 GMT
91
179
  recorded_with: VCR 2.9.3
@@ -132,4 +132,136 @@ http_interactions:
132
132
  <CityStateLookupResponse><ZipCode ID="0"><Error><Number>-2147219024</Number><Source>WebtoolsAMS;CityStateLookup</Source><Description>ZIPCode must be 5 characters</Description><HelpFile/><HelpContext/></Error></ZipCode></CityStateLookupResponse>
133
133
  http_version:
134
134
  recorded_at: Wed, 17 Dec 2014 21:22:08 GMT
135
+ - request:
136
+ method: get
137
+ uri: http://testing.shippingapis.com/ShippingAPITest.dll?API=CityStateLookup&XML=%3CCityStateLookupRequest%20USERID=%22<USPS_USER_ID
138
+ (hidden)>%22%3E%3CZipCode%20ID=%220%22%3E%3CZip5%3E20006%3C/Zip5%3E%3C/ZipCode%3E%3C/CityStateLookupRequest%3E
139
+ body:
140
+ encoding: US-ASCII
141
+ string: ''
142
+ headers:
143
+ User-Agent:
144
+ - Typhoeus - https://github.com/typhoeus/typhoeus
145
+ response:
146
+ status:
147
+ code: 200
148
+ message: OK
149
+ headers:
150
+ X-Backside-Transport:
151
+ - OK OK
152
+ Cache-Control:
153
+ - private
154
+ Content-Type:
155
+ - text/xml
156
+ Server:
157
+ - Microsoft-IIS/7.5
158
+ X-Aspnet-Version:
159
+ - 2.0.50727
160
+ X-Powered-By:
161
+ - ASP.NET
162
+ Date:
163
+ - Thu, 18 Dec 2014 17:17:55 GMT
164
+ X-Client-Ip:
165
+ - 56.0.33.9
166
+ Access-Control-Allow-Origin:
167
+ - "*"
168
+ Connection:
169
+ - Keep-Alive
170
+ Content-Length:
171
+ - '174'
172
+ body:
173
+ encoding: UTF-8
174
+ string: |-
175
+ <?xml version="1.0" encoding="UTF-8"?>
176
+ <CityStateLookupResponse><ZipCode ID="0"><Zip5>20006</Zip5><City>WASHINGTON</City><State>DC</State></ZipCode></CityStateLookupResponse>
177
+ http_version:
178
+ recorded_at: Thu, 18 Dec 2014 17:17:54 GMT
179
+ - request:
180
+ method: get
181
+ uri: http://testing.shippingapis.com/ShippingAPITest.dll?API=CityStateLookup&XML=%3CCityStateLookupRequest%20USERID=%22<USPS_USER_ID
182
+ (hidden)>%22%3E%3CZipCode%20ID=%220%22%3E%3CZip5/%3E%3C/ZipCode%3E%3C/CityStateLookupRequest%3E
183
+ body:
184
+ encoding: US-ASCII
185
+ string: ''
186
+ headers:
187
+ User-Agent:
188
+ - Typhoeus - https://github.com/typhoeus/typhoeus
189
+ response:
190
+ status:
191
+ code: 200
192
+ message: OK
193
+ headers:
194
+ X-Backside-Transport:
195
+ - OK OK
196
+ Cache-Control:
197
+ - private
198
+ Content-Type:
199
+ - text/xml
200
+ Server:
201
+ - Microsoft-IIS/7.5
202
+ X-Aspnet-Version:
203
+ - 2.0.50727
204
+ X-Powered-By:
205
+ - ASP.NET
206
+ Date:
207
+ - Thu, 18 Dec 2014 17:17:52 GMT
208
+ X-Client-Ip:
209
+ - 56.0.33.9
210
+ Access-Control-Allow-Origin:
211
+ - "*"
212
+ Connection:
213
+ - Keep-Alive
214
+ Content-Length:
215
+ - '272'
216
+ body:
217
+ encoding: UTF-8
218
+ string: |-
219
+ <?xml version="1.0" encoding="UTF-8"?>
220
+ <CityStateLookupResponse><ZipCode ID="0"><Error><Number>-2147219399</Number><Source>WebtoolsAMS;CityStateLookup</Source><Description>Invalid Zip Code.</Description><HelpFile/><HelpContext/></Error></ZipCode></CityStateLookupResponse>
221
+ http_version:
222
+ recorded_at: Thu, 18 Dec 2014 17:17:54 GMT
223
+ - request:
224
+ method: get
225
+ uri: http://testing.shippingapis.com/ShippingAPITest.dll?API=CityStateLookup&XML=%3CCityStateLookupRequest%20USERID=%22<USPS_USER_ID
226
+ (hidden)>%22%3E%3CZipCode%20ID=%220%22%3E%3CZip5%3EthisIsNotAZip5%3C/Zip5%3E%3C/ZipCode%3E%3C/CityStateLookupRequest%3E
227
+ body:
228
+ encoding: US-ASCII
229
+ string: ''
230
+ headers:
231
+ User-Agent:
232
+ - Typhoeus - https://github.com/typhoeus/typhoeus
233
+ response:
234
+ status:
235
+ code: 200
236
+ message: OK
237
+ headers:
238
+ X-Backside-Transport:
239
+ - OK OK
240
+ Cache-Control:
241
+ - private
242
+ Content-Type:
243
+ - text/xml
244
+ Server:
245
+ - Microsoft-IIS/7.5
246
+ X-Aspnet-Version:
247
+ - 2.0.50727
248
+ X-Powered-By:
249
+ - ASP.NET
250
+ Date:
251
+ - Thu, 18 Dec 2014 17:17:52 GMT
252
+ X-Client-Ip:
253
+ - 56.0.33.9
254
+ Access-Control-Allow-Origin:
255
+ - "*"
256
+ Connection:
257
+ - Keep-Alive
258
+ Content-Length:
259
+ - '283'
260
+ body:
261
+ encoding: UTF-8
262
+ string: |-
263
+ <?xml version="1.0" encoding="UTF-8"?>
264
+ <CityStateLookupResponse><ZipCode ID="0"><Error><Number>-2147219024</Number><Source>WebtoolsAMS;CityStateLookup</Source><Description>ZIPCode must be 5 characters</Description><HelpFile/><HelpContext/></Error></ZipCode></CityStateLookupResponse>
265
+ http_version:
266
+ recorded_at: Thu, 18 Dec 2014 17:17:54 GMT
135
267
  recorded_with: VCR 2.9.3
@@ -1,3 +1,3 @@
1
1
  module UspsProxy
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
@@ -11,6 +11,8 @@ VCR.configure do |c|
11
11
  end
12
12
 
13
13
  require 'usps-proxy'
14
+
15
+ USPS.testing = true
14
16
 
15
17
  def app
16
18
  Rack::URLMap.new(
@@ -24,10 +24,10 @@ Gem::Specification.new do |spec|
24
24
  spec.add_development_dependency "rspec"
25
25
  spec.add_development_dependency "webmock"
26
26
  spec.add_development_dependency "vcr"
27
+ spec.add_development_dependency "thin"
27
28
 
28
29
  spec.add_dependency "dotenv"
29
30
  spec.add_dependency "sinatra"
30
31
  spec.add_dependency "usps", "~>0.1"
31
- spec.add_dependency "thin"
32
32
 
33
33
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: usps-proxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alan deLevie
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-18 00:00:00.000000000 Z
11
+ date: 2015-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -95,13 +95,13 @@ dependencies:
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: dotenv
98
+ name: thin
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
- type: :runtime
104
+ type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
@@ -109,7 +109,7 @@ dependencies:
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
- name: sinatra
112
+ name: dotenv
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - ">="
@@ -123,33 +123,33 @@ dependencies:
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
- name: usps
126
+ name: sinatra
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - "~>"
129
+ - - ">="
130
130
  - !ruby/object:Gem::Version
131
- version: '0.1'
131
+ version: '0'
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - "~>"
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
- version: '0.1'
138
+ version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
- name: thin
140
+ name: usps
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - ">="
143
+ - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: '0'
145
+ version: '0.1'
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - ">="
150
+ - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: '0'
152
+ version: '0.1'
153
153
  description: Makes the USPS API a bit easier to consume on the client-side.
154
154
  email:
155
155
  - alan.delevie@gsa.gov