gish 0.9.4 → 0.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +3 -0
- data/CHANGELOG.md +6 -2
- data/lib/gish/configuration.rb +2 -2
- data/lib/gish/helpers/input_helpers.rb +5 -3
- data/lib/gish/version.rb +1 -1
- data/lib/gish.rb +14 -14
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68f14664ba187a562c728130d7664c9c677511f6
|
4
|
+
data.tar.gz: 5920ca6419277d864a6e63b6592f189ded4d3291
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3365492f8e3c10c70e468592701376cbe877b6f5544c5b8e37f86abcedf1921cd9ba5b32ed61ff4916290a87131cee9481b1d6349359121dba71fc14e3b301f5
|
7
|
+
data.tar.gz: ee3eed5ecb8429a1d8b8110858a88c93cfec65a621d76e553fb333e55326a341a5b04a871b293368672b4dec94e40b7228235298c4cb78012e5c34b30826bf20
|
data/.gitignore
CHANGED
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.
|
data/lib/gish/configuration.rb
CHANGED
@@ -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.
|
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
data/lib/gish.rb
CHANGED
@@ -1,17 +1,17 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
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
|
+
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-
|
11
|
+
date: 2014-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|