textbringer-presentation 0.1.3 → 0.1.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41096a246e03179218e303f250ad12339d5852e416282c83b1eb34ae9198ee44
|
4
|
+
data.tar.gz: 93e09995e105e45d1f5f63d9c66ca7829659830733ee43953254dfb726120c55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 520327450ae05a48456a5f39d2a83818c6f2d22e312e1aa85c33843f69e29a56c43e753dbfb324e10bdf93ef624a6bacbff90470cce131e8a7a7417ec047985f
|
7
|
+
data.tar.gz: 58ecb3a5611f94d2ee22d11ca3561b5f6cc1bc4fceb803b24e5d7d97f6d2a1b8d3a16c25056a7055a47518386351488ebfcb6ec53f73d86142514066265f371e
|
@@ -24,17 +24,17 @@ module Textbringer
|
|
24
24
|
class SlideList
|
25
25
|
def initialize(buffer)
|
26
26
|
@buffer = buffer
|
27
|
-
doc =
|
27
|
+
doc = Commonmarker.parse(@buffer.to_s)
|
28
28
|
@list = []
|
29
29
|
slide = nil
|
30
30
|
i = 1
|
31
31
|
@buffer.save_excursion do
|
32
32
|
doc.each do |node|
|
33
|
-
if node.type == :
|
34
|
-
@buffer.goto_line(node.
|
33
|
+
if node.type == :heading
|
34
|
+
@buffer.goto_line(node.source_position[:start_line])
|
35
35
|
slide.end_pos = @buffer.point - 1 if slide
|
36
|
-
title = node.
|
37
|
-
slide = Slide.new(buffer, i, title)
|
36
|
+
title = node.map { |c| c.string_content }.join.strip
|
37
|
+
slide = Slide.new(@buffer, i, title)
|
38
38
|
slide.start_pos = @buffer.point
|
39
39
|
@list.push(slide)
|
40
40
|
i += 1
|
@@ -22,10 +22,10 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.require_paths = ["lib"]
|
23
23
|
|
24
24
|
spec.add_runtime_dependency "textbringer"
|
25
|
-
spec.add_runtime_dependency "commonmarker"
|
25
|
+
spec.add_runtime_dependency "commonmarker", ">= 2.0.0"
|
26
26
|
|
27
27
|
spec.add_development_dependency "bundler"
|
28
|
-
spec.add_development_dependency "rake", "
|
28
|
+
spec.add_development_dependency "rake", ">= 12.0"
|
29
29
|
spec.add_development_dependency "test-unit"
|
30
30
|
spec.add_development_dependency "simplecov"
|
31
31
|
spec.add_development_dependency "codecov"
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: textbringer-presentation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shugo Maeda
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2024-12-03 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: textbringer
|
@@ -30,14 +29,14 @@ dependencies:
|
|
30
29
|
requirements:
|
31
30
|
- - ">="
|
32
31
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
32
|
+
version: 2.0.0
|
34
33
|
type: :runtime
|
35
34
|
prerelease: false
|
36
35
|
version_requirements: !ruby/object:Gem::Requirement
|
37
36
|
requirements:
|
38
37
|
- - ">="
|
39
38
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
39
|
+
version: 2.0.0
|
41
40
|
- !ruby/object:Gem::Dependency
|
42
41
|
name: bundler
|
43
42
|
requirement: !ruby/object:Gem::Requirement
|
@@ -56,14 +55,14 @@ dependencies:
|
|
56
55
|
name: rake
|
57
56
|
requirement: !ruby/object:Gem::Requirement
|
58
57
|
requirements:
|
59
|
-
- - "
|
58
|
+
- - ">="
|
60
59
|
- !ruby/object:Gem::Version
|
61
60
|
version: '12.0'
|
62
61
|
type: :development
|
63
62
|
prerelease: false
|
64
63
|
version_requirements: !ruby/object:Gem::Requirement
|
65
64
|
requirements:
|
66
|
-
- - "
|
65
|
+
- - ">="
|
67
66
|
- !ruby/object:Gem::Version
|
68
67
|
version: '12.0'
|
69
68
|
- !ruby/object:Gem::Dependency
|
@@ -189,7 +188,6 @@ homepage: https://github.com/shugo/textbringer
|
|
189
188
|
licenses:
|
190
189
|
- MIT
|
191
190
|
metadata: {}
|
192
|
-
post_install_message:
|
193
191
|
rdoc_options: []
|
194
192
|
require_paths:
|
195
193
|
- lib
|
@@ -204,8 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
204
202
|
- !ruby/object:Gem::Version
|
205
203
|
version: '0'
|
206
204
|
requirements: []
|
207
|
-
rubygems_version: 3.
|
208
|
-
signing_key:
|
205
|
+
rubygems_version: 3.6.0.dev
|
209
206
|
specification_version: 4
|
210
207
|
summary: Presentation mode for Textbringer.
|
211
208
|
test_files: []
|