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 +4 -0
- data/app_generators/newgem/templates/config/hoe.rb +1 -1
- data/app_generators/newgem/templates/tasks/deployment.rake +2 -2
- data/config/hoe.rb +17 -3
- data/lib/newgem/version.rb +1 -1
- data/newgem_generators/install_website/templates/tasks/website.rake +1 -1
- data/tasks/deployment.rake +2 -2
- data/tasks/website.rake +1 -1
- data/website/index.html +1 -1
- data/website/rubyforge.html +1 -1
- data/website/version-raw.js +1 -1
- data/website/version.js +1 -1
- metadata +1 -1
data/History.txt
CHANGED
|
@@ -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://#{
|
|
5
|
-
"svn+ssh://#{
|
|
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
|
-
|
|
13
|
-
config
|
|
14
|
-
|
|
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
|
data/lib/newgem/version.rb
CHANGED
|
@@ -7,7 +7,7 @@ end
|
|
|
7
7
|
|
|
8
8
|
desc 'Upload website files to rubyforge'
|
|
9
9
|
task :website_upload do
|
|
10
|
-
host = "#{
|
|
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}}
|
data/tasks/deployment.rake
CHANGED
|
@@ -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://#{
|
|
5
|
-
"svn+ssh://#{
|
|
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 = "#{
|
|
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.
|
|
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>
|
data/website/rubyforge.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.
|
|
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>
|
data/website/version-raw.js
CHANGED
data/website/version.js
CHANGED