boxen 1.5.1 → 1.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/boxen.gemspec +1 -1
  2. data/lib/facter/boxen.rb +7 -7
  3. metadata +1 -1
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = "boxen"
5
- gem.version = "1.5.1"
5
+ gem.version = "1.5.2"
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)."
@@ -22,13 +22,13 @@ Dir["#{config.homedir}/config/facts/*.json"].each do |file|
22
22
  facts.merge! JSON.parse File.read file
23
23
  end
24
24
 
25
- if File.exist? dot_boxen
26
- if File.directory?(dot_boxen) && File.file?(user_config)
27
- facts.merge! JSON.parse(File.read(user_config))
28
- else
29
- warn "DEPRECATION: ~/.boxen is deprecated and will be removed in 2.0; use ~/.boxen/config.json instead!"
30
- facts.merge! JSON.parse(File.read(dot_boxen))
31
- end
25
+ if File.directory?(dot_boxen) && File.file?(user_config)
26
+ facts.merge! JSON.parse(File.read(user_config))
27
+ end
28
+
29
+ if File.file?(dot_boxen)
30
+ warn "DEPRECATION: ~/.boxen is deprecated and will be removed in 2.0; use ~/.boxen/config.json instead!"
31
+ facts.merge! JSON.parse(File.read(dot_boxen))
32
32
  end
33
33
 
34
34
  facts.each { |k, v| Facter.add(k) { setcode { v } } }
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: 1.5.1
4
+ version: 1.5.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: