sass 3.2.0.alpha.103 → 3.2.0.alpha.104
Sign up to get free protection for your applications and to get access to all the features.
- data/REVISION +1 -1
- data/VERSION +1 -1
- data/lib/sass/plugin/listener.rb +8 -6
- data/lib/sass/tree/node.rb +8 -0
- metadata +4 -4
data/REVISION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
50209c8c1a8488b0180e42d5fbb63d1ba0297d54
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.2.0.alpha.
|
1
|
+
3.2.0.alpha.104
|
data/lib/sass/plugin/listener.rb
CHANGED
@@ -14,20 +14,22 @@ class Sass::Plugin::Listener
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def directory(path, events)
|
17
|
-
(@directories[path] ||= []) << events
|
17
|
+
(@directories[File.expand_path(path)] ||= []) << events
|
18
18
|
end
|
19
19
|
|
20
20
|
def file(path, events)
|
21
21
|
file_base = File.basename(path)
|
22
22
|
directory(File.dirname(path), {
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
23
|
+
:modified => file_event_fn(events[:modified], file_base),
|
24
|
+
:added => file_event_fn(events[:added], file_base),
|
25
|
+
:removed => file_event_fn(events[:removed], file_base)
|
26
|
+
})
|
27
27
|
end
|
28
28
|
|
29
29
|
def start!
|
30
|
-
|
30
|
+
args = @directories.keys.dup
|
31
|
+
args << {:force_polling => Sass::Util.windows?}
|
32
|
+
listener = Listen::MultiListener.new(*args) do |modified, added, removed|
|
31
33
|
modified = modified.group_by {|path| File.dirname(path)}
|
32
34
|
added = added.group_by {|path| File.dirname(path)}
|
33
35
|
removed = removed.group_by {|path| File.dirname(path)}
|
data/lib/sass/tree/node.rb
CHANGED
@@ -133,6 +133,14 @@ module Sass
|
|
133
133
|
Sass::Tree::Visitors::ToCss.visit(self)
|
134
134
|
end
|
135
135
|
|
136
|
+
# Returns a representation of the node for debugging purposes.
|
137
|
+
#
|
138
|
+
# @return [String]
|
139
|
+
def inspect
|
140
|
+
return self.class.to_s unless has_children
|
141
|
+
"(#{self.class} #{children.map {|c| c.inspect}.join(' ')})"
|
142
|
+
end
|
143
|
+
|
136
144
|
# Converts a static CSS tree (e.g. the output of \{Tree::Visitors::Cssize})
|
137
145
|
# into another static CSS tree,
|
138
146
|
# with the given extensions applied to all relevant {RuleNode}s.
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 592303053
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 2
|
9
9
|
- 0
|
10
10
|
- alpha
|
11
|
-
-
|
12
|
-
version: 3.2.0.alpha.
|
11
|
+
- 104
|
12
|
+
version: 3.2.0.alpha.104
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- Nathan Weizenbaum
|
@@ -19,7 +19,7 @@ autorequire:
|
|
19
19
|
bindir: bin
|
20
20
|
cert_chain: []
|
21
21
|
|
22
|
-
date: 2012-04-
|
22
|
+
date: 2012-04-27 00:00:00 -04:00
|
23
23
|
default_executable:
|
24
24
|
dependencies:
|
25
25
|
- !ruby/object:Gem::Dependency
|