death 0.3.1 → 0.4.0
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/bin/lml +15 -0
- data/death.gemspec +2 -2
- data/lib/death/version.rb +1 -1
- metadata +7 -6
data/bin/lml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'open3'
|
3
|
+
|
4
|
+
raise 'death command is supporting only Mac OS X.' unless RUBY_PLATFORM =~ /darwin/
|
5
|
+
|
6
|
+
10.times { system('say -v Ralph deeeeeeeeeeeattttth &') }
|
7
|
+
|
8
|
+
Open3.popen3("kill #{ARGV.join(' ')}") do |stdin, stdout, stderr|
|
9
|
+
msg = stderr.read
|
10
|
+
if msg =~ /kill: illegal process id: kill/
|
11
|
+
puts 'death: illegal process id: kill'
|
12
|
+
else
|
13
|
+
puts "#{msg.gsub(/kill/, 'death')}"
|
14
|
+
end
|
15
|
+
end
|
data/death.gemspec
CHANGED
@@ -7,8 +7,8 @@ Gem::Specification.new do |s|
|
|
7
7
|
s.version = Death::VERSION
|
8
8
|
|
9
9
|
s.authors = ["ITO Koichi"]
|
10
|
-
s.date = "2012-04-
|
11
|
-
s.description = %q{kill command wrapper. say "DEATH" with death voice. Operating environment is
|
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
12
|
s.email = %q{koic.ito@gmail.com}
|
13
13
|
s.extra_rdoc_files = [
|
14
14
|
"README.rdoc"
|
data/lib/death/version.rb
CHANGED
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
|
+
version: 0.4.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,14 +9,14 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-04-
|
13
|
-
default_executable:
|
12
|
+
date: 2012-04-19 00:00:00.000000000 Z
|
14
13
|
dependencies: []
|
15
14
|
description: kill command wrapper. say "DEATH" with death voice. Operating environment
|
16
|
-
is
|
15
|
+
is Mac OS X only.
|
17
16
|
email: koic.ito@gmail.com
|
18
17
|
executables:
|
19
18
|
- death
|
19
|
+
- lml
|
20
20
|
extensions: []
|
21
21
|
extra_rdoc_files:
|
22
22
|
- README.rdoc
|
@@ -26,7 +26,8 @@ files:
|
|
26
26
|
- bin/death
|
27
27
|
- death.gemspec
|
28
28
|
- LICENSE
|
29
|
-
|
29
|
+
- !binary |-
|
30
|
+
YmluL2xtbA==
|
30
31
|
homepage: http://github.com/koic/death-command
|
31
32
|
licenses: []
|
32
33
|
post_install_message:
|
@@ -47,7 +48,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
47
48
|
version: '0'
|
48
49
|
requirements: []
|
49
50
|
rubyforge_project:
|
50
|
-
rubygems_version: 1.
|
51
|
+
rubygems_version: 1.8.21
|
51
52
|
signing_key:
|
52
53
|
specification_version: 3
|
53
54
|
summary: kill command wrapper. say "DEATH" with death voice.
|