jem 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/bin/jem +0 -0
- data/jem.gemspec +1 -1
- data/lib/jem/build.rb +5 -2
- metadata +3 -3
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@ require 'rake/gempackagetask'
|
|
2
2
|
|
3
3
|
spec = Gem::Specification.new do |s|
|
4
4
|
s.name = 'jem'
|
5
|
-
s.version = '0.0.
|
5
|
+
s.version = '0.0.3'
|
6
6
|
s.date = '2010-07-08'
|
7
7
|
s.description = "Quick and simple generic Ruby project (i.e. making gems) directory and file structure generator."
|
8
8
|
s.summary = s.description
|
data/bin/jem
CHANGED
File without changes
|
data/jem.gemspec
CHANGED
data/lib/jem/build.rb
CHANGED
@@ -13,15 +13,16 @@ module Jem
|
|
13
13
|
return puts "Please specify a project name." if project_name == nil
|
14
14
|
|
15
15
|
if !File.exists? project_name
|
16
|
-
print "* Building structure in directory:
|
16
|
+
print "* Building structure in directory: #{project_name}/\n"
|
17
17
|
options = {:verbose => true}
|
18
18
|
print "\t=> "
|
19
|
-
FileUtils.mkdir_p
|
19
|
+
FileUtils.mkdir_p project_name + '/lib/' + project_name, options
|
20
20
|
FileUtils.cd project_name
|
21
21
|
print "\t=> "
|
22
22
|
FileUtils.mkdir %w(test docs examples bin), options
|
23
23
|
print "\t=> "
|
24
24
|
FileUtils.touch %w(LICENCE README CHANGELOG VERSION Rakefile), options
|
25
|
+
project_name = File.basename(project_name)
|
25
26
|
print "\t=> "
|
26
27
|
FileUtils.touch project_name + '.gemspec', options
|
27
28
|
FileUtils.cd 'lib'
|
@@ -43,3 +44,5 @@ module Jem
|
|
43
44
|
|
44
45
|
end
|
45
46
|
end
|
47
|
+
|
48
|
+
Jem::Build.execute(ARGV)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jason Watson
|