cmd_tools 4.1.3 → 4.1.4
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/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', '~>
|
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
|
-
#
|
6
|
-
#
|
7
|
-
#
|
8
|
-
#
|
9
|
-
#
|
10
|
-
#
|
11
|
-
#
|
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
|
|
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: 4.1.
|
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-
|
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: '
|
21
|
+
version: '2.0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
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:
|
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
|
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.
|
91
|
+
rubygems_version: 1.8.15
|
102
92
|
signing_key:
|
103
93
|
specification_version: 3
|
104
94
|
summary: Command line tools.
|