thor_enhance 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -1
- data/Gemfile.lock +36 -8
- data/README.md +4 -2
- data/bin/thor_enhance +22 -0
- data/docs/autogenerate/Readme.md +152 -0
- data/lib/thor_enhance/autogenerate/command.rb +240 -0
- data/lib/thor_enhance/autogenerate/configuration.rb +72 -0
- data/lib/thor_enhance/autogenerate/option.rb +44 -0
- data/lib/thor_enhance/autogenerate/templates/aggregate_options.rb.erb +12 -0
- data/lib/thor_enhance/autogenerate/templates/command.rb.erb +49 -0
- data/lib/thor_enhance/autogenerate/templates/footer.rb.erb +3 -0
- data/lib/thor_enhance/autogenerate/templates/option.rb.erb +14 -0
- data/lib/thor_enhance/autogenerate/templates/root.rb.erb +9 -0
- data/lib/thor_enhance/autogenerate/validate.rb +95 -0
- data/lib/thor_enhance/autogenerate.rb +78 -0
- data/lib/thor_enhance/command_method.rb +35 -5
- data/lib/thor_enhance/configuration.rb +47 -4
- data/lib/thor_enhance/option.rb +0 -2
- data/lib/thor_enhance/sample.rb +40 -0
- data/lib/thor_enhance/thor_auto_generate_inject.rb +64 -0
- data/lib/thor_enhance/tree.rb +4 -2
- data/lib/thor_enhance/version.rb +1 -1
- data/lib/thor_enhance.rb +12 -4
- data/thor_enhance.gemspec +1 -0
- metadata +30 -2
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thor_enhance
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Taylor
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: activesupport
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '6'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '6'
|
27
41
|
description: Have you ever wanted your thor commands to tell a story of what they
|
28
42
|
are? Or have you ever wanted to deprecate an option over time easily? ThorEnhance
|
29
43
|
allows to to annote methods and commands in a human readable way
|
@@ -45,7 +59,9 @@ files:
|
|
45
59
|
- README.md
|
46
60
|
- bin/console
|
47
61
|
- bin/setup
|
62
|
+
- bin/thor_enhance
|
48
63
|
- docker-compose.yml
|
64
|
+
- docs/autogenerate/Readme.md
|
49
65
|
- docs/command.md
|
50
66
|
- docs/hooks.md
|
51
67
|
- docs/initialization.md
|
@@ -55,12 +71,24 @@ files:
|
|
55
71
|
- examples/example_with_subcommand.md
|
56
72
|
- examples/hooks.md
|
57
73
|
- lib/thor_enhance.rb
|
74
|
+
- lib/thor_enhance/autogenerate.rb
|
75
|
+
- lib/thor_enhance/autogenerate/command.rb
|
76
|
+
- lib/thor_enhance/autogenerate/configuration.rb
|
77
|
+
- lib/thor_enhance/autogenerate/option.rb
|
78
|
+
- lib/thor_enhance/autogenerate/templates/aggregate_options.rb.erb
|
79
|
+
- lib/thor_enhance/autogenerate/templates/command.rb.erb
|
80
|
+
- lib/thor_enhance/autogenerate/templates/footer.rb.erb
|
81
|
+
- lib/thor_enhance/autogenerate/templates/option.rb.erb
|
82
|
+
- lib/thor_enhance/autogenerate/templates/root.rb.erb
|
83
|
+
- lib/thor_enhance/autogenerate/validate.rb
|
58
84
|
- lib/thor_enhance/base.rb
|
59
85
|
- lib/thor_enhance/command.rb
|
60
86
|
- lib/thor_enhance/command_hook.rb
|
61
87
|
- lib/thor_enhance/command_method.rb
|
62
88
|
- lib/thor_enhance/configuration.rb
|
63
89
|
- lib/thor_enhance/option.rb
|
90
|
+
- lib/thor_enhance/sample.rb
|
91
|
+
- lib/thor_enhance/thor_auto_generate_inject.rb
|
64
92
|
- lib/thor_enhance/tree.rb
|
65
93
|
- lib/thor_enhance/version.rb
|
66
94
|
- thor_enhance.gemspec
|