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.
@@ -1,5 +1,5 @@
1
1
  ---
2
- :patch: 3
2
+ :patch: 4
3
3
  :major: 0
4
4
  :minor: 1
5
5
  :build:
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{asset_hat}
8
- s.version = "0.1.3"
8
+ s.version = "0.1.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ron DeVera", "Mint Digital"]
@@ -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
- CONFIG_FILEPATH = File.join(RAILS_ROOT, 'config', 'assets.yml')
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
@@ -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
- File.join(File.dirname(__FILE__), '..', '..', AssetHat::CONFIG_FILEPATH)
35
- target_filepath = File.join(RAILS_ROOT, AssetHat::CONFIG_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) "
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asset_hat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ron DeVera