cmd_tools 2.0.3 → 2.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,12 +10,12 @@ module ::CmdTools::Command::EmacsLaunch
10
10
  # - :emacs: emacs
11
11
  # + :emacs: /Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs
12
12
  def self.run(mode, *files)
13
- system "#{::CmdTools::Config.emacs} --daemon" unless self.daemon_running?
13
+ system "#{::CmdTools::Config.emacs} --daemon" unless daemon_running?
14
14
 
15
15
  files = files.flatten.join(' ')
16
16
  case mode
17
17
  when :gui
18
- if self.number_of_frames <= 1 # emacs daemon has one (invisible) frame.
18
+ if number_of_frames() <= 1 # emacs daemon has one (invisible) frame.
19
19
  exec "emacsclient -c -n #{files}"
20
20
  else
21
21
  exec "emacsclient -n #{files}"
@@ -27,6 +27,8 @@ module ::CmdTools::Command::EmacsLaunch
27
27
  end
28
28
  end
29
29
 
30
+ private
31
+
30
32
  # Stop emacs daemon.
31
33
  def self.stop
32
34
  exec "emacsclient -e '(kill-emacs)'"
@@ -1,3 +1,3 @@
1
1
  module CmdTools
2
- VERSION = '2.0.3'
2
+ VERSION = '2.0.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: 2.0.3
4
+ version: 2.0.4
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-09-01 00:00:00.000000000 Z
12
+ date: 2012-09-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ruby_patch
16
- requirement: &72814280 !ruby/object:Gem::Requirement
16
+ requirement: &2153619080 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0.3'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *72814280
24
+ version_requirements: *2153619080
25
25
  description: ! 'Command line tools. Please type
26
26
 
27
27
 
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  version: '0'
84
84
  requirements: []
85
85
  rubyforge_project:
86
- rubygems_version: 1.8.11
86
+ rubygems_version: 1.8.15
87
87
  signing_key:
88
88
  specification_version: 3
89
89
  summary: Command line tools.