Skip to content

Commit

Permalink
update install instructions with gem
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Feb 28, 2010
1 parent 78b481f commit 06a345c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
6 changes: 6 additions & 0 deletions README.markdown
Expand Up @@ -6,6 +6,12 @@ Works great with Gist: The Website.
Installation
------------

RubyGem:

gem install gist

Old school:

curl -s http://github.com/defunkt/gist/raw/master/gist.rb > gist &&
chmod 755 gist &&
mv gist /usr/local/bin/gist
Expand Down
10 changes: 7 additions & 3 deletions gist.rb
Expand Up @@ -7,9 +7,12 @@
# gist script.py
#
# = INSTALL
# curl -s http://github.com/defunkt/gist/raw/master/gist.rb > gist &&
# chmod 755 gist &&
# mv gist /usr/local/bin/gist
# RubyGem:
# gem install gist
# Old school:
# curl -s http://github.com/defunkt/gist/raw/master/gist.rb > gist &&
# chmod 755 gist &&
# mv gist /usr/local/bin/gist

require 'open-uri'
require 'net/http'
Expand All @@ -22,6 +25,7 @@ module Gist

GIST_URL = 'http://gist.github.com/%s.txt'
CREATE_URL = 'http://gist.github.com/gists'

PROXY = ENV['HTTP_PROXY'] ? URI(ENV['HTTP_PROXY']) : nil
PROXY_HOST = PROXY ? PROXY.host : nil
PROXY_PORT = PROXY ? PROXY.port : nil
Expand Down

0 comments on commit 06a345c

Please sign in to comment.