socialcast-git-extensions 4.1.1 → 4.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.travis.yml +2 -2
- data/README.md +1 -1
- data/lib/socialcast-git-extensions/github.rb +4 -1
- data/lib/socialcast-git-extensions/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: 13a4c9c6db2eecc80382d737abdf5a12dc2f9b92
|
4
|
+
data.tar.gz: 8b7a4cf0ba24fec9b22b78ed759457e30ddd6943
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73ae656105eff090f5a59c3d7df27a4343b5cbd3d810d6cf01cbdeaf7b2434aa3adc74f181df5269bcf4454efd4f2f83cc168749d4fd1abb08f7614cdda8031e
|
7
|
+
data.tar.gz: 635c3cbad190ea56723b8b4b62a4de7992de59e04d9b2db2259d394aebad8048071a1ece0947c6ae5b98239e2bbc01c646f5e85dd13b80973b77bbb4b5f46781
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
2.3.3
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -15,7 +15,7 @@ Where "(your domain)" would be the fully qualified domain name of the Socialcast
|
|
15
15
|
Some of the extentions provided make use of the GitHub Application Token. When using commands such as [`git findpr`](https://github.com/socialcast/socialcast-git-extensions#git-findpr-) or [`git reviewrequest`](https://github.com/socialcast/socialcast-git-extensions#git-reviewrequest) the extensions will accept the credentials of the GitHub account and then install the GitHub token for you. If the GitHub account has two-factor authentication enabled then a manual installation of the GitHub Token is required.
|
16
16
|
|
17
17
|
#### Manual GitHub Token Installation
|
18
|
-
Access the [Application settings](https://github.com/settings/
|
18
|
+
Access the [Application settings](https://github.com/settings/tokens) of your github.com account and select "*Generate new token*" or use an existing Github Application token. Store the token in `~/.socialcast/credentials.yml`. Example:
|
19
19
|
```yaml
|
20
20
|
---
|
21
21
|
:domain: er.staging.socialcast.com
|
@@ -19,8 +19,11 @@ module Socialcast
|
|
19
19
|
username = current_user
|
20
20
|
raise "Github user not configured. Run: `git config --global github.user 'me@email.com'`" if username.empty?
|
21
21
|
password = HighLine.new.ask("Github password for #{username}: ") { |q| q.echo = false }
|
22
|
+
default_token_name = 'Socialcast Git eXtension'
|
23
|
+
token_name = HighLine.new.ask("Github token name for this machine (default: '#{default_token_name}'):")
|
24
|
+
token_name = default_token_name if token_name.empty?
|
22
25
|
|
23
|
-
payload = {:scopes => ['repo'], :note =>
|
26
|
+
payload = {:scopes => ['repo'], :note => token_name, :note_url => 'https://github.com/socialcast/socialcast-git-extensions'}.to_json
|
24
27
|
response = RestClient::Request.new(:url => "https://api.github.com/authorizations", :method => "POST", :user => username, :password => password, :payload => payload, :headers => {:accept => :json, :content_type => :json, :user_agent => 'socialcast-git-extensions'}).execute
|
25
28
|
data = JSON.parse response.body
|
26
29
|
token = data['token']
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: socialcast-git-extensions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.
|
4
|
+
version: 4.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Socialcast
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rugged
|