usps-imis-api 0.9.1 → 0.9.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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/usps/imis/business_object.rb +6 -2
- data/lib/usps/imis/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1e410751cbd3ff6de46be231c0003cd5b23ffdfa891233f70025e493fa8e8057
|
|
4
|
+
data.tar.gz: 993830af54fb76c8361b589b797b6c8fe600d485704087bf8020a17c20c5ca8e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 481e7d0d83547f00cb77dbdec9ecb7b1d678d467fb8aacf0e35883bcdfa6700a9e926e6f1f73fb783bcdaed96fbda3a765ce854cf5d12f64e1c9aa3162ae3bed
|
|
7
|
+
data.tar.gz: 1712c9f3e1ad4cf2ab7b6567861c6c1537b69fae0601829eafabacc80a22ae300681edb67d3ef6ab02e5c07e2ac0a999eab1e51142a21a101f262511a9115cf2
|
data/Gemfile.lock
CHANGED
|
@@ -159,7 +159,9 @@ module Usps
|
|
|
159
159
|
def raw_object
|
|
160
160
|
request = Net::HTTP::Get.new(uri)
|
|
161
161
|
result = submit(uri, authorize(request))
|
|
162
|
-
Data.from_json(result.body)
|
|
162
|
+
result = Data.from_json(result.body)
|
|
163
|
+
JSON.pretty_generate(result).split("\n").each { Imis.logger.debug " -> #{it}" }
|
|
164
|
+
result
|
|
163
165
|
end
|
|
164
166
|
|
|
165
167
|
# Upload an object to the API
|
|
@@ -167,7 +169,9 @@ module Usps
|
|
|
167
169
|
def put_object(request, body)
|
|
168
170
|
request.body = JSON.dump(body)
|
|
169
171
|
result = submit(uri, authorize(request))
|
|
170
|
-
Data.from_json(result.body)
|
|
172
|
+
result = Data.from_json(result.body)
|
|
173
|
+
JSON.pretty_generate(result).split("\n").each { Imis.logger.debug " -> #{it}" }
|
|
174
|
+
result
|
|
171
175
|
end
|
|
172
176
|
end
|
|
173
177
|
end
|
data/lib/usps/imis/version.rb
CHANGED