kitabu 2.0.2 → 2.0.3

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: 33489fae9e11817c4a99bc9dcb32469ff57f868a
4
- data.tar.gz: 9e9b280254e2972ca50826fdf6a72b79186a3d9d
3
+ metadata.gz: bd86f5ee69244e8b29bfaece12650d010841a669
4
+ data.tar.gz: 9e091f5f94a6c452f6e76722ad690902999c52a4
5
5
  SHA512:
6
- metadata.gz: 887d78ad996b9be7a08ce2db1a70a5282ecbd2f8d7fdf8c075b8000ecebaa30b91cacc074566d97cb4e3fa64d9f5fb33c220ebbd9f35b6eaf7c23315d99df199
7
- data.tar.gz: 560aa156264bcdc29986d6423b33196e52d12c38233fdd5743d3e84e322eba9accc401cfe46b3973497fedd3d538296ddd62f7ee300ddb8a3ba06409500ed998
6
+ metadata.gz: ab2dd6d9710198b3a7da0027826b108e074e4ef35c43c3012cc89e160c9d2d13d39723c26dffae53b9a00f665f95b0bf92a98417a737ca317a67ba46832abcfb
7
+ data.tar.gz: 345c9f9fb488991a3c7507c4eb15d5b2454b75846a85cc29b30881b1fe81aba00203eded8401be5a13ef5385787ac81abb700a3d4bd4b95ae60f6973aed3ad26
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kitabu (2.0.2)
4
+ kitabu (2.0.3)
5
5
  activesupport
6
6
  eeepub-with-cover-support
7
7
  i18n
@@ -45,6 +45,8 @@ module Kitabu
45
45
  else
46
46
  sup.remove_attribute 'id'
47
47
  end
48
+
49
+ sup.css('a').first.content = footnote_index
48
50
  end
49
51
  end
50
52
  end
@@ -2,7 +2,7 @@ module Kitabu
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 0
5
- PATCH = 2
5
+ PATCH = 3
6
6
  STRING = "#{MAJOR}.#{MINOR}.#{PATCH}"
7
7
  end
8
8
  end
@@ -57,6 +57,14 @@ describe Kitabu::Footnotes::HTML do
57
57
  expect(chapter2).to have_tag('sup[id=fnref4]', count: 1)
58
58
  end
59
59
 
60
+ it 'updates link to footnote' do
61
+ expect(chapter1).to have_tag('sup:nth-child(1) > a', text: '1', count: 2)
62
+ expect(chapter1).to have_tag('sup:nth-child(2) > a', text: '2', count: 1)
63
+
64
+ expect(chapter2).to have_tag('sup:nth-child(1) > a', text: '3', count: 2)
65
+ expect(chapter2).to have_tag('sup:nth-child(2) > a', text: '4', count: 1)
66
+ end
67
+
60
68
  it 'sets footnote link-back' do
61
69
  expect(chapter1).to have_tag('.footnotes li:nth-child(1) a[rev=footnote][href="#fnref1"]')
62
70
  expect(chapter1).to have_tag('.footnotes li:nth-child(2) a[rev=footnote][href="#fnref2"]')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitabu
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nando Vieira