runecms 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/runecms/support.rb +6 -6
- data/lib/runecms/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a062a984b48d8c2ab544e301d9cfeb243aec1cc88fd0bead439aa42477b87ba
|
4
|
+
data.tar.gz: 801811de9ce926f2bbfb12b83cf5e0ffedd365035af8bd158a08b9b93f3fac0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e26adbc6906e4683bf0368721e77999a8e16e5604aa86dc7b9c98a47b91a72c5c0a7f4fa0407cc539b1cc756fd4d67b6ae9aad253ea918571d1418b11499c3e
|
7
|
+
data.tar.gz: dd9c65162b5e09df4925e997fe7099ce6e8936b064f2d395f459d0158529c4a9091661b384512d23038b175d42af38f2d83cf5334db7ed35f1d134e9a7cb0139
|
data/lib/runecms/support.rb
CHANGED
@@ -34,16 +34,16 @@ def stale?(file) # without source/ or target/
|
|
34
34
|
end
|
35
35
|
|
36
36
|
def update_target(file)
|
37
|
-
return if File.directory?(file)
|
38
37
|
file2 = fix_extension(file)
|
39
38
|
if lt3?(file)
|
40
|
-
|
41
|
-
redir = ">"
|
39
|
+
cmd = "livetext source/#{file} > target/#{file2}"
|
42
40
|
else
|
43
|
-
|
44
|
-
|
41
|
+
if File.directory?(file)
|
42
|
+
cmd = "mkdir target/#{file2}"
|
43
|
+
else
|
44
|
+
cmd = "cp source/#{file} target/#{file2}"
|
45
|
+
end
|
45
46
|
end
|
46
|
-
cmd = "#{update} source/#{file} #{redir} target/#{file2}"
|
47
47
|
# puts cmd
|
48
48
|
system(cmd)
|
49
49
|
end
|
data/lib/runecms/version.rb
CHANGED