senotrusov-ruby-daemonic-threads 1.0.3 → 1.0.5
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.
|
@@ -59,7 +59,10 @@ module DaemonicThreads::HTTP::Daemon
|
|
|
59
59
|
|
|
60
60
|
log(:debug) { "HTTP REQUEST -- ACTION: #{action.inspect} FORMAT: #{request.requested_format} PARAMS: #{request.params.inspect}" }
|
|
61
61
|
|
|
62
|
-
|
|
62
|
+
unless respond_to?(action)
|
|
63
|
+
return request.error(404, "There is no such action")
|
|
64
|
+
end
|
|
65
|
+
|
|
63
66
|
begin
|
|
64
67
|
result = __send__(action, request)
|
|
65
68
|
request.response(result) unless request.response_sent?
|
|
@@ -73,8 +73,6 @@ module DaemonicThreads::Prototype
|
|
|
73
73
|
@creatures_mutex = Mutex.new
|
|
74
74
|
@stop_condition = ConditionVariable.new
|
|
75
75
|
@must_terminate = false
|
|
76
|
-
|
|
77
|
-
initialize_http if respond_to?(:initialize_http)
|
|
78
76
|
end
|
|
79
77
|
|
|
80
78
|
attr_reader :logger
|
|
@@ -110,6 +108,7 @@ module DaemonicThreads::Prototype
|
|
|
110
108
|
|
|
111
109
|
def perform_initialize_daemon(*args)
|
|
112
110
|
initialize_daemon(*args) if respond_to? :initialize_daemon
|
|
111
|
+
initialize_http if respond_to?(:initialize_http)
|
|
113
112
|
end
|
|
114
113
|
|
|
115
114
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: senotrusov-ruby-daemonic-threads
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stanislav Senotrusov
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2009-
|
|
12
|
+
date: 2009-08-01 00:00:00 -07:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|