Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Tweaked deployment of website and docs.

  • Loading branch information...
commit 42f49f49e0ebe0f99760cca2e484cb21557573a7 1 parent 8d28319
@jnunemaker authored
Showing with 11 additions and 8 deletions.
  1. +0 −1  Manifest
  2. +10 −6 Rakefile
  3. +1 −1  website/index.html
View
1  Manifest
@@ -21,7 +21,6 @@ Manifest
MIT-LICENSE
Rakefile
README.txt
-scrobbler.gemspec
setup.rb
test/fixtures/xml/album/info.xml
test/fixtures/xml/artist/fans.xml
View
16 Rakefile
@@ -3,6 +3,8 @@ require 'rubygems'
require 'rake'
require 'echoe'
+WEBSITE_PATH = 'jnunemaker@rubyforge.org:/var/www/gforge-projects/scrobbler'
+
Echoe.new('scrobbler', '0.2.0') do |p|
p.description = "wrapper for audioscrobbler (last.fm) web services"
p.url = "http://scrobbler.rubyforge.org"
@@ -10,16 +12,18 @@ Echoe.new('scrobbler', '0.2.0') do |p|
p.email = "nunemaker@gmail.com"
p.extra_deps = [['hpricot', '>=0.4.86'], ['activesupport', '>=1.4.2']]
p.need_tar_gz = false
+ p.docs_host = WEBSITE_PATH
end
desc 'Upload website files to rubyforge'
task :website do
- config = YAML.load(File.read(File.expand_path("~/.rubyforge/user-config.yml")))
- host = "#{config["username"]}@rubyforge.org"
- remote_dir = "/var/www/gforge-projects/#{RUBYFORGE_PROJECT}/"
- # remote_dir = "/var/www/gforge-projects/#{RUBYFORGE_PROJECT}/#{GEM_NAME}"
- local_dir = 'website'
- sh %{rsync -av #{local_dir}/ #{host}:#{remote_dir}}
+ sh %{rsync -av website/ #{WEBSITE_PATH}}
+ Rake::Task['website_docs'].invoke
+end
+
+task :website_docs do
+ Rake::Task['redocs'].invoke
+ sh %{rsync -av doc/ #{WEBSITE_PATH}/docs}
end
desc 'Preps the gem for a new release'
View
2  website/index.html
@@ -13,7 +13,7 @@
<p>Get your music on.</p>
<ul id="nav">
- <li><a href="scrobbler/">Docs</a></li>
+ <li><a href="docs/">Docs</a></li>
<li><a href="http://rubyforge.org/projects/scrobbler/">Rubyforge Page</a></li>
</ul>
</div>
Please sign in to comment.
Something went wrong with that request. Please try again.