revans-sleeve 0.2.4 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/LICENSE +1 -1
- data/bin/sleeve +6 -2
- data/lib/sleeve/generate.rb +2 -0
- data/lib/sleeve/parser.rb +1 -7
- data/lib/sleeve.rb +1 -1
- data/readme.markdown +1 -1
- metadata +1 -1
data/LICENSE
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Copyright (c)
|
1
|
+
Copyright (c) 2009 Code Wranglers, Inc. & Robert R Evans
|
2
2
|
|
3
3
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
4
4
|
this software and associated documentation files (the "Software"), to deal in
|
data/bin/sleeve
CHANGED
@@ -3,5 +3,9 @@
|
|
3
3
|
require 'rubygems'
|
4
4
|
require 'sleeve'
|
5
5
|
|
6
|
-
|
7
|
-
|
6
|
+
if ARGV.first.nil?
|
7
|
+
puts "You need to give a gem name: sleeve gem_name" and exit(0)
|
8
|
+
else
|
9
|
+
options = Sleeve::Options.parse(ARGV)
|
10
|
+
Sleeve::Generate.gem(options)
|
11
|
+
end
|
data/lib/sleeve/generate.rb
CHANGED
data/lib/sleeve/parser.rb
CHANGED
@@ -4,19 +4,13 @@ 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
|
+
options.name = args.first.sub(/(\s+)/, "-") unless args.first.nil?
|
8
8
|
|
9
9
|
opts = OptionParser.new do |opts|
|
10
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."
|
11
11
|
opts.separator ""
|
12
12
|
opts.separator "Specific Options:"
|
13
13
|
|
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
|
19
|
-
|
20
14
|
# Optional Arguments
|
21
15
|
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|
|
22
16
|
options.path = ext || Dir.pwd
|
data/lib/sleeve.rb
CHANGED
data/readme.markdown
CHANGED
@@ -11,7 +11,7 @@ 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.6.gem
|
15
15
|
|
16
16
|
## Usage
|
17
17
|
|