easyeditor 0.0.2 → 0.0.3

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/bin/easyeditor CHANGED
@@ -9,10 +9,11 @@ include Easyeditor
9
9
  options = {}
10
10
  option_parser = OptionParser.new do |opts|
11
11
  opts.banner = 'Usage: ee -e [vim|vi..] path/file '
12
+ options[:editor] = ENV["EDITOR"] || "vim"
12
13
  opts.on('-e vim|emacs', '--editor', 'Set editor') do |editor|
13
14
  options[:editor] = editor
14
15
  end
15
16
  end.parse!
16
17
  puts "Now open #{options[:editor]} #{ARGV.first}"
17
- ee = EasyEditor.new(ARGV.first,(options[:editor] || "vim")).open
18
+ ee = EasyEditor.new(ARGV.first,options[:editor]).open
18
19
 
data/bin/ee CHANGED
@@ -9,10 +9,11 @@ include Easyeditor
9
9
  options = {}
10
10
  option_parser = OptionParser.new do |opts|
11
11
  opts.banner = 'Usage: ee -e [vim|vi..] path/file '
12
+ options[:editor] = ENV["EDITOR"] || "vim"
12
13
  opts.on('-e vim|emacs', '--editor', 'Set editor') do |editor|
13
14
  options[:editor] = editor
14
15
  end
15
16
  end.parse!
16
17
  puts "Now open #{options[:editor]} #{ARGV.first}"
17
- ee = EasyEditor.new(ARGV.first,(options[:editor] || "vim")).open
18
+ ee = EasyEditor.new(ARGV.first,options[:editor]).open
18
19
 
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module Easyeditor
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easyeditor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
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: 2012-02-11 00:00:00.000000000 Z
12
+ date: 2012-02-12 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: ! 'ee path1/path2/filename will open which one that match *path1*/*path2*/*file.* '
15
15
  email: