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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 68f14664ba187a562c728130d7664c9c677511f6
4
- data.tar.gz: 5920ca6419277d864a6e63b6592f189ded4d3291
3
+ metadata.gz: a27cc49bc7f02fcc0fac5b9858bd503f0c198a41
4
+ data.tar.gz: e182c11c0a7cffb69714a67cea9d673626f92e52
5
5
  SHA512:
6
- metadata.gz: 3365492f8e3c10c70e468592701376cbe877b6f5544c5b8e37f86abcedf1921cd9ba5b32ed61ff4916290a87131cee9481b1d6349359121dba71fc14e3b301f5
7
- data.tar.gz: ee3eed5ecb8429a1d8b8110858a88c93cfec65a621d76e553fb333e55326a341a5b04a871b293368672b4dec94e40b7228235298c4cb78012e5c34b30826bf20
6
+ metadata.gz: c7a0bc36f56bda4588e9fca18351983c735c99821e03730386bbacf6d60e66365b63c0cc649c8d62ca9b7914f7ccabd8e0a1c0a4306295c16bdff0505909de71
7
+ data.tar.gz: 094623a51fdf8fb045f29c875b93a9aa171b6121ffab8aa095a8c1c716a4c016a407f68b77931ee718f70753ff97a3a1ca8cb341538a53a2ea98fd8a55b82adf
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.9.6
4
+
5
+ * Prompt user for token instead of user/pass to support 2-factor auth users. Thanks to [malditogeek](https://github.com/malditogeek).
6
+
3
7
  ## 0.9.5
4
8
 
5
9
  * Mask password input. Thanks to [malditogeek](https://github.com/malditogeek).
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
@@ -44,25 +44,14 @@ module Gish
44
44
  url.match(/:(.*)\.git/)[1] rescue ''
45
45
  end
46
46
 
47
- def retrieve_or_generate_token
47
+ def retrieve_or_generate_token
48
48
  return File.read(@config_file) if File.exists?(@config_file)
49
49
 
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
- username = prompt('Username: ')
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
- 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
- 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
@@ -1,3 +1,3 @@
1
1
  module Gish
2
- VERSION = "0.9.5"
2
+ VERSION = "0.9.6"
3
3
  end
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.5
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-18 00:00:00.000000000 Z
11
+ date: 2014-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler