compass-rails-source-maps 0.0.6 → 0.0.7
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c6370f946e1d5dbb29d57bf972c5c87b2a114289
|
|
4
|
+
data.tar.gz: 4a912644d80d57261da07c055a59ee3c63e0bde5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e5e5e133aa34be272b47d829cfdf8af3c9cef69f689fa636b63e94aeda5820e629b72aa17dc570e135aa8870ec6592f1ddbcd6e5f0e307c485d52f28fe6513ca
|
|
7
|
+
data.tar.gz: 30adeff9232cca33ea69b7a84964be8401bccbdc14e097006b876a9246ec48cd4b573ab7db5455ce86bbd4d6e35b839f7865ccf811ea601c3acc81c458a584b8
|
|
@@ -5,6 +5,37 @@ module CompassRailsSourceMaps
|
|
|
5
5
|
"/#{SOURCE_MAPS_DIRECTORY}/#{File.basename(uri)}"
|
|
6
6
|
end
|
|
7
7
|
|
|
8
|
+
attr_accessor :context
|
|
9
|
+
|
|
10
|
+
def initialize(context, root)
|
|
11
|
+
super(context, root)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
def find_relative(*args)
|
|
15
|
+
engine = super
|
|
16
|
+
if context && engine && (filename = engine.options[:filename])
|
|
17
|
+
context.depend_on(filename)
|
|
18
|
+
end
|
|
19
|
+
engine
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def find(*args)
|
|
23
|
+
engine = super
|
|
24
|
+
if context && engine && (filename = engine.options[:filename])
|
|
25
|
+
context.depend_on(filename)
|
|
26
|
+
end
|
|
27
|
+
engine
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
def _dump(level)
|
|
31
|
+
Marshal.dump([@context.logical_path, @context.pathname, @root])
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
def self._load(args)
|
|
35
|
+
env = ::Rails.application.assets
|
|
36
|
+
context = env.context_class.new(env, args[1], args[2])
|
|
37
|
+
new(context, args[3])
|
|
38
|
+
end
|
|
8
39
|
end
|
|
9
40
|
end
|
|
10
41
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: compass-rails-source-maps
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- glebtv
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-08-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|