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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cab99c1f36e7249115b72436a3ec9981056b0ed984e22161fc4ef481531b7542
4
- data.tar.gz: 58e4ec2b6e97bb96b0c8f002e8b805e82bff8af71d0e3c7414c9a2f50e1fd992
3
+ metadata.gz: 879bb9d7cf2f55bd38bb6d2e005d824fc0b63760931424c0ef16599c8e405581
4
+ data.tar.gz: 77ccdb6252d36a6bf313e491169a2df56b5325284a809060894bb6e30eadfaec
5
5
  SHA512:
6
- metadata.gz: 9e6eec410b50bf3dedb1b33740b480597cac0ece76816d4f860dd99c9cc72f949376fdd39ca48a0263222a99e4694be0952facdf4d19023be6b523166dda7788
7
- data.tar.gz: f9d3467d227659265e8237cfbae084134f05dec9a85b54f51b993a735ca8197a72e947630ba8bdeed493e0f4384904e4dd310c766da5aa621e3707090497e6c0
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: 'blog',
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
- Dir.chdir @home
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
- filename = r.is_a?(Hash) ? r[:name] : File.join(r.map {|x| x[:name]})
186
+ # fetch the most recent file
187
+ r = FileX.ru_r @media_src
192
188
 
193
- copy_publish( filename ,raw_msg, &blk)
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.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-04 00:00:00.000000000 Z
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