dominate 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/dominate.gemspec +1 -0
- data/lib/dominate/version.rb +1 -1
- data/lib/dominate.rb +1 -0
- data/test/dominate_test.rb +12 -0
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f276d7e323d69a6ea4c0cf5917eb5143094ff4c
|
4
|
+
data.tar.gz: 5f903780aa92a50e1b59df5429537f452be1a404
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36a51e10d802d09e63e3c840efab5ccfacf39322b4de97dc61cb699b8a7653e95e82c4c5264de01a485a6b246287e306edd6d38e11e4e217792d5a28d26cb077
|
7
|
+
data.tar.gz: f51a2fa79311b8b63f20a2c8901b6a0c06adf9f6f4c4c80b802ae60c97edb555e13dcab7ded7204845ab099ffe4e6259c87b60e0cca8598ff9642dd72b28d85b
|
data/dominate.gemspec
CHANGED
data/lib/dominate/version.rb
CHANGED
data/lib/dominate.rb
CHANGED
data/test/dominate_test.rb
CHANGED
@@ -100,4 +100,16 @@ scope 'dominate' do
|
|
100
100
|
assert dom.html['Moo']
|
101
101
|
assert dom.html['Cow']
|
102
102
|
end
|
103
|
+
|
104
|
+
test 'styles' do
|
105
|
+
dom = Dominate::HTML.file 'flat'
|
106
|
+
dom.scope(:flat).apply ['moo', 'cow'] do |node|
|
107
|
+
styles = node.styles
|
108
|
+
styles['color'] = '#000'
|
109
|
+
|
110
|
+
node.styles = styles
|
111
|
+
end
|
112
|
+
|
113
|
+
assert dom.html['#000']
|
114
|
+
end
|
103
115
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dominate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- cj
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: nokogiri-styles
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: bundler
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|