less 1.1.8 → 1.1.9

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.8
1
+ 1.1.9
data/less.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{less}
5
- s.version = "1.1.8"
5
+ s.version = "1.1.9"
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-07-29}
9
+ s.date = %q{2009-07-30}
10
10
  s.default_executable = %q{lessc}
11
11
  s.description = %q{LESS is leaner CSS}
12
12
  s.email = %q{self@cloudhead.net}
@@ -28,7 +28,6 @@ Gem::Specification.new do |s|
28
28
  "lib/less.rb",
29
29
  "lib/less/command.rb",
30
30
  "lib/less/engine.rb",
31
- "lib/less/engine/builder.rb",
32
31
  "lib/less/engine/grammar/common.tt",
33
32
  "lib/less/engine/grammar/entity.tt",
34
33
  "lib/less/engine/grammar/less.tt",
data/lib/less/engine.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  $:.unshift File.dirname(__FILE__)
2
2
 
3
- require 'engine/builder'
4
3
  require 'engine/nodes'
5
4
 
6
5
  begin
@@ -98,7 +98,7 @@ module Less
98
98
  end
99
99
 
100
100
  rule unit
101
- ('px'/'em'/'pc'/'%'/'ex'/'pt'/'cm'/'mm')?
101
+ ('px'/'em'/'pc'/'%'/'ex'/'s'/'pt'/'cm'/'mm')?
102
102
  end
103
103
 
104
104
  #
@@ -4,7 +4,13 @@ module Less
4
4
  include Entity
5
5
 
6
6
  rule primary
7
- (declaration / ruleset / import / comment)+ <Builder> / declaration* <Builder> / import* <Builder> / comment*
7
+ (declaration / ruleset / import / comment)* {
8
+ def build env = Less::Element.new
9
+ elements.map do |e|
10
+ e.build env if e.respond_to? :build
11
+ end; env
12
+ end
13
+ }
8
14
  end
9
15
 
10
16
  rule comment
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.8
4
+ version: 1.1.9
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-07-29 00:00:00 -04:00
12
+ date: 2009-07-30 00:00:00 -04:00
13
13
  default_executable: lessc
14
14
  dependencies: []
15
15
 
@@ -35,7 +35,6 @@ files:
35
35
  - lib/less.rb
36
36
  - lib/less/command.rb
37
37
  - lib/less/engine.rb
38
- - lib/less/engine/builder.rb
39
38
  - lib/less/engine/grammar/common.tt
40
39
  - lib/less/engine/grammar/entity.tt
41
40
  - lib/less/engine/grammar/less.tt
@@ -1,8 +0,0 @@
1
- module Builder
2
- def build env = Less::Element.new
3
- elements.map do |e|
4
- e.build env if e.respond_to? :build
5
- end
6
- env
7
- end
8
- end