methadone-rehab 1.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +15 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/.travis.yml +11 -0
- data/CHANGES.md +66 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +201 -0
- data/README.rdoc +179 -0
- data/Rakefile +98 -0
- data/TODO.md +3 -0
- data/bin/methadone +157 -0
- data/features/bootstrap.feature +169 -0
- data/features/license.feature +43 -0
- data/features/multilevel_commands.feature +125 -0
- data/features/readme.feature +26 -0
- data/features/rspec_support.feature +27 -0
- data/features/step_definitions/bootstrap_steps.rb +47 -0
- data/features/step_definitions/license_steps.rb +30 -0
- data/features/step_definitions/readme_steps.rb +26 -0
- data/features/step_definitions/version_steps.rb +4 -0
- data/features/support/env.rb +26 -0
- data/features/version.feature +17 -0
- data/lib/methadone.rb +15 -0
- data/lib/methadone/argv_parser.rb +50 -0
- data/lib/methadone/cli.rb +124 -0
- data/lib/methadone/cli_logger.rb +133 -0
- data/lib/methadone/cli_logging.rb +138 -0
- data/lib/methadone/cucumber.rb +174 -0
- data/lib/methadone/error.rb +32 -0
- data/lib/methadone/execution_strategy/base.rb +34 -0
- data/lib/methadone/execution_strategy/jvm.rb +37 -0
- data/lib/methadone/execution_strategy/mri.rb +16 -0
- data/lib/methadone/execution_strategy/open_3.rb +16 -0
- data/lib/methadone/execution_strategy/open_4.rb +22 -0
- data/lib/methadone/execution_strategy/rbx_open_4.rb +12 -0
- data/lib/methadone/exit_now.rb +40 -0
- data/lib/methadone/main.rb +1039 -0
- data/lib/methadone/process_status.rb +45 -0
- data/lib/methadone/sh.rb +223 -0
- data/lib/methadone/version.rb +3 -0
- data/methadone-rehab.gemspec +32 -0
- data/templates/full/.gitignore.erb +4 -0
- data/templates/full/README.rdoc.erb +25 -0
- data/templates/full/Rakefile.erb +74 -0
- data/templates/full/_license_head.txt.erb +2 -0
- data/templates/full/apache_LICENSE.txt.erb +203 -0
- data/templates/full/bin/executable.erb +47 -0
- data/templates/full/custom_LICENSE.txt.erb +0 -0
- data/templates/full/features/executable.feature.erb +13 -0
- data/templates/full/features/step_definitions/executable_steps.rb.erb +1 -0
- data/templates/full/features/support/env.rb.erb +16 -0
- data/templates/full/gplv2_LICENSE.txt.erb +14 -0
- data/templates/full/gplv3_LICENSE.txt.erb +15 -0
- data/templates/full/mit_LICENSE.txt.erb +7 -0
- data/templates/multicommand/bin/executable.erb +52 -0
- data/templates/multicommand/lib/command.rb.erb +40 -0
- data/templates/multicommand/lib/commands.rb.erb +7 -0
- data/templates/rspec/spec/something_spec.rb.erb +5 -0
- data/templates/test_unit/test/tc_something.rb.erb +7 -0
- data/test/base_test.rb +20 -0
- data/test/command_for_tests.sh +7 -0
- data/test/execution_strategy/test_base.rb +24 -0
- data/test/execution_strategy/test_jvm.rb +77 -0
- data/test/execution_strategy/test_mri.rb +32 -0
- data/test/execution_strategy/test_open_3.rb +70 -0
- data/test/execution_strategy/test_open_4.rb +86 -0
- data/test/execution_strategy/test_rbx_open_4.rb +25 -0
- data/test/test_cli_logger.rb +219 -0
- data/test/test_cli_logging.rb +243 -0
- data/test/test_exit_now.rb +37 -0
- data/test/test_main.rb +1213 -0
- data/test/test_multi.rb +405 -0
- data/test/test_sh.rb +404 -0
- metadata +321 -0
metadata
ADDED
@@ -0,0 +1,321 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: methadone-rehab
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.9.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- davetron5000
|
8
|
+
- dennisjbell
|
9
|
+
- juhazi
|
10
|
+
- matti
|
11
|
+
autorequire:
|
12
|
+
bindir: bin
|
13
|
+
cert_chain: []
|
14
|
+
date: 2015-06-23 00:00:00.000000000 Z
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: bundler
|
18
|
+
requirement: !ruby/object:Gem::Requirement
|
19
|
+
requirements:
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '0'
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rake
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
requirements:
|
34
|
+
- - ">="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '0'
|
37
|
+
type: :development
|
38
|
+
prerelease: false
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
44
|
+
- !ruby/object:Gem::Dependency
|
45
|
+
name: rdoc
|
46
|
+
requirement: !ruby/object:Gem::Requirement
|
47
|
+
requirements:
|
48
|
+
- - "~>"
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '3.9'
|
51
|
+
type: :development
|
52
|
+
prerelease: false
|
53
|
+
version_requirements: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - "~>"
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '3.9'
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: cucumber
|
60
|
+
requirement: !ruby/object:Gem::Requirement
|
61
|
+
requirements:
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: '0'
|
65
|
+
type: :development
|
66
|
+
prerelease: false
|
67
|
+
version_requirements: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '0'
|
72
|
+
- !ruby/object:Gem::Dependency
|
73
|
+
name: aruba
|
74
|
+
requirement: !ruby/object:Gem::Requirement
|
75
|
+
requirements:
|
76
|
+
- - ">="
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: '0'
|
79
|
+
type: :development
|
80
|
+
prerelease: false
|
81
|
+
version_requirements: !ruby/object:Gem::Requirement
|
82
|
+
requirements:
|
83
|
+
- - ">="
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
- !ruby/object:Gem::Dependency
|
87
|
+
name: simplecov
|
88
|
+
requirement: !ruby/object:Gem::Requirement
|
89
|
+
requirements:
|
90
|
+
- - "~>"
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: '0.5'
|
93
|
+
type: :development
|
94
|
+
prerelease: false
|
95
|
+
version_requirements: !ruby/object:Gem::Requirement
|
96
|
+
requirements:
|
97
|
+
- - "~>"
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: '0.5'
|
100
|
+
- !ruby/object:Gem::Dependency
|
101
|
+
name: clean_test
|
102
|
+
requirement: !ruby/object:Gem::Requirement
|
103
|
+
requirements:
|
104
|
+
- - ">="
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: '0'
|
107
|
+
type: :development
|
108
|
+
prerelease: false
|
109
|
+
version_requirements: !ruby/object:Gem::Requirement
|
110
|
+
requirements:
|
111
|
+
- - ">="
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: '0'
|
114
|
+
- !ruby/object:Gem::Dependency
|
115
|
+
name: mocha
|
116
|
+
requirement: !ruby/object:Gem::Requirement
|
117
|
+
requirements:
|
118
|
+
- - '='
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: 0.13.2
|
121
|
+
type: :development
|
122
|
+
prerelease: false
|
123
|
+
version_requirements: !ruby/object:Gem::Requirement
|
124
|
+
requirements:
|
125
|
+
- - '='
|
126
|
+
- !ruby/object:Gem::Version
|
127
|
+
version: 0.13.2
|
128
|
+
- !ruby/object:Gem::Dependency
|
129
|
+
name: sdoc
|
130
|
+
requirement: !ruby/object:Gem::Requirement
|
131
|
+
requirements:
|
132
|
+
- - ">="
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
version: '0'
|
135
|
+
type: :development
|
136
|
+
prerelease: false
|
137
|
+
version_requirements: !ruby/object:Gem::Requirement
|
138
|
+
requirements:
|
139
|
+
- - ">="
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
142
|
+
- !ruby/object:Gem::Dependency
|
143
|
+
name: pry
|
144
|
+
requirement: !ruby/object:Gem::Requirement
|
145
|
+
requirements:
|
146
|
+
- - ">="
|
147
|
+
- !ruby/object:Gem::Version
|
148
|
+
version: '0'
|
149
|
+
type: :development
|
150
|
+
prerelease: false
|
151
|
+
version_requirements: !ruby/object:Gem::Requirement
|
152
|
+
requirements:
|
153
|
+
- - ">="
|
154
|
+
- !ruby/object:Gem::Version
|
155
|
+
version: '0'
|
156
|
+
- !ruby/object:Gem::Dependency
|
157
|
+
name: rspec
|
158
|
+
requirement: !ruby/object:Gem::Requirement
|
159
|
+
requirements:
|
160
|
+
- - "~>"
|
161
|
+
- !ruby/object:Gem::Version
|
162
|
+
version: '3'
|
163
|
+
type: :development
|
164
|
+
prerelease: false
|
165
|
+
version_requirements: !ruby/object:Gem::Requirement
|
166
|
+
requirements:
|
167
|
+
- - "~>"
|
168
|
+
- !ruby/object:Gem::Version
|
169
|
+
version: '3'
|
170
|
+
- !ruby/object:Gem::Dependency
|
171
|
+
name: i18n
|
172
|
+
requirement: !ruby/object:Gem::Requirement
|
173
|
+
requirements:
|
174
|
+
- - '='
|
175
|
+
- !ruby/object:Gem::Version
|
176
|
+
version: 0.6.1
|
177
|
+
type: :development
|
178
|
+
prerelease: false
|
179
|
+
version_requirements: !ruby/object:Gem::Requirement
|
180
|
+
requirements:
|
181
|
+
- - '='
|
182
|
+
- !ruby/object:Gem::Version
|
183
|
+
version: 0.6.1
|
184
|
+
description: Improvement to Methadone Clinic [http://github.com/dennisjbell/methadone-clinic]
|
185
|
+
that adds subcommands, option interaction rules (requires/excludes), and improved
|
186
|
+
argument handling, while continuing to provide a lot of small but useful features
|
187
|
+
for developing a command-line app, including an opinionated bootstrapping process,
|
188
|
+
some helpful cucumber steps, and some classes to bridge logging and output into
|
189
|
+
a simple, unified, interface that was in Methadone 1.9
|
190
|
+
email:
|
191
|
+
- davetron5000 at gmail.com
|
192
|
+
- dennis.j.bell at gmail.com
|
193
|
+
- juha.suuraho at enemy.fi
|
194
|
+
- matti.paksula at enemy.fi
|
195
|
+
executables:
|
196
|
+
- methadone
|
197
|
+
extensions: []
|
198
|
+
extra_rdoc_files: []
|
199
|
+
files:
|
200
|
+
- ".gitignore"
|
201
|
+
- ".ruby-gemset"
|
202
|
+
- ".ruby-version"
|
203
|
+
- ".travis.yml"
|
204
|
+
- CHANGES.md
|
205
|
+
- Gemfile
|
206
|
+
- LICENSE.txt
|
207
|
+
- README.rdoc
|
208
|
+
- Rakefile
|
209
|
+
- TODO.md
|
210
|
+
- bin/methadone
|
211
|
+
- features/bootstrap.feature
|
212
|
+
- features/license.feature
|
213
|
+
- features/multilevel_commands.feature
|
214
|
+
- features/readme.feature
|
215
|
+
- features/rspec_support.feature
|
216
|
+
- features/step_definitions/bootstrap_steps.rb
|
217
|
+
- features/step_definitions/license_steps.rb
|
218
|
+
- features/step_definitions/readme_steps.rb
|
219
|
+
- features/step_definitions/version_steps.rb
|
220
|
+
- features/support/env.rb
|
221
|
+
- features/version.feature
|
222
|
+
- lib/methadone.rb
|
223
|
+
- lib/methadone/argv_parser.rb
|
224
|
+
- lib/methadone/cli.rb
|
225
|
+
- lib/methadone/cli_logger.rb
|
226
|
+
- lib/methadone/cli_logging.rb
|
227
|
+
- lib/methadone/cucumber.rb
|
228
|
+
- lib/methadone/error.rb
|
229
|
+
- lib/methadone/execution_strategy/base.rb
|
230
|
+
- lib/methadone/execution_strategy/jvm.rb
|
231
|
+
- lib/methadone/execution_strategy/mri.rb
|
232
|
+
- lib/methadone/execution_strategy/open_3.rb
|
233
|
+
- lib/methadone/execution_strategy/open_4.rb
|
234
|
+
- lib/methadone/execution_strategy/rbx_open_4.rb
|
235
|
+
- lib/methadone/exit_now.rb
|
236
|
+
- lib/methadone/main.rb
|
237
|
+
- lib/methadone/process_status.rb
|
238
|
+
- lib/methadone/sh.rb
|
239
|
+
- lib/methadone/version.rb
|
240
|
+
- methadone-rehab.gemspec
|
241
|
+
- templates/full/.gitignore.erb
|
242
|
+
- templates/full/README.rdoc.erb
|
243
|
+
- templates/full/Rakefile.erb
|
244
|
+
- templates/full/_license_head.txt.erb
|
245
|
+
- templates/full/apache_LICENSE.txt.erb
|
246
|
+
- templates/full/bin/executable.erb
|
247
|
+
- templates/full/custom_LICENSE.txt.erb
|
248
|
+
- templates/full/features/executable.feature.erb
|
249
|
+
- templates/full/features/step_definitions/executable_steps.rb.erb
|
250
|
+
- templates/full/features/support/env.rb.erb
|
251
|
+
- templates/full/gplv2_LICENSE.txt.erb
|
252
|
+
- templates/full/gplv3_LICENSE.txt.erb
|
253
|
+
- templates/full/mit_LICENSE.txt.erb
|
254
|
+
- templates/multicommand/bin/executable.erb
|
255
|
+
- templates/multicommand/lib/command.rb.erb
|
256
|
+
- templates/multicommand/lib/commands.rb.erb
|
257
|
+
- templates/rspec/spec/something_spec.rb.erb
|
258
|
+
- templates/test_unit/test/tc_something.rb.erb
|
259
|
+
- test/base_test.rb
|
260
|
+
- test/command_for_tests.sh
|
261
|
+
- test/execution_strategy/test_base.rb
|
262
|
+
- test/execution_strategy/test_jvm.rb
|
263
|
+
- test/execution_strategy/test_mri.rb
|
264
|
+
- test/execution_strategy/test_open_3.rb
|
265
|
+
- test/execution_strategy/test_open_4.rb
|
266
|
+
- test/execution_strategy/test_rbx_open_4.rb
|
267
|
+
- test/test_cli_logger.rb
|
268
|
+
- test/test_cli_logging.rb
|
269
|
+
- test/test_exit_now.rb
|
270
|
+
- test/test_main.rb
|
271
|
+
- test/test_multi.rb
|
272
|
+
- test/test_sh.rb
|
273
|
+
homepage: http://github.com/enemy/methadone-rehab
|
274
|
+
licenses: []
|
275
|
+
metadata: {}
|
276
|
+
post_install_message:
|
277
|
+
rdoc_options: []
|
278
|
+
require_paths:
|
279
|
+
- lib
|
280
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
281
|
+
requirements:
|
282
|
+
- - ">="
|
283
|
+
- !ruby/object:Gem::Version
|
284
|
+
version: '0'
|
285
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
286
|
+
requirements:
|
287
|
+
- - ">="
|
288
|
+
- !ruby/object:Gem::Version
|
289
|
+
version: '0'
|
290
|
+
requirements: []
|
291
|
+
rubyforge_project: methadone-rehab
|
292
|
+
rubygems_version: 2.4.8
|
293
|
+
signing_key:
|
294
|
+
specification_version: 4
|
295
|
+
summary: Kick the bash habit and start your command-line apps off right
|
296
|
+
test_files:
|
297
|
+
- features/bootstrap.feature
|
298
|
+
- features/license.feature
|
299
|
+
- features/multilevel_commands.feature
|
300
|
+
- features/readme.feature
|
301
|
+
- features/rspec_support.feature
|
302
|
+
- features/step_definitions/bootstrap_steps.rb
|
303
|
+
- features/step_definitions/license_steps.rb
|
304
|
+
- features/step_definitions/readme_steps.rb
|
305
|
+
- features/step_definitions/version_steps.rb
|
306
|
+
- features/support/env.rb
|
307
|
+
- features/version.feature
|
308
|
+
- test/base_test.rb
|
309
|
+
- test/command_for_tests.sh
|
310
|
+
- test/execution_strategy/test_base.rb
|
311
|
+
- test/execution_strategy/test_jvm.rb
|
312
|
+
- test/execution_strategy/test_mri.rb
|
313
|
+
- test/execution_strategy/test_open_3.rb
|
314
|
+
- test/execution_strategy/test_open_4.rb
|
315
|
+
- test/execution_strategy/test_rbx_open_4.rb
|
316
|
+
- test/test_cli_logger.rb
|
317
|
+
- test/test_cli_logging.rb
|
318
|
+
- test/test_exit_now.rb
|
319
|
+
- test/test_main.rb
|
320
|
+
- test/test_multi.rb
|
321
|
+
- test/test_sh.rb
|