easyeditor 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,7 +18,15 @@ option_parser = OptionParser.new do |opts|
18
18
  puts "ee|easyeditor -v= #{VERSION} "
19
19
  exit
20
20
  end
21
+ options[:directory] = "."
22
+ opts.on('-d directory', '--directory', 'Set directory') do |directory|
23
+ options[:directory] = directory
24
+ end
25
+ options[:sudo] = false
26
+ opts.on('-s','--sudo',"Open with super user.") do
27
+ options[:sudo] = true
28
+ end
21
29
  end.parse!
22
30
  puts "Now open #{options[:editor]} #{ARGV.first}"
23
- ee = EasyEditor.new(ARGV.first,options[:editor]).open
31
+ ee = EasyEditor.new(ARGV.first,options).open
24
32
 
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module Easyeditor
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
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.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-02-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: awesome_print
16
- requirement: &82692220 !ruby/object:Gem::Requirement
16
+ requirement: &78231490 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *82692220
24
+ version_requirements: *78231490
25
25
  description: ! 'ee path1/path2/filename will open which one that match *path1*/*path2*/*file.* '
26
26
  email:
27
27
  - azhao.1981@gmail.com