mymedia 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/mymedia.rb +12 -9
- 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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 879bb9d7cf2f55bd38bb6d2e005d824fc0b63760931424c0ef16599c8e405581
|
4
|
+
data.tar.gz: 77ccdb6252d36a6bf313e491169a2df56b5325284a809060894bb6e30eadfaec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf2b2df683d4055893ce649e8c3ebc30eee11fbe432b8c9fd7292ee3ca4be66843304e63a79e68a67e3dc2b2cb6e43653de7da371da695274aae2030bd5701c6
|
7
|
+
data.tar.gz: 56cb9c6a53dbd585d1ade2ae2a1afff3934823b3bc7bcd9fad89cbb0cb205316281dad53220a3652559d1f36e84ef218312bc4bc40a6a95e8f497979f43fa580
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/mymedia.rb
CHANGED
@@ -129,7 +129,7 @@ module MyMedia
|
|
129
129
|
|
130
130
|
attr_reader :to_s
|
131
131
|
|
132
|
-
def initialize(media_type: 'blog', public_type:
|
132
|
+
def initialize(media_type: 'blog', public_type: media_type,
|
133
133
|
ext: 'txt', config: nil, log: nil, debug: false)
|
134
134
|
|
135
135
|
super()
|
@@ -162,7 +162,7 @@ module MyMedia
|
|
162
162
|
@rss = false
|
163
163
|
@debug = debug
|
164
164
|
|
165
|
-
|
165
|
+
DirX.chdir @home
|
166
166
|
|
167
167
|
end
|
168
168
|
|
@@ -182,15 +182,18 @@ module MyMedia
|
|
182
182
|
|
183
183
|
@log.info 'Base inside auto_copy_publish' if @log
|
184
184
|
puts '@media_src: ' + @media_src.inspect if @debug
|
185
|
-
#exit
|
186
|
-
dir = DirToXML.new(@media_src, recursive: true, debug: false)
|
187
|
-
puts 'before dir.last_modified' if @debug
|
188
|
-
r = dir.last_modified
|
189
|
-
puts 'r: ' + r.inspect if @debug
|
190
185
|
|
191
|
-
|
186
|
+
# fetch the most recent file
|
187
|
+
r = FileX.ru_r @media_src
|
192
188
|
|
193
|
-
|
189
|
+
if r then
|
190
|
+
|
191
|
+
puts 'r: ' + r.inspect if @debug
|
192
|
+
|
193
|
+
filename = r.sub(/^#{@media_src}/,'')
|
194
|
+
copy_publish( filename ,raw_msg, &blk)
|
195
|
+
|
196
|
+
end
|
194
197
|
|
195
198
|
end
|
196
199
|
|
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.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
bL55NDdi8BFHkNVohRBak7aqxsw41LJKy3UTP+4TzU5vyluDJMiscK6JJFaM4JiS
|
36
36
|
xtlAM0O5ZFe9QflatP+P8JnB
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2022-02-
|
38
|
+
date: 2022-02-11 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: dynarex
|
metadata.gz.sig
CHANGED
Binary file
|