From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-2.1 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, URIBL_BLOCKED shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: unicorn-public@bogomips.org Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 3A68E1F7C6; Mon, 22 Sep 2014 01:05:46 +0000 (UTC) From: Eric Wong To: unicorn-public@bogomips.org Cc: Eric Wong Subject: [PATCH 1/4] remove RubyForge and Freecode references Date: Mon, 22 Sep 2014 01:05:27 +0000 Message-Id: <1411347930-16660-2-git-send-email-e@80x24.org> X-Mailer: git-send-email 2.1.0.242.ga948883 In-Reply-To: <1411347930-16660-1-git-send-email-e@80x24.org> References: <1411347930-16660-1-git-send-email-e@80x24.org> List-Id: Both sites are gone. --- GNUmakefile | 7 ------- Rakefile | 44 -------------------------------------------- unicorn.gemspec | 1 - 3 files changed, 52 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 50819fc..6916b6e 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -245,15 +245,8 @@ $(pkgtgz): .manifest fix-perms package: $(pkgtgz) $(pkggem) release: verify package $(release_notes) $(release_changes) - # make tgz release on RubyForge - rubyforge add_release -f -n $(release_notes) -a $(release_changes) \ - $(rfproject) $(rfpackage) $(VERSION) $(pkgtgz) # push gem to Gemcutter gem push $(pkggem) - # in case of gem downloads from RubyForge releases page - -rubyforge add_file \ - $(rfproject) $(rfpackage) $(VERSION) $(pkggem) - $(RAKE) fm_update VERSION=$(VERSION) else gem install-gem: GIT-VERSION-FILE $(MAKE) $@ VERSION=$(GIT_VERSION) diff --git a/Rakefile b/Rakefile index 01ff5d0..37569ce 100644 --- a/Rakefile +++ b/Rakefile @@ -1,47 +1,3 @@ -# -*- encoding: binary -*- -autoload :Gem, 'rubygems' -require 'wrongdoc' - -cgit_url = Wrongdoc.config[:cgit_url] -git_url = Wrongdoc.config[:git_url] - -desc "post to FM" -task :fm_update do - require 'tempfile' - require 'net/http' - require 'net/netrc' - require 'json' - version = ENV['VERSION'] or abort "VERSION= needed" - uri = URI.parse('https://freecode.com/projects/unicorn/releases.json') - rc = Net::Netrc.locate('unicorn-fm') or abort "~/.netrc not found" - api_token = rc.password - _, subject, body = `git cat-file tag v#{version}`.split(/\n\n/, 3) - tmp = Tempfile.new('fm-changelog') - tmp.puts subject - tmp.puts - tmp.puts body - tmp.flush - system(ENV["VISUAL"], tmp.path) or abort "#{ENV["VISUAL"]} failed: #$?" - changelog = File.read(tmp.path).strip - - req = { - "auth_code" => api_token, - "release" => { - "tag_list" => "Experimental", - "version" => version, - "changelog" => changelog, - }, - }.to_json - - if ! changelog.strip.empty? && version =~ %r{\A[\d\.]+\d+\z} - Net::HTTP.start(uri.host, uri.port, :use_ssl => true) do |http| - p http.post(uri.path, req, {'Content-Type'=>'application/json'}) - end - else - warn "not updating freshmeat for v#{version}" - end -end - # optional rake-compiler support in case somebody needs to cross compile begin mk = "ext/unicorn_http/Makefile" diff --git a/unicorn.gemspec b/unicorn.gemspec index 9456db2..8623d44 100644 --- a/unicorn.gemspec +++ b/unicorn.gemspec @@ -26,7 +26,6 @@ Gem::Specification.new do |s| s.files = manifest s.homepage = Wrongdoc.config[:rdoc_url] s.rdoc_options = rdoc_options - s.rubyforge_project = %q{mongrel} s.test_files = test_files # for people that are absolutely stuck on Rails 2.3.2 and can't -- EW