newgem 0.22.2 → 0.23.0

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,4 +1,12 @@
1
- == 0.22.2 2008-04-07 [NOT RELEASED]
1
+ == 0.23.0 2008-04-17
2
+
3
+ * generated website/index.txt has customised rubyforge/github/gitorious information for git
4
+ * installing newgem now displays a post-install message (from PostInstall.txt)
5
+ * uses github_username value from .rubyforge/user-config.yml
6
+ * moved EXTRA_DEPENDENCIES to top of config/hoe.rb
7
+ * websites/*.txt are processed as ERB templates
8
+
9
+ == 0.22.2 2008-04-07
2
10
 
3
11
  * Cleaned up the REV cmd [Sascha Teske]
4
12
  * Replaced hardcoded rspec values done in a hurry at RubyFools with parameterised values [Alsak Hellesoy]
data/Manifest.txt CHANGED
@@ -1,18 +1,19 @@
1
1
  History.txt
2
2
  License.txt
3
3
  Manifest.txt
4
+ PostInstall.txt
4
5
  README.txt
5
6
  Rakefile
6
7
  Todo.txt
7
8
  app_generators/newgem/newgem_generator.rb
8
9
  app_generators/newgem/templates/History.txt
9
10
  app_generators/newgem/templates/License.txt
11
+ app_generators/newgem/templates/PostInstall.txt
10
12
  app_generators/newgem/templates/README.txt
11
13
  app_generators/newgem/templates/Rakefile
12
14
  app_generators/newgem/templates/app.rb
13
15
  app_generators/newgem/templates/config/hoe.rb
14
16
  app_generators/newgem/templates/config/requirements.rb
15
- app_generators/newgem/templates/empty_log
16
17
  app_generators/newgem/templates/module.rb
17
18
  app_generators/newgem/templates/readme
18
19
  app_generators/newgem/templates/script/console.erb
@@ -42,7 +43,6 @@ bundles/RubyGem.tmbundle/Syntaxes/Rdoc.tmLanguage
42
43
  bundles/RubyGem.tmbundle/info.plist
43
44
  config/hoe.rb
44
45
  config/svn_branch.rb
45
- install.rb
46
46
  lib/newgem.rb
47
47
  lib/newgem/quick_template.rb
48
48
  lib/newgem/rubyforge.rb
data/PostInstall.txt ADDED
@@ -0,0 +1,27 @@
1
+
2
+ USAGE: newgem project_name
3
+ HELP/OPTIONS: newgem -h
4
+
5
+
6
+ newgem uses config from your ~/.rubyforge/user-config.yml file
7
+ You can add the following key/values to this file:
8
+ full_name : Dr Nic Williams
9
+ email : drnicwilliams@gmail.com
10
+ github_username: drnic
11
+
12
+ To create the ~/.rubyforge/user-config.yml file run:
13
+ rubyforge setup
14
+ rubyforge config
15
+
16
+ Whenever you create a new RubyForge.org project, re-run:
17
+ rubyforge config
18
+
19
+
20
+ Did you know you have script/generate generators?
21
+ application_generator, component_generator, executable,
22
+ extconf, install_jruby, install_rspec, install_rspec_stories,
23
+ install_website, test_unit
24
+
25
+ Have fun making RubyGems!
26
+
27
+
@@ -48,7 +48,7 @@ class NewgemGenerator < RubiGen::Base
48
48
  m.directory "lib/#{gem_name}"
49
49
 
50
50
  # Root
51
- m.template_copy_each %w( History.txt License.txt Rakefile README.txt )
51
+ m.template_copy_each %w( History.txt License.txt Rakefile README.txt PostInstall.txt )
52
52
  m.file_copy_each %w( setup.rb )
53
53
 
54
54
  # Default module for app
@@ -58,10 +58,6 @@ class NewgemGenerator < RubiGen::Base
58
58
  # Config
59
59
  m.template_copy_each %w( hoe.rb requirements.rb ), "config"
60
60
 
61
- %w(debug).each { |file|
62
- m.file "empty_log", "log/#{file}.log", :chmod => 0666
63
- }
64
-
65
61
  # Tasks
66
62
  m.file_copy_each %w( deployment.rake environment.rake website.rake ), "tasks"
67
63
 
@@ -168,7 +164,6 @@ EOS
168
164
  config
169
165
  doc
170
166
  lib
171
- log
172
167
  script
173
168
  tasks
174
169
  test
@@ -0,0 +1,7 @@
1
+
2
+ For more information on <%= gem_name %>, see http://<%= gem_name %>.rubyforge.org
3
+
4
+ NOTE: Change this information in PostInstall.txt
5
+ You can also delete it if you don't want it.
6
+
7
+
@@ -7,6 +7,9 @@ GEM_NAME = '<%= gem_name %>' # what ppl will type to install your gem
7
7
  RUBYFORGE_PROJECT = '<%= gem_name %>' # The unix name for your project
8
8
  HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
9
9
  DOWNLOAD_PATH = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"
10
+ EXTRA_DEPENDENCIES = [
11
+ # ['activesupport', '>= 1.3.1']
12
+ ] # An array of rubygem dependencies [name, version]
10
13
 
11
14
  @config_file = "~/.rubyforge/user-config.yml"
12
15
  @config = nil
@@ -28,21 +31,21 @@ Run 'rubyforge setup' to prepare your env for access to Rubyforge
28
31
  end
29
32
 
30
33
 
31
- REV = nil
32
- # UNCOMMENT IF REQUIRED:
34
+ REV = nil
35
+ # UNCOMMENT IF REQUIRED:
33
36
  # REV = YAML.load(`svn info`)['Revision']
34
37
  VERS = <%= module_name %>::VERSION::STRING + (REV ? ".#{REV}" : "")
35
38
  RDOC_OPTS = ['--quiet', '--title', '<%= gem_name %> documentation',
36
39
  "--opname", "index.html",
37
- "--line-numbers",
40
+ "--line-numbers",
38
41
  "--main", "README",
39
42
  "--inline-source"]
40
43
 
41
44
  class Hoe
42
- def extra_deps
43
- @extra_deps.reject! { |x| Array(x).first == 'hoe' }
45
+ def extra_deps
46
+ @extra_deps.reject! { |x| Array(x).first == 'hoe' }
44
47
  @extra_deps
45
- end
48
+ end
46
49
  end
47
50
 
48
51
  # Generate all the Rake tasks
@@ -55,19 +58,21 @@ $hoe = Hoe.new(GEM_NAME, VERS) do |p|
55
58
  p.rubyforge_name = RUBYFORGE_PROJECT if RUBYFORGE_PROJECT
56
59
  p.test_globs = ["test/**/test_*.rb"]
57
60
  p.clean_globs |= ['**/.*.sw?', '*.gem', '.config', '**/.DS_Store'] #An array of file patterns to delete on clean.
58
-
61
+
59
62
  # == Optional
60
63
  p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
61
- #p.extra_deps = [] # An array of rubygem dependencies [name, version], e.g. [ ['active_support', '>= 1.3.1'] ]
62
- <% if is_jruby %>
64
+ #p.extra_deps = EXTRA_DEPENDENCIES
65
+
66
+ <% if is_jruby -%>
63
67
  # JRuby gem created, e.g. <%= gem_name %>-X.Y.Z-jruby.gem
64
68
  p.spec_extras = { :platform => 'jruby' } # A hash of extra values to set in the gemspec.
65
- <% else %>
69
+ <% else -%>
66
70
  #p.spec_extras = {} # A hash of extra values to set in the gemspec.
67
- <% end %>
71
+ <% end -%>
68
72
  end
69
73
 
70
74
  CHANGES = $hoe.paragraphs_of('History.txt', 0..1).join("\\n\\n")
71
75
  PATH = (RUBYFORGE_PROJECT == GEM_NAME) ? RUBYFORGE_PROJECT : "#{RUBYFORGE_PROJECT}/#{GEM_NAME}"
72
76
  $hoe.remote_rdoc_dir = File.join(PATH.gsub(/^#{RUBYFORGE_PROJECT}\/?/,''), 'rdoc')
73
- $hoe.rsync_args = '-av --delete --ignore-errors'
77
+ $hoe.rsync_args = '-av --delete --ignore-errors'
78
+ $hoe.spec.post_install_message = File.open(File.dirname(__FILE__) + "/../PostInstall.txt").read rescue ""
data/config/hoe.rb CHANGED
@@ -58,4 +58,5 @@ end
58
58
  CHANGES = hoe.paragraphs_of('History.txt', 0..1).join("\n\n")
59
59
  PATH = (RUBYFORGE_PROJECT == GEM_NAME) ? RUBYFORGE_PROJECT : "\#{RUBYFORGE_PROJECT}/\#{GEM_NAME}"
60
60
  hoe.remote_rdoc_dir = File.join(PATH.gsub(/^#{RUBYFORGE_PROJECT}\/?/,''), 'rdoc')
61
- hoe.rsync_args = '-av --delete --ignore-errors'
61
+ hoe.rsync_args = '-av --delete --ignore-errors'
62
+ hoe.spec.post_install_message = File.open(File.dirname(__FILE__) + "/../PostInstall.txt").read rescue ""
@@ -3,13 +3,15 @@ require 'rubyforge'
3
3
 
4
4
  module Newgem
5
5
  class Rubyforge
6
- attr_reader :full_name, :email
7
-
6
+ attr_reader :full_name, :email, :github_username
7
+
8
8
  def initialize
9
9
  @full_name = rubyforge.userconfig['full_name'] || ENV['NAME'] || 'FIXME full name'
10
10
  @email = rubyforge.userconfig['email'] || ENV['EMAIL'] || 'FIXME email'
11
+ @github_username =
12
+ rubyforge.userconfig['github_username'] || ENV['GITHUB_USERNAME'] || 'GITHUB_USERNAME'
11
13
  end
12
-
14
+
13
15
  def rubyforge
14
16
  @rubyforge ||= RubyForge.new(::RubyForge::CONFIG_F)
15
17
  end
@@ -1,8 +1,8 @@
1
1
  module Newgem #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
- MINOR = 22
5
- TINY = 2
4
+ MINOR = 23
5
+ TINY = 0
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -81,4 +81,13 @@ EOS
81
81
  @email = options[:email]
82
82
  @theme = options[:theme]
83
83
  end
84
+
85
+ def github_username
86
+ @github_username ||= begin
87
+ require 'newgem/rubyforge'
88
+ rubyforge_config = Newgem::Rubyforge.new
89
+ rubyforge_config.github_username
90
+ end
91
+ end
92
+
84
93
  end
@@ -1,8 +1,12 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ GEM_NAME = '<%= gem_name %>' # what ppl will type to install your gem
4
+ RUBYFORGE_PROJECT = '<%= gem_name %>'
5
+
3
6
  require 'rubygems'
4
7
  begin
5
8
  require 'newgem'
9
+ require 'rubyforge'
6
10
  rescue LoadError
7
11
  puts "\n\nGenerating the website requires the newgem RubyGem"
8
12
  puts "Install: gem install newgem\n\n"
@@ -11,10 +15,14 @@ end
11
15
  require 'redcloth'
12
16
  require 'syntax/convertors/html'
13
17
  require 'erb'
14
- require File.dirname(__FILE__) + '/../lib/<%= gem_name %>/version.rb'
18
+ require File.dirname(__FILE__) + "/../lib/#{GEM_NAME}/version.rb"
15
19
 
16
20
  version = <%= module_name %>::VERSION::STRING
17
- download = 'http://rubyforge.org/projects/<%= gem_name %>'
21
+ download = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"
22
+
23
+ def rubyforge_project_id
24
+ RubyForge.new.autoconfig["group_ids"][RUBYFORGE_PROJECT]
25
+ end
18
26
 
19
27
  class Fixnum
20
28
  def ordinal
@@ -43,7 +51,6 @@ end
43
51
  if ARGV.length >= 1
44
52
  src, template = ARGV
45
53
  template ||= File.join(File.dirname(__FILE__), '/../website/template.html.erb')
46
-
47
54
  else
48
55
  puts("Usage: #{File.split($0).last} source.txt [template.html.erb] > output.html")
49
56
  exit!
@@ -55,7 +62,8 @@ title = nil
55
62
  body = nil
56
63
  File.open(src) do |fsrc|
57
64
  title_text = fsrc.readline
58
- body_text = fsrc.read
65
+ body_text_template = fsrc.read
66
+ body_text = ERB.new(body_text_template).result(binding)
59
67
  syntax_items = []
60
68
  body_text.gsub!(%r!<(pre|code)[^>]*?syntax=['"]([^'"]+)[^>]*>(.*?)</\1>!m){
61
69
  ident = syntax_items.length
@@ -27,8 +27,52 @@ h2. How to submit patches
27
27
 
28
28
  Read the "8 steps for fixing other people's code":http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/ and for section "8b: Submit patch to Google Groups":http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/#8b-google-groups, use the Google Group above.
29
29
 
30
+ TODO - pick SVN or Git instructions
31
+
30
32
  The trunk repository is <code>svn://rubyforge.org/var/svn/<%= gem_name %>/trunk</code> for anonymous access.
31
33
 
34
+ OOOORRRR
35
+
36
+ You can fetch the source from either:
37
+
38
+ <%% if rubyforge_project_id %>
39
+
40
+ * rubyforge: "http://rubyforge.org/scm/?group_id=<%%= rubyforge_project_id %>":http://rubyforge.org/scm/?group_id=<%%= rubyforge_project_id %>
41
+
42
+ <pre>git clone git://rubyforge.org/<%= gem_name %>.git</pre>
43
+
44
+ <%% else %>
45
+
46
+ * rubyforge: MISSING IN ACTION
47
+
48
+ TODO - You can not created a RubyForge project, OR have not run <code>rubyforge config</code>
49
+ yet to refresh your local rubyforge data with this projects' id information.
50
+
51
+ When you do this, this message will magically disappear!
52
+
53
+ Or you can hack website/index.txt and make it all go away!!
54
+
55
+ <%% end %>
56
+
57
+ * github: "http://github.com/<%= github_username %>/<%= gem_name %>/tree/master":http://github.com/<%= github_username %>/<%= gem_name %>/tree/master
58
+
59
+ <pre>git clone git://github.com/<%= github_username %>/<%= gem_name %>.git</pre>
60
+
61
+ <% if github_username == 'GITHUB_USERNAME' %>
62
+ TODO - add "github_username: username" to ~/.rubyforge/user-config.yml and newgem will reuse it for future projects.
63
+ <% end %>
64
+
65
+ * gitorious: "git://gitorious.org/<%= gem_name %>/mainline.git":git://gitorious.org/<%= gem_name %>/mainline.git
66
+
67
+ <pre>git clone git://gitorious.org/<%= gem_name %>/mainline.git</pre>
68
+
69
+ h3. Build and test instructions
70
+
71
+ <pre>cd <%= gem_name %>
72
+ rake test
73
+ rake install_gem</pre>
74
+
75
+
32
76
  h2. License
33
77
 
34
78
  This code is free to use under the terms of the MIT license.
@@ -2,17 +2,17 @@ require File.join(File.dirname(__FILE__), "test_generator_helper.rb")
2
2
 
3
3
  class TestNewgemGenerator < Test::Unit::TestCase
4
4
  include RubiGen::GeneratorTestHelper
5
-
5
+
6
6
  attr_reader :gem_name
7
7
  def setup
8
8
  bare_setup
9
9
  @gem_name = File.basename(File.expand_path(APP_ROOT))
10
10
  end
11
-
11
+
12
12
  def teardown
13
13
  bare_teardown
14
14
  end
15
-
15
+
16
16
  def test_newgem
17
17
  run_generator('newgem', [APP_ROOT], sources)
18
18
 
@@ -21,69 +21,69 @@ class TestNewgemGenerator < Test::Unit::TestCase
21
21
  assert_directory_exists "log"
22
22
  assert_directory_exists "tasks"
23
23
  assert_directory_exists "test"
24
-
25
- %w[Rakefile README.txt History.txt License.txt Manifest.txt].each do |file|
24
+
25
+ %w[Rakefile README.txt History.txt License.txt Manifest.txt PostInstall.txt].each do |file|
26
26
  assert_generated_file(file)
27
27
  end
28
-
28
+
29
29
  %w[hoe.rb requirements.rb].each do |file|
30
30
  assert_generated_file("config/#{file}")
31
31
  end
32
-
32
+
33
33
  assert_generated_file("lib/#{gem_name}.rb")
34
34
  assert_generated_file("lib/#{gem_name}/version.rb")
35
-
35
+
36
36
  ["test_helper.rb", "test_#{gem_name}.rb"].each do |file|
37
37
  assert_generated_file("test/#{file}")
38
38
  end
39
-
39
+
40
40
  %w[generate destroy console].each do |file|
41
41
  assert_generated_file("script/#{file}")
42
42
  end
43
-
43
+
44
44
  assert_generated_module("lib/#{gem_name}")
45
-
45
+
46
46
  %w[deployment environment website].each do |file|
47
47
  assert_generated_file("tasks/#{file}.rake")
48
48
  end
49
-
49
+
50
50
  assert_manifest_complete
51
51
  end
52
52
 
53
53
  def test_newgem_with_website_by_default
54
54
  run_generator('newgem', [APP_ROOT], sources)
55
-
55
+
56
56
  %w[txt2html].each do |file|
57
57
  assert_generated_file("script/#{file}")
58
58
  end
59
-
59
+
60
60
  %w[index.txt index.html template.html.erb stylesheets/screen.css javascripts/rounded_corners_lite.inc.js].each do |file|
61
61
  assert_generated_file("website/#{file}")
62
62
  end
63
-
63
+
64
64
  assert_manifest_complete
65
65
  end
66
66
 
67
67
  def test_newgem_with_no_website
68
68
  run_generator('newgem', [APP_ROOT], sources, {:disable_website => true})
69
-
69
+
70
70
  assert !File.exists?("#{APP_ROOT}/script/txt2html"), "No script/txt2html should be generated"
71
71
  assert !File.exists?("#{APP_ROOT}/website"), "No website folder should be generated"
72
-
72
+
73
73
  assert_manifest_complete
74
74
  end
75
75
 
76
76
  def test_newgem_with_executable
77
77
  @executables = ["some_executable", "another"]
78
78
  run_generator('newgem', [APP_ROOT], sources, {:bin_name => @executables.join(',')})
79
-
79
+
80
80
  @executables.each do |exec|
81
- assert_generated_file("bin/#{exec}")
81
+ assert_generated_file("bin/#{exec}")
82
82
  end
83
-
83
+
84
84
  assert_manifest_complete
85
85
  end
86
-
86
+
87
87
  def test_newgem_with_rspec
88
88
  run_generator('newgem', [APP_ROOT], sources, {:test_framework => "rspec"})
89
89
 
@@ -92,19 +92,19 @@ class TestNewgemGenerator < Test::Unit::TestCase
92
92
  assert_generated_file("spec/#{gem_name}_spec.rb")
93
93
  assert_generated_file("spec/spec_helper.rb")
94
94
  assert_generated_file("tasks/rspec.rake")
95
-
95
+
96
96
  assert_manifest_complete
97
97
  end
98
-
98
+
99
99
  def test_newgem_with_jruby
100
100
  run_generator('newgem', [APP_ROOT], sources, {:jruby => true})
101
101
 
102
102
  assert_directory_exists("tasks")
103
103
  assert_generated_file("tasks/jruby.rake")
104
-
104
+
105
105
  assert_manifest_complete
106
106
  end
107
-
107
+
108
108
  def test_run_in_trunk_path_finds_parent_path_for_gem_name
109
109
  expected_gem_name = File.basename(File.expand_path(APP_ROOT))
110
110
  app_root = File.join(APP_ROOT, "trunk")
@@ -113,7 +113,7 @@ class TestNewgemGenerator < Test::Unit::TestCase
113
113
  generator = run_generator('newgem', [app_root], sources)
114
114
  assert_equal(expected_gem_name, generator.gem_name)
115
115
  end
116
-
116
+
117
117
  private
118
118
  def sources
119
119
  [ RubiGen::PathSource.new(:test, File.join(File.dirname(__FILE__),"..", generator_path)),
@@ -122,11 +122,11 @@ class TestNewgemGenerator < Test::Unit::TestCase
122
122
  RubiGen::PathSource.new(:test, File.join(File.dirname(__FILE__), "..", "rubygems_generators"))
123
123
  ]
124
124
  end
125
-
125
+
126
126
  def generator_path
127
127
  "app_generators"
128
128
  end
129
-
129
+
130
130
  def assert_manifest_complete
131
131
  files = app_root_files.sort
132
132
  files.reject! { |file| File.directory?(file) }
data/website/index.html CHANGED
@@ -33,7 +33,7 @@
33
33
  <h1>New Gem Generator</h1>
34
34
  <div id="version"> <!-- class="clickable" onclick='document.location = ""; return true' -->
35
35
  <p>Get Version</p>
36
- <a href="" class="numbers">0.22.2</a>
36
+ <a href="" class="numbers">0.23.0</a>
37
37
  <p>Featured in</p>
38
38
  <a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&location=http%3A%2F%2Fwww.amazon.com%2FBeginning-Ruby-Novice-Professional-Experts%2Fdp%2F1590597664%2F&tag=drnic-20&linkCode=ur2&camp=1789&creative=9325" class="book"><img src="images/beginning-ruby.jpg" /></a>
39
39
  </div>
@@ -33,7 +33,7 @@
33
33
  <h1>New Gem Generator</h1>
34
34
  <div id="version"> <!-- class="clickable" onclick='document.location = ""; return true' -->
35
35
  <p>Get Version</p>
36
- <a href="" class="numbers">0.22.2</a>
36
+ <a href="" class="numbers">0.23.0</a>
37
37
  <p>Featured in</p>
38
38
  <a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&location=http%3A%2F%2Fwww.amazon.com%2FBeginning-Ruby-Novice-Professional-Experts%2Fdp%2F1590597664%2F&tag=drnic-20&linkCode=ur2&camp=1789&creative=9325" class="book"><img src="images/beginning-ruby.jpg" /></a>
39
39
  </div>
@@ -1,3 +1,3 @@
1
1
  // Announcement JS file
2
- var version = "0.22.2";
2
+ var version = "0.23.0";
3
3
  MagicAnnouncement.show('compositekeys', version);
data/website/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  // Version JS file
2
- var version = "0.22.2";
2
+ var version = "0.23.0";
3
3
 
4
4
  document.write(" - " + version);
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: newgem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.2
4
+ version: 0.23.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dr Nic Williams
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-04-09 00:00:00 +10:00
12
+ date: 2008-04-17 00:00:00 +10:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -68,10 +68,12 @@ extra_rdoc_files:
68
68
  - History.txt
69
69
  - License.txt
70
70
  - Manifest.txt
71
+ - PostInstall.txt
71
72
  - README.txt
72
73
  - Todo.txt
73
74
  - app_generators/newgem/templates/History.txt
74
75
  - app_generators/newgem/templates/License.txt
76
+ - app_generators/newgem/templates/PostInstall.txt
75
77
  - app_generators/newgem/templates/README.txt
76
78
  - newgem_generators/install_website/templates/website/index.txt
77
79
  - newgem_theme_generators/long_box_theme/templates/website/index.txt
@@ -84,18 +86,19 @@ files:
84
86
  - History.txt
85
87
  - License.txt
86
88
  - Manifest.txt
89
+ - PostInstall.txt
87
90
  - README.txt
88
91
  - Rakefile
89
92
  - Todo.txt
90
93
  - app_generators/newgem/newgem_generator.rb
91
94
  - app_generators/newgem/templates/History.txt
92
95
  - app_generators/newgem/templates/License.txt
96
+ - app_generators/newgem/templates/PostInstall.txt
93
97
  - app_generators/newgem/templates/README.txt
94
98
  - app_generators/newgem/templates/Rakefile
95
99
  - app_generators/newgem/templates/app.rb
96
100
  - app_generators/newgem/templates/config/hoe.rb
97
101
  - app_generators/newgem/templates/config/requirements.rb
98
- - app_generators/newgem/templates/empty_log
99
102
  - app_generators/newgem/templates/module.rb
100
103
  - app_generators/newgem/templates/readme
101
104
  - app_generators/newgem/templates/script/console.erb
@@ -125,7 +128,6 @@ files:
125
128
  - bundles/RubyGem.tmbundle/info.plist
126
129
  - config/hoe.rb
127
130
  - config/svn_branch.rb
128
- - install.rb
129
131
  - lib/newgem.rb
130
132
  - lib/newgem/quick_template.rb
131
133
  - lib/newgem/rubyforge.rb
@@ -212,7 +214,34 @@ files:
212
214
  - website/version.txt
213
215
  has_rdoc: true
214
216
  homepage: http://newgem.rubyforge.org
215
- post_install_message:
217
+ post_install_message: |+
218
+
219
+ USAGE: newgem project_name
220
+ HELP/OPTIONS: newgem -h
221
+
222
+
223
+ newgem uses config from your ~/.rubyforge/user-config.yml file
224
+ You can add the following key/values to this file:
225
+ full_name : Dr Nic Williams
226
+ email : drnicwilliams@gmail.com
227
+ github_username: drnic
228
+
229
+ To create the ~/.rubyforge/user-config.yml file run:
230
+ rubyforge setup
231
+ rubyforge config
232
+
233
+ Whenever you create a new RubyForge.org project, re-run:
234
+ rubyforge config
235
+
236
+
237
+ Did you know you have script/generate generators?
238
+ application_generator, component_generator, executable,
239
+ extconf, install_jruby, install_rspec, install_rspec_stories,
240
+ install_website, test_unit
241
+
242
+ Have fun making RubyGems!
243
+
244
+
216
245
  rdoc_options:
217
246
  - --main
218
247
  - README.txt
@@ -233,7 +262,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
233
262
  requirements: []
234
263
 
235
264
  rubyforge_project: newgem
236
- rubygems_version: 1.1.0
265
+ rubygems_version: 1.1.1
237
266
  signing_key:
238
267
  specification_version: 2
239
268
  summary: Make your own gems at home
File without changes
data/install.rb DELETED
File without changes