Skip to content

Commit

Permalink
Release process tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinrutherford committed Apr 5, 2009
1 parent edad0d0 commit 8265b42
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 33 deletions.
45 changes: 13 additions & 32 deletions tasks/deployment.rake
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ end
GEMSPEC = "#{PROJECT_NAME}.$gemspec"
HISTORY_FILE = 'History.txt'

NEWS_FILE = "#{BUILD_DIR}/news.txt"
RELEASE_TIMESTAMP = "#{BUILD_DIR}/.last-release"
MANIFEST_CHECKED = "#{BUILD_DIR}/.manifest-checked"

Expand Down Expand Up @@ -84,45 +83,22 @@ EOR

def news
news = <<-EOM
#{title}
#{title}
#{description}
#{description}
## Changes in this release:
## Changes in this release:
#{changes.rdoc_to_markdown}
#{changes.rdoc_to_markdown}
## More information:
## More information:
#{urls}
EOM
return news
end

def email
result = <<EOM
"Subject: [ANN] #{subject}"
"#{title}"
"#{urls}"
"#{body}"
"#{urls}"
#{urls}
EOM
result
return news
end
end

file NEWS_FILE => [HISTORY_FILE] do
NEWS_FILE.touch(Description.new.news)
end
#
#file VERSION_FILE => [RELEASE_TIMESTAMP] do
# abort "Version #{::Reek::VERSION} has already been released!"
#end

class ::Rake::SshDirPublisher
attr_reader :host, :remote_dir, :local_dir
end
Expand All @@ -145,7 +121,7 @@ namespace :release do
end

desc 'Major release (github+rubyforge) with news'
task :major => ['release:minor', NEWS_FILE, 'rubyforge:news'] do
task :major => ['release:minor', 'rubyforge:gem', 'rubyforge:news'] do

end
end
Expand Down Expand Up @@ -181,6 +157,11 @@ namespace :test do
task :gemspec do
puts $gemspec.to_ruby
end

desc 'Show the announcement email to be sent'
task :email do
puts Description.new.news
end
end

def query(msg)
Expand Down
2 changes: 1 addition & 1 deletion tasks/rubyforge.rake
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ namespace :rubyforge do
proj = Description.new
rf = RubyForge.new.configure
rf.login
puts "rf.post_news(#{PROJECT_NAME}, #{proj.subject}, #{proj.news})"
rf.post_news(PROJECT_NAME, proj.subject, proj.news)
end
end

0 comments on commit 8265b42

Please sign in to comment.