Skip to content

Commit

Permalink
updated rakefile, moved html/ to website/ and updated website
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.addictedtonew.com/public/gems/twitter@66 fe7eae16-9a24-0410-a59d-9e59979e88be
  • Loading branch information
jnunemaker committed May 10, 2007
1 parent 7d6a247 commit c15b54b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
23 changes: 19 additions & 4 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,26 @@ hoe = Hoe.new(GEM_NAME, VERS) do |p|
#p.spec_extras - A hash of extra values to set in the gemspec.
end

desc 'Publish HTML to RubyForge'
task :publish_html do
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/twitter/"
local_dir = 'html'
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}}
end

desc 'Release the website and new gem version'
task :deploy => [:check_version, :website, :release]

task :check_version do
unless ENV['VERSION']
puts 'Must pass a VERSION=x.y.z release version'
exit
end
unless ENV['VERSION'] == VERS
puts "Please update your version.rb to match the release version, currently #{VERS}"
exit
end
end
File renamed without changes.
3 changes: 0 additions & 3 deletions html/index.html → website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,6 @@ <h2>Uses</h2>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
<script type="text/javascript">_uacct = "UA-85301-9"; urchinTracker();</script>

<script type="text/javascript" src="http://include.reinvigorate.net/re_.js"></script>
<script type="text/javascript">re_("ii7me-f4tigormzq");</script>

<!-- 103bees.com 'bee' code v1.11 - please do not make any changes! -->
<script type="text/javascript" src="http://103bees.com/bees/?bee=3672&amp;fid=5643"></script>
<!-- 103bees.com 'bee' code -->
Expand Down

0 comments on commit c15b54b

Please sign in to comment.