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 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"
@@ -2,7 +2,7 @@ module Newgem #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 5
5
- TINY = 1
5
+ TINY = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
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 = "you"
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'
@@ -1,3 +1,3 @@
1
1
  // Announcement JS file
2
- var version = "0.5.0";
2
+ var version = "0.5.2";
3
3
  MagicAnnouncement.show('newgem', version);
data/website/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  // Version JS file
2
- var version = "0.5.0";
2
+ var version = "0.5.2";
3
3
 
4
4
  document.write(" - " + version);
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: newgem
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.5.1
6
+ version: 0.5.2
7
7
  date: 2006-10-18 00:00:00 +02:00
8
8
  summary: Make your own gems at home
9
9
  require_paths: