aozora2html 2.0.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/rubocop.yml +19 -0
  3. data/.github/workflows/ruby.yml +4 -1
  4. data/.rubocop.yml +36 -152
  5. data/.rubocop_todo.yml +7 -0
  6. data/CHANGELOG.md +26 -0
  7. data/Gemfile +2 -0
  8. data/Guardfile +3 -1
  9. data/HACKING.md +45 -0
  10. data/README.md +14 -6
  11. data/Rakefile +12 -5
  12. data/aozora2html.gemspec +24 -22
  13. data/bin/aozora2html +21 -19
  14. data/lib/aozora2html/accent_parser.rb +62 -54
  15. data/lib/aozora2html/error.rb +5 -4
  16. data/lib/aozora2html/header.rb +20 -18
  17. data/lib/aozora2html/i18n.rb +40 -20
  18. data/lib/aozora2html/ruby_buffer.rb +63 -28
  19. data/lib/aozora2html/string_refinements.rb +36 -0
  20. data/lib/aozora2html/style_stack.rb +6 -0
  21. data/lib/aozora2html/tag/accent.rb +10 -12
  22. data/lib/aozora2html/tag/block.rb +11 -9
  23. data/lib/aozora2html/tag/chitsuki.rb +6 -2
  24. data/lib/aozora2html/tag/dakuten_katakana.rb +10 -8
  25. data/lib/aozora2html/tag/decorate.rb +4 -3
  26. data/lib/aozora2html/tag/dir.rb +4 -2
  27. data/lib/aozora2html/tag/editor_note.rb +7 -4
  28. data/lib/aozora2html/tag/embed_gaiji.rb +15 -11
  29. data/lib/aozora2html/tag/font_size.rb +5 -2
  30. data/lib/aozora2html/tag/gaiji.rb +4 -3
  31. data/lib/aozora2html/tag/img.rb +4 -4
  32. data/lib/aozora2html/tag/indent.rb +3 -3
  33. data/lib/aozora2html/tag/inline.rb +10 -7
  34. data/lib/aozora2html/tag/inline_caption.rb +4 -2
  35. data/lib/aozora2html/tag/inline_font_size.rb +4 -3
  36. data/lib/aozora2html/tag/inline_keigakomi.rb +4 -2
  37. data/lib/aozora2html/tag/inline_yokogumi.rb +4 -3
  38. data/lib/aozora2html/tag/jisage.rb +3 -1
  39. data/lib/aozora2html/tag/jizume.rb +3 -0
  40. data/lib/aozora2html/tag/kaeriten.rb +4 -2
  41. data/lib/aozora2html/tag/keigakomi.rb +15 -9
  42. data/lib/aozora2html/tag/kunten.rb +4 -4
  43. data/lib/aozora2html/tag/midashi.rb +3 -1
  44. data/lib/aozora2html/tag/multiline.rb +3 -0
  45. data/lib/aozora2html/tag/multiline_caption.rb +6 -8
  46. data/lib/aozora2html/tag/multiline_chitsuki.rb +3 -1
  47. data/lib/aozora2html/tag/multiline_jisage.rb +3 -1
  48. data/lib/aozora2html/tag/multiline_midashi.rb +6 -3
  49. data/lib/aozora2html/tag/multiline_style.rb +5 -3
  50. data/lib/aozora2html/tag/multiline_yokogumi.rb +6 -9
  51. data/lib/aozora2html/tag/okurigana.rb +4 -2
  52. data/lib/aozora2html/tag/oneline_chitsuki.rb +3 -2
  53. data/lib/aozora2html/tag/oneline_indent.rb +8 -1
  54. data/lib/aozora2html/tag/oneline_jisage.rb +3 -0
  55. data/lib/aozora2html/tag/reference_mentioned.rb +22 -21
  56. data/lib/aozora2html/tag/ruby.rb +174 -70
  57. data/lib/aozora2html/tag/un_embed_gaiji.rb +8 -2
  58. data/lib/aozora2html/tag.rb +40 -38
  59. data/lib/aozora2html/tag_parser.rb +23 -16
  60. data/lib/aozora2html/text_buffer.rb +50 -0
  61. data/lib/aozora2html/utils.rb +113 -50
  62. data/lib/aozora2html/version.rb +3 -1
  63. data/lib/aozora2html/yaml_loader.rb +8 -2
  64. data/lib/aozora2html/zip.rb +4 -0
  65. data/lib/aozora2html.rb +1358 -3
  66. data/lib/extensions.rb +2 -34
  67. data/lib/jstream.rb +96 -25
  68. data/sample/chukiichiran_kinyurei.html +15 -2
  69. data/sample/chukiichiran_kinyurei.txt +15 -2
  70. data/test/test_aozora2html.rb +137 -148
  71. data/test/test_aozora_accent_parser.rb +26 -9
  72. data/test/test_command_parse.rb +25 -22
  73. data/test/test_compat.rb +3 -4
  74. data/test/test_dakuten_katakana_tag.rb +10 -12
  75. data/test/test_decorate_tag.rb +9 -6
  76. data/test/test_dir_tag.rb +9 -6
  77. data/test/test_editor_note_tag.rb +8 -5
  78. data/test/test_exception.rb +10 -8
  79. data/test/test_font_size_tag.rb +16 -13
  80. data/test/test_gaiji_tag.rb +15 -14
  81. data/test/test_header.rb +25 -40
  82. data/test/test_helper.rb +3 -1
  83. data/test/test_i18n.rb +22 -6
  84. data/test/test_img_tag.rb +9 -5
  85. data/test/test_inline_caption_tag.rb +9 -6
  86. data/test/test_inline_font_size_tag.rb +13 -10
  87. data/test/test_inline_keigakomi_tag.rb +9 -6
  88. data/test/test_inline_yokogumi_tag.rb +9 -6
  89. data/test/test_jizume_tag.rb +9 -7
  90. data/test/test_jstream.rb +33 -30
  91. data/test/test_kaeriten_tag.rb +9 -6
  92. data/test/test_keigakomi_tag.rb +11 -9
  93. data/test/test_midashi_tag.rb +15 -14
  94. data/test/test_multiline_caption_tag.rb +7 -5
  95. data/test/test_multiline_midashi_tag.rb +24 -25
  96. data/test/test_multiline_style_tag.rb +9 -7
  97. data/test/test_multiline_yokogumi_tag.rb +7 -5
  98. data/test/test_okurigana_tag.rb +9 -6
  99. data/test/test_ruby_parse.rb +14 -14
  100. data/test/test_ruby_tag.rb +9 -6
  101. data/test/test_tag_parser.rb +28 -26
  102. metadata +60 -14
  103. data/.travis.yml +0 -12
  104. data/lib/t2hs.rb +0 -1607
@@ -1,4 +1,5 @@
1
- # encoding: utf-8
1
+ # frozen_string_literal: true
2
+
2
3
  require 'test_helper'
3
4
  require 'aozora2html'
4
5
 
@@ -65,41 +66,43 @@ class RubyParseTest < Test::Unit::TestCase
65
66
  def test_parse_ruby7
66
67
  src = "青空文庫《あおぞらぶんこ》[#「青空文庫」の左に「aozora bunko」のルビ]\r\n"
67
68
  parsed = parse_text(src)
68
- expected = %Q|<ruby><rb>青空文庫</rb><rp>(</rp><rt>あおぞらぶんこ</rt><rp>)</rp></ruby><span class="notes">[#「青空文庫」の左に「aozora bunko」のルビ]</span><br />\r\n|
69
+ expected = %Q(<ruby><rb>青空文庫</rb><rp>(</rp><rt>あおぞらぶんこ</rt><rp>)</rp></ruby><span class="notes">[#「青空文庫」の左に「aozora bunko」のルビ]</span><br />\r\n)
69
70
  assert_equal expected, parsed
70
71
  end
71
72
 
72
73
  def test_parse_ruby8
73
74
  src = "大空文庫[#「大空文庫」に「ママ」の注記]\r\n"
74
75
  parsed = parse_text(src)
75
- expected = %Q|<ruby><rb>大空文庫</rb><rp>(</rp><rt>ママ</rt><rp>)</rp></ruby><br />\r\n|
76
+ expected = %Q(<ruby><rb>大空文庫</rb><rp>(</rp><rt>ママ</rt><rp>)</rp></ruby><br />\r\n)
76
77
  assert_equal expected, parsed
77
78
  end
78
79
 
79
80
  def test_parse_ruby9
80
81
  src = "大空文庫[#「大空文庫」の左に「ママ」の注記]\r\n"
81
82
  parsed = parse_text(src)
82
- expected = %Q|大空文庫<span class="notes">[#「大空文庫」の左に「ママ」の注記]</span><br />\r\n|
83
+ expected = %Q(大空文庫<span class="notes">[#「大空文庫」の左に「ママ」の注記]</span><br />\r\n)
83
84
  assert_equal expected, parsed
84
85
  end
85
86
 
86
87
  def test_parse_ruby10
87
88
  src = "大空文庫《あおぞらぶんこ》[#「大空文庫」の左に「ママ」の注記]\r\n"
88
89
  parsed = parse_text(src)
89
- expected = %Q|<ruby><rb>大空文庫</rb><rp>(</rp><rt>あおぞらぶんこ</rt><rp>)</rp></ruby><span class="notes">[#「大空文庫」の左に「ママ」の注記]</span><br />\r\n|
90
+ expected = %Q(<ruby><rb>大空文庫</rb><rp>(</rp><rt>あおぞらぶんこ</rt><rp>)</rp></ruby><span class="notes">[#「大空文庫」の左に「ママ」の注記]</span><br />\r\n)
90
91
  assert_equal expected, parsed
91
92
  end
92
93
 
93
94
  def test_parse_ruby11
94
95
  src = "大空文庫《あおぞらぶんこ》[#「大空文庫」の左に「ママ」の注記]\r\n"
95
96
  parsed = parse_text(src)
96
- expected = %Q|<ruby><rb>大空文庫</rb><rp>(</rp><rt>あおぞらぶんこ</rt><rp>)</rp></ruby><span class="notes">[#「大空文庫」の左に「ママ」の注記]</span><br />\r\n|
97
+ expected = %Q(<ruby><rb>大空文庫</rb><rp>(</rp><rt>あおぞらぶんこ</rt><rp>)</rp></ruby><span class="notes">[#「大空文庫」の左に「ママ」の注記]</span><br />\r\n)
97
98
  assert_equal expected, parsed
98
99
  end
99
100
 
101
+ using Aozora2Html::StringRefinements
102
+
100
103
  def test_parse_ruby12
101
104
  src = "大空文庫《あおぞらぶんこ》[#「大空文庫」に「ママ」の注記]\r\n"
102
- assert_raise(Aozora2Html::Error.new("同じ箇所に2つのルビはつけられません".encode("shift_jis"))) do
105
+ assert_raise(Aozora2Html::Error.new('同じ箇所に2つのルビはつけられません'.to_sjis)) do
103
106
  _parsed = parse_text(src)
104
107
  end
105
108
  end
@@ -112,19 +115,16 @@ class RubyParseTest < Test::Unit::TestCase
112
115
  end
113
116
 
114
117
  def parse_text(input_text)
115
- input = StringIO.new(input_text.encode("shift_jis"))
118
+ input = StringIO.new(input_text.to_sjis)
116
119
  output = StringIO.new
117
120
  parser = Aozora2Html.new(input, output)
118
- parser.instance_eval{@section=:tail}
121
+ parser.instance_eval { @section = :tail }
119
122
  catch(:terminate) do
120
123
  loop do
121
- parser.parse
124
+ parser.__send__(:parse)
122
125
  end
123
126
  end
124
127
 
125
- output.string.encode("utf-8")
128
+ output.string.to_utf8
126
129
  end
127
-
128
130
  end
129
-
130
-
@@ -1,22 +1,25 @@
1
- # encoding: utf-8
1
+ # frozen_string_literal: true
2
+
2
3
  require 'test_helper'
3
4
  require 'aozora2html'
4
5
 
5
6
  class RubyTagTest < Test::Unit::TestCase
6
7
  def setup
7
8
  @parser = Object.new
8
- stub(@parser).block_allowed_context?{true}
9
+ stub(@parser).block_allowed_context? { true }
9
10
  end
10
11
 
12
+ using Aozora2Html::StringRefinements
13
+
11
14
  def test_ruby_new
12
- tag = Aozora2Html::Tag::Ruby.new(@parser,"aaa".encode("shift_jis"),"bb")
15
+ tag = Aozora2Html::Tag::Ruby.new(@parser, 'aaa'.to_sjis, 'bb')
13
16
  assert_equal Aozora2Html::Tag::Ruby, tag.class
14
- assert_equal true, tag.kind_of?(Aozora2Html::Tag::Inline)
17
+ assert_equal true, tag.is_a?(Aozora2Html::Tag::Inline)
15
18
  end
16
19
 
17
20
  def test_to_s
18
- tag = Aozora2Html::Tag::Ruby.new(@parser,"テスト".encode("shift_jis"),"てすと".encode("shift_jis"))
19
- assert_equal "<ruby><rb>テスト</rb><rp>(</rp><rt>てすと</rt><rp>)</rp></ruby>", tag.to_s.encode("utf-8")
21
+ tag = Aozora2Html::Tag::Ruby.new(@parser, 'テスト'.to_sjis, 'てすと'.to_sjis)
22
+ assert_equal '<ruby><rb>テスト</rb><rp>(</rp><rt>てすと</rt><rp>)</rp></ruby>', tag.to_s.to_utf8
20
23
  end
21
24
 
22
25
  def teardown
@@ -1,4 +1,5 @@
1
- # encoding: utf-8
1
+ # frozen_string_literal: true
2
+
2
3
  require 'test_helper'
3
4
  require 'aozora2html'
4
5
  require 'fileutils'
@@ -9,72 +10,73 @@ class TagParserTest < Test::Unit::TestCase
9
10
  @jisx0213 = Aozora2Html::Tag::EmbedGaiji.use_jisx0213
10
11
  end
11
12
 
13
+ using Aozora2Html::StringRefinements
14
+
12
15
  def test_parse_katakana
13
- str = "テスト!あいうえお\r\n".encode("shift_jis")
16
+ str = "テスト!あいうえお\r\n".to_sjis
14
17
  strio = StringIO.new(str)
15
18
  stream = Jstream.new(strio)
16
- command, _raw = Aozora2Html::TagParser.new(stream,"".encode("shift_jis"),{},[]).process
17
- expected = "テスト"
18
- assert_equal expected, command.to_s.encode("utf-8")
19
+ command, _raw = Aozora2Html::TagParser.new(stream, ''.to_sjis, {}, [], gaiji_dir: nil).process
20
+ expected = 'テスト'
21
+ assert_equal expected, command.to_s.to_utf8
19
22
  end
20
23
 
21
24
  def test_parse_bouten
22
- str = "腹がへっても[#「腹がへっても」に傍点]、ひもじゅうない[#「ひもじゅうない」に傍点]とかぶりを振っている…\r\n".encode("shift_jis")
25
+ str = "腹がへっても[#「腹がへっても」に傍点]、ひもじゅうない[#「ひもじゅうない」に傍点]とかぶりを振っている…\r\n".to_sjis
23
26
  strio = StringIO.new(str)
24
27
  stream = Jstream.new(strio)
25
- command, _raw = Aozora2Html::TagParser.new(stream,"".encode("shift_jis"),{},[]).process
28
+ command, _raw = Aozora2Html::TagParser.new(stream, ''.to_sjis, {}, [], gaiji_dir: nil).process
26
29
  expected = '<em class="sesame_dot">腹がへっても</em>、<em class="sesame_dot">ひもじゅうない</em>とかぶりを振っている'
27
- assert_equal expected, command.to_s.encode("utf-8")
30
+ assert_equal expected, command.to_s.to_utf8
28
31
  end
29
32
 
30
33
  def test_parse_gaiji
31
- str = "※[#「てへん+劣」、第3水準1-84-77]…\r\n".encode("shift_jis")
34
+ str = "※[#「てへん+劣」、第3水準1-84-77]…\r\n".to_sjis
32
35
  strio = StringIO.new(str)
33
36
  stream = Jstream.new(strio)
34
- command, _raw = Aozora2Html::TagParser.new(stream,"".encode("shift_jis"),{},[]).process
35
- expected = '<img src="../../../gaiji/1-84/1-84-77.png" alt="※(「てへん+劣」、第3水準1-84-77)" class="gaiji" />'
36
- assert_equal expected, command.to_s.encode("utf-8")
37
+ command, _raw = Aozora2Html::TagParser.new(stream, ''.to_sjis, {}, [], gaiji_dir: 'g_dir/').process
38
+ expected = '<img src="g_dir/1-84/1-84-77.png" alt="※(「てへん+劣」、第3水準1-84-77)" class="gaiji" />'
39
+ assert_equal expected, command.to_s.to_utf8
37
40
  end
38
41
 
39
42
  def test_parse_gaiji_a
40
- str = "※[#「口+世」、ページ数-行数]…\r\n".encode("shift_jis")
43
+ str = "※[#「口+世」、ページ数-行数]…\r\n".to_sjis
41
44
  strio = StringIO.new(str)
42
45
  stream = Jstream.new(strio)
43
- command, _raw = Aozora2Html::TagParser.new(stream,"".encode("shift_jis"),{},[]).process
46
+ command, _raw = Aozora2Html::TagParser.new(stream, ''.to_sjis, {}, [], gaiji_dir: 'g_dir/').process
44
47
  expected = '※<span class="notes">[#「口+世」、ページ数-行数]</span>'
45
- assert_equal expected, command.to_s.encode("utf-8")
48
+ assert_equal expected, command.to_s.to_utf8
46
49
  end
47
50
 
48
51
  def test_parse_gaiji_b
49
- str = "※[#二の字点、1-2-22]…\r\n".encode("shift_jis")
52
+ str = "※[#二の字点、1-2-22]…\r\n".to_sjis
50
53
  strio = StringIO.new(str)
51
54
  stream = Jstream.new(strio)
52
- command, _raw = Aozora2Html::TagParser.new(stream,"".encode("shift_jis"),{},[]).process
53
- expected = '<img src="../../../gaiji/1-02/1-02-22.png" alt="※(二の字点、1-2-22)" class="gaiji" />'
54
- assert_equal expected, command.to_s.encode("utf-8")
55
+ command, _raw = Aozora2Html::TagParser.new(stream, ''.to_sjis, {}, [], gaiji_dir: 'g_dir/').process
56
+ expected = '<img src="g_dir/1-02/1-02-22.png" alt="※(二の字点、1-2-22)" class="gaiji" />'
57
+ assert_equal expected, command.to_s.to_utf8
55
58
  end
56
59
 
57
60
  def test_parse_gaiji_kaeri
58
- str = "自[#二]女王國[#一]東度[#レ]海千餘里。…\r\n".encode("shift_jis")
61
+ str = "自[#二]女王國[#一]東度[#レ]海千餘里。…\r\n".to_sjis
59
62
  strio = StringIO.new(str)
60
63
  stream = Jstream.new(strio)
61
- command, _raw = Aozora2Html::TagParser.new(stream,"".encode("shift_jis"),{},[]).process
64
+ command, _raw = Aozora2Html::TagParser.new(stream, ''.to_sjis, {}, [], gaiji_dir: 'g_dir/').process
62
65
  expected = '自<sub class="kaeriten">二</sub>女王國<sub class="kaeriten">一</sub>東度<sub class="kaeriten">レ</sub>海千餘里。'
63
- assert_equal expected, command.to_s.encode("utf-8")
66
+ assert_equal expected, command.to_s.to_utf8
64
67
  end
65
68
 
66
69
  def test_parse_gaiji_jisx0213
67
70
  Aozora2Html::Tag::EmbedGaiji.use_jisx0213 = true
68
- str = "※[#「てへん+劣」、第3水準1-84-77]…\r\n".encode("shift_jis")
71
+ str = "※[#「てへん+劣」、第3水準1-84-77]…\r\n".to_sjis
69
72
  strio = StringIO.new(str)
70
73
  stream = Jstream.new(strio)
71
- command, _raw = Aozora2Html::TagParser.new(stream,"".encode("shift_jis"),{},[]).process
74
+ command, _raw = Aozora2Html::TagParser.new(stream, ''.to_sjis, {}, [], gaiji_dir: 'g_dir/').process
72
75
  expected = '&#x6318;'
73
- assert_equal expected, command.to_s.encode("utf-8")
76
+ assert_equal expected, command.to_s.to_utf8
74
77
  end
75
78
 
76
79
  def teardown
77
80
  Aozora2Html::Tag::EmbedGaiji.use_jisx0213 = @jisx0213
78
81
  end
79
82
  end
80
-
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aozora2html
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - aozorahack team
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-05 00:00:00.000000000 Z
11
+ date: 2021-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '2.0'
19
+ version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '2.0'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -52,6 +52,48 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '12.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubocop
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop-performance
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop-rake
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
55
97
  - !ruby/object:Gem::Dependency
56
98
  name: test-unit
57
99
  requirement: !ruby/object:Gem::Requirement
@@ -89,13 +131,15 @@ executables:
89
131
  extensions: []
90
132
  extra_rdoc_files: []
91
133
  files:
134
+ - ".github/workflows/rubocop.yml"
92
135
  - ".github/workflows/ruby.yml"
93
136
  - ".gitignore"
94
137
  - ".rubocop.yml"
95
- - ".travis.yml"
138
+ - ".rubocop_todo.yml"
96
139
  - CHANGELOG.md
97
140
  - Gemfile
98
141
  - Guardfile
142
+ - HACKING.md
99
143
  - LICENSE
100
144
  - README.md
101
145
  - Rakefile
@@ -107,6 +151,7 @@ files:
107
151
  - lib/aozora2html/header.rb
108
152
  - lib/aozora2html/i18n.rb
109
153
  - lib/aozora2html/ruby_buffer.rb
154
+ - lib/aozora2html/string_refinements.rb
110
155
  - lib/aozora2html/style_stack.rb
111
156
  - lib/aozora2html/tag.rb
112
157
  - lib/aozora2html/tag/accent.rb
@@ -147,13 +192,13 @@ files:
147
192
  - lib/aozora2html/tag/ruby.rb
148
193
  - lib/aozora2html/tag/un_embed_gaiji.rb
149
194
  - lib/aozora2html/tag_parser.rb
195
+ - lib/aozora2html/text_buffer.rb
150
196
  - lib/aozora2html/utils.rb
151
197
  - lib/aozora2html/version.rb
152
198
  - lib/aozora2html/yaml_loader.rb
153
199
  - lib/aozora2html/zip.rb
154
200
  - lib/extensions.rb
155
201
  - lib/jstream.rb
156
- - lib/t2hs.rb
157
202
  - sample/chukiichiran_kinyurei.html
158
203
  - sample/chukiichiran_kinyurei.txt
159
204
  - test/test_aozora2html.rb
@@ -197,8 +242,9 @@ files:
197
242
  homepage: https://github.com/aozorahack/aozora2html
198
243
  licenses:
199
244
  - CC0
200
- metadata: {}
201
- post_install_message:
245
+ metadata:
246
+ rubygems_mfa_required: 'true'
247
+ post_install_message:
202
248
  rdoc_options: []
203
249
  require_paths:
204
250
  - lib
@@ -206,15 +252,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
206
252
  requirements:
207
253
  - - ">="
208
254
  - !ruby/object:Gem::Version
209
- version: '0'
255
+ version: 2.7.0
210
256
  required_rubygems_version: !ruby/object:Gem::Requirement
211
257
  requirements:
212
258
  - - ">="
213
259
  - !ruby/object:Gem::Version
214
260
  version: '0'
215
261
  requirements: []
216
- rubygems_version: 3.0.3.1
217
- signing_key:
262
+ rubygems_version: 3.2.32
263
+ signing_key:
218
264
  specification_version: 4
219
265
  summary: converter from Aozora Bunko format into xhtml. It's based of t2hs.rb from
220
266
  kumihan.aozora.gr.jp.
data/.travis.yml DELETED
@@ -1,12 +0,0 @@
1
- sudo: false
2
- cache: bundler
3
- rvm:
4
- - 1.9.3
5
- - 2.0
6
- - 2.1
7
- - 2.2
8
- - 2.3.1
9
-
10
- branches:
11
- only:
12
- - master