usps-imis-api 0.11.22 → 0.11.23.pre.1
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 69c8764fb830176504d395247699d6f53853f212237d3d59e4fa5328c7f5c120
|
|
4
|
+
data.tar.gz: 2bf2242d03697bfc5d2da3cf836ceab011df7e4ccfee7b0b1f5c8d4364eb60e0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1ae1d08968980889990f5713db33eb99466930772f730837a04cd71d10ef89e0268d3abf5a55cc3dfc583becfbf3e5d391e4ddbcb494590f5a85f90ff71e5340
|
|
7
|
+
data.tar.gz: 1e97cb8a27625fd52dca5fca49451a4d9d6bdc3e4be9b097a66c2e5700b5dc4a61a4f555c0b06b75f01e0bd8a9bfd6c705483abebbcf33ecd7372e916c6a8a67
|
|
@@ -99,6 +99,8 @@ module Usps
|
|
|
99
99
|
@options = parse_options.compact
|
|
100
100
|
@arguments = ARGV # Not currently used
|
|
101
101
|
|
|
102
|
+
Optimist.educate if ARGV.empty? && defaults?
|
|
103
|
+
|
|
102
104
|
# :nocov:
|
|
103
105
|
@options[:data] = read_stdin if stdin?
|
|
104
106
|
# :nocov:
|
|
@@ -126,6 +128,8 @@ module Usps
|
|
|
126
128
|
def stdin? = $stdin.wait_readable(0)
|
|
127
129
|
def read_stdin = $stdin.read.chomp
|
|
128
130
|
# :nocov:
|
|
131
|
+
|
|
132
|
+
def defaults? = options[:log_level] == 'info' && options.except(:log_level).values.none?
|
|
129
133
|
end
|
|
130
134
|
end
|
|
131
135
|
end
|
data/lib/usps/imis/version.rb
CHANGED