3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# File 'lib/create_new_gem/helptext.rb', line 3
def self.helptext
v = CreateNewGem.version
text = <<A
Create New Gem v#{v}
Matthias Lee <[email protected]>
Usage: gemnew [gem name] [class name] (opts)
gem name: Name of the gem. All lowercase, [a-z 0-9 _ -] EX: coolgem, create_new_gem
class name: Gem class name. [A-z 0-9 _] EX: CoolGem, CreateNewGem
Options:
--add_depends '<dependencies>': Adds dependencies. Use form "rbtext:>=0.3.3,argparse:>=0.0.3"
--add_requires '<requires>': Adds require statements. Use form "rbtext,rbtext/string_methods,argparse"
--add_executables '<executables>': Adds executables to the gem. Use form "exe1,exe2"
--summary '<summary>': Adds summary
--description '<description>': Adds description
--authors '<authors>': Adds authors. Use form "Matthias Lee,John Doe"
--email '<email>': Adds email address
--homepage '<homepage>': Adds homepage
--license '<license>': Adds license
--no_git: Doesn't initialize git
--prefs '<prefs>': Modifies preferences. Use form "email:[email protected],name:Matthias Lee"
--help: Shows the help menu
A
end
|