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.0 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, URIBL_BLOCKED shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: cmogstored-public@bogomips.org Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 5E9A31FD5A; Thu, 4 Sep 2014 23:48:52 +0000 (UTC) From: Eric Wong To: cmogstored-public@bogomips.org Cc: Eric Wong Subject: [PATCH] Rakefile: remove freecode/freshmeat references Date: Thu, 4 Sep 2014 23:48:49 +0000 Message-Id: <1409874529-1488-1-git-send-email-e@80x24.org> X-Mailer: git-send-email 2.1.0 List-Id: The site is dead. --- Rakefile | 38 -------------------------------------- 1 file changed, 38 deletions(-) diff --git a/Rakefile b/Rakefile index 9e70ca4..ad08bda 100644 --- a/Rakefile +++ b/Rakefile @@ -104,41 +104,3 @@ task :distcheck_git do exit(1) end end - -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/cmogstored/releases.json') - rc = Net::Netrc.locate('cmogstored-fm') or - abort "~/.netrc or entry 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" => "stable", - "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 -- EW