sprockets-urlrewriter 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -15,3 +15,25 @@ In config.ru
15
15
  run s
16
16
  end
17
17
 
18
+ License terms
19
+ =============
20
+
21
+ Copyright (C) 2011 by Carl Hörberg
22
+
23
+ Permission is hereby granted, free of charge, to any person obtaining a copy
24
+ of this software and associated documentation files (the "Software"), to deal
25
+ in the Software without restriction, including without limitation the rights
26
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
27
+ copies of the Software, and to permit persons to whom the Software is
28
+ furnished to do so, subject to the following conditions:
29
+
30
+ The above copyright notice and this permission notice shall be included in
31
+ all copies or substantial portions of the Software.
32
+
33
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
34
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
35
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
36
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
37
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
38
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
39
+ THE SOFTWARE.
@@ -1,10 +1,11 @@
1
- require_relative 'sprockets-urlrewriter/version'
2
1
  require 'sprockets'
3
2
  require 'pathname'
4
3
  require 'uri'
5
4
 
6
5
  module Sprockets
7
6
  class UrlRewriter < Processor
7
+ VERSION = "0.0.2"
8
+
8
9
  def evaluate(context, locals)
9
10
  rel = Pathname.new(context.logical_path).parent
10
11
  data.gsub /url\(['"]?([^\s)]+\.[a-z]+)(\?\d+)?['"]?\)/ do |url|
@@ -1,10 +1,10 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  $:.push File.expand_path("../lib", __FILE__)
3
- require "sprockets-urlrewriter/version"
3
+ require "sprockets-urlrewriter"
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "sprockets-urlrewriter"
7
- s.version = Sprockets::Urlrewriter::VERSION
7
+ s.version = Sprockets::UrlRewriter::VERSION
8
8
  s.authors = ["Carl Hörberg"]
9
9
  s.email = ["carl.hoerberg@gmail.com"]
10
10
  s.homepage = "http://github.com/carlhoerberg/sprockets-urlrewriter"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sprockets-urlrewriter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-10-19 00:00:00.000000000Z
12
+ date: 2011-11-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest
16
- requirement: &70266638663940 !ruby/object:Gem::Requirement
16
+ requirement: &70319705876460 !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: *70266638663940
24
+ version_requirements: *70319705876460
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: sprockets
27
- requirement: &70266638663520 !ruby/object:Gem::Requirement
27
+ requirement: &70319705876040 !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: *70266638663520
35
+ version_requirements: *70319705876040
36
36
  description: ! ' Replaces all instances of url() in CSS files Sprockets concats, if
37
37
  the url is relative. '
38
38
  email:
@@ -46,7 +46,6 @@ files:
46
46
  - README.md
47
47
  - Rakefile
48
48
  - lib/sprockets-urlrewriter.rb
49
- - lib/sprockets-urlrewriter/version.rb
50
49
  - spec/urlrewriter_spec.rb
51
50
  - sprockets-urlrewriter.gemspec
52
51
  homepage: http://github.com/carlhoerberg/sprockets-urlrewriter
@@ -69,7 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
68
  version: '0'
70
69
  requirements: []
71
70
  rubyforge_project: sprockets-urlrewriter
72
- rubygems_version: 1.8.6
71
+ rubygems_version: 1.8.10
73
72
  signing_key:
74
73
  specification_version: 3
75
74
  summary: Makes absolut urls in CSS files generated by Sprockets
@@ -1,5 +0,0 @@
1
- module Sprockets
2
- module Urlrewriter
3
- VERSION = "0.0.1"
4
- end
5
- end