liveblog_drb_server 0.1.0 → 0.2.0

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: 2324f80e903cf4d0c2e16d4daf1f07db32b72688
4
- data.tar.gz: e49f8a6b55bf6a3fcb954953adcaca8021d77d5f
3
+ metadata.gz: b89ce8803015c28a978688cfdcbc22648b429b11
4
+ data.tar.gz: 030c433452803f7657059f6d1913ac05f33d92e5
5
5
  SHA512:
6
- metadata.gz: 30ae117122c2d461b57bea9575fb584daa349ad0401de32feee6c167daae9cef5d68588b6e17718a80526a6c8729876b2cc0396378c5d4401bbbb5b99ae58367
7
- data.tar.gz: 963708f27bd61923eb0d1121c8efdeab895cf26193798553acb361630f99a5cb6d11c8b358af41e0e04b58d5a7cdbabb1cce2eafa8baf427e1215cd948acdd80
6
+ metadata.gz: 3a7ff652cf23646144e0da202fd2adf8b88e02e84f1c8011d25e67e8745729e6fe2ef1c46ba22871c379fb278bf21c93669721a3d5276700f49f12e4b4637e8b
7
+ data.tar.gz: 7034ecc9a3c93835d16c18d7289c7fa40c81b8a2efa38aa7e7c4fbafc96c58c8f98651f367df72a4c7eba44c5c37d1715700aa7461681652724d9eefb8ce326c
checksums.yaml.gz.sig CHANGED
Binary file
@@ -7,6 +7,43 @@ require 'drb'
7
7
  require 'liveblog'
8
8
 
9
9
 
10
+ class LiveBlogServer
11
+
12
+ def initialize(config)
13
+ @config = config
14
+ @lb = LiveBlog.new config
15
+ end
16
+
17
+ def add_entry(raw_entry)
18
+ @lb.add_entry raw_entry
19
+ end
20
+
21
+ def date()
22
+ @lb.date
23
+ end
24
+
25
+ def import(x=nil)
26
+ @lb.import x
27
+ end
28
+
29
+ def raw_view(tag)
30
+ @lb.raw_view tag
31
+ end
32
+
33
+ def restart()
34
+ @lb = LiveBlogServer.new @config
35
+ 'restarted'
36
+ end
37
+
38
+ def update(val)
39
+ @lb.update(val)
40
+ end
41
+
42
+ def valid_entry?(tag)
43
+ @lb.valid_entry?(tag)
44
+ end
45
+
46
+ end
10
47
 
11
48
  class LiveblogDRbServer
12
49
 
@@ -14,7 +51,7 @@ class LiveblogDRbServer
14
51
  config: '/tmp/liveblog/liveblog.conf')
15
52
 
16
53
  @host, @port = host, port
17
- @lb = LiveBlog.new config: config
54
+ @lb = LiveBlogServer.new config
18
55
 
19
56
  end
20
57
 
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: liveblog_drb_server
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  tccZuCvre47BBg4yS/94euDGiJLoeXXDGKu8c2VImMb7kMTDqz/5v3NL9bd8oESX
32
32
  8Z9PZV41cBv//w==
33
33
  -----END CERTIFICATE-----
34
- date: 2017-01-19 00:00:00.000000000 Z
34
+ date: 2017-04-16 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: liveblog
@@ -42,7 +42,7 @@ dependencies:
42
42
  version: '1.2'
43
43
  - - ">="
44
44
  - !ruby/object:Gem::Version
45
- version: 1.2.4
45
+ version: 1.2.12
46
46
  type: :runtime
47
47
  prerelease: false
48
48
  version_requirements: !ruby/object:Gem::Requirement
@@ -52,7 +52,7 @@ dependencies:
52
52
  version: '1.2'
53
53
  - - ">="
54
54
  - !ruby/object:Gem::Version
55
- version: 1.2.4
55
+ version: 1.2.12
56
56
  description:
57
57
  email: james@jamesrobertson.eu
58
58
  executables: []
metadata.gz.sig CHANGED
Binary file