anchors 0.1.1 → 0.1.2

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: 398ea7821db1532928334d44f8eb5075589c070d
4
- data.tar.gz: 351f92ccb41311a7e2b1bf54e98585ab2f1d0f7d
3
+ metadata.gz: 36fa178801cdc4671d4dde91e56c3e5752f8c3db
4
+ data.tar.gz: e97a470e67454d9e698ef3ed38f5dd4c344c961a
5
5
  SHA512:
6
- metadata.gz: 9e6eabbc2b80afb830db8b0d9df2944bdfaed9e29661aa7c0c528dd468739ef5b3b62113e9220e7911a1e0312b2dd48338d3f187278a34015076c66d7af134c6
7
- data.tar.gz: d33392adafb8e31ed2b4768849d0f5c47aa9a40ebb36406f42e4e8076944a6fd9c61784e828b5e8f064e95b3e840c065496499e9e0adfadaded7a3cca37a994f
6
+ metadata.gz: 657c6b529a983ebeec174b7268ef3391c393c86fab6cbb2b3949a952e692041df22f1e2013b6ec053c666f9ef0ab0cacafafe44c61326ca4e3767a33bca9ab1f
7
+ data.tar.gz: 1dd0d3a3fd7d2cc75447e4458e71c8c1733818d7e574ce7fbdc4467ba3e057c003fd68a3604aead4d51d1cd45b7b6cd95ab2235bc309c2b3c5a828533a88b858
@@ -17,8 +17,8 @@ module Anchors
17
17
  if link?
18
18
  a = Nokogiri::XML::Node.new "a", doc
19
19
  a["href"] = "##{h["id"]}"
20
- a.add_child h.clone
21
- h.swap a
20
+ a.add_child h.children
21
+ h.add_child a
22
22
  end
23
23
  end
24
24
  end
@@ -1,3 +1,3 @@
1
1
  module Anchors
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anchors
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Gessler