asciidoctor-fb2 0.5.0 → 0.6.0

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
  SHA256:
3
- metadata.gz: c555e2357c435e3c610002145c7b4a58b82d7530047d8fa009d921e2aebbfde5
4
- data.tar.gz: 6e1a5b3c71aa773f61a0a62bd6239c8e4b921b11d25662c2760fc732d4da777e
3
+ metadata.gz: b4d14683d6ca5653b835701b7e011b3bc7660755cbd1be151f1d422d8579b809
4
+ data.tar.gz: 7ef57fe7e10a895f66d46e860c28ba04c895b7fa275ce08790aed2247106c0c1
5
5
  SHA512:
6
- metadata.gz: f0c53813ad5e425649c0725672328ec5b9ce11d25469efe3adf784868a606efd6addba363ca1eba1f8b07a05814d6b7a48e5e3a407444516b6999b792af8ca3e
7
- data.tar.gz: d71cc775b12df68fa8140c26e3d36268493ddc316c078efee3a4c27d17d7d4c9a0bf56f9f9d22ca586e94607e6e72f658867e5f11cc6316364c6fbfed3571be9
6
+ metadata.gz: 609c8f2167f11b4d5186db98081739ceec1ed6ab76078a2a453e85ec6f04c0089b51049aa8690c6aeb4888b5314cfb559a2560dccfc04c54f2931253dafae48a
7
+ data.tar.gz: 167f9296722e1c510e441d3e3243c0074c487fdcd08b83400738f5b6899ffcb450c9b17c423cddf37e53ee75044983d72deec437ad9864f333db6d5b4e6575cb
@@ -5,23 +5,23 @@ jobs:
5
5
  runs-on: ubuntu-latest
6
6
  steps:
7
7
  - name: Checkout
8
- uses: actions/checkout@v2
8
+ uses: actions/checkout@v3
9
9
  - name: Set up Ruby
10
10
  uses: ruby/setup-ruby@v1
11
11
  with:
12
- ruby-version: '3.0'
12
+ ruby-version: '3.1'
13
13
  bundler-cache: true
14
14
  - name: Lint
15
15
  run: bundle exec rake lint
16
16
  test:
17
17
  strategy:
18
18
  matrix:
19
- ruby: ['jruby', '2.4', '2.5', '2.6', '2.7', '3.0']
19
+ ruby: ['jruby', '2.4', '2.5', '2.6', '2.7', '3.0', '3.1']
20
20
  os: [ubuntu-latest, macos-latest, windows-latest]
21
21
  runs-on: ${{ matrix.os }}
22
22
  steps:
23
23
  - name: Checkout
24
- uses: actions/checkout@v2
24
+ uses: actions/checkout@v3
25
25
  - name: Set up Ruby
26
26
  uses: ruby/setup-ruby@v1
27
27
  with:
@@ -7,11 +7,11 @@ jobs:
7
7
  build:
8
8
  runs-on: ubuntu-latest
9
9
  steps:
10
- - uses: actions/checkout@v2
10
+ - uses: actions/checkout@v3
11
11
  - name: Set up Ruby
12
12
  uses: ruby/setup-ruby@v1
13
13
  with:
14
- ruby-version: '3.0'
14
+ ruby-version: '3.1'
15
15
  - name: Publish to RubyGems.org
16
16
  uses: dawidd6/action-publish-gem@v1
17
17
  with:
data/CHANGELOG.adoc CHANGED
@@ -7,6 +7,14 @@
7
7
  This document provides a high-level view of the changes to the {project-name} by release.
8
8
  For a detailed view of what has changed, refer to the {uri-project}/commits/master[commit history] on GitHub.
9
9
 
10
+ == 0.6.0 (2022-10-30) - @slonopotamus
11
+
12
+ * bump fb2rb to 0.7.0
13
+
14
+ == 0.5.1 (2021-04-01) - @slonopotamus
15
+
16
+ * add basic support for stem blocks
17
+
10
18
  == 0.5.0 (2021-03-31) - @slonopotamus
11
19
 
12
20
  * add support for `indexterm` and `intexterm2` inline macros
@@ -19,12 +19,12 @@ Gem::Specification.new do |s|
19
19
  s.require_paths = ['lib']
20
20
 
21
21
  s.add_runtime_dependency 'asciidoctor', '~> 2.0'
22
- s.add_runtime_dependency 'fb2rb', '~> 0.6.0'
22
+ s.add_runtime_dependency 'fb2rb', '>= 0.6', '< 0.8'
23
23
  s.add_runtime_dependency 'mime-types', '~> 3.0'
24
24
 
25
25
  s.add_development_dependency 'asciidoctor-diagram', '~> 2.0'
26
26
  s.add_development_dependency 'rake', '~> 13.0'
27
- s.add_development_dependency 'rspec', '~> 3.10.0'
27
+ s.add_development_dependency 'rspec', '~> 3.12.0'
28
28
  s.add_development_dependency 'rubocop', '~> 1.12.0'
29
29
  s.add_development_dependency 'rubocop-rake', '~> 0.5.0'
30
30
  s.add_development_dependency 'rubocop-rspec', '~> 2.2.0'
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Asciidoctor
4
4
  module FB2
5
- VERSION = '0.5.0'
5
+ VERSION = '0.6.0'
6
6
  end
7
7
  end
@@ -123,6 +123,11 @@ module Asciidoctor
123
123
  ''
124
124
  end
125
125
 
126
+ # @param node [Asciidoctor::Block]
127
+ def convert_stem(node)
128
+ %(<p><code>#{node.content}</code></p>)
129
+ end
130
+
126
131
  # @param node [Asciidoctor::Block]
127
132
  def convert_floating_title(node)
128
133
  %(<subtitle id="#{node.id}">#{node.title}</subtitle>)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asciidoctor-fb2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marat Radchenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-31 00:00:00.000000000 Z
11
+ date: 2022-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor
@@ -28,16 +28,22 @@ dependencies:
28
28
  name: fb2rb
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0.6'
34
+ - - "<"
32
35
  - !ruby/object:Gem::Version
33
- version: 0.6.0
36
+ version: '0.8'
34
37
  type: :runtime
35
38
  prerelease: false
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
38
- - - "~>"
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: '0.6'
44
+ - - "<"
39
45
  - !ruby/object:Gem::Version
40
- version: 0.6.0
46
+ version: '0.8'
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: mime-types
43
49
  requirement: !ruby/object:Gem::Requirement
@@ -86,14 +92,14 @@ dependencies:
86
92
  requirements:
87
93
  - - "~>"
88
94
  - !ruby/object:Gem::Version
89
- version: 3.10.0
95
+ version: 3.12.0
90
96
  type: :development
91
97
  prerelease: false
92
98
  version_requirements: !ruby/object:Gem::Requirement
93
99
  requirements:
94
100
  - - "~>"
95
101
  - !ruby/object:Gem::Version
96
- version: 3.10.0
102
+ version: 3.12.0
97
103
  - !ruby/object:Gem::Dependency
98
104
  name: rubocop
99
105
  requirement: !ruby/object:Gem::Requirement
@@ -184,7 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
184
190
  - !ruby/object:Gem::Version
185
191
  version: '0'
186
192
  requirements: []
187
- rubygems_version: 3.2.3
193
+ rubygems_version: 3.3.7
188
194
  signing_key:
189
195
  specification_version: 4
190
196
  summary: Converts AsciiDoc documents to FB2 e-book formats