usps-imis-api 0.11.10 → 0.11.11
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/bin/imis +8 -0
- data/lib/usps/imis/command_line/options_parser.rb +9 -2
- data/lib/usps/imis/version.rb +1 -1
- data/lib/usps/imis.rb +0 -8
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 74b99b840bfc5ad14fe128eed272e7252d9adf14c654dd5fc3e5d2988ff6f3d8
|
|
4
|
+
data.tar.gz: 80ccb6c8099d0eb2342adb2030092e8f78e0c80d3a5d386a3f3f59f708b41c4d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ce4097dda0dc0e483ee3324fdda9a93c3f0e74dfc94eae65eee665cf9108b7d608b1ae598161a38be0317cadd468b10db9bb07eb4685680af309b9642524ad89
|
|
7
|
+
data.tar.gz: 19053d8b5533587c43901083bc9af46fe5074719f2ae0c6c5b38bfd7c6980765a79f96887df62f5f6d42f64da9e93b24fddb760d23f662d37deb2213385cea8a
|
data/bin/imis
ADDED
|
@@ -53,6 +53,13 @@ module Usps
|
|
|
53
53
|
|
|
54
54
|
attr_reader :arguments, :options
|
|
55
55
|
|
|
56
|
+
def self.banner_header(version)
|
|
57
|
+
<<~BANNER
|
|
58
|
+
#{version.bold.blue}
|
|
59
|
+
#{'P/R/C Julian Fiander, SN'.gray}\n \n
|
|
60
|
+
BANNER
|
|
61
|
+
end
|
|
62
|
+
|
|
56
63
|
def self.banner_contents
|
|
57
64
|
<<~BANNER
|
|
58
65
|
#{'Usage'.underline}
|
|
@@ -75,7 +82,7 @@ module Usps
|
|
|
75
82
|
|
|
76
83
|
For an explanation of how to provide API configuration, please refer to the wiki:
|
|
77
84
|
|
|
78
|
-
https://github.com/unitedstatespowersquadrons/imis-api-ruby/wiki/
|
|
85
|
+
https://github.com/unitedstatespowersquadrons/imis-api-ruby/wiki/Command-Line
|
|
79
86
|
|
|
80
87
|
|
|
81
88
|
#{'Options'.underline}
|
|
@@ -99,7 +106,7 @@ module Usps
|
|
|
99
106
|
Optimist.options do
|
|
100
107
|
version "#{Interface::NAME} (v#{Usps::Imis::VERSION})"
|
|
101
108
|
|
|
102
|
-
banner
|
|
109
|
+
banner OptionsParser.banner_header(version)
|
|
103
110
|
banner OptionsParser.banner_contents
|
|
104
111
|
|
|
105
112
|
OPTIONS.each { |option, data| opt(option, *data) }
|
data/lib/usps/imis/version.rb
CHANGED
data/lib/usps/imis.rb
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
1
|
# frozen_string_literal: true
|
|
3
2
|
|
|
4
3
|
# Core dependencies
|
|
@@ -24,7 +23,6 @@ require_relative 'imis/error'
|
|
|
24
23
|
require_relative 'imis/api'
|
|
25
24
|
require_relative 'imis/properties'
|
|
26
25
|
require_relative 'imis/panels'
|
|
27
|
-
require_relative 'imis/command_line'
|
|
28
26
|
require_relative 'imis/mocks'
|
|
29
27
|
require_relative 'imis/version'
|
|
30
28
|
|
|
@@ -61,9 +59,3 @@ module Usps
|
|
|
61
59
|
end
|
|
62
60
|
end
|
|
63
61
|
end
|
|
64
|
-
|
|
65
|
-
# Invoke CLI, only if invoked from the command line
|
|
66
|
-
#
|
|
67
|
-
# :nocov:
|
|
68
|
-
Usps::Imis::CommandLine::Interface.run if __FILE__ == $PROGRAM_NAME
|
|
69
|
-
# :nocov:
|
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.
|
|
4
|
+
version: 0.11.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Julian Fiander
|
|
@@ -67,11 +67,13 @@ dependencies:
|
|
|
67
67
|
version: 3.2.1
|
|
68
68
|
description: A wrapper for the iMIS API.
|
|
69
69
|
email: jsfiander@gmail.com
|
|
70
|
-
executables:
|
|
70
|
+
executables:
|
|
71
|
+
- imis
|
|
71
72
|
extensions: []
|
|
72
73
|
extra_rdoc_files: []
|
|
73
74
|
files:
|
|
74
75
|
- Readme.md
|
|
76
|
+
- bin/imis
|
|
75
77
|
- lib/usps/imis.rb
|
|
76
78
|
- lib/usps/imis/api.rb
|
|
77
79
|
- lib/usps/imis/business_object.rb
|