jist 0.4 → 0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/jist +2 -1
- data/lib/jist.rb +1 -1
- metadata +3 -3
data/bin/jist
CHANGED
@@ -16,7 +16,7 @@ Jist (v#{Jist::VERSION}) let's you upload to https://gist.github.com/
|
|
16
16
|
Usage: #{executable_name} [-p] [-d DESC] [-t TOKEN] [-f FILENAME] [FILE]
|
17
17
|
#{executable_name} --login
|
18
18
|
|
19
|
-
When used with no arguments, jist creates an
|
19
|
+
When used with no arguments, jist creates an anonymous, private, gist, with
|
20
20
|
no description. The FILENAME defaults to "a.rb" and we read the contents of
|
21
21
|
STDIN.
|
22
22
|
|
@@ -73,6 +73,7 @@ end
|
|
73
73
|
opts.parse!
|
74
74
|
|
75
75
|
if ARGV.size == 0
|
76
|
+
$stderr.puts "(type a gist. <ctrl-c> to cancel, <ctrl-d> when done)" if $stdin.tty?
|
76
77
|
puts Jist.gist(ARGF.read, options)['html_url']
|
77
78
|
elsif ARGV.size == 1
|
78
79
|
puts Jist.gist(File.read(File.expand_path(ARGV[0])), {:filename => File.basename(ARGV[0])}.merge(options))['html_url']
|
data/lib/jist.rb
CHANGED
metadata
CHANGED