less 1.2.10 → 1.2.11

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.10
1
+ 1.2.11
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{less}
8
- s.version = "1.2.10"
8
+ s.version = "1.2.11"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["cloudhead"]
@@ -107,7 +107,12 @@ module Less
107
107
  value.evaluate #2
108
108
  else
109
109
  # puts "evaluating #{to_s} par: #{parent} env: #{env ? env.variables : "nil"}"
110
- (env || self.parent).nearest(to_s).evaluate #3
110
+ begin
111
+ var = (env || self.parent).nearest(to_s) #3
112
+ rescue VariableNameError
113
+ var = self.parent.nearest(to_s)
114
+ end
115
+ var.evaluate
111
116
  end
112
117
  end
113
118
 
@@ -29,3 +29,4 @@ body {
29
29
  padding: 30px;
30
30
  color: #ff0000;
31
31
  }
32
+ .scope-mix { width: 8; }
@@ -47,4 +47,13 @@
47
47
 
48
48
  body {
49
49
  .maxa(15);
50
- }
50
+ }
51
+
52
+ @glob: 5;
53
+ .global-mixin(@a:2) {
54
+ width: @glob + @a;
55
+ }
56
+
57
+ .scope-mix {
58
+ .global-mixin(3);
59
+ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: less
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.10
4
+ version: 1.2.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - cloudhead