Skip to content

Commit dc34dbc

Browse files
committed
v1.1.1
1 parent 034c7cb commit dc34dbc

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

gist

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ module Gist
7979
end
8080
end
8181
module Gist
82-
VERSION = Version = '1.1.0'
82+
VERSION = Version = '1.1.1'
8383
end
8484
require 'open-uri'
8585
require 'net/http'
@@ -119,6 +119,11 @@ module Gist
119119
Gist::Manpage.display("gist")
120120
end
121121

122+
opts.on('-', '--version', 'Print version') do
123+
puts Gist::Version
124+
exit
125+
end
126+
122127
opts.on('-h', '--help', 'Display this screen') do
123128
puts opts
124129
exit
@@ -159,7 +164,8 @@ module Gist
159164
url = URI.parse(CREATE_URL)
160165

161166
proxy = Net::HTTP::Proxy(PROXY_HOST, PROXY_PORT)
162-
req = proxy.post_form(url, data(gist_filename, gist_extension, content, private_gist))
167+
req = proxy.post_form(url,
168+
data(gist_filename, gist_extension, content, private_gist))
163169

164170
req['Location']
165171
end

lib/gist/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Gist
2-
VERSION = Version = '1.1.0'
2+
VERSION = Version = '1.1.1'
33
end

0 commit comments

Comments
 (0)