diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-10-06 01:08:36 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-10-06 01:17:01 +0000 |
commit | cb48b1bc7231db7f53bec6e88e696dc53153750d (patch) | |
tree | 093f08d9a591d4f1b2da130521b64d9f8fa56d53 /Rakefile | |
parent | 4c59a4861bf3f8d25335696c1f8cbce3cd5db902 (diff) | |
download | unicorn-cb48b1bc7231db7f53bec6e88e696dc53153750d.tar.gz |
Mostly internal cleanups for future versions of Rainbows! and people trying out Rubinius. There are tiny performance improvements for Ruby 1.9.2 users which may only be noticeable with Rainbows! Unicorn 1.1.x users are NOT required to upgrade.
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -163,13 +163,18 @@ task :fm_update do req = { "auth_code" => api_token, "release" => { - "tag_list" => "Stable", + "tag_list" => "Experimental", "version" => version, "changelog" => changelog, }, }.to_json - Net::HTTP.start(uri.host, uri.port) do |http| - p http.post(uri.path, req, {'Content-Type'=>'application/json'}) + + if ! changelog.strip.empty? && version =~ %r{\A[\d\.]+\d+\z} + Net::HTTP.start(uri.host, uri.port) do |http| + p http.post(uri.path, req, {'Content-Type'=>'application/json'}) + end + else + warn "not updating freshmeat for v#{version}" end end |