newgem 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/newgem +5 -0
- data/lib/newgem/version.rb +1 -1
- data/templates/Rakefile +4 -1
- data/website/version-raw.js +1 -1
- data/website/version.js +1 -1
- metadata +1 -1
data/bin/newgem
CHANGED
@@ -55,6 +55,9 @@ unit_test = test + "/" + project_name + "_test.rb"
|
|
55
55
|
examples = project_name + '/examples'
|
56
56
|
bin = project_name + '/bin'
|
57
57
|
|
58
|
+
# Rakefile variables
|
59
|
+
author = ENV['USERNAME'] || ENV['USER'] || 'you'
|
60
|
+
|
58
61
|
FileUtils.rm_rf project_name
|
59
62
|
|
60
63
|
puts "creating: " + project_name
|
@@ -156,3 +159,5 @@ template = File.open(templates + 'setup.rb','r') {|f| f.readlines.join}
|
|
156
159
|
File.open(setup, 'w') do |file|
|
157
160
|
file << template
|
158
161
|
end
|
162
|
+
|
163
|
+
puts "NOW - update #{gem_name}/Rakefile with gem description, etc"
|
data/lib/newgem/version.rb
CHANGED
data/templates/Rakefile
CHANGED
@@ -9,11 +9,12 @@ require 'fileutils'
|
|
9
9
|
include FileUtils
|
10
10
|
require File.join(File.dirname(__FILE__), 'lib', '#{gem_name}', 'version')
|
11
11
|
|
12
|
-
AUTHOR = "
|
12
|
+
AUTHOR = "#{author}"
|
13
13
|
EMAIL = "your contact email for bug fixes and info"
|
14
14
|
DESCRIPTION = "description of gem"
|
15
15
|
HOMEPATH = 'http://#{gem_name}.rubyforge.org'
|
16
16
|
BIN_FILES = %w( #{bin_names} )
|
17
|
+
RUBYFORGE_PROJECT = "#{gem_name}"
|
17
18
|
|
18
19
|
|
19
20
|
NAME = "#{gem_name}"
|
@@ -48,8 +49,10 @@ spec =
|
|
48
49
|
s.email = EMAIL
|
49
50
|
s.homepage = HOMEPATH
|
50
51
|
s.executables = BIN_FILES
|
52
|
+
s.rubyforge_project = RUBYFORGE_PROJECT
|
51
53
|
s.bindir = "bin"
|
52
54
|
s.require_path = "lib"
|
55
|
+
s.autorequire = "#{gem_name}"
|
53
56
|
|
54
57
|
#s.add_dependency('activesupport', '>=1.3.1')
|
55
58
|
#s.required_ruby_version = '>= 1.8.2'
|
data/website/version-raw.js
CHANGED
data/website/version.js
CHANGED