dominate 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 05dda3c35e6592183e3cb60ee94882fea9424cd6
4
- data.tar.gz: 4311505c6d7c4a933edf55cbd53e9c20fa97a3b5
3
+ metadata.gz: 263ca392c4f1caf806ddcb5ef3231d93d8b6d45b
4
+ data.tar.gz: e09f028bc7c04648cf48faa44b3d11e4ed5aa6c1
5
5
  SHA512:
6
- metadata.gz: a2b56d19ccffeaf822ba92c2f5b717dee7b29df5c18feade071c97b1fcfbcf973986b32cf7a4a7d96863c1dbe9dbc5d263cdc47af47af1c80a9b20ed7ceb8a70
7
- data.tar.gz: 6a83e8f870993cff4a7808fa1930caa645238d87903eb70e73c02a30f225b5675b591cefacf29c63f734412d4d6511dda34cd853265ae6e028530074a146c823
6
+ metadata.gz: b500d7d3cb695aad53c74140291ff10903a2b93724d310b9210bbb9559fd12a1c5ec1df17a18032f714699daa633af977132a8c9cec734b3250b123a36c45d68
7
+ data.tar.gz: 7fa4f9ff2792542e2e572256f696162d57d662929317aceea1b68177a3be38fce922d4fc00f0a88426736d145c170c85d4a5a4c6fde0be24c05c7ba0d3681eba
data/lib/dominate/html.rb CHANGED
@@ -12,7 +12,7 @@ module Dominate
12
12
 
13
13
  if File.file? path + '.dom'
14
14
  proc = Proc.new { dom }
15
- dom = eval(File.read(path + '.dom'), proc.binding)
15
+ dom = instance.instance_eval File.read(path + '.dom')
16
16
  end
17
17
 
18
18
  dom
@@ -1,3 +1,3 @@
1
1
  module Dominate
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -103,6 +103,7 @@ scope 'dominate' do
103
103
 
104
104
  test 'styles' do
105
105
  dom = Dominate::HTML.file 'flat'
106
+
106
107
  dom.scope(:flat).apply ['moo', 'cow'] do |node|
107
108
  styles = node.styles
108
109
  styles['color'] = '#000'
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.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - cj