death 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,6 +13,10 @@ kill command wrapper. say "DEATH" with death voice.
13
13
  death -signal_name pid ...
14
14
  death -signal_number pid ...
15
15
 
16
+ === shortcut command
17
+
18
+ lml
19
+
16
20
  == Operating environment
17
21
 
18
22
  Mac OS X (only)
data/bin/death CHANGED
@@ -1,7 +1,16 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'open3'
3
3
 
4
- raise 'death command is supporting only Mac OS X.' unless RUBY_PLATFORM =~ /darwin/
4
+ def support_os?
5
+ if RUBY_PLATFORM == 'java'
6
+ require 'java'
7
+ java.lang.System.getProperty('os.name') == 'Mac OS X'
8
+ else
9
+ RUBY_PLATFORM =~ /darwin/
10
+ end
11
+ end
12
+
13
+ raise 'death command is supporting only Mac OS X.' unless support_os?
5
14
 
6
15
  10.times { system('say -v Ralph deeeeeeeeeeeattttth &') }
7
16
 
data/bin/lml CHANGED
@@ -1,7 +1,16 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'open3'
3
3
 
4
- raise 'death command is supporting only Mac OS X.' unless RUBY_PLATFORM =~ /darwin/
4
+ def support_os?
5
+ if RUBY_PLATFORM == 'java'
6
+ require 'java'
7
+ java.lang.System.getProperty('os.name') == 'Mac OS X'
8
+ else
9
+ RUBY_PLATFORM =~ /darwin/
10
+ end
11
+ end
12
+
13
+ raise 'death command is supporting only Mac OS X.' unless support_os?
5
14
 
6
15
  10.times { system('say -v Ralph deeeeeeeeeeeattttth &') }
7
16
 
@@ -1,28 +1,28 @@
1
1
  # encoding: utf-8
2
- $:.push File.expand_path("../lib", __FILE__)
3
- require "death/version"
2
+ $:.push File.expand_path('../lib', __FILE__)
3
+ require 'death/version'
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = 'death'
7
7
  s.version = Death::VERSION
8
8
 
9
- s.authors = ["ITO Koichi"]
10
- s.date = "2012-04-19"
11
- s.description = %q{kill command wrapper. say "DEATH" with death voice. Operating environment is Mac OS X only.}
12
- s.email = %q{koic.ito@gmail.com}
9
+ s.authors = ['ITO Koichi']
10
+ s.date = '2012-04-27'
11
+ s.description = 'kill command wrapper. say "DEATH" with death voice. Operating environment is Mac OS X only.'
12
+ s.email = 'koic.ito@gmail.com'
13
13
  s.extra_rdoc_files = [
14
- "README.rdoc"
14
+ 'README.rdoc'
15
15
  ]
16
16
  s.files = [
17
- "README.rdoc",
18
- "lib/death/version.rb",
19
- "bin/death",
20
- "death.gemspec",
21
- "LICENSE"
17
+ 'README.rdoc',
18
+ 'lib/death/version.rb',
19
+ 'bin/death',
20
+ 'death.gemspec',
21
+ 'LICENSE'
22
22
  ]
23
- s.homepage = %q{http://github.com/koic/death-command}
24
- s.require_paths = ["lib"]
25
- s.summary = %q{kill command wrapper. say "DEATH" with death voice.}
26
- s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
23
+ s.homepage = 'http://github.com/koic/death-command'
24
+ s.require_paths = ['lib']
25
+ s.summary = 'kill command wrapper. say "DEATH" with death voice.'
26
+ s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
27
27
  end
28
28
 
@@ -1,4 +1,4 @@
1
1
  module Death
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.1'
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: death
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-19 00:00:00.000000000 Z
12
+ date: 2012-04-27 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: kill command wrapper. say "DEATH" with death voice. Operating environment
15
15
  is Mac OS X only.