Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Commits on May 17, 2012
Commits on May 16, 2012
  1. version bump

    authored
Commits on May 15, 2012
  1. Improved regex

    authored
    Does only match colon, any whitespace chars, and case insensitive "url",
    nothing else.
  2. Merge pull request #4 from brewster1134/master

    authored
    prevents matching to SASS or Rails image-url/image_url helper methods
  3. @brewster1134
Commits on Mar 14, 2012
  1. Merge pull request #2 from niklas/patch-1

    authored
    Readme: must register preprocessor in initializer
  2. @niklas
Commits on Feb 25, 2012
  1. minor version bump

    authored
  2. tidy up the code

    authored
  3. cleaned up the tests

    authored
  4. ignore vim swp files

    authored
Commits on Feb 24, 2012
  1. @GUI

    Fix URL rewriting when path contains periods.

    GUI authored
    Currently, Context#logical_path from sprockets seems to return the incorrect value when a path happens to contain periods: sstephenson/sprockets#299
    
    With this bug in sprockets, an asset located in `jquery.mobile-1.0.1/jquery.mobile-1.0.1.css` will be interpreted to have a logical path of only `jquery`, and thus it's parent is simply `.`. So if that asset references `url(images/icons-18-white.png)` urlrewriter sees no parent path, so it's URL won't be changed. The URL really needs to be rewritten to `url(jquery.mobile-1.0.1/images/icons-18-white.png)` to work.
    
    The fix is to simply ignore the incorrect `Context#logical_path` method and grab the original `@logical_path` instance variable. This seems icky, but since Rails is currently tied to sprockets 2.1.x, I don't know the likelihood of this being fixed in sprockets and being used in Rails apps anytime soon. So in the mean time, this makes things work as you'd expect, even if you happen to have a folder with a period in the name.
  2. @GUI

    Fix absolute URL handling.

    GUI authored
    Previously, files containing absolute URLs were being replaced with only
    the first absolute URL encountered because of the `return url`
    statement.
  3. @GUI

    Add rake as development dependency.

    GUI authored
    Otherwise, running `bundle exec rake` will result in an error:
    
    `rake is not part of the bundle. Add it to Gemfile.`
  4. @GUI

    Fix `bundle install` by requiring only the version in the gemspec.

    GUI authored
    Otherwise, the whole library was being included in the gemspec, so
    running `bundle install` would fail if any dependencies were missing
    from the system with:
    
    There was a LoadError while evaluating sprockets-urlrewriter.gemspec:
      no such file to load -- sprockets from
        [...]/sprockets-urlrewriter.gemspec:3
Commits on Jan 31, 2012
Commits on Dec 9, 2011
  1. readme updat

    authored
  2. introduction in readme

    authored
Commits on Nov 16, 2011
Commits on Oct 19, 2011
  1. MIT licens in Readme

    authored
  2. Specs

    authored
  3. Init

    authored
Something went wrong with that request. Please try again.