usps-imis-api 0.11.36 → 0.11.37
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: 91e2f0a177b8be61ec06ec7e27dd6e2281fd8b738b47aa669888b45a1f67dfea
|
|
4
|
+
data.tar.gz: 15230dcb456425d123dd5d3f884cb2b319d21183c12037cf4082e830293f1bcc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 412b4af00117166122c0486063c4065e8acd9bcd27ef9876bd306a7e3cf5e2b7df975a640c01bfd9ab1d4279f365c29214d1123d4bd7460e27ad41eaa7ee84f1
|
|
7
|
+
data.tar.gz: 39e9efd8a617db11bab5247be310d727ac5bb962fa265d69baf1615032bd7dcc323f68f970d30ee5d0e88feee61e44d5ebac8bff6f98966d0c1926185baa6f07
|
data/lib/usps/imis/api.rb
CHANGED
|
@@ -40,6 +40,10 @@ module Usps
|
|
|
40
40
|
#
|
|
41
41
|
attr_reader :logger
|
|
42
42
|
|
|
43
|
+
# Name and version of the API
|
|
44
|
+
#
|
|
45
|
+
def self.version = "#{NAME} (v#{Imis::VERSION})"
|
|
46
|
+
|
|
43
47
|
# Create a new instance of +Api+ and provide an existing auth token
|
|
44
48
|
#
|
|
45
49
|
# @param token [String] Auth token
|
|
@@ -246,10 +250,6 @@ module Usps
|
|
|
246
250
|
{ token: @token, token_expiration: @token_expiration }
|
|
247
251
|
end
|
|
248
252
|
|
|
249
|
-
# Name and version of the API
|
|
250
|
-
#
|
|
251
|
-
def version = "#{NAME} (v#{Imis::VERSION})"
|
|
252
|
-
|
|
253
253
|
# Ruby 3.5 instance variable filter
|
|
254
254
|
#
|
|
255
255
|
def instance_variables_to_inspect = %i[@token_expiration @imis_id]
|
|
@@ -20,7 +20,7 @@ module Usps
|
|
|
20
20
|
in auth_token: true then api.auth_token
|
|
21
21
|
in certificate: then api.imis_id
|
|
22
22
|
in show_config: then config_path
|
|
23
|
-
in version: true then api.version
|
|
23
|
+
in version: true then api.class.version
|
|
24
24
|
end
|
|
25
25
|
rescue NoMatchingPatternError => e
|
|
26
26
|
raise Errors::CommandLineError, "Unable to match pattern from options: #{e.message}"
|
data/lib/usps/imis/version.rb
CHANGED