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 CHANGED
@@ -1,6 +1,11 @@
1
1
  Change log for hiera-eyaml
2
2
  ==========================
3
3
 
4
+ 2.05
5
+ ----
6
+
7
+ - #128 - Fix a bug (#117) that caused `eyaml` to break when arguments were supplied in `$EDITOR`
8
+
4
9
  2.04
5
10
  ----
6
11
 
@@ -2,7 +2,7 @@ class Hiera
2
2
  module Backend
3
3
  module Eyaml
4
4
 
5
- VERSION = "2.0.4"
5
+ VERSION = "2.0.5"
6
6
  DESCRIPTION = "Hiera-eyaml is a backend for Hiera which provides OpenSSL encryption/decryption for Hiera properties"
7
7
 
8
8
  class RecoverableError < StandardError
@@ -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
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-24 00:00:00.000000000 Z
12
+ date: 2014-12-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: trollop