less 1.1.11 → 1.1.12

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.1.11
1
+ 1.1.12
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{less}
5
- s.version = "1.1.11"
5
+ s.version = "1.1.12"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["cloudhead"]
9
- s.date = %q{2009-08-01}
9
+ s.date = %q{2009-08-02}
10
10
  s.default_executable = %q{lessc}
11
11
  s.description = %q{LESS is leaner CSS}
12
12
  s.email = %q{self@cloudhead.net}
@@ -74,7 +74,7 @@ module Less
74
74
  rescue SyntaxError => e
75
75
  err "#{e}\n", "Syntax"
76
76
  rescue MixedUnitsError => e
77
- err "`#{e}` you're mixing units together! What do you expect?\n"
77
+ err "`#{e}` you're mixing units together! What do you expect?\n", "Mixed Units"
78
78
  rescue PathError => e
79
79
  err "`#{e}` was not found.\n", "Path"
80
80
  rescue VariableNameError => e
@@ -142,7 +142,7 @@ module Less
142
142
  unit = literals.map do |node|
143
143
  node.unit
144
144
  end.compact.uniq.tap do |ary|
145
- raise MixedUnitsError, self * ' ' if ary.size > 1
145
+ raise MixedUnitsError, self * ' ' if ary.size > 1 && !operators.empty?
146
146
  end.join
147
147
 
148
148
  entity = literals.find {|e| e.unit == unit } || entities.first
@@ -14,3 +14,7 @@
14
14
  width: 71;
15
15
  height: 6;
16
16
  }
17
+ .mixed-units {
18
+ margin: 2px 4em 1 5pc;
19
+ padding: 6px 1em 2px 2;
20
+ }
@@ -18,4 +18,9 @@
18
18
  .nested-parens {
19
19
  width: 2 * (4 * (2 + (1 + 6))) - 1;
20
20
  height: ((2+3)*(2+3) / (9-4)) + 1;
21
- }
21
+ }
22
+
23
+ .mixed-units {
24
+ margin: 2px 4em 1 5pc;
25
+ padding: (2px + 4px) 1em 2px 2;
26
+ }
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.1.11
4
+ version: 1.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - cloudhead
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-08-01 00:00:00 +02:00
12
+ date: 2009-08-02 00:00:00 +02:00
13
13
  default_executable: lessc
14
14
  dependencies: []
15
15