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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d31d71816c9455bade9c824b113015a28910e2d6
4
- data.tar.gz: 05587d42ffd80c7c24a82397293e9f47a9971715
3
+ metadata.gz: cba0e62ef72ca6f4ec6d2e447b7c638756e90d94
4
+ data.tar.gz: 17ae8e492429b4d408bb9d2e7a5ccdd9a4d76d6d
5
5
  SHA512:
6
- metadata.gz: 79d8973f4ea95522a1398e06532642858a7379abf44181a7819aae2988b4b8ed9feb0ca3af9336fb8470d59b545722dde781008bffbc0a85fa2e11929b96a153
7
- data.tar.gz: e210292eb529442ab3d7de20dc706e2fd320207064c0b25fdcbdb951b0cf1542e42599519989f22c01c0a833d46993c668823a00b41472fdbc66f5796205d180
6
+ metadata.gz: 60e225476db67fcbe195379c7581402856a7edb60030b1f254ab13a6aca676fce3033daa7eb8ec235fc5a054ea1f60e4cacdcd27ea21a222f5c52e6da724462e
7
+ data.tar.gz: 89f6c92adda473ba4440d873d4a3a8707460e0ae95681094cf66f150c09c357fe1f0aa7071d632dd846c7a166a1ee353ff47eb7ab7b91c5e4584fb41e18b7ff8
@@ -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
- Rack::Handler::Thin.run Rack::Builder.new{ run Domotics::Core::Server.new }, @args
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
@@ -1,6 +1,6 @@
1
1
  module Domotics
2
2
  module Core
3
- VERSION = "0.2.1"
3
+ VERSION = "0.2.2"
4
4
  end
5
5
  end
6
6
 
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.1
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-02 00:00:00.000000000 Z
11
+ date: 2014-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: domotics-arduino