jem 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/Rakefile +1 -1
  2. data/bin/jem +0 -0
  3. data/jem.gemspec +1 -1
  4. data/lib/jem/build.rb +5 -2
  5. 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.2'
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
@@ -1,7 +1,7 @@
1
1
 
2
2
  Gem::Specification.new do |s|
3
3
  s.name = 'jem'
4
- s.version = '0.0.2'
4
+ s.version = '0.0.3'
5
5
  s.date = '2010-07-08'
6
6
  s.description = "Quick and simple generic Ruby project (i.e. making gems) directory and file structure generator."
7
7
  s.summary = s.description
@@ -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: ./#{project_name}/\n"
16
+ print "* Building structure in directory: #{project_name}/\n"
17
17
  options = {:verbose => true}
18
18
  print "\t=> "
19
- FileUtils.mkdir_p './' + project_name+ '/lib/' + project_name, options
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: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jason Watson