asset_hat 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/asset_hat.gemspec +1 -1
- data/lib/asset_hat.rb +2 -1
- data/lib/asset_hat/tasks.rb +3 -3
- metadata +1 -1
data/VERSION.yml
CHANGED
data/asset_hat.gemspec
CHANGED
data/lib/asset_hat.rb
CHANGED
@@ -8,7 +8,8 @@ module AssetHat
|
|
8
8
|
ASSETS_DIR = defined?(Rails.public_path) ? Rails.public_path : 'public'
|
9
9
|
JAVASCRIPTS_DIR = "#{ASSETS_DIR}/javascripts"
|
10
10
|
STYLESHEETS_DIR = "#{ASSETS_DIR}/stylesheets"
|
11
|
-
|
11
|
+
RELATIVE_CONFIG_FILEPATH = File.join('config', 'assets.yml')
|
12
|
+
CONFIG_FILEPATH = File.join(RAILS_ROOT, RELATIVE_CONFIG_FILEPATH)
|
12
13
|
|
13
14
|
class << self
|
14
15
|
attr_accessor :config, :asset_exists, :html_cache
|
data/lib/asset_hat/tasks.rb
CHANGED
@@ -30,9 +30,9 @@ namespace :asset_hat do
|
|
30
30
|
|
31
31
|
desc 'Prepare configuration file'
|
32
32
|
task :config do
|
33
|
-
template_filepath =
|
34
|
-
|
35
|
-
target_filepath =
|
33
|
+
template_filepath = File.join(File.dirname(__FILE__), '..', '..',
|
34
|
+
AssetHat::RELATIVE_CONFIG_FILEPATH)
|
35
|
+
target_filepath = AssetHat::CONFIG_FILEPATH
|
36
36
|
|
37
37
|
if File.exists?(target_filepath)
|
38
38
|
print "Replace #{target_filepath}? (y/n) "
|