newgem 0.13.4 → 0.13.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.13.5 2007-09-07
2
+
3
+ * rake tasks use rubyforge_username instead of RUBYFORGE_USERNAME constant
4
+
1
5
  == 0.13.4 2007-09-07
2
6
 
3
7
  * Running "newgem ." in a trunk, branches, or tags folder will look in parent folder for gem_name
@@ -17,7 +17,7 @@ def rubyforge_username
17
17
  @config = YAML.load(File.read(File.expand_path(@config_file)))
18
18
  rescue
19
19
  puts <<-EOS
20
- ERROR: No rubyforge config file found: #{@config_file}"
20
+ ERROR: No rubyforge config file found: #{@config_file}
21
21
  Run 'rubyforge setup' to prepare your env for access to Rubyforge
22
22
  - See http://newgem.rubyforge.org/rubyforge.html for more details
23
23
  EOS
@@ -1,8 +1,8 @@
1
1
  desc 'Release the website and new gem version'
2
2
  task :deploy => [:check_version, :website, :release] do
3
3
  puts "Remember to create SVN tag:"
4
- puts "svn copy svn+ssh://#{RUBYFORGE_USERNAME}@rubyforge.org/var/svn/#{PATH}/trunk " +
5
- "svn+ssh://#{RUBYFORGE_USERNAME}@rubyforge.org/var/svn/#{PATH}/tags/REL-#{VERS} "
4
+ puts "svn copy svn+ssh://#{rubyforge_username}@rubyforge.org/var/svn/#{PATH}/trunk " +
5
+ "svn+ssh://#{rubyforge_username}@rubyforge.org/var/svn/#{PATH}/tags/REL-#{VERS} "
6
6
  puts "Suggested comment:"
7
7
  puts "Tagging release #{CHANGES}"
8
8
  end
data/config/hoe.rb CHANGED
@@ -8,10 +8,24 @@ GEM_NAME = "newgem" # what ppl will type to install your gem
8
8
  RUBYFORGE_PROJECT = "newgem"
9
9
  HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
10
10
  DOWNLOAD_PATH = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"
11
+
12
+ @config_file = "~/.rubyforge/user-config.yml"
13
+ @config = nil
11
14
  RUBYFORGE_USERNAME = "unknown"
12
- if File.exists?(rubyforge_config_file = File.expand_path("~/.rubyforge/user-config.yml"))
13
- config = YAML.load(File.read(rubyforge_config_file))
14
- RUBYFORGE_USERNAME.replace config["username"]
15
+ def rubyforge_username
16
+ unless @config
17
+ begin
18
+ @config = YAML.load(File.read(File.expand_path(@config_file)))
19
+ rescue
20
+ puts <<-EOS
21
+ ERROR: No rubyforge config file found: #{@config_file}
22
+ Run 'rubyforge setup' to prepare your env for access to Rubyforge
23
+ - See http://newgem.rubyforge.org/rubyforge.html for more details
24
+ EOS
25
+ exit
26
+ end
27
+ end
28
+ RUBYFORGE_USERNAME.replace @config["username"]
15
29
  end
16
30
 
17
31
  REV = nil #File.read(".svn/entries")[/committed-rev="(\d+)"/, 1] rescue nil
@@ -2,7 +2,7 @@ module Newgem #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 13
5
- TINY = 4
5
+ TINY = 5
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -7,7 +7,7 @@ end
7
7
 
8
8
  desc 'Upload website files to rubyforge'
9
9
  task :website_upload do
10
- host = "#{RUBYFORGE_USERNAME}@rubyforge.org"
10
+ host = "#{rubyforge_username}@rubyforge.org"
11
11
  remote_dir = "/var/www/gforge-projects/#{RUBYFORGE_PROJECT}/"
12
12
  local_dir = 'website'
13
13
  sh %{rsync -aCv #{local_dir}/ #{host}:#{remote_dir}}
@@ -1,8 +1,8 @@
1
1
  desc 'Release the website and new gem version'
2
2
  task :deploy => [:check_version, :generator_report, :website, :release] do
3
3
  puts "Remember to create SVN tag:"
4
- puts "svn copy svn+ssh://#{RUBYFORGE_USERNAME}@rubyforge.org/var/svn/#{PATH}/trunk " +
5
- "svn+ssh://#{RUBYFORGE_USERNAME}@rubyforge.org/var/svn/#{PATH}/tags/REL-#{VERS} "
4
+ puts "svn copy svn+ssh://#{rubyforge_username}@rubyforge.org/var/svn/#{PATH}/trunk " +
5
+ "svn+ssh://#{rubyforge_username}@rubyforge.org/var/svn/#{PATH}/tags/REL-#{VERS} "
6
6
  puts "Suggested comment:"
7
7
  puts "Tagging release #{CHANGES}"
8
8
  end
data/tasks/website.rake CHANGED
@@ -9,7 +9,7 @@ end
9
9
 
10
10
  desc 'Upload website files to rubyforge'
11
11
  task :website_upload do
12
- host = "#{RUBYFORGE_USERNAME}@rubyforge.org"
12
+ host = "#{rubyforge_username}@rubyforge.org"
13
13
  remote_dir = "/var/www/gforge-projects/#{RUBYFORGE_PROJECT}/"
14
14
  local_dir = 'website'
15
15
  sh %{rsync -aCv #{local_dir}/ #{host}:#{remote_dir}}
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.13.4</a>
36
+ <a href="" class="numbers">0.13.5</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.13.4</a>
36
+ <a href="" class="numbers">0.13.5</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.13.4";
2
+ var version = "0.13.5";
3
3
  MagicAnnouncement.show('compositekeys', version);
data/website/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  // Version JS file
2
- var version = "0.13.4";
2
+ var version = "0.13.5";
3
3
 
4
4
  document.write(" - " + version);
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.4.3
3
3
  specification_version: 1
4
4
  name: newgem
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.13.4
6
+ version: 0.13.5
7
7
  date: 2007-09-07 00:00:00 +02:00
8
8
  summary: Make your own gems at home
9
9
  require_paths: