mymedia 0.2.5 → 0.2.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e6bdb3d24c2160aab8fac9f131975590f0d75595
4
- data.tar.gz: 9d3b6b82b46298229043c127f4e03a134e694bed
3
+ metadata.gz: 6c32ce3d46776d1a2b02eb972942685a9e645173
4
+ data.tar.gz: b49b9d87881b6b2021be67d479252b918d379f6a
5
5
  SHA512:
6
- metadata.gz: bab3448c19a398b65a074e3e86a5741d370f669fe6ac782f6c200f3ba903c291f61d65e8b203d824672cedd7065a20ac47be56276d0f9ef94a21156f518234cd
7
- data.tar.gz: 4e10f10a8f62f6744d2b762612b6205e616db7bd89ff8cf32fce0841f3461ac26164b182355ee2b176461a4cb9ba73b36a7aec0f312a9023e4b8fe92a7351b5a
6
+ metadata.gz: 96d21c7f0e8a0177c51a4ec948d013ffca9b545cbc7e52ba0a46f31d1956dde521795a2ae564613b6f7e1ec73f7de60b2754e9bb7d55963e32c5d2970bc06346
7
+ data.tar.gz: 8783c11b1273de7ad7a52f1394f3e0655f419ba41ccf4c1919b714662ca6c25e1679f4f48d4b04248b8d55f9faccc2198d4557ce53363c7964a9e826ac10afc0
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/mymedia.rb CHANGED
@@ -198,9 +198,21 @@ module MyMedia
198
198
  raw_static_destination = "%s/%s/%s" % [@home, 'r',static_path]
199
199
 
200
200
  static_destination = "%s/%s" % [@home, static_path]
201
+
201
202
  #FileUtils.mkdir_p File.dirname(static_destination)
202
- FileUtils.cp destination, static_destination
203
+ FileUtils.cp destination, static_destination
203
204
  FileUtils.cp raw_destination, raw_static_destination
205
+
206
+ # Make a static filename XML file copy?
207
+ if File.extname(static_destination) == '.html' then
208
+
209
+ xmlfilepath = destination.sub('.html','.xml')
210
+
211
+ if File.exists?(xmlfilepath) then
212
+ FileUtils.cp xmlfilepath, static_destination.sub('.html','.xml')
213
+ end
214
+
215
+ end
204
216
 
205
217
  target_url ||= "%s/%s" % [@website, public_path]
206
218
  static_url ||= "%s/%s" % [@website, static_path]
@@ -212,7 +224,7 @@ module MyMedia
212
224
  end
213
225
 
214
226
  sps_message = ['publish', @public_type,
215
- target_url, static_url, "'" + raw_msg + "'"]
227
+ target_url, static_url, raw_msg]
216
228
 
217
229
  send_message(msg: sps_message.join(' '))
218
230
 
@@ -316,4 +328,4 @@ module MyMedia
316
328
  end
317
329
 
318
330
  end
319
- end
331
+ 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.2.5
4
+ version: 0.2.7
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: 2015-02-24 00:00:00.000000000 Z
34
+ date: 2015-06-19 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: dynarex
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
180
180
  version: '0'
181
181
  requirements: []
182
182
  rubyforge_project:
183
- rubygems_version: 2.2.2
183
+ rubygems_version: 2.4.6
184
184
  signing_key:
185
185
  specification_version: 4
186
186
  summary: Makes publishing to the web easier
metadata.gz.sig CHANGED
Binary file