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: 27d14e895f15b3dc94ab5d32f07f52855253b412d0f09e62925ae2833664269e
4
- data.tar.gz: 3c2f8d03ae31e1b4372f5ae16047ad09c7401fee5831e62c3f72e2e5517761cd
3
+ metadata.gz: 91e2f0a177b8be61ec06ec7e27dd6e2281fd8b738b47aa669888b45a1f67dfea
4
+ data.tar.gz: 15230dcb456425d123dd5d3f884cb2b319d21183c12037cf4082e830293f1bcc
5
5
  SHA512:
6
- metadata.gz: 0f67ef6dd5d2dc56a8fcb982498c7766eb6b6a7ea26e340f7fe358cb88d694e3d1a4c392da59660fd6ddb134bc09c1e9b3394609af7dcf8ba388d203fa33f51a
7
- data.tar.gz: a6bf0462662992192b01cac14124b640dd3ccf7ad56637719cf2b71558cdf3198a89df6110b37e16fac56b4aecfd6d0ca4659fef0f598a28774e11bbaf2bd191
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]
@@ -126,7 +126,7 @@ module Usps
126
126
 
127
127
  def parse_options
128
128
  Optimist.options do
129
- version "#{Interface::NAME} (v#{Usps::Imis::VERSION})"
129
+ version Api.version
130
130
 
131
131
  banner OptionsParser.banner_header(version)
132
132
  banner OptionsParser.banner_contents
@@ -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}"
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Usps
4
4
  module Imis
5
- VERSION = '0.11.36'
5
+ VERSION = '0.11.37'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: usps-imis-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.36
4
+ version: 0.11.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Fiander