ramaze 2009.01 → 2009.02
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/README.markdown +1 -1
- data/cache.yaml +7 -0
- data/doc/CHANGELOG +134 -0
- data/doc/readme_chunks/getting_help.txt +1 -1
- data/doc/tutorial/todolist.html +1 -1
- data/doc/tutorial/todolist.mkd +2 -2
- data/examples/app/wiktacular/template/html_layout.xhtml +1 -1
- data/lib/proto/view/index.xhtml +2 -2
- data/lib/ramaze/contrib/gettext/po.rb +23 -23
- data/lib/ramaze/controller/resolve.rb +1 -1
- data/lib/ramaze/current.rb +0 -59
- data/lib/ramaze/current/request.rb +11 -2
- data/lib/ramaze/current/session/flash.rb +1 -0
- data/lib/ramaze/helper/flash.rb +17 -2
- data/lib/ramaze/helper/paginate.rb +1 -1
- data/lib/ramaze/helper/redirect.rb +1 -1
- data/lib/ramaze/helper/user.rb +1 -1
- data/lib/ramaze/log/syslog.rb +36 -36
- data/lib/ramaze/snippets/ramaze/fiber.rb +3 -4
- data/lib/ramaze/tool/localize.rb +1 -1
- data/lib/ramaze/version.rb +1 -1
- data/rake_tasks/conf.rake +16 -2
- data/rake_tasks/gem.rake +1 -1
- data/ramaze.gemspec +4 -168
- data/spec/ramaze/log/syslog.rb +62 -59
- data/spec/ramaze/view/ezamar/external.xhtml +8 -0
- data/test.out +1588 -0
- metadata +24 -7
- data/ramaze-2008.11.gem +0 -0
data/README.markdown
CHANGED
data/cache.yaml
ADDED
data/doc/CHANGELOG
CHANGED
|
@@ -1,3 +1,137 @@
|
|
|
1
|
+
commit 8191be770086ec4741cb420765b39efcf419d3d2
|
|
2
|
+
Author: Pistos <gitsomegrace.5.pistos@geoshell.com>
|
|
3
|
+
Date: Fri Feb 13 22:24:58 2009 -0500
|
|
4
|
+
|
|
5
|
+
Added more to the post-install message.
|
|
6
|
+
|
|
7
|
+
commit 13f56f5e608e7f8a36acfde69858a2946f8eafe9
|
|
8
|
+
Author: Pistos <gitsomegrace.5.pistos@geoshell.com>
|
|
9
|
+
Date: Fri Feb 13 22:13:49 2009 -0500
|
|
10
|
+
|
|
11
|
+
Bumped version to 2009.02.
|
|
12
|
+
|
|
13
|
+
commit f73a2b3d6ee54b612fd411816940c991712c9dbe
|
|
14
|
+
Author: Pistos <gitsomegrace.5.pistos@geoshell.com>
|
|
15
|
+
Date: Fri Feb 13 22:13:19 2009 -0500
|
|
16
|
+
|
|
17
|
+
Freshened URLs throughout documentation and examples.
|
|
18
|
+
|
|
19
|
+
commit cda6f1e92e2b962c69041f22fa54a8116187ac42
|
|
20
|
+
Merge: 5b5cb75... 244b7a6...
|
|
21
|
+
Author: Pistos <gitsomegrace.5.pistos@geoshell.com>
|
|
22
|
+
Date: Fri Feb 13 21:25:00 2009 -0500
|
|
23
|
+
|
|
24
|
+
Merge branch 'master' of git://github.com/manveru/ramaze
|
|
25
|
+
|
|
26
|
+
commit 244b7a6e97ea1c196e9a3302d43c98e5de469843
|
|
27
|
+
Author: Michael Fellinger <m.fellinger@gmail.com>
|
|
28
|
+
Date: Fri Feb 13 15:40:48 2009 +0900
|
|
29
|
+
|
|
30
|
+
Fix strange behaviour when using Fiber
|
|
31
|
+
|
|
32
|
+
commit 947f1c6e6ca8b670d9d6541c03f5bbba042b0d4c
|
|
33
|
+
Author: Michael Fellinger <m.fellinger@gmail.com>
|
|
34
|
+
Date: Fri Feb 13 15:40:30 2009 +0900
|
|
35
|
+
|
|
36
|
+
Remove cruft
|
|
37
|
+
|
|
38
|
+
commit 4a2cb9d2908e8c252fa82533b0ff1bc302bee62e
|
|
39
|
+
Author: Michael Fellinger <m.fellinger@gmail.com>
|
|
40
|
+
Date: Tue Feb 10 10:33:43 2009 +0900
|
|
41
|
+
|
|
42
|
+
Fix typo
|
|
43
|
+
|
|
44
|
+
commit e8a062f35716327ad46247cb04b4e0a6b0ac56cb
|
|
45
|
+
Author: Michael Fellinger <m.fellinger@gmail.com>
|
|
46
|
+
Date: Sun Feb 8 13:55:27 2009 +0900
|
|
47
|
+
|
|
48
|
+
Fix Tool::Localize, would mess up body on 1.9
|
|
49
|
+
|
|
50
|
+
commit 5b5cb750bd81e635c347b81eed1b4a90bc5c44ed
|
|
51
|
+
Merge: 73419a5... 59ac9f6...
|
|
52
|
+
Author: Pistos <gitsomegrace.5.pistos@geoshell.com>
|
|
53
|
+
Date: Thu Feb 5 23:08:07 2009 -0500
|
|
54
|
+
|
|
55
|
+
Merge branch 'master' of git://github.com/manveru/ramaze
|
|
56
|
+
|
|
57
|
+
commit 59ac9f647e548fb62472df6e8d5f02ced09b9681
|
|
58
|
+
Author: Michael Fellinger <m.fellinger@gmail.com>
|
|
59
|
+
Date: Wed Feb 4 22:40:59 2009 +0900
|
|
60
|
+
|
|
61
|
+
engine should be inherited
|
|
62
|
+
|
|
63
|
+
commit 73419a572f1feca51fd70eb087bd5fda680ecae2
|
|
64
|
+
Author: Pistos <gitsomegrace.5.pistos@geoshell.com>
|
|
65
|
+
Date: Thu Jan 29 19:18:07 2009 -0500
|
|
66
|
+
|
|
67
|
+
Updated copyright years in README and version.rb.
|
|
68
|
+
|
|
69
|
+
commit 213d7021a2594bd04444c3a1c5c19caecee97a1a
|
|
70
|
+
Merge: 3c92cd3... 76c8b4a...
|
|
71
|
+
Author: Pistos <gitsomegrace.5.pistos@geoshell.com>
|
|
72
|
+
Date: Thu Jan 29 19:15:23 2009 -0500
|
|
73
|
+
|
|
74
|
+
Merge branch 'master' of git://github.com/manveru/ramaze
|
|
75
|
+
|
|
76
|
+
commit 76c8b4a5968b17baa9d086bf56f619622348a2d7
|
|
77
|
+
Author: Michael Fellinger <m.fellinger@gmail.com>
|
|
78
|
+
Date: Sun Jan 25 03:06:33 2009 +0900
|
|
79
|
+
|
|
80
|
+
Show more examples of configuring flashbox
|
|
81
|
+
|
|
82
|
+
commit ec0ab78612d01c0b4044da7147ee8a1ec0204290
|
|
83
|
+
Author: Michael Fellinger <m.fellinger@gmail.com>
|
|
84
|
+
Date: Sun Jan 25 02:41:39 2009 +0900
|
|
85
|
+
|
|
86
|
+
Fix bug uncovered by innate specs
|
|
87
|
+
|
|
88
|
+
commit 3c92cd35eb153244e47990eeb84297e94ef02d39
|
|
89
|
+
Merge: d5d3aeb... 01ad163...
|
|
90
|
+
Author: Pistos <gitsomegrace.5.pistos@geoshell.com>
|
|
91
|
+
Date: Mon Jan 19 13:59:59 2009 -0500
|
|
92
|
+
|
|
93
|
+
Merge branch 'master' of git@github.com:Pistos/ramaze
|
|
94
|
+
|
|
95
|
+
commit 01ad163a53942bbf9b23cf70c4fd5c69090e7fe9
|
|
96
|
+
Merge: 674943e... 23592e3...
|
|
97
|
+
Author: Pistos <gitsomegrace.5.pistos@geoshell.com>
|
|
98
|
+
Date: Mon Jan 19 14:07:51 2009 -0500
|
|
99
|
+
|
|
100
|
+
Merge branch 'master' of git://github.com/manveru/ramaze
|
|
101
|
+
|
|
102
|
+
commit d5d3aeb141596cf6159644dd7a4b9e7fe8d83a72
|
|
103
|
+
Merge: 69bd599... 23592e3...
|
|
104
|
+
Author: Pistos <gitsomegrace.5.pistos@geoshell.com>
|
|
105
|
+
Date: Mon Jan 19 13:36:53 2009 -0500
|
|
106
|
+
|
|
107
|
+
Merge branch 'master' of git://github.com/manveru/ramaze
|
|
108
|
+
|
|
109
|
+
commit 23592e37557128fc1066b59b73bc526168e43e5a
|
|
110
|
+
Author: Michael Fellinger <m.fellinger@gmail.com>
|
|
111
|
+
Date: Fri Jan 16 11:59:00 2009 +0900
|
|
112
|
+
|
|
113
|
+
s/\t/ /g
|
|
114
|
+
|
|
115
|
+
commit b0a5bccc768981c85f8fa395d59441c531517606
|
|
116
|
+
Author: sean <sean@sean-t61p.(none)>
|
|
117
|
+
Date: Fri Sep 12 02:27:20 2008 -0400
|
|
118
|
+
|
|
119
|
+
fixed https redirect
|
|
120
|
+
|
|
121
|
+
commit 7be54038cc81d9ce4051a82b489b732d3eda5323
|
|
122
|
+
Author: Michael Fellinger <m.fellinger@gmail.com>
|
|
123
|
+
Date: Tue Jan 13 23:43:03 2009 +0900
|
|
124
|
+
|
|
125
|
+
Update gemspec
|
|
126
|
+
|
|
127
|
+
commit 6b10ef8bae15b3d626d3d2745b85c2e879e5c8eb
|
|
128
|
+
Author: Pistos <gitsomegrace.5.pistos@geoshell.com>
|
|
129
|
+
Date: Mon Jan 12 23:59:58 2009 +0800
|
|
130
|
+
|
|
131
|
+
Updated Ramaze::VERSION to 2009.01.
|
|
132
|
+
|
|
133
|
+
Signed-off-by: Michael Fellinger <m.fellinger@gmail.com>
|
|
134
|
+
|
|
1
135
|
commit 69bd599a5eb0ca96f1c99de9cf87a3c6ca4018a6
|
|
2
136
|
Merge: 701211d... 674943e...
|
|
3
137
|
Author: Pistos <gitsomegrace.5.pistos@geoshell.com>
|
data/doc/tutorial/todolist.html
CHANGED
|
@@ -92,7 +92,7 @@ pre.iplastic .RegularExpression {
|
|
|
92
92
|
|
|
93
93
|
<p>Welcome to our official tutorial, the mandatory to-do list. I’m writing this while doing the steps to assure it will work for you.</p>
|
|
94
94
|
|
|
95
|
-
<p>The tutorial assumes that you have Ramaze installed already. The easiest way to do that is <code>gem install ramaze</code>, for other ways of installation please see the documentation at http://ramaze.
|
|
95
|
+
<p>The tutorial assumes that you have Ramaze installed already. The easiest way to do that is <code>gem install ramaze</code>, for other ways of installation please see the documentation at http://ramaze.net</p>
|
|
96
96
|
|
|
97
97
|
<p>Should you encounter any problems while doing this tutorial, this might either be because Ramaze changed (which happens very often while it is still young) or I actually made some mistake while writing it.</p>
|
|
98
98
|
|
data/doc/tutorial/todolist.mkd
CHANGED
|
@@ -14,7 +14,7 @@ I'm writing this while doing the steps to assure it will work for you.
|
|
|
14
14
|
|
|
15
15
|
The tutorial assumes that you have Ramaze installed already. The easiest way to
|
|
16
16
|
do that is `gem install ramaze`, for other ways of installation please see the
|
|
17
|
-
documentation at http://ramaze.
|
|
17
|
+
documentation at http://ramaze.net .
|
|
18
18
|
|
|
19
19
|
Should you encounter any problems while doing this tutorial, this might either
|
|
20
20
|
be because Ramaze changed (which happens very often while it is still young)
|
|
@@ -368,7 +368,7 @@ will translate into:
|
|
|
368
368
|
open('Wash dishes')
|
|
369
369
|
{:lang=ruby}
|
|
370
370
|
|
|
371
|
-
Which in turn will call
|
|
371
|
+
Which in turn will call
|
|
372
372
|
|
|
373
373
|
task_status('Wash dishes', false)
|
|
374
374
|
{:lang=ruby}
|
|
@@ -22,6 +22,6 @@
|
|
|
22
22
|
<div id="content">
|
|
23
23
|
#@content
|
|
24
24
|
</div>
|
|
25
|
-
<div id="copyright">Wiktacular is powered by <a href="http://ramaze.
|
|
25
|
+
<div id="copyright">Wiktacular is powered by <a href="http://ramaze.net">Ramaze</a></div>
|
|
26
26
|
</body>
|
|
27
27
|
</html>
|
data/lib/proto/view/index.xhtml
CHANGED
|
@@ -16,11 +16,11 @@ working.</p>
|
|
|
16
16
|
</ol>
|
|
17
17
|
</p>
|
|
18
18
|
|
|
19
|
-
<p>For more documentation, check out <a href="http://ramaze.net">
|
|
19
|
+
<p>For more documentation, check out <a href="http://ramaze.net">ramaze.net</a>, which includes:
|
|
20
20
|
<ul>
|
|
21
21
|
<li>a <a href="http://ramaze.net/getting-started">getting started</a> guide</li>
|
|
22
22
|
<li>some <a href="http://ramaze.net/screencasts">screencasts</a></li>
|
|
23
|
-
<li>and
|
|
23
|
+
<li>and <a href="http://wiki.ramaze.net/Tutorials">tutorials</a></li>
|
|
24
24
|
</ul>
|
|
25
25
|
</p>
|
|
26
26
|
|
|
@@ -52,22 +52,22 @@ EOS
|
|
|
52
52
|
str = ""
|
|
53
53
|
result = Array.new
|
|
54
54
|
ary.each do |key|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
55
|
+
msgid = key.shift.dup
|
|
56
|
+
curr_pos = MAX_LINE_LEN
|
|
57
|
+
key.each do |e|
|
|
58
|
+
if curr_pos + e.size > MAX_LINE_LEN
|
|
59
|
+
str << "\n#:"
|
|
60
|
+
curr_pos = 3
|
|
61
|
+
else
|
|
62
|
+
curr_pos += (e.size + 1)
|
|
63
|
+
end
|
|
64
|
+
str << " " << e
|
|
65
|
+
end
|
|
66
|
+
msgid.gsub!(/"/, '\"')
|
|
67
|
+
msgid.gsub!(/\r/, '')
|
|
68
|
+
|
|
69
|
+
str << "\nmsgid \"" << msgid << "\"\n"
|
|
70
|
+
str << "msgstr \"\"\n"
|
|
71
71
|
end
|
|
72
72
|
str
|
|
73
73
|
end
|
|
@@ -81,15 +81,15 @@ EOS
|
|
|
81
81
|
msgstr = hash[msgid]
|
|
82
82
|
|
|
83
83
|
msgid.gsub!(/"/, '\"')
|
|
84
|
-
|
|
84
|
+
msgid.gsub!(/\r/, '')
|
|
85
85
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
86
|
+
if msgstr
|
|
87
|
+
msgstr.gsub!(/"/, '\"')
|
|
88
|
+
msgstr.gsub!(/\r/, '')
|
|
89
|
+
end
|
|
90
90
|
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
str << "\nmsgid \"" << msgid << "\"\n"
|
|
92
|
+
str << "msgstr \"" << msgstr << "\"\n"
|
|
93
93
|
end
|
|
94
94
|
|
|
95
95
|
str
|
|
@@ -244,7 +244,7 @@ module Ramaze
|
|
|
244
244
|
t_extensions = Template::ENGINES
|
|
245
245
|
all_extensions = t_extensions.values.flatten
|
|
246
246
|
|
|
247
|
-
if engine =
|
|
247
|
+
if engine = ancestral_trait[:engine]
|
|
248
248
|
c_extensions = t_extensions.select{|k,v| k == engine}.map{|k,v| v}.flatten
|
|
249
249
|
return (c_extensions + all_extensions).uniq
|
|
250
250
|
end
|
data/lib/ramaze/current.rb
CHANGED
|
@@ -49,62 +49,3 @@ module Ramaze
|
|
|
49
49
|
end
|
|
50
50
|
end
|
|
51
51
|
end
|
|
52
|
-
__END__
|
|
53
|
-
|
|
54
|
-
module Current
|
|
55
|
-
class << self
|
|
56
|
-
include Trinity
|
|
57
|
-
|
|
58
|
-
def call(env)
|
|
59
|
-
setup(env)
|
|
60
|
-
before_call
|
|
61
|
-
|
|
62
|
-
if filter = Global.record
|
|
63
|
-
request = Current.request
|
|
64
|
-
Record << request if filter[request]
|
|
65
|
-
end
|
|
66
|
-
|
|
67
|
-
Dispatcher.handle
|
|
68
|
-
|
|
69
|
-
finish
|
|
70
|
-
ensure
|
|
71
|
-
after_call
|
|
72
|
-
end
|
|
73
|
-
|
|
74
|
-
def setup(env)
|
|
75
|
-
self.request = Request.new(env)
|
|
76
|
-
self.response = Response.new
|
|
77
|
-
self.session = Session.new
|
|
78
|
-
end
|
|
79
|
-
|
|
80
|
-
def finish
|
|
81
|
-
session.finish if session
|
|
82
|
-
response.finish
|
|
83
|
-
end
|
|
84
|
-
|
|
85
|
-
def before(&block)
|
|
86
|
-
@before = block_given? ? block : @before
|
|
87
|
-
end
|
|
88
|
-
|
|
89
|
-
def before_call
|
|
90
|
-
return unless before
|
|
91
|
-
before.call
|
|
92
|
-
rescue Object => e
|
|
93
|
-
Ramaze::Log.error e
|
|
94
|
-
raise e
|
|
95
|
-
end
|
|
96
|
-
|
|
97
|
-
def after(&block)
|
|
98
|
-
@after = block_given? ? block : @after
|
|
99
|
-
end
|
|
100
|
-
|
|
101
|
-
def after_call
|
|
102
|
-
return unless after
|
|
103
|
-
after.call
|
|
104
|
-
rescue Object => e
|
|
105
|
-
Ramaze::Log.error e
|
|
106
|
-
raise e
|
|
107
|
-
end
|
|
108
|
-
end
|
|
109
|
-
end
|
|
110
|
-
end
|
|
@@ -206,10 +206,19 @@ module Ramaze
|
|
|
206
206
|
params.reject{|k,v| not keys.include?(k) }
|
|
207
207
|
end
|
|
208
208
|
|
|
209
|
+
# Is this an SSL request?
|
|
210
|
+
def ssl?
|
|
211
|
+
env['HTTPS'] == 'on' || env['HTTP_X_FORWARDED_PROTO'] == 'https'
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
# Returns 'https' if this is an SSL request and 'http' otherwise.
|
|
215
|
+
def protocol
|
|
216
|
+
ssl? ? 'https' : 'http'
|
|
217
|
+
end
|
|
218
|
+
|
|
209
219
|
def domain(path = '/')
|
|
210
|
-
scheme = env['rack.url_scheme'] || 'http'
|
|
211
220
|
host = env['HTTP_HOST']
|
|
212
|
-
URI("#{
|
|
221
|
+
URI("#{protocol}://#{host}#{path}")
|
|
213
222
|
end
|
|
214
223
|
|
|
215
224
|
# Returns and array of locales from env['HTTP_ACCEPT_LANGUAGE].
|
data/lib/ramaze/helper/flash.rb
CHANGED
|
@@ -41,9 +41,24 @@ module Ramaze
|
|
|
41
41
|
# <div class='flash' id='flash_error'>Please enter your name</div>
|
|
42
42
|
# <div class='flash' id='flash_info'>Do you see the fnords?</div>
|
|
43
43
|
#
|
|
44
|
-
# This is designed to be customized permanently or per usage:
|
|
45
44
|
#
|
|
46
|
-
#
|
|
45
|
+
# This can be customized permanently in your controller:
|
|
46
|
+
#
|
|
47
|
+
# class MainController < Ramaze::Controller
|
|
48
|
+
# trait :flashbox => "<div class='flash_%key'>%value</div>"
|
|
49
|
+
#
|
|
50
|
+
# def show_flashbox
|
|
51
|
+
# flashbox
|
|
52
|
+
# end
|
|
53
|
+
# end
|
|
54
|
+
#
|
|
55
|
+
# or on a per-usage basis in your action:
|
|
56
|
+
#
|
|
57
|
+
# class MainController < Ramaze::Controller
|
|
58
|
+
# def show_flashbox
|
|
59
|
+
# flashbox("<div class='flash_%key'>%value</div>")
|
|
60
|
+
# end
|
|
61
|
+
# end
|
|
47
62
|
#
|
|
48
63
|
# Where any occurrence of %key and %value will be replaced by the actual
|
|
49
64
|
# contents of each element of flash
|
data/lib/ramaze/helper/user.rb
CHANGED
data/lib/ramaze/log/syslog.rb
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c)
|
|
1
|
+
# Copyright (c) 2009 Michael Fellinger m.fellinger@gmail.com
|
|
2
2
|
# Copyright (c) 2008 rob@rebeltechnologies.nl
|
|
3
3
|
# All files in this distribution are subject to the terms of the Ruby license.
|
|
4
4
|
|
|
@@ -6,46 +6,46 @@ require 'syslog'
|
|
|
6
6
|
|
|
7
7
|
# Add aliases for the levelnames used by Ramaze logging
|
|
8
8
|
module Syslog
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
alias dev debug
|
|
10
|
+
alias warn warning
|
|
11
|
+
alias error err
|
|
12
|
+
module_function :dev, :warn, :error
|
|
13
13
|
end
|
|
14
14
|
|
|
15
15
|
module Ramaze
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
module Logger
|
|
17
|
+
# Logger class for writing to syslog. It is a *very* thin wrapper
|
|
18
|
+
# around the Syslog library.
|
|
19
|
+
class Syslog
|
|
20
|
+
include Logging
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
22
|
+
# Open the syslog library, if it is allready open, we reopen it using the
|
|
23
|
+
# new argument list. The argument list is passed on to the Syslog library
|
|
24
|
+
# so please check that, and man syslog for detailed information.
|
|
25
|
+
# There are 3 parameters:
|
|
26
|
+
#
|
|
27
|
+
# ident: The identification used in the log file, defaults to $0
|
|
28
|
+
# options: defaults to Syslog::LOG_PID | Syslog::LOG_CONS
|
|
29
|
+
# facility: defaults to Syslog::LOG_USER
|
|
30
|
+
#
|
|
31
|
+
def initialize( *args )
|
|
32
|
+
::Syslog.close if ::Syslog.opened?
|
|
33
|
+
::Syslog.open( *args )
|
|
34
|
+
end
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
36
|
+
# just sends all messages received to ::Syslog
|
|
37
|
+
# We simply return if the log was closed for some reason, this behavior
|
|
38
|
+
# was copied from Informer. We do not handle levels here. This will
|
|
39
|
+
# be done by te syslog daemon based on it's configuration.
|
|
40
|
+
def log(tag, *messages)
|
|
41
|
+
return if !::Syslog.opened?
|
|
42
|
+
::Syslog.send(tag, *messages)
|
|
43
|
+
end
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
end
|
|
45
|
+
# Has to call the modules singleton-method.
|
|
46
|
+
def inspect
|
|
47
|
+
::Syslog.inspect
|
|
48
|
+
end
|
|
50
49
|
end
|
|
50
|
+
end
|
|
51
51
|
end
|