socialcast-git-extensions 3.1.19 → 3.1.20
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ce79d809922d4915fde1198f1b4b254d6333e1f
|
4
|
+
data.tar.gz: 68c84ac74943a0f1c670ab33d883d841c42c8f2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32708c4173da4d9c88fd6a7687342e16595a32442904d2b398f36813b30bc2f53ab5b06a640036e06841939fb83ff032825e1cbdd147428fd83e3b4e91f9dcea
|
7
|
+
data.tar.gz: 4cedf21a12d4cd68120a9ab2c302e50f7dbe23ef7310962356e48ee4e18d3a17be2241c13679a38a2e60e451a96583e7481fe2830ab5dea55ec124e25fca15c6
|
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'rest_client'
|
2
2
|
require 'json'
|
3
3
|
require 'socialcast'
|
4
|
+
require 'highline'
|
4
5
|
|
5
6
|
module Socialcast
|
6
7
|
module Gitx
|
@@ -17,7 +18,7 @@ module Socialcast
|
|
17
18
|
|
18
19
|
username = current_user
|
19
20
|
raise "Github user not configured. Run: `git config --global github.user 'me@email.com'`" if username.empty?
|
20
|
-
password = ask("Github password for #{username}: ") { |q| q.echo = false }
|
21
|
+
password = HighLine.new.ask("Github password for #{username}: ") { |q| q.echo = false }
|
21
22
|
|
22
23
|
payload = {:scopes => ['repo'], :note => 'Socialcast Git eXtension', :note_url => 'https://github.com/socialcast/socialcast-git-extensions'}.to_json
|
23
24
|
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
|
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: 3.1.
|
4
|
+
version: 3.1.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Sonnek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grit
|