domotics-core 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/domotics/core/server.rb +4 -4
- data/lib/domotics/core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cba0e62ef72ca6f4ec6d2e447b7c638756e90d94
|
4
|
+
data.tar.gz: 17ae8e492429b4d408bb9d2e7a5ccdd9a4d76d6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60e225476db67fcbe195379c7581402856a7edb60030b1f254ab13a6aca676fce3033daa7eb8ec235fc5a054ea1f60e4cacdcd27ea21a222f5c52e6da724462e
|
7
|
+
data.tar.gz: 89f6c92adda473ba4440d873d4a3a8707460e0ae95681094cf66f150c09c357fe1f0aa7071d632dd846c7a166a1ee353ff47eb7ab7b91c5e4584fb41e18b7ff8
|
data/lib/domotics/core/server.rb
CHANGED
@@ -2,8 +2,6 @@ module Domotics::Core
|
|
2
2
|
class Server
|
3
3
|
def initialize(args = {})
|
4
4
|
@logger = Domotics::Core::Setup.logger || Logger.new(STDERR)
|
5
|
-
@args = {}
|
6
|
-
@args[:Host], @args[:Port] = args[:host], args[:port]
|
7
5
|
end
|
8
6
|
def call(env)
|
9
7
|
# [object]/[action]/[params]
|
@@ -38,8 +36,10 @@ module Domotics::Core
|
|
38
36
|
end
|
39
37
|
end
|
40
38
|
|
41
|
-
def run
|
42
|
-
|
39
|
+
def self.run(args = {})
|
40
|
+
Thread.new do
|
41
|
+
Rack::Handler::Thin.run self.new, args
|
42
|
+
end
|
43
43
|
end
|
44
44
|
|
45
45
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: domotics-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- goredar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: domotics-arduino
|