hiera-eyaml 2.0.5 → 2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGES.md +6 -1
- data/lib/hiera/backend/eyaml.rb +1 -1
- data/lib/hiera/backend/eyaml/utils.rb +2 -2
- metadata +2 -2
data/CHANGES.md
CHANGED
@@ -1,10 +1,15 @@
|
|
1
1
|
Change log for hiera-eyaml
|
2
2
|
==========================
|
3
3
|
|
4
|
+
2.06
|
5
|
+
----
|
6
|
+
|
7
|
+
- #131 - Fix another EDITOR bug (#130) that could erase command line flags to the specified editor (@elyscape)
|
8
|
+
|
4
9
|
2.05
|
5
10
|
----
|
6
11
|
|
7
|
-
- #128 - Fix a bug (#
|
12
|
+
- #128 - Fix a bug (#127) that caused `eyaml edit` to break when `$EDITOR` was a command on PATH rather than a path to a command (@elyscape)
|
8
13
|
|
9
14
|
2.04
|
10
15
|
----
|
data/lib/hiera/backend/eyaml.rb
CHANGED
@@ -44,12 +44,12 @@ class Hiera
|
|
44
44
|
extensions = (ENV['PATHEXT'] || '').split(';') # handle Windows executables
|
45
45
|
pathdirs = ENV['PATH'].split(File::PATH_SEPARATOR)
|
46
46
|
paths += pathdirs.collect { |dir| paths.collect { |path| File.expand_path(path, dir) } }.flatten
|
47
|
-
paths.uniq!
|
48
47
|
editorfile = paths.select { |path|
|
49
48
|
FileTest.file?(path) || ! extensions.select {|ext| FileTest.file?(path + ext) }.empty?
|
50
49
|
}.first
|
51
50
|
raise StandardError, "Editor not found. Please set your EDITOR env variable" if editorfile.nil?
|
52
|
-
|
51
|
+
raw_command = paths[(paths.index editorfile) % pieces.size]
|
52
|
+
editor = "\"#{editorfile}\"#{editor[raw_command.size()..-1]}"
|
53
53
|
end
|
54
54
|
editor
|
55
55
|
end
|
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.6
|
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-12-
|
12
|
+
date: 2014-12-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: trollop
|