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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b636e86e81a35a85a4709b288c1a5a0d157c19a8
4
- data.tar.gz: 388e65e84fe941af1e7ccbdbda072bcc5de64ccf
3
+ metadata.gz: 13a4c9c6db2eecc80382d737abdf5a12dc2f9b92
4
+ data.tar.gz: 8b7a4cf0ba24fec9b22b78ed759457e30ddd6943
5
5
  SHA512:
6
- metadata.gz: 56ab6b7a039596d9dd557cc1363af42484a63b513ca52dda4336e910b2123f850c221d2c6f71855cc0a3f6a4e84e2a766055b6567eea0a0d5e205e956b2f16b9
7
- data.tar.gz: fa9fb632400f12020746ab92134771bfb08135714f4ab9e3de70a1bbe623197da89306dc14644e513ac5ba6143596ecbe30195b59146ac0bde42a0000be234e2
6
+ metadata.gz: 73ae656105eff090f5a59c3d7df27a4343b5cbd3d810d6cf01cbdeaf7b2434aa3adc74f181df5269bcf4454efd4f2f83cc168749d4fd1abb08f7614cdda8031e
7
+ data.tar.gz: 635c3cbad190ea56723b8b4b62a4de7992de59e04d9b2db2259d394aebad8048071a1ece0947c6ae5b98239e2bbc01c646f5e85dd13b80973b77bbb4b5f46781
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- default
1
+ 2.3.3
data/.travis.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.2.4
4
- - 2.3.1
3
+ - 2.2.6
4
+ - 2.3.3
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/applications) 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:
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 => 'Socialcast Git eXtension', :note_url => 'https://github.com/socialcast/socialcast-git-extensions'}.to_json
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']
@@ -1,5 +1,5 @@
1
1
  module Socialcast
2
2
  module Gitx
3
- VERSION = "4.1.1"
3
+ VERSION = "4.1.2"
4
4
  end
5
5
  end
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.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: 2016-11-09 00:00:00.000000000 Z
11
+ date: 2017-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rugged