view_assets 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/tasks/view_assets_tasks.rake +2 -2
- data/lib/view_assets/version.rb +1 -1
- metadata +1 -1
@@ -9,11 +9,11 @@ namespace :view_assets do
|
|
9
9
|
public_path = Rails.public_path
|
10
10
|
%w(vendor lib app).map { |d| %w(javascripts stylesheets).map { |t| "#{public_path}/#{d}/#{t}" } }.flatten.each do |dir|
|
11
11
|
FileUtils.mkdir_p dir
|
12
|
-
puts "\t\033[1;32mCreate\033[0m #{dir}"
|
12
|
+
puts "\t\033[1;32mCreate\033[0m #{dir.gsub(public_path, '')}"
|
13
13
|
if dir.include?('app')
|
14
14
|
fn_extension = dir.include?('javascripts') ? 'js' : 'css'
|
15
15
|
FileUtils.touch "#{dir}/application.#{fn_extension}"
|
16
|
-
puts "\t\033[1;32mCreate\033[0m #{dir}/application.#{fn_extension}"
|
16
|
+
puts "\t\033[1;32mCreate\033[0m #{dir.gsub(public_path, '')}/application.#{fn_extension}"
|
17
17
|
end
|
18
18
|
end
|
19
19
|
end
|
data/lib/view_assets/version.rb
CHANGED