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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8b393be5d6b9fb08d4b7927f79d3eefb7443a5fd
4
- data.tar.gz: 0da2d3fda1c4e8fc758eed7749ffe6d52eeb6ece
3
+ metadata.gz: 1d8fcf8df9343f4bf2780c7136d6e1ed7e795eae
4
+ data.tar.gz: 2a37a2a766a8ebc9d14026c894a3d1ce42d78ba8
5
5
  SHA512:
6
- metadata.gz: 26014ffe567a2e8c07f211b046b2bc4a23eeda5fb800a8450d62ae7decb6929fd18bdb06f633172ef0c9124c6f6abc1e0eaa1118736d99fc11db8664e201b120
7
- data.tar.gz: 7e14a98f0ac52bd81a97eb338d737b4704eb4e73793f5ac3772ce28cd3f83d0cccd09f7be09293e4627dc181034504b53c4d92e4c3ebbfc244ae69692b838b61
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
@@ -1,3 +1,3 @@
1
1
  class Wedge
2
- VERSION = '0.1.69'
2
+ VERSION = '0.1.70'
3
3
  end
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.69
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-13 00:00:00.000000000 Z
11
+ date: 2015-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opal-wedge