sass-resrcify 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9ed0b1964cbde05fb433698b0655106dd8771063
4
- data.tar.gz: 6e725fed364debc301224f0c3b4f6c501f7c7acc
3
+ metadata.gz: 8a40ab40eb1801c76cccf73cd8cb871df5596766
4
+ data.tar.gz: c2c26c921dfd60778fe6eecc5fe5e40e268e3c73
5
5
  SHA512:
6
- metadata.gz: 7282846eaaf4225aa59797c338eb23a74b7a588207ac7912a791f2575d8506b6a0508725cbeaddef3edd623259ab149de7f2faa61784e7de4f1b5bcee4b558d2
7
- data.tar.gz: 3ef8317957b0b403050bb1de1cb61768ec9f8e5e17c4b787987067a3a6b5626e7d3a08e643fe92083a8356bc5bc2b92b3a65bcb83ac5d28d54e1de373f56fcb0
6
+ metadata.gz: 02517fae615ea6b566d18921c0fc793de4ecd590a8692dc514c078c6b1b777df15c852067af1a1e4ae59681603c658e3c124aef478f9059fbcde72c805ee63b0
7
+ data.tar.gz: a471216e44261214d1c3e527113aa4f67a557645d37bcd5737afedec0ec64c99c6e2510753e69b4cc0e04c27689aacfa09ef31c247fb2bd0f309a9192e9b5adc
@@ -47,7 +47,7 @@ end
47
47
  module Sass
48
48
  module Importers
49
49
  class Filesystem
50
- REGEX = /url\([\"\'](.*?)[\"\']\)/
50
+ REGEX = /url\([\"\'](.*?)([\?\#]+.*?)?[\"\']\)/
51
51
 
52
52
  alias old_initialize initialize
53
53
 
@@ -69,7 +69,7 @@ module Sass
69
69
  content = File.read(full_filename)
70
70
  content.gsub!(REGEX) do |s|
71
71
  asset = @resrcify.resrc($1, full_filename, dest: "static/assets", prefix: "/assets")
72
- "url(#{asset})"
72
+ "url('#{asset}#{$2}')"
73
73
  end
74
74
 
75
75
  Sass::Engine.new(content, options)
@@ -1,5 +1,5 @@
1
1
  module Sass
2
2
  module Resrcify
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sass-resrcify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karan Misra
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-08 00:00:00.000000000 Z
11
+ date: 2014-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass