ruby-watchcat-pure 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/watchcat.rb +7 -6
- metadata +16 -7
data/lib/watchcat.rb
CHANGED
@@ -13,7 +13,7 @@
|
|
13
13
|
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
14
14
|
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
15
15
|
#
|
16
|
-
# $Id
|
16
|
+
# $Id$
|
17
17
|
#++
|
18
18
|
|
19
19
|
# Pure-ruby version of libwcat.
|
@@ -99,15 +99,16 @@ class Watchcat
|
|
99
99
|
|
100
100
|
private
|
101
101
|
|
102
|
-
def signal_number(
|
103
|
-
case
|
102
|
+
def signal_number(signal)
|
103
|
+
case signal
|
104
104
|
when nil
|
105
|
-
|
105
|
+
DEFAULT_SIGNAL
|
106
106
|
when String
|
107
|
-
signal = Signal.list[
|
107
|
+
signal = Signal.list[signal.sub(/^SIG/, '')]
|
108
108
|
raise ArgumentError, "invalid signal name" if signal.nil?
|
109
|
+
signal
|
109
110
|
when Fixnum
|
110
|
-
signal
|
111
|
+
signal
|
111
112
|
else
|
112
113
|
raise ArgumentError, "signal must be an integer or a string"
|
113
114
|
end
|
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-watchcat-pure
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 1
|
7
|
+
- 1
|
8
|
+
- 1
|
9
|
+
version: 1.1.1
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- Andre Nathan
|
@@ -9,11 +14,11 @@ autorequire:
|
|
9
14
|
bindir: bin
|
10
15
|
cert_chain: []
|
11
16
|
|
12
|
-
date:
|
17
|
+
date: 2010-04-21 00:00:00 -03:00
|
13
18
|
default_executable:
|
14
19
|
dependencies: []
|
15
20
|
|
16
|
-
description: Ruby/Watchcat-Pure is a pure-ruby implementation of libwatchcat for the
|
21
|
+
description: " Ruby/Watchcat-Pure is a pure-ruby implementation of libwatchcat for the\n development of watchcatd-aware applications.\n"
|
17
22
|
email: andre@digirati.com.br
|
18
23
|
executables: []
|
19
24
|
|
@@ -27,6 +32,8 @@ files:
|
|
27
32
|
- examples/example.rb
|
28
33
|
has_rdoc: true
|
29
34
|
homepage: http://watchcat.rubyforge.org
|
35
|
+
licenses: []
|
36
|
+
|
30
37
|
post_install_message:
|
31
38
|
rdoc_options:
|
32
39
|
- --title
|
@@ -38,20 +45,22 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
38
45
|
requirements:
|
39
46
|
- - ">="
|
40
47
|
- !ruby/object:Gem::Version
|
48
|
+
segments:
|
49
|
+
- 0
|
41
50
|
version: "0"
|
42
|
-
version:
|
43
51
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
44
52
|
requirements:
|
45
53
|
- - ">="
|
46
54
|
- !ruby/object:Gem::Version
|
55
|
+
segments:
|
56
|
+
- 0
|
47
57
|
version: "0"
|
48
|
-
version:
|
49
58
|
requirements:
|
50
59
|
- watchcatd
|
51
60
|
rubyforge_project: ruby-watchcat
|
52
|
-
rubygems_version: 1.
|
61
|
+
rubygems_version: 1.3.6
|
53
62
|
signing_key:
|
54
|
-
specification_version:
|
63
|
+
specification_version: 3
|
55
64
|
summary: A pure-ruby implementation of libwatchcat
|
56
65
|
test_files: []
|
57
66
|
|