cmd_tools 6.0.0 → 6.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/command/e +5 -6
- data/bin/command/em +4 -5
- data/lib/cmd_tools/command/emacs_launch.rb +2 -1
- data/lib/cmd_tools/version.rb +1 -1
- metadata +7 -7
data/bin/command/e
CHANGED
@@ -1,16 +1,15 @@
|
|
1
|
-
#!/bin/sh
|
1
|
+
#!/bin/sh -ue
|
2
2
|
|
3
|
-
files="$@"
|
4
3
|
case $(uname) in
|
5
4
|
# emacs_launch do not work satisfactory on Mac.
|
6
5
|
"Darwin")
|
7
|
-
for file in
|
6
|
+
for file in "$@"
|
8
7
|
do
|
9
|
-
[ -e ${file} ] || [ "" = ${file} ] || [ "-" = ${file:0:1} ] || [ "+" = ${file:0:1} ] || touch ${file}
|
8
|
+
[ -e "${file}" ] || [ "" = "${file}" ] || [ "-" = "${file:0:1}" ] || [ "+" = "${file:0:1}" ] || touch "${file}"
|
10
9
|
done
|
11
|
-
open -a /Applications/MacPorts/Emacs.app
|
10
|
+
open -a /Applications/MacPorts/Emacs.app "$@"
|
12
11
|
;;
|
13
12
|
*)
|
14
|
-
cmd_tools emacs_launch --mode=gui
|
13
|
+
cmd_tools emacs_launch --mode=gui "$@"
|
15
14
|
;;
|
16
15
|
esac
|
data/bin/command/em
CHANGED
@@ -1,14 +1,13 @@
|
|
1
|
-
#!/bin/sh
|
1
|
+
#!/bin/sh -ue
|
2
2
|
|
3
|
-
files="$@"
|
4
3
|
case $(uname) in
|
5
4
|
# emacs_launch do not work satisfactory on Mac.
|
6
5
|
"Darwin")
|
7
|
-
for file in
|
6
|
+
for file in "$@"
|
8
7
|
do
|
9
|
-
[ -e ${file} ] || [ "" = ${file} ] || [ "-" = ${file:0:1} ] || [ "+" = ${file:0:1} ] || touch ${file}
|
8
|
+
[ -e "${file}" ] || [ "" = "${file}" ] || [ "-" = "${file:0:1}" ] || [ "+" = "${file:0:1}" ] || touch "${file}"
|
10
9
|
done
|
11
|
-
/Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs --no-window-system --no-init --no-splash
|
10
|
+
/Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs --no-window-system --no-init --no-splash "$@"
|
12
11
|
;;
|
13
12
|
*)
|
14
13
|
cmd_tools emacs_launch --mode=cui "$@"
|
@@ -1,4 +1,5 @@
|
|
1
1
|
module ::CmdTools::Command::EmacsLaunch
|
2
|
+
require 'shellwords'
|
2
3
|
require 'ruby_patch'
|
3
4
|
extend ::RubyPatch::AutoLoad
|
4
5
|
|
@@ -13,7 +14,7 @@ module ::CmdTools::Command::EmacsLaunch
|
|
13
14
|
def self.run(mode, *files)
|
14
15
|
Process.waitpid(spawn "#{::CmdTools::Config.emacs} --daemon") unless daemon_running?
|
15
16
|
|
16
|
-
files_str = files.flatten.
|
17
|
+
files_str = files.flatten.shelljoin
|
17
18
|
case mode
|
18
19
|
when :gui
|
19
20
|
if is_gui_running?
|
data/lib/cmd_tools/version.rb
CHANGED
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: 6.0.
|
4
|
+
version: 6.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-12-
|
12
|
+
date: 2012-12-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ruby_patch
|
16
|
-
requirement: &
|
16
|
+
requirement: &2152833160 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '2.0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2152833160
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: thor
|
27
|
-
requirement: &
|
27
|
+
requirement: &2152832680 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '0.16'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2152832680
|
36
36
|
description: ! 'Command line tools. Please type
|
37
37
|
|
38
38
|
|
@@ -77,7 +77,7 @@ post_install_message: ! '
|
|
77
77
|
|
78
78
|
# CmdTools
|
79
79
|
|
80
|
-
export PATH=${HOME}/.gem/ruby/1.9.1/gems/cmd_tools-6.0.
|
80
|
+
export PATH=${HOME}/.gem/ruby/1.9.1/gems/cmd_tools-6.0.1/bin/command:${PATH}
|
81
81
|
|
82
82
|
|
83
83
|
'
|