sprockets-urlrewriter 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +12 -1
- data/lib/sprockets-urlrewriter.rb +1 -1
- data/sprockets-urlrewriter.gemspec +1 -1
- metadata +7 -7
data/README.md
CHANGED
@@ -1,9 +1,18 @@
|
|
1
|
+
Sprockets Url Rewriter
|
2
|
+
======================
|
3
|
+
|
4
|
+
Rewrites relative CSS urls to absolute ones, which means that you can include, for example jQuery UI, without any modifications into the asset pipeline.
|
5
|
+
|
1
6
|
Example usage
|
2
7
|
=============
|
3
8
|
|
4
9
|
gem install sprockets-urlrewriter
|
5
10
|
|
6
|
-
In
|
11
|
+
In rails:
|
12
|
+
|
13
|
+
config.assets.register_preprocessor 'text/css', Sprockets::UrlRewriter
|
14
|
+
|
15
|
+
In config.ru (if you're using Sinatra)
|
7
16
|
|
8
17
|
map '/assets' do
|
9
18
|
s = Sprockets::Environment.new
|
@@ -15,6 +24,8 @@ In config.ru
|
|
15
24
|
run s
|
16
25
|
end
|
17
26
|
|
27
|
+
|
28
|
+
|
18
29
|
License terms
|
19
30
|
=============
|
20
31
|
|
@@ -5,7 +5,7 @@ require "sprockets-urlrewriter"
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = "sprockets-urlrewriter"
|
7
7
|
s.version = Sprockets::UrlRewriter::VERSION
|
8
|
-
s.authors = ["Carl
|
8
|
+
s.authors = ["Carl Hoerberg"]
|
9
9
|
s.email = ["carl.hoerberg@gmail.com"]
|
10
10
|
s.homepage = "http://github.com/carlhoerberg/sprockets-urlrewriter"
|
11
11
|
s.summary = %q{Makes absolut urls in CSS files generated by Sprockets}
|
metadata
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sprockets-urlrewriter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
|
-
- Carl
|
8
|
+
- Carl Hoerberg
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2012-01-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: minitest
|
16
|
-
requirement: &
|
16
|
+
requirement: &70319700411940 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70319700411940
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: sprockets
|
27
|
-
requirement: &
|
27
|
+
requirement: &70319700411240 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70319700411240
|
36
36
|
description: ! ' Replaces all instances of url() in CSS files Sprockets concats, if
|
37
37
|
the url is relative. '
|
38
38
|
email:
|