Skip to content

Commit

Permalink
Update Sprockets depend_on
Browse files Browse the repository at this point in the history
* depend_on_asset => depend_on
* file-relative paths don't work, revert to load path-relative
  • Loading branch information
glebm committed Jun 18, 2014
1 parent 2dc2274 commit e2e7020
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tasks/converter/less_conversion.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def process_stylesheet_assets
when 'thumbnails.less', 'labels.less', 'badges.less'
file = extract_nested_rule file, 'a&'
when 'glyphicons.less'
file = bootstrap_font_files.map { |p| %Q(//= depend_on_asset "./../../fonts/bootstrap/#{File.basename(p)}") } * "\n" + "\n" + file
file = bootstrap_font_files.map { |p| %Q(//= depend_on "bootstrap/#{File.basename(p)}") } * "\n" + "\n" + file
file = replace_rules(file, '@font-face') { |rule|
rule = replace_all rule, /(\$icon-font(?:-\w+)+)/, '#{\1}'
replace_asset_url rule, :font
Expand Down
8 changes: 4 additions & 4 deletions vendor/assets/stylesheets/bootstrap/_glyphicons.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//= depend_on_asset "./../../fonts/bootstrap/glyphicons-halflings-regular.eot"
//= depend_on_asset "./../../fonts/bootstrap/glyphicons-halflings-regular.svg"
//= depend_on_asset "./../../fonts/bootstrap/glyphicons-halflings-regular.ttf"
//= depend_on_asset "./../../fonts/bootstrap/glyphicons-halflings-regular.woff"
//= depend_on "bootstrap/glyphicons-halflings-regular.eot"
//= depend_on "bootstrap/glyphicons-halflings-regular.svg"
//= depend_on "bootstrap/glyphicons-halflings-regular.ttf"
//= depend_on "bootstrap/glyphicons-halflings-regular.woff"
//
// Glyphicons for Bootstrap
//
Expand Down

0 comments on commit e2e7020

Please sign in to comment.