cloudhead-less 1.2.1 → 1.2.2

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.1
1
+ 1.2.2
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.2.1"
5
+ s.version = "1.2.2"
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-31}
9
+ s.date = %q{2009-09-01}
10
10
  s.default_executable = %q{lessc}
11
11
  s.description = %q{LESS is leaner CSS}
12
12
  s.email = %q{self@cloudhead.net}
data/lib/less/command.rb CHANGED
@@ -33,9 +33,9 @@ module Less
33
33
  end
34
34
 
35
35
  def run!
36
- parse(true) unless File.exist? @destination
37
-
38
36
  if watch?
37
+ parse(true) unless File.exist? @destination
38
+
39
39
  log "Watching for changes in #@source... Ctrl-C to abort.\n: "
40
40
 
41
41
  # Main watch loop
@@ -22,7 +22,7 @@ module Less
22
22
 
23
23
  # Non-space char
24
24
  rule ns
25
- ![ ;,)\n] .
25
+ ![ ;,!})\n] .
26
26
  end
27
27
  end
28
28
  end
@@ -89,7 +89,7 @@ module Less
89
89
  end
90
90
 
91
91
  rule unit
92
- ('px'/'em'/'pc'/'%'/'ex'/'s'/'pt'/'cm'/'mm')?
92
+ ('px'/'em'/'pc'/'%'/'ex'/'in'/'deg'/'s'/'pt'/'cm'/'mm')?
93
93
  end
94
94
 
95
95
  #
@@ -228,7 +228,7 @@ module Less
228
228
  # An identifier
229
229
  #
230
230
  rule ident
231
- '*'? '-'? [-a-z0-9_]+
231
+ '*'? '-'? [-a-z_] [-a-z0-9_]*
232
232
  end
233
233
 
234
234
  rule variable
@@ -254,7 +254,7 @@ module Less
254
254
  # [type="text"]
255
255
  #
256
256
  rule attribute
257
- '[' tag ([|~*$^]? '=') (tag / string) ']' / '[' (tag / string) ']'
257
+ '[' tag ([|~*$^]? '=') (string / [-a-zA-Z_0-9]+) ']' / '[' (tag / string) ']'
258
258
  end
259
259
 
260
260
  rule class
data/spec/css/css-3.css CHANGED
@@ -7,6 +7,7 @@
7
7
  font-family: Headline;
8
8
  src: local(Futura-Medium), url(fonts.svg#MyGeometricModern) format("svg");
9
9
  }
10
+ .other { -moz-transform: translate(0, 11em) rotate(-90deg); }
10
11
  p:not([class*="lead"]) { color: black; }
11
12
  a[href^="http://"], a[href$="http://"] { color: black; }
12
13
  p::before { color: black; }
@@ -3,4 +3,5 @@
3
3
  color: white;
4
4
  white-space: pre;
5
5
  }
6
+ .no-semi-column { border: 2px solid white; }
6
7
  .newlines { border: 2px solid black; }
data/spec/less/css-3.less CHANGED
@@ -9,7 +9,9 @@
9
9
  src: local(Futura-Medium),
10
10
  url(fonts.svg#MyGeometricModern) format("svg");
11
11
  }
12
-
12
+ .other {
13
+ -moz-transform: translate(0, 11em) rotate(-90deg);
14
+ }
13
15
  p:not([class*="lead"]) {
14
16
  color: black;
15
17
  }
@@ -23,6 +23,7 @@
23
23
  color: white;
24
24
  white-space: pre
25
25
  }
26
+ .no-semi-column {border: 2px solid white}
26
27
  .newlines {
27
28
  border: 2px
28
29
  solid
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudhead-less
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
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-31 00:00:00 -07:00
12
+ date: 2009-09-01 00:00:00 -07:00
13
13
  default_executable: lessc
14
14
  dependencies: []
15
15