hammer_cli 0.0.9 → 0.0.10
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/README.md +5 -5
- data/doc/creating_apipie_commands.md +296 -0
- data/doc/creating_commands.md +547 -0
- data/doc/developer_docs.md +5 -926
- data/doc/development_tips.md +30 -0
- data/doc/writing_a_plugin.md +90 -0
- data/lib/hammer_cli/abstract.rb +31 -11
- data/lib/hammer_cli/apipie/resource.rb +14 -6
- data/lib/hammer_cli/apipie/write_command.rb +14 -5
- data/lib/hammer_cli/exception_handler.rb +7 -4
- data/lib/hammer_cli/options/normalizers.rb +27 -0
- data/lib/hammer_cli/output/adapter/abstract.rb +8 -8
- data/lib/hammer_cli/output/adapter/csv.rb +37 -4
- data/lib/hammer_cli/output/adapter/silent.rb +2 -2
- data/lib/hammer_cli/output/dsl.rb +3 -1
- data/lib/hammer_cli/output/output.rb +24 -19
- data/lib/hammer_cli/utils.rb +18 -0
- data/lib/hammer_cli/version.rb +1 -1
- data/lib/hammer_cli.rb +1 -0
- data/test/unit/abstract_test.rb +296 -0
- data/test/unit/apipie/command_test.rb +270 -0
- data/test/unit/apipie/fake_api.rb +101 -0
- data/test/unit/apipie/read_command_test.rb +34 -0
- data/test/unit/apipie/write_command_test.rb +38 -0
- data/test/unit/exception_handler_test.rb +45 -0
- data/test/unit/main_test.rb +47 -0
- data/test/unit/options/normalizers_test.rb +148 -0
- data/test/unit/options/option_definition_test.rb +43 -0
- data/test/unit/output/adapter/abstract_test.rb +96 -0
- data/test/unit/output/adapter/base_test.rb +27 -0
- data/test/unit/output/adapter/csv_test.rb +75 -0
- data/test/unit/output/adapter/table_test.rb +58 -0
- data/test/unit/output/definition_test.rb +27 -0
- data/test/unit/output/dsl_test.rb +119 -0
- data/test/unit/output/fields_test.rb +97 -0
- data/test/unit/output/formatters_test.rb +83 -0
- data/test/unit/output/output_test.rb +104 -0
- data/test/unit/settings_test.rb +106 -0
- data/test/unit/test_helper.rb +20 -0
- data/test/unit/utils_test.rb +35 -0
- data/test/unit/validator_test.rb +142 -0
- metadata +112 -35
- data/LICENSE +0 -5
- data/hammer_cli_complete +0 -13
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hammer_cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Bačovský
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-11-
|
12
|
+
date: 2013-11-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: clamp
|
@@ -95,6 +95,34 @@ dependencies:
|
|
95
95
|
- - '>='
|
96
96
|
- !ruby/object:Gem::Version
|
97
97
|
version: '0'
|
98
|
+
- !ruby/object:Gem::Dependency
|
99
|
+
name: fastercsv
|
100
|
+
requirement: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - '>='
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '0'
|
105
|
+
type: :runtime
|
106
|
+
prerelease: false
|
107
|
+
version_requirements: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - '>='
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '0'
|
112
|
+
- !ruby/object:Gem::Dependency
|
113
|
+
name: mime-types
|
114
|
+
requirement: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - <
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: 2.0.0
|
119
|
+
type: :runtime
|
120
|
+
prerelease: false
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - <
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: 2.0.0
|
98
126
|
description: |
|
99
127
|
Hammer cli provides universal extendable CLI interface for ruby apps
|
100
128
|
email: mbacovsk@redhat.com
|
@@ -103,54 +131,81 @@ executables:
|
|
103
131
|
extensions: []
|
104
132
|
extra_rdoc_files:
|
105
133
|
- README.md
|
106
|
-
- LICENSE
|
107
|
-
- hammer_cli_complete
|
108
134
|
- config/cli_config.template.yml
|
109
|
-
- doc/
|
135
|
+
- doc/creating_apipie_commands.md
|
136
|
+
- doc/creating_commands.md
|
110
137
|
- doc/design.png
|
111
138
|
- doc/design.uml
|
139
|
+
- doc/developer_docs.md
|
140
|
+
- doc/development_tips.md
|
141
|
+
- doc/writing_a_plugin.md
|
112
142
|
files:
|
113
|
-
-
|
114
|
-
-
|
115
|
-
-
|
116
|
-
-
|
117
|
-
-
|
118
|
-
-
|
119
|
-
-
|
120
|
-
-
|
143
|
+
- README.md
|
144
|
+
- bin/hammer
|
145
|
+
- config/cli_config.template.yml
|
146
|
+
- doc/creating_apipie_commands.md
|
147
|
+
- doc/creating_commands.md
|
148
|
+
- doc/design.png
|
149
|
+
- doc/design.uml
|
150
|
+
- doc/developer_docs.md
|
151
|
+
- doc/development_tips.md
|
152
|
+
- doc/writing_a_plugin.md
|
153
|
+
- lib/hammer_cli.rb
|
121
154
|
- lib/hammer_cli/abstract.rb
|
122
155
|
- lib/hammer_cli/apipie.rb
|
123
|
-
- lib/hammer_cli/
|
156
|
+
- lib/hammer_cli/apipie/command.rb
|
157
|
+
- lib/hammer_cli/apipie/options.rb
|
158
|
+
- lib/hammer_cli/apipie/read_command.rb
|
159
|
+
- lib/hammer_cli/apipie/resource.rb
|
160
|
+
- lib/hammer_cli/apipie/write_command.rb
|
161
|
+
- lib/hammer_cli/autocompletion.rb
|
124
162
|
- lib/hammer_cli/exception_handler.rb
|
163
|
+
- lib/hammer_cli/exit_codes.rb
|
164
|
+
- lib/hammer_cli/logger.rb
|
165
|
+
- lib/hammer_cli/logger_watch.rb
|
166
|
+
- lib/hammer_cli/main.rb
|
167
|
+
- lib/hammer_cli/messages.rb
|
168
|
+
- lib/hammer_cli/options/normalizers.rb
|
169
|
+
- lib/hammer_cli/options/option_definition.rb
|
125
170
|
- lib/hammer_cli/output.rb
|
126
|
-
- lib/hammer_cli/
|
127
|
-
- lib/hammer_cli/shell.rb
|
128
|
-
- lib/hammer_cli/output/adapter/table.rb
|
129
|
-
- lib/hammer_cli/output/adapter/base.rb
|
171
|
+
- lib/hammer_cli/output/adapter.rb
|
130
172
|
- lib/hammer_cli/output/adapter/abstract.rb
|
131
|
-
- lib/hammer_cli/output/adapter/
|
173
|
+
- lib/hammer_cli/output/adapter/base.rb
|
132
174
|
- lib/hammer_cli/output/adapter/csv.rb
|
175
|
+
- lib/hammer_cli/output/adapter/silent.rb
|
176
|
+
- lib/hammer_cli/output/adapter/table.rb
|
133
177
|
- lib/hammer_cli/output/definition.rb
|
134
|
-
- lib/hammer_cli/output/adapter.rb
|
135
178
|
- lib/hammer_cli/output/dsl.rb
|
179
|
+
- lib/hammer_cli/output/fields.rb
|
136
180
|
- lib/hammer_cli/output/formatters.rb
|
137
181
|
- lib/hammer_cli/output/output.rb
|
138
|
-
- lib/hammer_cli/output/fields.rb
|
139
|
-
- lib/hammer_cli/options/option_definition.rb
|
140
|
-
- lib/hammer_cli/options/normalizers.rb
|
141
182
|
- lib/hammer_cli/settings.rb
|
183
|
+
- lib/hammer_cli/shell.rb
|
184
|
+
- lib/hammer_cli/utils.rb
|
142
185
|
- lib/hammer_cli/validator.rb
|
143
|
-
- lib/hammer_cli/
|
144
|
-
-
|
145
|
-
-
|
146
|
-
-
|
147
|
-
-
|
148
|
-
-
|
149
|
-
-
|
150
|
-
-
|
151
|
-
-
|
152
|
-
-
|
153
|
-
-
|
186
|
+
- lib/hammer_cli/version.rb
|
187
|
+
- test/unit/abstract_test.rb
|
188
|
+
- test/unit/apipie/command_test.rb
|
189
|
+
- test/unit/apipie/fake_api.rb
|
190
|
+
- test/unit/apipie/read_command_test.rb
|
191
|
+
- test/unit/apipie/write_command_test.rb
|
192
|
+
- test/unit/exception_handler_test.rb
|
193
|
+
- test/unit/main_test.rb
|
194
|
+
- test/unit/options/normalizers_test.rb
|
195
|
+
- test/unit/options/option_definition_test.rb
|
196
|
+
- test/unit/output/adapter/abstract_test.rb
|
197
|
+
- test/unit/output/adapter/base_test.rb
|
198
|
+
- test/unit/output/adapter/csv_test.rb
|
199
|
+
- test/unit/output/adapter/table_test.rb
|
200
|
+
- test/unit/output/definition_test.rb
|
201
|
+
- test/unit/output/dsl_test.rb
|
202
|
+
- test/unit/output/fields_test.rb
|
203
|
+
- test/unit/output/formatters_test.rb
|
204
|
+
- test/unit/output/output_test.rb
|
205
|
+
- test/unit/settings_test.rb
|
206
|
+
- test/unit/test_helper.rb
|
207
|
+
- test/unit/utils_test.rb
|
208
|
+
- test/unit/validator_test.rb
|
154
209
|
homepage: http://github.com/theforeman/hammer-cli
|
155
210
|
licenses:
|
156
211
|
- GPL-3
|
@@ -175,5 +230,27 @@ rubygems_version: 2.0.8
|
|
175
230
|
signing_key:
|
176
231
|
specification_version: 4
|
177
232
|
summary: Universal command-line interface
|
178
|
-
test_files:
|
233
|
+
test_files:
|
234
|
+
- test/unit/abstract_test.rb
|
235
|
+
- test/unit/apipie/command_test.rb
|
236
|
+
- test/unit/apipie/fake_api.rb
|
237
|
+
- test/unit/apipie/read_command_test.rb
|
238
|
+
- test/unit/apipie/write_command_test.rb
|
239
|
+
- test/unit/exception_handler_test.rb
|
240
|
+
- test/unit/main_test.rb
|
241
|
+
- test/unit/options/normalizers_test.rb
|
242
|
+
- test/unit/options/option_definition_test.rb
|
243
|
+
- test/unit/output/adapter/abstract_test.rb
|
244
|
+
- test/unit/output/adapter/base_test.rb
|
245
|
+
- test/unit/output/adapter/csv_test.rb
|
246
|
+
- test/unit/output/adapter/table_test.rb
|
247
|
+
- test/unit/output/definition_test.rb
|
248
|
+
- test/unit/output/dsl_test.rb
|
249
|
+
- test/unit/output/fields_test.rb
|
250
|
+
- test/unit/output/formatters_test.rb
|
251
|
+
- test/unit/output/output_test.rb
|
252
|
+
- test/unit/settings_test.rb
|
253
|
+
- test/unit/test_helper.rb
|
254
|
+
- test/unit/utils_test.rb
|
255
|
+
- test/unit/validator_test.rb
|
179
256
|
has_rdoc:
|
data/LICENSE
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
This program and entire repository is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.
|
2
|
-
|
3
|
-
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
4
|
-
|
5
|
-
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
|