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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d95ca24fcf7d0de14659e6b07e27c11ca2676f3b
4
- data.tar.gz: e3ac4757e294c664446c3ae4e7f10c596f7f94da
3
+ metadata.gz: c49e4e86a9f5b48f4e1b3132c9fe255987f2462c
4
+ data.tar.gz: 1815fc3e8007ff5f144a02cfeb1c371e9d403de5
5
5
  SHA512:
6
- metadata.gz: 7ae4e801e9c215671043bddcd3f491e9d406de0a8b8cb266defb86628e3534417cd545d80c752d94d1734e8657f9608907f23050e179f8704052349a36902eb3
7
- data.tar.gz: 011a9e776c0ea8c3f28b65ea76e0f71809d98219fa5c43733ae3780eada2e367ce4f64bdd3868a467bab83bb344916a4f6a876888b8e09c42174b149e951dfa3
6
+ metadata.gz: 6744941ef2b242aee8a50b4db4240618d9db566611cea73ed1ef568481743579bda5712f1149e99ee9bdd11834e83564bb5f21082141d593206189aa4efe56a8
7
+ data.tar.gz: a920d2c2465f6077b7ef9faa189f1cf521a11b7a80aa180e35bc1f16ca4d16f1f5c8eb5990985a2ae30ac672f17d2b3558bff9a8bdb03e15daa8fdf41db25c43
data/.gitignore CHANGED
@@ -2,7 +2,6 @@
2
2
  /.env.local.rb
3
3
  /.projects
4
4
  /.rbenv-version
5
- /.ruby-version
6
5
  /Gemfile.lock
7
6
  /bin
8
7
  /boxen-*.gem
@@ -0,0 +1 @@
1
+ system
@@ -3,3 +3,4 @@ script: "./script/tests"
3
3
  gemfile: "this/does/not/exist"
4
4
  rvm:
5
5
  - "1.8.7"
6
+ - "2.0.0"
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!
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = "boxen"
5
- gem.version = "2.0.5"
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
- warn "Hey, I need your current GitHub credentials to continue."
71
-
72
- config.login = console.ask "GitHub login: " do |q|
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.5
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-10-28 00:00:00.000000000 Z
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