gish 0.9.4 → 0.9.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 17282a83906eb4c54cdc4d3838481027fae4f156
4
- data.tar.gz: 7fed2aa273b24b43232bbe174dff64e8d55262d0
3
+ metadata.gz: 68f14664ba187a562c728130d7664c9c677511f6
4
+ data.tar.gz: 5920ca6419277d864a6e63b6592f189ded4d3291
5
5
  SHA512:
6
- metadata.gz: 1b776cbc5849dcf4798b87c74a8d4b36b5ef785117b914fb2d2d76402a3af40992152447632024639796d8f208406e127ba5865cbc43cd7a833844f4091cfcdd
7
- data.tar.gz: 39befa93204e4e50b62293cd584f976878c4466bcf0f4825903186611d04b871b2d25bcd5e4b3d9b7babcf0a16ad3eac179c24f0b07c4b412983bd2050e59095
6
+ metadata.gz: 3365492f8e3c10c70e468592701376cbe877b6f5544c5b8e37f86abcedf1921cd9ba5b32ed61ff4916290a87131cee9481b1d6349359121dba71fc14e3b301f5
7
+ data.tar.gz: ee3eed5ecb8429a1d8b8110858a88c93cfec65a621d76e553fb333e55326a341a5b04a871b293368672b4dec94e40b7228235298c4cb78012e5c34b30826bf20
data/.gitignore CHANGED
@@ -15,3 +15,6 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
+ *.swo
19
+ *.swp
20
+ .ruby-version
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.9.5
4
+
5
+ * Mask password input. Thanks to [malditogeek](https://github.com/malditogeek).
6
+
3
7
  ## 0.9.4
4
8
 
5
9
  * Edit command added, and assign command now checks to see if specified user is a collaborator. Both thanks to [despo](https://github.com/despo).
@@ -16,6 +20,6 @@
16
20
 
17
21
  * Added a [PR] tag for issues in the list screen.
18
22
 
19
- ## 0.9.0
23
+ ## 0.9.0
20
24
 
21
- * Initial release.
25
+ * Initial release.
@@ -49,7 +49,7 @@ module Gish
49
49
 
50
50
  puts "(step 1 of 2) Gish needs your login details to create a personal use token. This only happens once and your credentials will not be stored."
51
51
  username = prompt('Username: ')
52
- password = prompt('Password: ')
52
+ password = prompt('Password: ', masked: true)
53
53
 
54
54
  puts "(step 2 of 2) Gish works with public repositories by default, but if you want to use it with We are about to create a token, but first you need to decide if you want to use Gish with private repositories, we need to know now!"
55
55
  private_access = confirm("Use with private repositories? (y/n) ")
@@ -65,4 +65,4 @@ module Gish
65
65
  File.open(@config_file, 'w+') { |file| file.write(authorization.token) }
66
66
  end
67
67
  end
68
- end
68
+ end
@@ -1,10 +1,12 @@
1
1
  require 'securerandom'
2
+ require 'io/console'
2
3
 
3
4
  module Gish
4
5
  module InputHelpers
5
- def prompt(message)
6
+ def prompt(message, opts={})
6
7
  print message
7
- STDIN.gets.chomp
8
+ input = opts[:masked] ? STDIN.noecho(&:gets) : STDIN.gets
9
+ input.chomp
8
10
  end
9
11
 
10
12
  def confirm(message)
@@ -24,4 +26,4 @@ module Gish
24
26
  ouput.length < 1 ? nil : ouput
25
27
  end
26
28
  end
27
- end
29
+ end
data/lib/gish/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Gish
2
- VERSION = "0.9.4"
2
+ VERSION = "0.9.5"
3
3
  end
data/lib/gish.rb CHANGED
@@ -1,17 +1,17 @@
1
- require "gish/version"
2
- require "gish/helpers/input_helpers"
3
- require "gish/helpers/terminal_helpers"
4
- require "gish/helpers/date_helpers"
5
- require "gish/configuration"
6
- require "gish/commands/issue"
7
- require "gish/commands/comment"
8
- require "gish/commands/label"
9
- require "gish/commands/assignee"
10
- require "gish/commands/repository"
11
- require "gish/presentation/issue"
12
- require "gish/presentation/label"
13
- require "gish/presentation/comment"
14
- require 'gish/runner'
1
+ require_relative "gish/version"
2
+ require_relative "gish/helpers/input_helpers"
3
+ require_relative "gish/helpers/terminal_helpers"
4
+ require_relative "gish/helpers/date_helpers"
5
+ require_relative "gish/configuration"
6
+ require_relative "gish/commands/issue"
7
+ require_relative "gish/commands/comment"
8
+ require_relative "gish/commands/label"
9
+ require_relative "gish/commands/assignee"
10
+ require_relative "gish/commands/repository"
11
+ require_relative "gish/presentation/issue"
12
+ require_relative "gish/presentation/label"
13
+ require_relative "gish/presentation/comment"
14
+ require_relative 'gish/runner'
15
15
 
16
16
  module Gish
17
17
  extend Configuration
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gish
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
4
+ version: 0.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Baris Balic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-05 00:00:00.000000000 Z
11
+ date: 2014-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler