octopush 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/octopush.rb +5 -2
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c1000f473f6fa656248df0169c510b2a9a7b5a4
|
4
|
+
data.tar.gz: 0172c30e2e3aed33a05e2fd7296c1ad1f379451f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6aada6efd01ce2f57e5bc6b7de817602c7c249f3fac4879062fbce261355983935d903b956403ae67b1adcf3076936fd287a7a84489b4fcd093cb38460822b0d
|
7
|
+
data.tar.gz: 67090da46dd7ad472ee9fa34d725e0fdec5001bbb7f30e2e263a80d0a2df358af8fada69e68f201e5df9548d72db6601eba7b4520feaaa3cf2aaa34996b64264
|
data/lib/octopush.rb
CHANGED
@@ -3,6 +3,9 @@ require 'fileutils'
|
|
3
3
|
require 'colorize'
|
4
4
|
require_relative 'gictocat'
|
5
5
|
|
6
|
+
require 'highline/import'
|
7
|
+
alias :high_ask :ask
|
8
|
+
|
6
9
|
CONFIGURATION_FILE = (ENV['HOME'] + '/.octopushrc')
|
7
10
|
|
8
11
|
class Octopush < Thor
|
@@ -31,7 +34,7 @@ class Octopush < Thor
|
|
31
34
|
if configuration['username'] && configuration['username'] != '<your_username>'
|
32
35
|
@username = configuration['username']
|
33
36
|
else
|
34
|
-
@username = ask "GitHub Username:"
|
37
|
+
@username = ask "GitHub Username: "
|
35
38
|
end
|
36
39
|
end
|
37
40
|
|
@@ -40,7 +43,7 @@ class Octopush < Thor
|
|
40
43
|
if configuration['password'] && configuration['password'] != '<your_password>'
|
41
44
|
@password = configuration['password']
|
42
45
|
else
|
43
|
-
@password =
|
46
|
+
@password = high_ask("GitHub Password: ") { |c| c.echo = '*' }
|
44
47
|
end
|
45
48
|
end
|
46
49
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: octopush
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martino Visintin
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: highline
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: colorize
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|