diff options
-rwxr-xr-x | GIT-VERSION-GEN | 2 | ||||
-rw-r--r-- | GNUmakefile | 2 | ||||
-rw-r--r-- | Rakefile | 11 | ||||
-rw-r--r-- | lib/unicorn/const.rb | 5 |
4 files changed, 12 insertions, 8 deletions
diff --git a/GIT-VERSION-GEN b/GIT-VERSION-GEN index 88b943a..715a37b 100755 --- a/GIT-VERSION-GEN +++ b/GIT-VERSION-GEN @@ -1,7 +1,7 @@ #!/bin/sh GVF=GIT-VERSION-FILE -DEF_VER=v1.0.0.GIT +DEF_VER=v2.0.0pre1.GIT LF=' ' diff --git a/GNUmakefile b/GNUmakefile index 3741db5..2a12667 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -178,7 +178,7 @@ NEWS: GIT-VERSION-FILE .manifest $(RAKE) -s news_rdoc > $@+ mv $@+ $@ -SINCE = 0.991.0 +SINCE = 1.1.4 ChangeLog: LOG_VERSION = \ $(shell git rev-parse -q "$(GIT_VERSION)" >/dev/null 2>&1 && \ echo $(GIT_VERSION) || git describe) @@ -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 diff --git a/lib/unicorn/const.rb b/lib/unicorn/const.rb index 9cb4dcd..ec5444d 100644 --- a/lib/unicorn/const.rb +++ b/lib/unicorn/const.rb @@ -7,9 +7,8 @@ # improve things much compared to constants. module Unicorn::Const - # The current version of Unicorn, currently 2.0.0pre - # this constant is deprecated and will soon move to Unicorn::VERSION - UNICORN_VERSION="2.0.0pre" + # The current version of Unicorn, currently 2.0.0pre1 + UNICORN_VERSION = "2.0.0pre1" # default TCP listen host address (0.0.0.0, all interfaces) DEFAULT_HOST = "0.0.0.0" |