diff options
author | Eric Wong <normalperson@yhbt.net> | 2012-10-11 09:16:51 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2012-10-11 09:16:51 +0000 |
commit | 4bd0dbdf2d27672dc941746e06b647ea26fe63ee (patch) | |
tree | abfe69fbe7590528ae89378a56f3613abee7cb6e | |
parent | f0a31e43676f59762d5bf53707cd8cc21fed0727 (diff) | |
download | unicorn-4bd0dbdf2d27672dc941746e06b647ea26fe63ee.tar.gz |
Freecode.com now requires HTTPS.
-rw-r--r-- | Rakefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -49,7 +49,7 @@ task :fm_update do require 'net/netrc' require 'json' version = ENV['VERSION'] or abort "VERSION= needed" - uri = URI.parse('http://freecode.com/projects/unicorn/releases.json') + 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) @@ -71,7 +71,7 @@ task :fm_update do }.to_json if ! changelog.strip.empty? && version =~ %r{\A[\d\.]+\d+\z} - Net::HTTP.start(uri.host, uri.port) do |http| + Net::HTTP.start(uri.host, uri.port, :use_ssl => true) do |http| p http.post(uri.path, req, {'Content-Type'=>'application/json'}) end else |