Permalink
Browse files

Gist.send renamed to Gist.write. I don't like overriding very basic m…

…ethods.
  • Loading branch information...
1 parent bdac808 commit 535f0997f4a812f2a9fefded8f80e5847f53ae8c @e1senh0rn e1senh0rn committed with Sep 16, 2009
Showing with 3 additions and 3 deletions.
  1. +1 −1 Support/bin/create_gist_from_selection.rb
  2. +1 −1 Support/bin/send_multifile_gist.rb
  3. +1 −1 Support/lib/gist.rb
@@ -5,4 +5,4 @@
Gist.clear
Gist.process_selection
-Gist.send(ARGV[0] == "private")
+Gist.write(ARGV[0] == "private")
@@ -3,4 +3,4 @@
$:.unshift(File.dirname(__FILE__) + "/../lib")
require "gist"
-Gist.send(ARGV[0] == "private")
+Gist.write(ARGV[0] == "private")
View
@@ -22,7 +22,7 @@ def add_file(name, content)
save_files
end
- def send(private_gist)
+ def write(private_gist)
load_files
url = URI.parse('http://gist.github.com/gists')
req = Net::HTTP.post_form(url, data(private_gist))

0 comments on commit 535f099

Please sign in to comment.