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 CHANGED
@@ -1,3 +1,5 @@
1
+ Version 0.2.4
2
+ * Removed --name
1
3
 
2
4
  Version 0.2.2
3
5
  * Added additional text for the changelog and readme
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
- options.name = ext
16
- options.name.sub!(/(\s+)/, "-")
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
@@ -1,5 +1,5 @@
1
1
  module Sleeve
2
- Version = "0.2.2"
2
+ Version = "0.2.4"
3
3
  class GemNameRequired < StandardError; end
4
4
  end
5
5
 
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.0.gem
14
+ sudo gem install sleeve-0.2.4.gem
15
15
 
16
16
  ## Usage
17
17
 
18
- sleeve --name gem_name --path /Users/rrevans/Desktop
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.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: revans-sleeve
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Evans