less 0.8.12 → 0.8.13

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
- 0.8.12
1
+ 0.8.13
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 = "0.8.12"
5
+ s.version = "0.8.13"
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-06-21}
9
+ s.date = %q{2009-06-23}
10
10
  s.default_executable = %q{lessc}
11
11
  s.description = %q{LESS is leaner CSS}
12
12
  s.email = %q{alexis@cloudhead.net}
data/lib/less/engine.rb CHANGED
@@ -4,9 +4,9 @@ module Less
4
4
  COMPOUND = {'font' => true, 'background' => false, 'border' => false }
5
5
  REGEX = {
6
6
  :path => /([#.][->#.\w ]+)?( ?> ?)?/, # #header > .title
7
- :selector => /[-\w #.,>*:\(\)\=\[\]']/, # .cow .milk > a
7
+ :selector => /[-\w #.,>*+:\(\)\=\[\]']/, # .cow .milk > a
8
8
  :variable => /@([-\w]+)/, # @milk-white
9
- :property => /@[-\w]+|[-a-z]+/, # font-size
9
+ :property => /@[-\w]+|[-a-z*0-9_]+/, # font-size
10
10
  :color => /#([a-zA-Z0-9]{3,6})\b/, # #f0f0f0
11
11
  :number => /\d+(?>\.\d+)?/, # 24.8
12
12
  :unit => /px|em|pt|cm|mm|%/ # em
@@ -139,11 +139,11 @@ module Less
139
139
  # hashify: "color" => "black"
140
140
  #
141
141
  hash = self.gsub(/\r\n/, "\n"). # m$
142
+ gsub(/"/, "'"). # " to '
143
+ gsub(/'(.*?)'/) { "'" + CGI.escape( $1 ) + "'" }. # Escape string values
142
144
  gsub(/\/\/.*\n/, ''). # Comments //
143
145
  gsub(/\/\*.*?\*\//m, ''). # Comments /*
144
146
  gsub(/\s+/, ' '). # Replace \t\n
145
- gsub(/"/, "'"). # " to '
146
- gsub(/("|')(.*?)(\1)/) { $1 + CGI.escape( $2 ) + $1 }. # Escape string values
147
147
  gsub(/(#{REGEX[:property]}): *([^\{\}]+?) *(;|(?=\}))/,'"\1"=>"\2",'). # Rules
148
148
  gsub(/\}/, "},"). # Closing }
149
149
  gsub(/([, ]*)(#{REGEX[:selector]}+?)[ \n]*(?=\{)/, '\1"\2"=>'). # Selectors
data/spec/spec.css CHANGED
@@ -8,8 +8,8 @@ body, div > p a, h2 a > span:first-child { font-family: sans-serif; }
8
8
  .root > .first > .second > .third { background-color: blue; font-size: 8px; color: red; border-color: red; }
9
9
  .root:hover a { display: block; }
10
10
  body { font-size: 10px; font-family: 'Lucida Grande', 'Helvetica', Verdana, sans-serif; margin: -5px 0 5px 10px; border: solid 1px #000; text-shadow: #333 -1px 1px 2px; -moz-border-radius: 3px; color: #ccc; background-color: #aaa; }
11
- .operations { font: 12px/16px; width: 110px; font-size: 66; color: #eeeeee; colorb: #333333; colorc: #777777; }
12
- .operations > div { width: 80px; }
11
+ #operations { font: 12px/16px; width: 110px; font-size: 66; color: #eeeeee; colorb: #333333; colorc: #777777; }
12
+ #operations > div { width: 80px; }
13
13
  td, tr, table { border-width: 88px; }
14
14
  blockquote:before, blockquote:after, q:before, q:after { content: ''; }
15
15
  a:link, a:hover { color: brown; }
@@ -17,11 +17,12 @@ div > a, a span { color: grey; }
17
17
  ul li:first-child { border-top: none; }
18
18
  ul li:first-child, ul li:last-child { background-color: #333; }
19
19
  .p:first-letter { color: red; }
20
- :focus { outline: 0; content: '*}#f~ '; }
20
+ h5:focus { outline: 0; content: '*}#f~ '; }
21
21
  q:lang(no) { quotes: '~' '~'; }
22
22
  blockquote:before { color: red; }
23
23
  div { color: purple; }
24
24
  .duplicate { width: 11px; color: blue; }
25
+ .loading { background: 'http://'; }
25
26
  input[type='text'] { background-color: blue; }
26
27
  .transparent_box { background-color: #FFF; filter: alpha(opacity=60); opacity: 0.6; }
27
28
  .space { color: purple; font-color: yellow; }
data/spec/spec.less CHANGED
@@ -131,7 +131,7 @@ div {
131
131
  width: 11px;
132
132
  color: blue;
133
133
  }
134
-
134
+ .loading { background: "http://"; }
135
135
  input[type="text"] {
136
136
  background-color: blue;
137
137
  }
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: 0.8.12
4
+ version: 0.8.13
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-06-21 00:00:00 -04:00
12
+ date: 2009-06-23 00:00:00 -04:00
13
13
  default_executable: lessc
14
14
  dependencies: []
15
15