eyeliner 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -120,6 +120,10 @@ class Eyeliner
120
120
  end
121
121
  end
122
122
 
123
+ def link(node_set)
124
+ node_set
125
+ end
126
+
123
127
  end
124
128
 
125
129
  end
@@ -1,3 +1,3 @@
1
1
  class Eyeliner
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -123,6 +123,21 @@ describe Eyeliner do
123
123
  end
124
124
  end
125
125
 
126
+ context "when CSS rule contains pseudo-class :link" do
127
+
128
+ before do
129
+ eyeliner.add_css %{
130
+ a:link { color: red; }
131
+ }
132
+ end
133
+
134
+ it "is not ignored" do
135
+ should_modify %(<a href="foo">xyz</a>),
136
+ :to => %(<a href="foo" style="color: red;">xyz</a>)
137
+ end
138
+
139
+ end
140
+
126
141
  context "when the document contains a <style> block" do
127
142
 
128
143
  before do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eyeliner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ date: 2012-01-30 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: nokogiri
17
- requirement: &70241861041100 !ruby/object:Gem::Requirement
17
+ requirement: &70308436887300 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 1.4.4
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *70241861041100
25
+ version_requirements: *70308436887300
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: css_parser
28
- requirement: &70241861040600 !ruby/object:Gem::Requirement
28
+ requirement: &70308436886520 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,7 +33,7 @@ dependencies:
33
33
  version: 1.1.9
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *70241861040600
36
+ version_requirements: *70308436886520
37
37
  description:
38
38
  email:
39
39
  - mike@cogentconsulting.com.au
@@ -62,18 +62,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
62
62
  - - ! '>='
63
63
  - !ruby/object:Gem::Version
64
64
  version: '0'
65
- segments:
66
- - 0
67
- hash: -4128840240962595108
68
65
  required_rubygems_version: !ruby/object:Gem::Requirement
69
66
  none: false
70
67
  requirements:
71
68
  - - ! '>='
72
69
  - !ruby/object:Gem::Version
73
70
  version: '0'
74
- segments:
75
- - 0
76
- hash: -4128840240962595108
77
71
  requirements: []
78
72
  rubyforge_project:
79
73
  rubygems_version: 1.8.10