usps-imis-api 0.11.23.pre.3 → 0.11.23.pre.5
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/lib/usps/imis/command_line/interface.rb +4 -1
- 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: 0ff5cc6b3fffdbe890fd9798970406cb25f24c86701bea9e9c0f5db0c52f2589
|
|
4
|
+
data.tar.gz: 5101c13613feaf5ba7c4636154e9e8bee097e22f485c5e00c4205f69cee48d7e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aa67cb37519dc9048c6307d816ba97b7e9818a31a963e6a41781b00484b70c7dab36f9166cbf0023555d4ef14940224e7768aaa93fa71687e917d6557f15f873
|
|
7
|
+
data.tar.gz: 5e705606bcd8721197fcb69705692f4f2dc50e08f58ca0e45a95b2102cf410e256ccd191daf1e37f1a5ecd4e7d73969c553bf7035d6f6fd7e1483249664b89a0
|
|
@@ -25,6 +25,7 @@ module Usps
|
|
|
25
25
|
|
|
26
26
|
def initialize(**)
|
|
27
27
|
@options = input_options.merge(**)
|
|
28
|
+
validate_options!
|
|
28
29
|
configure! if options[:config]
|
|
29
30
|
logging!
|
|
30
31
|
@logger ||= Imis.logger('CommandLine')
|
|
@@ -116,6 +117,8 @@ module Usps
|
|
|
116
117
|
in auth_token: true then api.auth_token
|
|
117
118
|
|
|
118
119
|
in certificate: then api.imis_id
|
|
120
|
+
|
|
121
|
+
in version: true then Imis::VERSION
|
|
119
122
|
end
|
|
120
123
|
rescue NoMatchingPatternError => e
|
|
121
124
|
raise Errors::CommandLineError, "Unable to match pattern from options: #{e.message}"
|
|
@@ -196,7 +199,7 @@ module Usps
|
|
|
196
199
|
def validate_options!
|
|
197
200
|
return unless options[:log_level] == 'info' && options.except(:log_level, :quiet).values.none?
|
|
198
201
|
|
|
199
|
-
|
|
202
|
+
options[:version] = true
|
|
200
203
|
end
|
|
201
204
|
end
|
|
202
205
|
end
|
data/lib/usps/imis/version.rb
CHANGED