cmd_tools 4.1.3 → 4.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/cmd_tools.gemspec CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.summary = "Command line tools."
11
11
  s.version = CmdTools::VERSION
12
12
 
13
- s.add_runtime_dependency 'ruby_patch', '~> 1.1'
13
+ s.add_runtime_dependency 'ruby_patch', '~> 2.0'
14
14
  s.add_runtime_dependency 'thor', '~> 0.16'
15
15
  s.author = 'kshramt'
16
16
  s.description = <<-EOS
@@ -2,13 +2,14 @@ module ::CmdTools::Commands::EmacsLaunch
2
2
  require 'ruby_patch'
3
3
  extend ::RubyPatch::AutoLoad
4
4
 
5
- # Open +files+ by +mode+ (:gui/:cui) mode.
6
- # Launch emacs daemon if necessary.
7
- # Create new frame if necessary.
8
- # You can edit ~/.config/cmd_tools/config.yaml to specify an emacs executable.
9
- # For example, if you are a Mac user who uses MacPorts, following modification will be useful.
10
- # - :emacs: emacs
11
- # + :emacs: /Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs
5
+ # This method is created to provide 'open -a Emacs.app' command of Mac to Linux.
6
+ # Unfortunately, This method is not work satisfactory on Mac (but you have 'open -a Emacs.app').
7
+ # This method will
8
+ # * open +files+ by +mode+ (:gui/:cui) mode
9
+ # * launch emacs daemon if necessary
10
+ # * create new frame if necessary
11
+ #
12
+ # You can edit ~/.config/cmd_tools/config.yaml to specify a path to an emacs executable.
12
13
  def self.run(mode, *files)
13
14
  Process.waitpid(spawn "#{::CmdTools::Config.emacs} --daemon") unless daemon_running?
14
15
 
@@ -8,7 +8,7 @@ case $(uname) in
8
8
  # emacs_launch do not work satisfactory on Mac.
9
9
  "Darwin")
10
10
  function e(){
11
- files=$@
11
+ files="$@"
12
12
  for file in ${files}
13
13
  do
14
14
  [ -e ${file} ] || touch ${file}
@@ -1,3 +1,3 @@
1
1
  module CmdTools
2
- VERSION = '4.1.3'
2
+ VERSION = '4.1.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cmd_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.3
4
+ version: 4.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,27 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-04 00:00:00.000000000 Z
12
+ date: 2012-11-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ruby_patch
16
- requirement: !ruby/object:Gem::Requirement
16
+ requirement: &2157488660 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: '1.1'
21
+ version: '2.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ~>
28
- - !ruby/object:Gem::Version
29
- version: '1.1'
24
+ version_requirements: *2157488660
30
25
  - !ruby/object:Gem::Dependency
31
26
  name: thor
32
- requirement: !ruby/object:Gem::Requirement
27
+ requirement: &2157488180 !ruby/object:Gem::Requirement
33
28
  none: false
34
29
  requirements:
35
30
  - - ~>
@@ -37,12 +32,7 @@ dependencies:
37
32
  version: '0.16'
38
33
  type: :runtime
39
34
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ~>
44
- - !ruby/object:Gem::Version
45
- version: '0.16'
35
+ version_requirements: *2157488180
46
36
  description: ! 'Command line tools. Please type
47
37
 
48
38
 
@@ -74,7 +64,7 @@ homepage:
74
64
  licenses: []
75
65
  post_install_message: ! "\n# CmdTools\nalias bak='cmd_tools backup'\nalias tsh='cmd_tools
76
66
  trash'\nalias emacs_stop='cmd_tools emacs_stop'\ncase $(uname) in\n # emacs_launch
77
- do not work satisfactory on Mac.\n \"Darwin\")\n function e(){\n files=$@\n
67
+ do not work satisfactory on Mac.\n \"Darwin\")\n function e(){\n files=\"$@\"\n
78
68
  \ for file in ${files}\n do\n [ -e ${file} ]
79
69
  || touch ${file}\n done\n open -a /Applications/MacPorts/Emacs.app
80
70
  ${files}\n }\n alias em='/Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs
@@ -98,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
88
  version: '0'
99
89
  requirements: []
100
90
  rubyforge_project:
101
- rubygems_version: 1.8.23
91
+ rubygems_version: 1.8.15
102
92
  signing_key:
103
93
  specification_version: 3
104
94
  summary: Command line tools.