jist 0.5 → 0.6

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 +1 -1
  2. data/lib/jist.rb +3 -3
  3. metadata +33 -49
data/bin/jist CHANGED
@@ -11,7 +11,7 @@ options = {}
11
11
  opts = OptionParser.new do |opts|
12
12
  executable_name = File.split($0)[1]
13
13
  opts.banner = <<-EOS
14
- Jist (v#{Jist::VERSION}) let's you upload to https://gist.github.com/
14
+ Jist (v#{Jist::VERSION}) lets you upload to https://gist.github.com/
15
15
 
16
16
  Usage: #{executable_name} [-p] [-d DESC] [-t TOKEN] [-f FILENAME] [FILE]
17
17
  #{executable_name} --login
@@ -5,7 +5,7 @@ require 'json'
5
5
  # It just gists.
6
6
  module Jist
7
7
 
8
- VERSION = '0.5'
8
+ VERSION = '0.6'
9
9
 
10
10
  module_function
11
11
  # Upload a gist to https://gist.github.com
@@ -60,11 +60,11 @@ module Jist
60
60
  def login!
61
61
  puts "Obtaining OAuth2 access_token from github."
62
62
  print "Github username: "
63
- username = gets.strip
63
+ username = $stdin.gets.strip
64
64
  print "Github password: "
65
65
  password = begin
66
66
  `stty -echo` rescue nil
67
- gets.strip
67
+ $stdin.gets.strip
68
68
  ensure
69
69
  `stty echo` rescue nil
70
70
  end
metadata CHANGED
@@ -1,79 +1,63 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: jist
3
- version: !ruby/object:Gem::Version
4
- hash: 1
3
+ version: !ruby/object:Gem::Version
4
+ version: '0.6'
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 5
9
- version: "0.5"
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Conrad Irwin
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2012-06-23 00:00:00 Z
18
- dependencies:
19
- - !ruby/object:Gem::Dependency
12
+ date: 2012-06-23 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
20
15
  name: json
21
- prerelease: false
22
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
23
17
  none: false
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- hash: 3
28
- segments:
29
- - 0
30
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
31
22
  type: :runtime
32
- version_requirements: *id001
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
33
30
  description: Provides a single function (Jist.gist) that uploads a gist.
34
31
  email: conrad.irwin@gmail.com
35
- executables:
32
+ executables:
36
33
  - jist
37
34
  extensions: []
38
-
39
35
  extra_rdoc_files: []
40
-
41
- files:
36
+ files:
42
37
  - lib/jist.rb
43
38
  - bin/jist
44
39
  homepage: https://github.com/ConradIrwin/jist
45
40
  licenses: []
46
-
47
41
  post_install_message:
48
42
  rdoc_options: []
49
-
50
- require_paths:
43
+ require_paths:
51
44
  - lib
52
- required_ruby_version: !ruby/object:Gem::Requirement
45
+ required_ruby_version: !ruby/object:Gem::Requirement
53
46
  none: false
54
- requirements:
55
- - - ">="
56
- - !ruby/object:Gem::Version
57
- hash: 3
58
- segments:
59
- - 0
60
- version: "0"
61
- required_rubygems_version: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - ! '>='
49
+ - !ruby/object:Gem::Version
50
+ version: '0'
51
+ required_rubygems_version: !ruby/object:Gem::Requirement
62
52
  none: false
63
- requirements:
64
- - - ">="
65
- - !ruby/object:Gem::Version
66
- hash: 3
67
- segments:
68
- - 0
69
- version: "0"
53
+ requirements:
54
+ - - ! '>='
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
70
57
  requirements: []
71
-
72
58
  rubyforge_project:
73
- rubygems_version: 1.8.21
59
+ rubygems_version: 1.8.24
74
60
  signing_key:
75
61
  specification_version: 3
76
62
  summary: Just allows you to upload gists
77
63
  test_files: []
78
-
79
- has_rdoc: