less 0.8.10 → 0.8.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
- 0.8.10
1
+ 0.8.11
data/less.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{less}
5
- s.version = "0.8.10"
5
+ s.version = "0.8.11"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["cloudhead"]
@@ -28,11 +28,12 @@ Gem::Specification.new do |s|
28
28
  "lib/less/engine.rb",
29
29
  "lib/less/tree.rb",
30
30
  "spec/command_spec.rb",
31
+ "spec/css/less-0.8.10.css",
32
+ "spec/css/less-0.8.11.css",
31
33
  "spec/css/less-0.8.5.css",
32
34
  "spec/css/less-0.8.6.css",
33
35
  "spec/css/less-0.8.7.css",
34
36
  "spec/css/less-0.8.8.css",
35
- "spec/css/less-0.9.0.css",
36
37
  "spec/engine_spec.rb",
37
38
  "spec/spec.css",
38
39
  "spec/spec.less",
data/lib/less/engine.rb CHANGED
@@ -4,7 +4,7 @@ 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
9
  :property => /@[-\w]+|[-a-z]+/, # font-size
10
10
  :color => /#([a-zA-Z0-9]{3,6})\b/, # #f0f0f0
File without changes
@@ -0,0 +1,31 @@
1
+ ul li:first-child { border-top: none; }
2
+ .duplicate { color: blue; width: 11px; }
3
+ q:lang(no) { quotes: '~' '~'; }
4
+ .no-semi-column { color: orange; }
5
+ body { text-shadow: #333 -1px 1px 2px; border-color: #888; font-size: 10px; margin: -5px 0 5px 10px; background-color: #aaa; border: solid 1px #000; -moz-border-radius: 3px; font-family: 'Lucida Grande', 'Helvetica', Verdana, sans-serif; color: #ccc; }
6
+ td, tr, table { border-width: 4px; }
7
+ div > a, a span { color: grey; }
8
+ .space { color: purple; font-color: yellow; }
9
+ blockquote:before { color: red; }
10
+ .root a:hover, a:focus { color: orange; }
11
+ .root a { display: none; color: blue; }
12
+ .root .first .second .third { border-color: blue; font-size: 8px; background-color: blue; color: red; }
13
+ .root .first .second { }
14
+ .root .first { color: green; }
15
+ .root { }
16
+ .p:first-letter { color: red; }
17
+ .extra .dark-borders { border-color: #444444; }
18
+ .extra .light-borders { border-color: #888; }
19
+ .extra { }
20
+ a:link, a:hover { color: brown; }
21
+ ul li:first-child, ul li:last-child { background-color: #333; }
22
+ div { color: purple; }
23
+ input[type='text'] { background-color: blue; }
24
+ .borders { }
25
+ .root:hover a { display: block; }
26
+ .operations div { width: 80px; }
27
+ .operations { colorb: #333333; font-size: 66; colorc: #777777; line-height: 7px; border-width: 16px; color: #eeeeee; font: 12px/16px; width: 110px; }
28
+ :focus { outline: 0; content: '*}#f~ '; }
29
+ .theme { background-color: #aaa; color: #ccc; }
30
+ blockquote:before, blockquote:after, q:before, q:after { content: ''; }
31
+ .transparent_box { opacity: 0.6; background-color: #FFF; filter: alpha(opacity=60); }
data/spec/engine_spec.rb CHANGED
@@ -29,6 +29,10 @@ describe Less::Engine do
29
29
  it "should handle instances of double-quotes" do
30
30
  lessify("blockquote:before, blockquote:after, q:before, q:after {\n content: \"\"; }").should == "blockquote:before, blockquote:after, q:before, q:after { content: ''; }"
31
31
  end
32
+
33
+ it "should parse tag attributes" do
34
+ lessify("input[type=text] { color: red; }").should == "input[type=text] { color: red; }"
35
+ end
32
36
  end
33
37
  end
34
38
 
data/spec/spec.css CHANGED
@@ -16,6 +16,7 @@ body { font-size: 10px; font-family: 'Lucida Grande', 'Helvetica', Verdana, sans
16
16
  td, tr, table { border-width: 4px; }
17
17
  blockquote:before, blockquote:after, q:before, q:after { content: ''; }
18
18
  a:link, a:hover { color: brown; }
19
+ div > a, a span { color: grey; }
19
20
  ul li:first-child { border-top: none; }
20
21
  ul li:first-child, ul li:last-child { background-color: #333; }
21
22
  .p:first-letter { color: red; }
@@ -24,6 +25,7 @@ q:lang(no) { quotes: '~' '~'; }
24
25
  blockquote:before { color: red; }
25
26
  div { color: purple; }
26
27
  .duplicate { width: 11px; color: blue; }
28
+ input[type='text'] { background-color: blue; }
27
29
  .transparent_box { background-color: #FFF; filter: alpha(opacity=60); opacity: 0.6; }
28
30
  .space { color: purple; font-color: yellow; }
29
31
  .no-semi-column { color: orange; }
data/spec/spec.less CHANGED
@@ -136,9 +136,9 @@ div {
136
136
  color: blue;
137
137
  }
138
138
 
139
- /*input[type="text"] {
139
+ input[type="text"] {
140
140
  background-color: blue;
141
- }*/
141
+ }
142
142
  .transparent_box {
143
143
  background-color:#FFF;
144
144
  filter:alpha(opacity=60); /* for IE */
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.10
4
+ version: 0.8.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - cloudhead
@@ -35,11 +35,12 @@ files:
35
35
  - lib/less/engine.rb
36
36
  - lib/less/tree.rb
37
37
  - spec/command_spec.rb
38
+ - spec/css/less-0.8.10.css
39
+ - spec/css/less-0.8.11.css
38
40
  - spec/css/less-0.8.5.css
39
41
  - spec/css/less-0.8.6.css
40
42
  - spec/css/less-0.8.7.css
41
43
  - spec/css/less-0.8.8.css
42
- - spec/css/less-0.9.0.css
43
44
  - spec/engine_spec.rb
44
45
  - spec/spec.css
45
46
  - spec/spec.less