socialcast-git-extensions 3.1.19 → 3.1.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bda1a5738f6ce97b652da189f0d18544614f02d4
4
- data.tar.gz: 4bbf5f6a51edd0e949ec46875c3d83ba8e1a56da
3
+ metadata.gz: 2ce79d809922d4915fde1198f1b4b254d6333e1f
4
+ data.tar.gz: 68c84ac74943a0f1c670ab33d883d841c42c8f2f
5
5
  SHA512:
6
- metadata.gz: 4603769a42aa207cc13b9b54aa80cc2e1d76697bb89b304659766a138e872661a3baab242b39d81e91a5066f693086d75cd44ebccdb6e51381f80fc9cf6c6f39
7
- data.tar.gz: 473dcdb7188d4c9f02075a2baffee8e4d6852c3f4f87954c589452e02ad3522392f53c98dd312830cd590beb09f040a7ac1b97e93d8d00551b654356c9ca876c
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
@@ -1,5 +1,5 @@
1
1
  module Socialcast
2
2
  module Gitx
3
- VERSION = "3.1.19"
3
+ VERSION = "3.1.20"
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: 3.1.19
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-20 00:00:00.000000000 Z
11
+ date: 2014-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grit