usps-imis-api 0.11.10 → 0.11.12
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/api.rb +8 -0
- data/lib/usps/imis/command_line/options_parser.rb +9 -2
- data/lib/usps/imis/query.rb +1 -7
- 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: 3b7dbdde63c0e5541e240df706bd51d2f4db983473a29e3b5db1d4779015893b
|
|
4
|
+
data.tar.gz: aa80e0a5094e561d3e8a2b64c56c9e18ea4cf93c24a6e3c8729c108d3a639ccf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cda6f17fedd33eaed4f347bf0213b4f87ba1d784cd333208a244c84ac6223610363f402bc40348eb2bc4ea770de83d3f63edfa37bd3bcb5d3c4d7454cc064780
|
|
7
|
+
data.tar.gz: 2124949a5db9853087e076681f76b3e7df609610573026679f2bc89f9403f88cf762ae9be68f2a7f3852d255a9bfcceb3eed02bf0a5b518d5f6b9daaeeec0a84
|
data/bin/imis
ADDED
data/lib/usps/imis/api.rb
CHANGED
|
@@ -148,6 +148,14 @@ module Usps
|
|
|
148
148
|
#
|
|
149
149
|
def update(data) = mapper.update(data)
|
|
150
150
|
|
|
151
|
+
# List of available Business Object names
|
|
152
|
+
#
|
|
153
|
+
def business_objects
|
|
154
|
+
abc, other = query('BOEntityDefinition').map(&:entity).partition { it.include?('ABC') }
|
|
155
|
+
|
|
156
|
+
{ abc:, other: }
|
|
157
|
+
end
|
|
158
|
+
|
|
151
159
|
# Convenience accessor for available Panel objects, each using this instance as its parent
|
|
152
160
|
# +Api+
|
|
153
161
|
#
|
|
@@ -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/query.rb
CHANGED
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.12
|
|
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
|