revans-sleeve 0.2.2 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/changelog.rdoc +2 -0
- data/lib/sleeve/parser.rb +6 -5
- data/lib/sleeve.rb +1 -1
- data/readme.markdown +2 -4
- metadata +1 -1
data/changelog.rdoc
CHANGED
data/lib/sleeve/parser.rb
CHANGED
@@ -4,17 +4,18 @@ module Sleeve
|
|
4
4
|
# Parse Arguments being passed
|
5
5
|
def self.parse(args)
|
6
6
|
options = OpenStruct.new
|
7
|
+
options.name = args.first.sub(/(\s+)/, "-")
|
7
8
|
|
8
9
|
opts = OptionParser.new do |opts|
|
9
10
|
opts.banner = "Usage: Creates a Sleeve for your Gem, so you can spend your time writing your Gem code instead of the sleeve that creates your Gem."
|
10
11
|
opts.separator ""
|
11
12
|
opts.separator "Specific Options:"
|
12
13
|
|
13
|
-
# Required Arguments
|
14
|
-
opts.on("--name NAME", "The Name of the Gem") do |ext|
|
15
|
-
|
16
|
-
|
17
|
-
end
|
14
|
+
# # Required Arguments
|
15
|
+
# opts.on("--name NAME", "The Name of the Gem") do |ext|
|
16
|
+
# options.name = ext
|
17
|
+
# options.name.sub!(/(\s+)/, "-")
|
18
|
+
# end
|
18
19
|
|
19
20
|
# Optional Arguments
|
20
21
|
opts.on("--path PATH", "The path of where you want your Gem to live. If not supplied, it will create the gem in the current Directory.") do |ext|
|
data/lib/sleeve.rb
CHANGED
data/readme.markdown
CHANGED
@@ -11,12 +11,10 @@ Sleeve is a very simple Gem Generator that creates a gemspec that can be used by
|
|
11
11
|
git clone git://github.com/revans/sleeve.git
|
12
12
|
cd sleeve
|
13
13
|
gem build sleeve.gemspec
|
14
|
-
sudo gem install sleeve-0.2.
|
14
|
+
sudo gem install sleeve-0.2.4.gem
|
15
15
|
|
16
16
|
## Usage
|
17
17
|
|
18
|
-
sleeve
|
19
|
-
|
20
|
-
--name is required and is used as the name of your Gem
|
18
|
+
sleeve gem_name --path /Users/rrevans/Desktop
|
21
19
|
|
22
20
|
--path is optional. If not specific it will use your current directory.
|