gish 0.9.5 → 0.9.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +3 -0
- data/lib/gish/configuration.rb +5 -16
- data/lib/gish/version.rb +1 -1
- 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: a27cc49bc7f02fcc0fac5b9858bd503f0c198a41
|
4
|
+
data.tar.gz: e182c11c0a7cffb69714a67cea9d673626f92e52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7a0bc36f56bda4588e9fca18351983c735c99821e03730386bbacf6d60e66365b63c0cc649c8d62ca9b7914f7ccabd8e0a1c0a4306295c16bdff0505909de71
|
7
|
+
data.tar.gz: 094623a51fdf8fb045f29c875b93a9aa171b6121ffab8aa095a8c1c716a4c016a407f68b77931ee718f70753ff97a3a1ca8cb341538a53a2ea98fd8a55b82adf
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -2,6 +2,9 @@
|
|
2
2
|
|
3
3
|
Github Issues on the command-line. Not much else to say about it. Runs on OSX/*nix, any Windows compatibility is purely coincidental.
|
4
4
|
|
5
|
+
Any questions? Join the conversation at [![Gitter](https://badges.gitter.im/barisbalic/gish.png)](https://gitter.im/barisbalic/gish)
|
6
|
+
|
7
|
+
|
5
8
|
## Installation
|
6
9
|
|
7
10
|
```bash
|
data/lib/gish/configuration.rb
CHANGED
@@ -44,25 +44,14 @@ module Gish
|
|
44
44
|
url.match(/:(.*)\.git/)[1] rescue ''
|
45
45
|
end
|
46
46
|
|
47
|
-
|
47
|
+
def retrieve_or_generate_token
|
48
48
|
return File.read(@config_file) if File.exists?(@config_file)
|
49
49
|
|
50
|
-
puts
|
51
|
-
|
52
|
-
password = prompt('Password: ', masked: true)
|
50
|
+
puts 'First time using Gish? Sweet! Please go to https://github.com/settings/applications and create a "Personal Access Token" to continue'
|
51
|
+
token = prompt('Token: ')
|
53
52
|
|
54
|
-
|
55
|
-
private_access = confirm("Use with private repositories? (y/n) ")
|
56
|
-
|
57
|
-
github = Octokit::Client.new(:login => username, :password => password)
|
58
|
-
options = {
|
59
|
-
:note => 'Gish: Github Issues on the command-line.',
|
60
|
-
:note_url => 'http://github.com/barisbalic/gish/'
|
61
|
-
}
|
62
|
-
options.merge!({:scopes => ['repo']}) if private_access
|
63
|
-
authorization = github.create_authorization(options)
|
64
|
-
|
65
|
-
File.open(@config_file, 'w+') { |file| file.write(authorization.token) }
|
53
|
+
File.open(@config_file, 'w+') { |file| file.write(token) }
|
66
54
|
end
|
55
|
+
|
67
56
|
end
|
68
57
|
end
|
data/lib/gish/version.rb
CHANGED
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.6
|
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-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|