thematic 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/thematic/tasks/thematic.rake +12 -2
- data/lib/thematic/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f0c470227b3fb52c913bc97789493465a2d5fd9
|
4
|
+
data.tar.gz: 19c1b6dd8ccad6feb4ab6945c9e4386baee47cd1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74d9d14fdbbe779fdf834ee1c704e1de8ef8365b8962eaf515bd100b600db7b140d4b8bdf389a85bbb19f86ca51202019279972dbf8b3fa9c1dcbd9e3f94b928
|
7
|
+
data.tar.gz: 9cfceeefc0664c4e5bcce87a964097d927bfc227570943cc1bfb02786b4c6ae88cd9896062dc92463adc222fdc18b51abd7473c7272c28f6d3c58ee96dd6e654
|
@@ -9,7 +9,6 @@ namespace :thematic do
|
|
9
9
|
|
10
10
|
puts "Installing CSS..."
|
11
11
|
|
12
|
-
# it is assumed that the theme comes with a folder called 'css'
|
13
12
|
copy_from_path = "#{args[:filepath]}/css"
|
14
13
|
theme_subfolder = "theme"
|
15
14
|
|
@@ -42,7 +41,6 @@ namespace :thematic do
|
|
42
41
|
|
43
42
|
puts "Installing JS..."
|
44
43
|
|
45
|
-
# it is assumed that the theme comes with a folder called 'js'
|
46
44
|
copy_from_path = "#{args[:filepath]}/js"
|
47
45
|
|
48
46
|
FileUtils.remove_dir "vendor/assets/javascripts/#{theme_subfolder}" if File.exist?("vendor/assets/javascripts/#{theme_subfolder}")
|
@@ -71,5 +69,17 @@ namespace :thematic do
|
|
71
69
|
f.close
|
72
70
|
tempfile.close
|
73
71
|
|
72
|
+
puts "Copying images..."
|
73
|
+
|
74
|
+
FileUtils.remove_dir "app/assets/images/#{theme_subfolder}" if File.exist?("app/assets/images/#{theme_subfolder}")
|
75
|
+
FileUtils.mkdir "app/assets/images/#{theme_subfolder}"
|
76
|
+
|
77
|
+
copy_from_path = "#{args[:filepath]}/img"
|
78
|
+
files_to_copy = Dir[ File.join(copy_from_path, '**', '*') ]
|
79
|
+
|
80
|
+
files_to_copy.each do |filepath|
|
81
|
+
copy(filepath, "app/assets/images/#{theme_subfolder}/") unless File.directory?(filepath)
|
82
|
+
end
|
83
|
+
|
74
84
|
end
|
75
85
|
end
|
data/lib/thematic/version.rb
CHANGED