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 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 (#117) that caused `eyaml` to break when arguments were supplied in `$EDITOR`
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
  ----
@@ -2,7 +2,7 @@ class Hiera
2
2
  module Backend
3
3
  module Eyaml
4
4
 
5
- VERSION = "2.0.5"
5
+ VERSION = "2.0.6"
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
@@ -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
- editor = "\"#{editorfile}\"#{editor[editorfile.size()..-1]}"
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.5
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-11 00:00:00.000000000 Z
12
+ date: 2014-12-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: trollop