mymedia 0.2.4 → 0.2.5
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
- checksums.yaml.gz.sig +0 -0
- data/lib/mymedia.rb +12 -6
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e6bdb3d24c2160aab8fac9f131975590f0d75595
|
|
4
|
+
data.tar.gz: 9d3b6b82b46298229043c127f4e03a134e694bed
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bab3448c19a398b65a074e3e86a5741d370f669fe6ac782f6c200f3ba903c291f61d65e8b203d824672cedd7065a20ac47be56276d0f9ef94a21156f518234cd
|
|
7
|
+
data.tar.gz: 4e10f10a8f62f6744d2b762612b6205e616db7bd89ff8cf32fce0841f3461ac26164b182355ee2b176461a4cb9ba73b36a7aec0f312a9023e4b8fe92a7351b5a
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/lib/mymedia.rb
CHANGED
|
@@ -26,6 +26,8 @@ module MyMedia
|
|
|
26
26
|
@opts = opts
|
|
27
27
|
end
|
|
28
28
|
|
|
29
|
+
protected
|
|
30
|
+
|
|
29
31
|
def publish_dynarex(dynarex_filepath='', \
|
|
30
32
|
record={title: '',url: '', raw_url: ''}, options={})
|
|
31
33
|
|
|
@@ -64,7 +66,13 @@ module MyMedia
|
|
|
64
66
|
dataisland = DataIsland.new(template_path, @opts)
|
|
65
67
|
|
|
66
68
|
File.open(path2 + '/index.html','w'){|f| f.write dataisland.html_doc.xml pretty: true}
|
|
67
|
-
end
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
def send_message(topic: @sps[:default_subscriber], msg: msg)
|
|
72
|
+
|
|
73
|
+
fqm = "%s: %s" % [topic, msg]
|
|
74
|
+
SPSPub.notice fqm, address: @sps[:address]
|
|
75
|
+
end
|
|
68
76
|
|
|
69
77
|
end
|
|
70
78
|
|
|
@@ -237,11 +245,7 @@ module MyMedia
|
|
|
237
245
|
end
|
|
238
246
|
end
|
|
239
247
|
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
fqm = "%s: %s" % [topic, msg]
|
|
243
|
-
SPSPub.notice fqm, address: @sps[:address]
|
|
244
|
-
end
|
|
248
|
+
|
|
245
249
|
|
|
246
250
|
end
|
|
247
251
|
|
|
@@ -261,6 +265,7 @@ module MyMedia
|
|
|
261
265
|
@index_page = c[:index_page] == 'true'
|
|
262
266
|
@public_type = public_type
|
|
263
267
|
@rss = rss
|
|
268
|
+
@sps = c[:sps]
|
|
264
269
|
@opts = {username: c[:username], password: c[:password]}
|
|
265
270
|
|
|
266
271
|
end
|
|
@@ -309,5 +314,6 @@ module MyMedia
|
|
|
309
314
|
publish_dynarex(timeline_filepath, content, rss: true)
|
|
310
315
|
|
|
311
316
|
end
|
|
317
|
+
|
|
312
318
|
end
|
|
313
319
|
end
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
|
Binary file
|