jammit 0.4.2 → 0.4.3

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.
data/jammit.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'jammit'
3
- s.version = '0.4.2' # Keep version in sync with jammit.rb
4
- s.date = '2009-1-27'
3
+ s.version = '0.4.3' # Keep version in sync with jammit.rb
4
+ s.date = '2009-1-29'
5
5
 
6
6
  s.homepage = "http://documentcloud.github.com/jammit/"
7
7
  s.summary = "Industrial Strength Asset Packaging for Rails"
data/lib/jammit.rb CHANGED
@@ -4,19 +4,19 @@ $LOAD_PATH.push File.expand_path(File.dirname(__FILE__))
4
4
  # to all of the configuration options.
5
5
  module Jammit
6
6
 
7
- VERSION = "0.4.2"
7
+ VERSION = "0.4.3"
8
8
 
9
9
  ROOT = File.expand_path(File.dirname(__FILE__) + '/..')
10
10
 
11
11
  ASSET_ROOT = File.expand_path(defined?(Rails) ? Rails.root : ".") unless defined?(ASSET_ROOT)
12
12
 
13
- PUBLIC_ROOT = "#{ASSET_ROOT}/public"
13
+ PUBLIC_ROOT = File.join(ASSET_ROOT, 'public')
14
14
 
15
- DEFAULT_CONFIG_PATH = "#{ASSET_ROOT}/config/assets.yml"
15
+ DEFAULT_CONFIG_PATH = File.join(ASSET_ROOT, 'config', 'assets.yml')
16
16
 
17
17
  DEFAULT_PACKAGE_PATH = "assets"
18
18
 
19
- DEFAULT_JST_SCRIPT = "#{ROOT}/lib/jammit/jst.js"
19
+ DEFAULT_JST_SCRIPT = File.join(ROOT, 'lib/jammit/jst.js')
20
20
 
21
21
  DEFAULT_JST_COMPILER = "template"
22
22
 
@@ -7,7 +7,7 @@ module Jammit
7
7
  class Packager
8
8
 
9
9
  # In Rails, the difference between a path and an asset URL is "public".
10
- PATH_TO_URL = /\A#{Regexp.escape(ASSET_ROOT)}(\/public)?/
10
+ PATH_TO_URL = /\A#{Regexp.escape(ASSET_ROOT)}(\/?public)?/
11
11
 
12
12
  # Set force to false to allow packages to only be rebuilt when their source
13
13
  # files have changed since the last time their package was built.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jammit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Ashkenas
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-01-27 00:00:00 -05:00
12
+ date: 2009-01-29 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency