wedge 0.1.69 → 0.1.70
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wedge/dom.rb +8 -1
- data/lib/wedge/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d8fcf8df9343f4bf2780c7136d6e1ed7e795eae
|
4
|
+
data.tar.gz: 2a37a2a766a8ebc9d14026c894a3d1ce42d78ba8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc8e34727a3f08963e90f45f0de4577a179de8fe921d76254c0bb4ffd048143adffc37cc9300cf8eaa14373e27a4eef25d34e87e7c74e61a5e7bf0b9a7801b1c
|
7
|
+
data.tar.gz: 899d603ef3777ab2c0ac79e2786a28c9d73f8f126093aecbca6ec394dffde648bfd264e8c01b16ca688aa24970ab474cfb74e8892facb5664fcd54852fa84528
|
data/lib/wedge/dom.rb
CHANGED
@@ -43,7 +43,6 @@ class Wedge
|
|
43
43
|
end
|
44
44
|
|
45
45
|
unless RUBY_ENGINE == 'opal'
|
46
|
-
|
47
46
|
%w'content inner_html'.each do |meth|
|
48
47
|
define_method "#{meth}=" do |cont|
|
49
48
|
if node.is_a? Nokogiri::XML::NodeSet
|
@@ -64,6 +63,14 @@ class Wedge
|
|
64
63
|
end
|
65
64
|
end
|
66
65
|
|
66
|
+
def replace_with *args
|
67
|
+
if node.is_a? Nokogiri::XML::NodeSet
|
68
|
+
node.each { |n| n.replace(*args) }
|
69
|
+
else
|
70
|
+
node.replace(*args)
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
67
74
|
def []= key, value
|
68
75
|
if node.is_a? Nokogiri::XML::NodeSet
|
69
76
|
node.each { |n| n[key] = value }
|
data/lib/wedge/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wedge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.70
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- cj
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opal-wedge
|