assets_on_heroku 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/assets_on_heroku.gemspec +1 -1
- data/lib/assets_on_heroku.rb +3 -3
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.5
|
data/assets_on_heroku.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{assets_on_heroku}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.5"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Jacek Becela", "Tomasz Mazur"]
|
data/lib/assets_on_heroku.rb
CHANGED
@@ -32,13 +32,13 @@ module AssetsOnHeroku
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def setup_rails
|
35
|
-
ActionView::Helpers::AssetTagHelper.module_eval
|
35
|
+
ActionView::Helpers::AssetTagHelper.module_eval %{
|
36
36
|
def write_asset_file_contents_with_heroku(broken_joined_asset_path, asset_paths)
|
37
|
-
fixed_joined_asset_path = broken_joined_asset_path.sub("public", @root)
|
37
|
+
fixed_joined_asset_path = broken_joined_asset_path.sub("public", "#{@root}")
|
38
38
|
write_asset_file_contents_without_heroku(fixed_joined_asset_path, asset_paths)
|
39
39
|
end
|
40
40
|
alias_method_chain :write_asset_file_contents, :heroku
|
41
|
-
|
41
|
+
} if defined?(ActionView::Helpers::AssetTagHelper)
|
42
42
|
end
|
43
43
|
|
44
44
|
def setup_merb
|