datagnan 1.2.2 → 1.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/datagnan.rb +2 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 590427709ec6e2a71b590660084a9b809b8c002b
4
- data.tar.gz: 3e66b7f3db3eb0c9c8f1a9e3b89059a7fde861f5
3
+ metadata.gz: 4b2c738cfafb4890e559b35030898616c754c635
4
+ data.tar.gz: 373f8690aafc672636f0812ad50ef33170d52fb8
5
5
  SHA512:
6
- metadata.gz: dc4abe7040d7fa13bd64027561a5d461ab79366e4f223be74fa563e198b5dec58e6e3a343076a9ddefb604da76559ef88372a5250513755d7eef08d7ae2824d0
7
- data.tar.gz: 235bc5f87768487a9cd4fa9a0f820d03f2703e0aab08c2f2d4c18510357d2e1f154572f4b373b1d7a4aed6890f666b23f0d689ba0f46ad73adadf6e27d4e49fc
6
+ metadata.gz: 6a6f9b6069293fb8b9d3712d1517d7ac5a73857c9c012aff648332e2b7f2837151d690bb416fc97f74998bf2482c0a4291f7f583e2ea8101b1440b480fc125ab
7
+ data.tar.gz: 791d0f38a04aa2c960a6ceb6946f65207ebc65ad8a6952e9b9a635fc066cd54e4dc366bea9acbf5978545bec81f6b2502925f5ba4d5ddeacae21b8bbebd75e0c
@@ -214,6 +214,7 @@ private
214
214
  unless var.nil? || var == false
215
215
  ## debug
216
216
  # puts "-- Datagnan.data_attr each before insert ( node.to_xml = #{node.to_xml} )"
217
+ node.unset(key)
217
218
  node.attributes.insert(
218
219
  node.attributes.index(attr),
219
220
  Oga::XML::Attribute.new(
@@ -256,6 +257,7 @@ private
256
257
  # puts "-- Datagnan.data_attrs each attr ( var = #{var} )"
257
258
 
258
259
  unless var.nil? || var == false
260
+ node.unset(key)
259
261
  node.attributes.insert(
260
262
  node.attributes.index(node_data_attrs),
261
263
  Oga::XML::Attribute.new(
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datagnan
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Popov
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-05-22 00:00:00.000000000 Z
12
+ date: 2015-05-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: oga