lib/jammit.rb in ghazel-jammit-0.4.3.1 vs lib/jammit.rb in ghazel-jammit-0.4.4.1
- old
+ new
@@ -2,16 +2,16 @@
# @Jammit@ is the central namespace for all Jammit classes, and provides access
# to all of the configuration options.
module Jammit
- VERSION = "0.4.3.1"
+ VERSION = "0.4.4"
ROOT = File.expand_path(File.dirname(__FILE__) + '/..')
ASSET_ROOT = File.expand_path(defined?(Rails) ? Rails.root : ".") unless defined?(ASSET_ROOT)
- PUBLIC_ROOT = File.join(ASSET_ROOT, 'public')
+ PUBLIC_ROOT = defined?(Rails) ? Rails.public_path : File.join(ASSET_ROOT, 'public')
DEFAULT_CONFIG_PATH = File.join(ASSET_ROOT, 'config', 'assets.yml')
DEFAULT_PACKAGE_PATH = "assets"