tlapse 0.2.0 → 0.2.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.
- checksums.yaml +4 -4
- data/bin/tlapse +1 -1
- data/lib/tlapse/server.rb +30 -0
- data/lib/tlapse/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 939a7540b5657bfd54ef7b114791b0565621fe49
|
4
|
+
data.tar.gz: b15cef8e776be3792d14bbff5bf3711b60d50e22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d2f7264d7fb1437b4b6afcb739a1088c84cd4497477f3d371a2975b4a847b4eb8a41b9791edbb9dafa3d2f327f9d7737144a51399b591f677929b55c7d051c5
|
7
|
+
data.tar.gz: 9f491fa7c62c2959fd0b57778e36cd350348b559401d874f276760bded4f4729c53b86bc8acdeb661944ee5d7dec72b093bad35a108785088f774c31fda9022b
|
data/bin/tlapse
CHANGED
@@ -0,0 +1,30 @@
|
|
1
|
+
require "drb"
|
2
|
+
|
3
|
+
module Tlapse
|
4
|
+
class Server
|
5
|
+
attr_accessor :host, :port
|
6
|
+
|
7
|
+
def initialize(host: "localhost", port: 9000)
|
8
|
+
@host = host
|
9
|
+
@port = port
|
10
|
+
end
|
11
|
+
|
12
|
+
def serve
|
13
|
+
DRb.start_service full_host, drb_object
|
14
|
+
DRb.thread.join # wait for commands
|
15
|
+
end
|
16
|
+
|
17
|
+
def full_host
|
18
|
+
"druby://#{@host}:#{@port}"
|
19
|
+
end
|
20
|
+
|
21
|
+
private ###################################################################
|
22
|
+
|
23
|
+
def drb_object
|
24
|
+
obj = Object.new
|
25
|
+
obj.extend Tlapse::Doctor
|
26
|
+
obj.extend Tlapse::Capture
|
27
|
+
obj
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
data/lib/tlapse/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tlapse
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Toniazzo
|
@@ -102,6 +102,7 @@ files:
|
|
102
102
|
- lib/tlapse.rb
|
103
103
|
- lib/tlapse/capture.rb
|
104
104
|
- lib/tlapse/doctor.rb
|
105
|
+
- lib/tlapse/server.rb
|
105
106
|
- lib/tlapse/version.rb
|
106
107
|
- lib/tlapse/video.rb
|
107
108
|
- tlapse.gemspec
|