mymedia-kvx 0.1.0 → 0.1.1
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-kvx.rb +2 -9
- 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: 80fe7282ed1c15eea7ea49965b3112637d416dac
|
4
|
+
data.tar.gz: 7ea18618228eba66d5ef7a2cbd8711a0e40db0b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16e38c79a300a2f24f10c6d7c939ff2551b0b18755006f4535bfe923cd1be2ee5aeaa874dc9c5737b9b0a91fa690c73e4e3fbeac953cbc2a3fad7875eca97210
|
7
|
+
data.tar.gz: 6ca423d73434ea93b5bc13e0c949a4c6c1fa42f221f0c0e46b4d0597f632acd9385c710965be938977565e26aa3e7cf35ae2380ab6a5c89c1a2de27e4fbe32d1
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/mymedia-kvx.rb
CHANGED
@@ -2,11 +2,9 @@
|
|
2
2
|
|
3
3
|
# file: mymedia-kvx.rb
|
4
4
|
|
5
|
-
|
6
5
|
require 'mymedia'
|
7
6
|
|
8
7
|
|
9
|
-
|
10
8
|
class MyMediaKvx < MyMedia::Base
|
11
9
|
|
12
10
|
attr_reader :kvx
|
@@ -103,14 +101,9 @@ class MyMediaKvx < MyMedia::Base
|
|
103
101
|
kvx.summary[:source] = File.basename(txt_destination)
|
104
102
|
|
105
103
|
kvx.summary[:xslt] = @xsl unless kvx.item[:xslt]
|
106
|
-
File.write destination, kvx.to_xml
|
107
|
-
|
108
|
-
# copy the media file to the destination
|
109
|
-
destination = kvx.body[:file][/^https?:\/\/[^\/]+(.*)/,1]
|
110
|
-
file = destination[/[^\/]+$/]
|
111
|
-
FileUtils.cp File.join(@media_src, file), File.join(@home, destination)
|
104
|
+
File.write destination, kvx.to_xml
|
112
105
|
|
113
106
|
[kvx, raw_msg]
|
114
107
|
end
|
115
108
|
|
116
|
-
end
|
109
|
+
end
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|