hiera-eyaml 2.0.4 → 2.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.md +5 -0
- data/lib/hiera/backend/eyaml.rb +1 -1
- data/lib/hiera/backend/eyaml/utils.rb +3 -0
- metadata +2 -2
data/CHANGES.md
CHANGED
data/lib/hiera/backend/eyaml.rb
CHANGED
@@ -42,6 +42,9 @@ class Hiera
|
|
42
42
|
pieces = editor.split(' ')
|
43
43
|
paths = pieces.each_with_index.map {|_,x| pieces[0..x].join(' ')}.reverse # get possible paths, starting with longest
|
44
44
|
extensions = (ENV['PATHEXT'] || '').split(';') # handle Windows executables
|
45
|
+
pathdirs = ENV['PATH'].split(File::PATH_SEPARATOR)
|
46
|
+
paths += pathdirs.collect { |dir| paths.collect { |path| File.expand_path(path, dir) } }.flatten
|
47
|
+
paths.uniq!
|
45
48
|
editorfile = paths.select { |path|
|
46
49
|
FileTest.file?(path) || ! extensions.select {|ext| FileTest.file?(path + ext) }.empty?
|
47
50
|
}.first
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hiera-eyaml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-11
|
12
|
+
date: 2014-12-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: trollop
|