liveblog-plugin-sps 0.1.0
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 +7 -0
- checksums.yaml.gz.sig +3 -0
- data.tar.gz.sig +0 -0
- data/lib/liveblog-plugin-sps.rb +35 -0
- metadata +88 -0
- metadata.gz.sig +0 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6eaa9d9edf6f372d4dec2b86096757fba3830c13
|
4
|
+
data.tar.gz: 51c5d2fa4cd7f0a0b79e85cde03767cd2339c4e4
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c5330fef26492cb824a225ada55d15d5a78947ec764aa81ca63106f586e960bd5b9523de845b4e43f5937a91ce56d6be6679b82075afe034e8cf91946c49e381
|
7
|
+
data.tar.gz: 76708b057c65caa2851465ee0c88ee1727bb0005e2b3ab0cd1352ab84605ccab68c6026fb9fd184afedf32307ef8037297a7ff06cfcce3303c39cdfcc40b173a
|
checksums.yaml.gz.sig
ADDED
data.tar.gz.sig
ADDED
Binary file
|
@@ -0,0 +1,35 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
# file: liveblog-plugin-sps.rb
|
4
|
+
|
5
|
+
require 'sps-pub'
|
6
|
+
|
7
|
+
class LiveBlogPluginSps
|
8
|
+
|
9
|
+
def initialize(settings: {}, variables: {})
|
10
|
+
|
11
|
+
set = {address: 'localhost', port: 59000}.merge(settings)
|
12
|
+
address, port = set[:address], set[:port]
|
13
|
+
@sps = SPSPub.new(address: address, port: port)
|
14
|
+
|
15
|
+
end
|
16
|
+
|
17
|
+
def on_new_section(raw_entry, hashtag)
|
18
|
+
|
19
|
+
@sps.notice "liveblog/new_section: added %s" % [raw_entry]
|
20
|
+
|
21
|
+
end
|
22
|
+
|
23
|
+
def on_new_section_entry(raw_entry, hashtag)
|
24
|
+
|
25
|
+
@sps.notice "liveblog/new_section_entry: added %s" % [raw_entry]
|
26
|
+
|
27
|
+
end
|
28
|
+
|
29
|
+
def on_update_section(raw_entry, hashtag)
|
30
|
+
|
31
|
+
@sps.notice "liveblog/update_section: updated %s" % [raw_entry]
|
32
|
+
|
33
|
+
end
|
34
|
+
|
35
|
+
end
|
metadata
ADDED
@@ -0,0 +1,88 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: liveblog-plugin-sps
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- James Robertson
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain:
|
11
|
+
- |
|
12
|
+
-----BEGIN CERTIFICATE-----
|
13
|
+
MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
|
14
|
+
YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
|
15
|
+
8ixkARkWAmV1MB4XDTE1MDYxMTE4MDYyOFoXDTE2MDYxMDE4MDYyOFowSDESMBAG
|
16
|
+
A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
|
17
|
+
EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
|
18
|
+
ggEBANJHFDCiOAaHyLi0giJTEZ3uZ55uW93rGIBij/zhrtVdtNS+Fk5XmsSDea5g
|
19
|
+
B6261VRQwz6EoGwEHR/SBS+H1MCsCQ+xiG3nVV4siw1cy/QSgW4DUYeNNqHsIPgD
|
20
|
+
GIyQerz4Z0e1H+KSKv4J4Zf2oR+n/EAUA4vcHJZM4sCK/SL3y9PQOiKG0+UFggiS
|
21
|
+
gUY4TkD6KTBrwgboY78Enrt+wj603a6kya33l8r6WPRArfWiLnQ9Pb5j/sDZVwqf
|
22
|
+
EPU9SwvvTv55Ar5iUpbCnYIgm9dSLWsnRbyIWDpYSyVDpWCrS7gP9U0GmFU5EBEU
|
23
|
+
EDyWHtfcERnoQ+Vt40wA90eJtakCAwEAAaOBijCBhzAJBgNVHRMEAjAAMAsGA1Ud
|
24
|
+
DwQEAwIEsDAdBgNVHQ4EFgQUqhYTKMOgF3nNU4AkrPxAAThM+iUwJgYDVR0RBB8w
|
25
|
+
HYEbZ2VtbWFzdGVyQGphbWVzcm9iZXJ0c29uLmV1MCYGA1UdEgQfMB2BG2dlbW1h
|
26
|
+
c3RlckBqYW1lc3JvYmVydHNvbi5ldTANBgkqhkiG9w0BAQUFAAOCAQEAjO0sP9Um
|
27
|
+
ns8tVOh6wJEfoxQjddwrfIjI8IuSOBgfxk1pWjsTwwb7sQz7CMjc2VSriceJc3FJ
|
28
|
+
YaDPLu+achdD3GFGXKswzxJs2gPkzMyEDymXskRzy/Ng951YxcNuA2R3OVtAmher
|
29
|
+
2i4hYSpTAnBakemDmiHwLwq95yt6fUx0tDTZol8aJ+Z2Y7KRtusbhIWxJ01gz6pj
|
30
|
+
52P/dMCpX+buROfL1Cd8W78UpPmp6BspDy5s6pG2Hj5is3iTkmejZ2/ZIiGMcKUx
|
31
|
+
R2TvCdlVT3cgCV4OtSF8UBHdTfl6dqqf0UOzlSBxPDyZeLhpw3oFOogDfVX14a+f
|
32
|
+
Sereiagh4DZ6mw==
|
33
|
+
-----END CERTIFICATE-----
|
34
|
+
date: 2015-06-11 00:00:00.000000000 Z
|
35
|
+
dependencies:
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: sps-pub
|
38
|
+
requirement: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - "~>"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '0.4'
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 0.4.0
|
46
|
+
type: :runtime
|
47
|
+
prerelease: false
|
48
|
+
version_requirements: !ruby/object:Gem::Requirement
|
49
|
+
requirements:
|
50
|
+
- - "~>"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '0.4'
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: 0.4.0
|
56
|
+
description:
|
57
|
+
email: james@r0bertson.co.uk
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- lib/liveblog-plugin-sps.rb
|
63
|
+
homepage: https://github.com/jrobertson/liveblog-plugin-sps
|
64
|
+
licenses:
|
65
|
+
- MIT
|
66
|
+
metadata: {}
|
67
|
+
post_install_message:
|
68
|
+
rdoc_options: []
|
69
|
+
require_paths:
|
70
|
+
- lib
|
71
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
|
+
requirements:
|
78
|
+
- - ">="
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '0'
|
81
|
+
requirements: []
|
82
|
+
rubyforge_project:
|
83
|
+
rubygems_version: 2.4.6
|
84
|
+
signing_key:
|
85
|
+
specification_version: 4
|
86
|
+
summary: A LiveBlog plugin to publish a SimplePubSub message whenever the LiveBlog
|
87
|
+
is updated.
|
88
|
+
test_files: []
|
metadata.gz.sig
ADDED
Binary file
|