Permalink
Switch branches/tags
Commits on May 17, 2012
Commits on May 16, 2012
  1. version bump

    carlhoerberg committed May 16, 2012
Commits on May 15, 2012
  1. version bump for new regex

    carlhoerberg committed May 15, 2012
  2. Improved regex

    carlhoerberg committed May 15, 2012
    Does only match colon, any whitespace chars, and case insensitive "url",
    nothing else.
  3. Merge pull request #4 from brewster1134/master

    carlhoerberg committed May 15, 2012
    prevents matching to SASS or Rails image-url/image_url helper methods
Commits on Mar 14, 2012
  1. Merge pull request #2 from niklas/patch-1

    carlhoerberg committed Mar 14, 2012
    Readme: must register preprocessor in initializer
Commits on Feb 25, 2012
  1. minor version bump

    carlhoerberg committed Feb 25, 2012
  2. tidy up the code

    carlhoerberg committed Feb 25, 2012
  3. cleaned up the tests

    carlhoerberg committed Feb 25, 2012
  4. ignore vim swp files

    carlhoerberg committed Feb 25, 2012
Commits on Feb 24, 2012
  1. Fix URL rewriting when path contains periods.

    GUI committed Feb 24, 2012
    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. Fix absolute URL handling.

    GUI committed Feb 24, 2012
    Previously, files containing absolute URLs were being replaced with only
    the first absolute URL encountered because of the `return url`
    statement.
  3. Add rake as development dependency.

    GUI committed Feb 24, 2012
    Otherwise, running `bundle exec rake` will result in an error:
    
    `rake is not part of the bundle. Add it to Gemfile.`
  4. Fix `bundle install` by requiring only the version in the gemspec.

    GUI committed Feb 24, 2012
    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

    carlhoerberg committed Dec 9, 2011
  2. introduction in readme

    carlhoerberg committed Dec 9, 2011
Commits on Nov 16, 2011
  1. Got rid of require_relative

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

    carlhoerberg committed Oct 19, 2011
  2. Specs

    carlhoerberg committed Oct 19, 2011
  3. Init

    carlhoerberg committed Oct 19, 2011