cmogstored dev/user discussion/issues/patches/etc
 help / color / mirror / code / Atom feed
* [PATCH] Rakefile: remove freecode/freshmeat references
@ 2014-09-04 23:48 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2014-09-04 23:48 UTC (permalink / raw)
  To: cmogstored-public; +Cc: Eric Wong

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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-09-04 23:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-04 23:48 [PATCH] Rakefile: remove freecode/freshmeat references Eric Wong

Code repositories for project(s) associated with this public inbox

	https://yhbt.net/cmogstored.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).