view_assets 0.0.4 → 0.0.5

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.
@@ -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
@@ -1,3 +1,3 @@
1
1
  module ViewAssets
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: view_assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: