jist 0.4 → 0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/jist +2 -1
  2. data/lib/jist.rb +1 -1
  3. 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 Anonymous, private, gist, with
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']
@@ -5,7 +5,7 @@ require 'json'
5
5
  # It just gists.
6
6
  module Jist
7
7
 
8
- VERSION = '0.4'
8
+ VERSION = '0.5'
9
9
 
10
10
  module_function
11
11
  # Upload a gist to https://gist.github.com
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jist
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 4
9
- version: "0.4"
8
+ - 5
9
+ version: "0.5"
10
10
  platform: ruby
11
11
  authors:
12
12
  - Conrad Irwin