lib/jammit/packager.rb in ghazel-jammit-0.4.3.1 vs lib/jammit/packager.rb in ghazel-jammit-0.4.4.1

- old
+ new

@@ -5,10 +5,11 @@ # contents of an asset package, the Packager knows how to cache that package # with the correct timestamps. class Packager # In Rails, the difference between a path and an asset URL is "public". - PATH_TO_URL = /\A#{Regexp.escape(ASSET_ROOT)}(\/?public)?/ + PATH_DIFF = PUBLIC_ROOT.sub(ASSET_ROOT, '') + PATH_TO_URL = /\A#{Regexp.escape(ASSET_ROOT)}(\/?#{Regexp.escape(PATH_DIFF)})?/ # Set force to false to allow packages to only be rebuilt when their source # files have changed since the last time their package was built. attr_accessor :force \ No newline at end of file