snitko-cssdryer2 0.1.2 → 0.1.3

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/History.txt CHANGED
@@ -6,3 +6,10 @@
6
6
 
7
7
  * helper to include files in .ncss
8
8
  * critical fix in rake task template
9
+
10
+ == 0.1.3
11
+
12
+ * Parser behavior changes:
13
+ now ".head { .menu {color: black;} }" is compiled to
14
+ ".head .menu { color: black; }", not ".head.menu {color: black;}"
15
+ (note the space in the first example)
data/Rakefile CHANGED
@@ -21,7 +21,7 @@ end
21
21
 
22
22
  spec = eval(generate_gemspec(:in_block => true))
23
23
 
24
- Hoe.new('cssdryer2', '0.1.2') do |s|
24
+ Hoe.new('cssdryer2', '0.1.3') do |s|
25
25
  s.rubyforge_name = 'cssdryer2'
26
26
  s.developer('Roman Snitko', 'roman@snitko.ru')
27
27
  end
@@ -192,7 +192,7 @@ module CssDryer
192
192
  end
193
193
 
194
194
  def combo_key(branch, leaf) #:nodoc:
195
- (leaf =~ /\A[.:#\[]/) ? "#{branch}#{leaf}" : "#{branch} #{leaf}"
195
+ (leaf =~ /\A[:\[]/) ? "#{branch}#{leaf}" : "#{branch} #{leaf}"
196
196
  end
197
197
 
198
198
  def factor_out_comma_separated_selectors(css, indent = 2) #:nodoc:
@@ -353,8 +353,8 @@ div {
353
353
  color: red;
354
354
  }
355
355
  div span { color: blue; }
356
- div a.hover { text-decoration: none; }
357
- div a.visited { text-decoration: none; }
356
+ div a .hover { text-decoration: none; }
357
+ div a .visited { text-decoration: none; }
358
358
  END
359
359
  end
360
360
 
@@ -382,11 +382,11 @@ END
382
382
  td {
383
383
  font-family: verdana;
384
384
  }
385
- td.even { background: blue; }
386
- td.odd {
385
+ td .even { background: blue; }
386
+ td .odd {
387
387
  background: green;
388
388
  }
389
- td.odd.odder-still { background: infra-red; }
389
+ td .odd .odder-still { background: infra-red; }
390
390
  END
391
391
 
392
392
  assert_equal output, process(input)
@@ -413,7 +413,7 @@ a {
413
413
  a:link { color: #03c; }
414
414
  a:visited { color: #03c; }
415
415
  a:hover { color: #fff; background-color: #30c; text-decoration: none; }
416
- a.image:link {
416
+ a .image:link {
417
417
  background: none;
418
418
  padding: 0;
419
419
  }
@@ -439,7 +439,7 @@ div {
439
439
  color: blue;
440
440
  border: 1px solid green;
441
441
  }
442
- div#flash {
442
+ div #flash {
443
443
  background: yellow;
444
444
  font-size: x-large;
445
445
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snitko-cssdryer2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Snitko