cmd_tools 4.0.2 → 4.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/cmd_tools.gemspec +12 -3
  2. data/lib/cmd_tools/version.rb +1 -1
  3. metadata +11 -21
data/cmd_tools.gemspec CHANGED
@@ -22,12 +22,21 @@ to see details.
22
22
  s.executables << 'cmd_tools'
23
23
  s.post_install_message = <<-EOS
24
24
 
25
- # CmdTools.
25
+ # CmdTools
26
26
  alias bak='cmd_tools backup'
27
27
  alias tsh='cmd_tools trash'
28
- alias em='cmd_tools emacs_launch --mode=gui'
29
- alias e='cmd_tools emacs_launch --mode=cui'
30
28
  alias emacs_stop='cmd_tools emacs_stop'
29
+ case $(uname) in
30
+ # emacs_launch do not work satisfactory on Mac.
31
+ "Darwin")
32
+ alias em='open -a /Applications/MacPorts/Emacs.app'
33
+ alias e='/Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs --no-window-system'
34
+ ;;
35
+ *)
36
+ alias em='cmd_tools emacs_launch --mode=gui'
37
+ alias e='cmd_tools emacs_launch --mode=cui'
38
+ ;;
39
+ esac
31
40
 
32
41
  EOS
33
42
  s.required_ruby_version = '~> 1.9'
@@ -1,3 +1,3 @@
1
1
  module CmdTools
2
- VERSION = '4.0.2'
2
+ VERSION = '4.0.3'
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.0.2
4
+ version: 4.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-10-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ruby_patch
16
- requirement: &2157201000 !ruby/object:Gem::Requirement
16
+ requirement: &2156549560 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '1.1'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2157201000
24
+ version_requirements: *2156549560
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: thor
27
- requirement: &2157198620 !ruby/object:Gem::Requirement
27
+ requirement: &2156548500 !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: *2157198620
35
+ version_requirements: *2156548500
36
36
  description: ! 'Command line tools. Please type
37
37
 
38
38
 
@@ -61,22 +61,12 @@ files:
61
61
  - lib/cmd_tools/version.rb
62
62
  homepage:
63
63
  licenses: []
64
- post_install_message: ! '
65
-
66
- # CmdTools.
67
-
68
- alias bak=''cmd_tools backup''
69
-
70
- alias tsh=''cmd_tools trash''
71
-
72
- alias em=''cmd_tools emacs_launch --mode=gui''
73
-
74
- alias e=''cmd_tools emacs_launch --mode=cui''
75
-
76
- alias emacs_stop=''cmd_tools emacs_stop''
77
-
78
-
79
- '
64
+ post_install_message: ! "\n# CmdTools\nalias bak='cmd_tools backup'\nalias tsh='cmd_tools
65
+ trash'\nalias emacs_stop='cmd_tools emacs_stop'\ncase $(uname) in\n # emacs_launch
66
+ do not work satisfactory on Mac.\n \"Darwin\")\n\talias em='open -a /Applications/MacPorts/Emacs.app'\n\talias
67
+ e='/Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs --no-window-system'\n\t;;\n
68
+ \ *)\n\talias em='cmd_tools emacs_launch --mode=gui'\n\talias e='cmd_tools emacs_launch
69
+ --mode=cui'\n\t;;\nesac\n\n"
80
70
  rdoc_options: []
81
71
  require_paths:
82
72
  - lib