mymedia 0.1.4 → 0.1.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 +10 -5
- data.tar.gz.sig +0 -0
- metadata +2 -2
- 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: 0caaab6ca3fb6c87a2d107f36a9503758b126c54
|
|
4
|
+
data.tar.gz: 69ff00685df0e65b6c5bed2c741af8aa55e17c11
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 28932cb837ec780938eeee746e10406b4a0054bf147df0a2d3d2f871218fed40789657d5eef5966b62a9ac3d6aeb2a4b50e7b70556711f01300101bcc3190980
|
|
7
|
+
data.tar.gz: a02ce6a2e713afa36066a4c901b4ca39e5c8af0304c7f2ae54021b57dcaa3e84b83e32a50e57c80980fa8c6ff1413de6cba82b97d08e7e3d49547fc151e400d7
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/lib/mymedia.rb
CHANGED
|
@@ -22,7 +22,7 @@ module MyMedia
|
|
|
22
22
|
|
|
23
23
|
def publish_dynarex(dynarex_filepath='', \
|
|
24
24
|
record={title: '',url: '', raw_url: ''}, options={})
|
|
25
|
-
|
|
25
|
+
|
|
26
26
|
opt = {id: nil, rss: false}.merge(options)
|
|
27
27
|
|
|
28
28
|
dynarex = if File.exists? dynarex_filepath then
|
|
@@ -48,10 +48,12 @@ module MyMedia
|
|
|
48
48
|
|
|
49
49
|
def publish_html(filepath)
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
|
|
52
52
|
path2 = File.dirname(filepath)
|
|
53
|
+
template_path = File.join path2, 'index-template.html'
|
|
54
|
+
return unless @index_page == true and File.exists?(template_path)
|
|
53
55
|
|
|
54
|
-
dataisland = DataIsland.new(
|
|
56
|
+
dataisland = DataIsland.new(template_path)
|
|
55
57
|
File.open(path2 + '/index.html','w'){|f| f.write dataisland.html_doc.xml pretty: true}
|
|
56
58
|
end
|
|
57
59
|
|
|
@@ -65,8 +67,9 @@ module MyMedia
|
|
|
65
67
|
attr_reader :to_s
|
|
66
68
|
|
|
67
69
|
def initialize(media_type: 'blog', public_type: 'blog', ext: 'txt', config: nil)
|
|
68
|
-
|
|
70
|
+
|
|
69
71
|
super()
|
|
72
|
+
|
|
70
73
|
@schema = 'posts/post(title, url, raw_url)'
|
|
71
74
|
@logger = Logger.new('/tmp/mymedia.log','daily')
|
|
72
75
|
|
|
@@ -89,6 +92,7 @@ module MyMedia
|
|
|
89
92
|
@rss = false
|
|
90
93
|
|
|
91
94
|
Dir.chdir @home
|
|
95
|
+
|
|
92
96
|
end
|
|
93
97
|
|
|
94
98
|
def add_feed_item(raw_msg, record, options={})
|
|
@@ -170,6 +174,7 @@ module MyMedia
|
|
|
170
174
|
raw_static_destination = "%s/%s/%s" % [@home, 'r',static_path]
|
|
171
175
|
|
|
172
176
|
static_destination = "%s/%s" % [@home, static_path]
|
|
177
|
+
#FileUtils.mkdir_p File.dirname(static_destination)
|
|
173
178
|
FileUtils.cp destination, static_destination
|
|
174
179
|
FileUtils.cp raw_destination, raw_static_destination
|
|
175
180
|
|
|
@@ -275,4 +280,4 @@ module MyMedia
|
|
|
275
280
|
|
|
276
281
|
end
|
|
277
282
|
end
|
|
278
|
-
end
|
|
283
|
+
end
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mymedia
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
|
31
31
|
AuNecS7mQYhxSVKaAH8VGzIiea4rbybYlYRsOllgAkcmCFTQW39mbtmMPtDedk1N
|
|
32
32
|
ZQNJr93cq0mf/Q==
|
|
33
33
|
-----END CERTIFICATE-----
|
|
34
|
-
date: 2014-12-
|
|
34
|
+
date: 2014-12-10 00:00:00.000000000 Z
|
|
35
35
|
dependencies:
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
37
|
name: dynarex
|
metadata.gz.sig
CHANGED
|
Binary file
|