ruby-watchcat-pure 1.1.0 → 1.1.1

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.
Files changed (2) hide show
  1. data/lib/watchcat.rb +7 -6
  2. 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: watchcat.rb 29 2008-08-29 18:52:47Z andre $
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(value)
103
- case value
102
+ def signal_number(signal)
103
+ case signal
104
104
  when nil
105
- signal = DEFAULT_SIGNAL
105
+ DEFAULT_SIGNAL
106
106
  when String
107
- signal = Signal.list[args[:signal].sub(/^SIG/, '')]
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 = args[: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
- version: 1.1.0
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: 2008-08-29 00:00:00 -03:00
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 development of watchcatd-aware applications.
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.0.0
61
+ rubygems_version: 1.3.6
53
62
  signing_key:
54
- specification_version: 2
63
+ specification_version: 3
55
64
  summary: A pure-ruby implementation of libwatchcat
56
65
  test_files: []
57
66