sass 3.1.0.alpha.218 → 3.1.0.alpha.221
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/tree/visitors/base.rb +4 -1
- metadata +3 -3
data/REVISION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
a8bdef1b0251ef20490c2df9fa0daac9419238c4
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.1.0.alpha.
|
1
|
+
3.1.0.alpha.221
|
@@ -53,12 +53,15 @@ module Sass::Tree::Visitors
|
|
53
53
|
parent.children.map {|c| visit(c)}
|
54
54
|
end
|
55
55
|
|
56
|
+
NODE_NAME_RE = /.*::(.*?)Node$/
|
57
|
+
|
56
58
|
# Returns the name of a node as used in the `visit_*` method.
|
57
59
|
#
|
58
60
|
# @param [Tree::Node] node The node.
|
59
61
|
# @return [String] The name.
|
60
62
|
def node_name(node)
|
61
|
-
|
63
|
+
@@node_names ||= {}
|
64
|
+
@@node_names[node.class.name] ||= node.class.name.gsub(NODE_NAME_RE, '\\1').downcase
|
62
65
|
end
|
63
66
|
|
64
67
|
# `yield`s, then runs the visitor on the `@else` clause if the node has one.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.0.alpha.
|
4
|
+
version: 3.1.0.alpha.221
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Weizenbaum
|
@@ -11,7 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2011-01-
|
14
|
+
date: 2011-01-30 00:00:00 -05:00
|
15
15
|
default_executable:
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
@@ -262,8 +262,8 @@ files:
|
|
262
262
|
- test/sass/templates/subdir/subdir.sass
|
263
263
|
- test/sass/templates/warn.sass
|
264
264
|
- test/sass/templates/warn_imported.sass
|
265
|
-
- test/sass/templates/nested_import.sass
|
266
265
|
- test/sass/templates/if.sass
|
266
|
+
- test/sass/templates/nested_import.sass
|
267
267
|
- test/sass/test_helper.rb
|
268
268
|
- test/sass/util/subset_map_test.rb
|
269
269
|
- test/sass/util_test.rb
|