mymedia 0.1.3 → 0.1.4
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 +4 -2
- data.tar.gz.sig +5 -1
- 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: 50b6e954c955779ac8445ad3c9d3a00a402dc982
|
|
4
|
+
data.tar.gz: 00f21018ece1fcce9effbf34364d55ba15f93b90
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f82af352648d1e8a880e83e46b9410d18cec429ec84b2028183fad9a2717a03e5ec705f192a77addd8c37dd776c86823043dc6bdd7bd624a86e0661c0fd35e6a
|
|
7
|
+
data.tar.gz: e0b79155a29db0ede967bfc0f9d189fcd7947ae337f21c1d7054bd7fd4acf75a69f67e6132799392aae0143c2788f9d6ab7a4f847c6a51e09e2813df59020136
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/lib/mymedia.rb
CHANGED
|
@@ -69,6 +69,7 @@ module MyMedia
|
|
|
69
69
|
super()
|
|
70
70
|
@schema = 'posts/post(title, url, raw_url)'
|
|
71
71
|
@logger = Logger.new('/tmp/mymedia.log','daily')
|
|
72
|
+
|
|
72
73
|
raise BaseException, "no config found" if config.nil?
|
|
73
74
|
|
|
74
75
|
@home = config[:home]
|
|
@@ -106,6 +107,7 @@ module MyMedia
|
|
|
106
107
|
|
|
107
108
|
filename = DirToXML.new(@media_src).select_by_ext(@ext)\
|
|
108
109
|
.sort_by(:last_modified).last[:name]
|
|
110
|
+
|
|
109
111
|
copy_publish( filename ,raw_msg)
|
|
110
112
|
end
|
|
111
113
|
|
|
@@ -140,9 +142,9 @@ module MyMedia
|
|
|
140
142
|
FileUtils.mkdir_p File.dirname(raw_destination)
|
|
141
143
|
FileUtils.mkdir_p File.dirname(destination)
|
|
142
144
|
|
|
143
|
-
raw_msg = raw_msg.join if raw_msg.is_a? Array
|
|
145
|
+
raw_msg = raw_msg.join ' ' if raw_msg.is_a? Array
|
|
144
146
|
|
|
145
|
-
raw_msg = src_path[/([^\/]+)\.\w+$/,1] + ' ' + raw_msg if raw_msg
|
|
147
|
+
raw_msg = src_path[/([^\/]+)\.\w+$/,1] + ' ' + raw_msg if raw_msg[/^#/]
|
|
146
148
|
|
|
147
149
|
|
|
148
150
|
if block_given? then
|
data.tar.gz.sig
CHANGED
metadata
CHANGED
metadata.gz.sig
CHANGED
|
Binary file
|