boxen 2.0.5 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -1
- data/.ruby-version +1 -0
- data/.travis.yml +1 -0
- data/README.md +1 -1
- data/boxen.gemspec +1 -1
- data/lib/boxen/preflight/creds.rb +16 -10
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c49e4e86a9f5b48f4e1b3132c9fe255987f2462c
|
4
|
+
data.tar.gz: 1815fc3e8007ff5f144a02cfeb1c371e9d403de5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6744941ef2b242aee8a50b4db4240618d9db566611cea73ed1ef568481743579bda5712f1149e99ee9bdd11834e83564bb5f21082141d593206189aa4efe56a8
|
7
|
+
data.tar.gz: a920d2c2465f6077b7ef9faa189f1cf521a11b7a80aa180e35bc1f16ca4d16f1f5c8eb5990985a2ae30ac672f17d2b3558bff9a8bdb03e15daa8fdf41db25c43
|
data/.gitignore
CHANGED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
system
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -42,7 +42,7 @@ and we can't just modify the sudoers file due to a chicken-egg problem.
|
|
42
42
|
|
43
43
|
## Contributing
|
44
44
|
|
45
|
-
Use the OS X system Ruby (1.8.7). Run `script/tests` often. Open PR's.
|
45
|
+
Use the OS X system Ruby (1.8.7 or 2.0.0). Run `script/tests` often. Open PR's.
|
46
46
|
Use the CI.
|
47
47
|
|
48
48
|
## Halp!
|
data/boxen.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |gem|
|
4
4
|
gem.name = "boxen"
|
5
|
-
gem.version = "2.0
|
5
|
+
gem.version = "2.1.0"
|
6
6
|
gem.authors = ["John Barnette", "Will Farrington"]
|
7
7
|
gem.email = ["jbarnette@github.com", "wfarr@github.com"]
|
8
8
|
gem.description = "Manage Mac development boxes with love (and Puppet)."
|
@@ -66,18 +66,24 @@ class Boxen::Preflight::Creds < Boxen::Preflight
|
|
66
66
|
|
67
67
|
def run
|
68
68
|
console = HighLine.new
|
69
|
+
|
70
|
+
if ENV['BOXEN_GITHUB_LOGIN'] || ENV['BOXEN_GITHUB_PASSWORD']
|
71
|
+
warn "Oh, looks like you've provided your username and password as environmental variables..."
|
72
|
+
config.login = ENV['BOXEN_GITHUB_LOGIN']
|
73
|
+
@password = ENV['BOXEN_GITHUB_PASSWORD']
|
74
|
+
else
|
75
|
+
warn "Hey, I need your current GitHub credentials to continue."
|
76
|
+
|
77
|
+
config.login = console.ask "GitHub login: " do |q|
|
78
|
+
q.default = config.login || config.user
|
79
|
+
q.validate = /\A[^@]+\Z/
|
80
|
+
end
|
69
81
|
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
q.default = config.login || config.user
|
74
|
-
q.validate = /\A[^@]+\Z/
|
75
|
-
end
|
76
|
-
|
77
|
-
@password = console.ask "GitHub password: " do |q|
|
78
|
-
q.echo = "*"
|
82
|
+
@password = console.ask "GitHub password: " do |q|
|
83
|
+
q.echo = "*"
|
84
|
+
end
|
79
85
|
end
|
80
|
-
|
86
|
+
|
81
87
|
tokens = get_tokens
|
82
88
|
|
83
89
|
unless auth = tokens.detect { |a| a.note == "Boxen" }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: boxen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Barnette
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-11-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ansi
|
@@ -152,6 +152,7 @@ extensions: []
|
|
152
152
|
extra_rdoc_files: []
|
153
153
|
files:
|
154
154
|
- .gitignore
|
155
|
+
- .ruby-version
|
155
156
|
- .travis.yml
|
156
157
|
- Gemfile
|
157
158
|
- LICENSE
|