avm-eac_asciidoctor_base0 0.21.0 → 0.22.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86e7479fb17c135b93292f4069c45482cbe5a3ba102fcad365ca7f3e63b9052d
|
4
|
+
data.tar.gz: 2b3214a713b0d10db4e92dbf938bc0926f4dd50d10a4b57e4d8af8483341c4d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 530c199794802416e40d2418882cd6f00e76ed32a317e2e3fd871a5e83cbab5f8db24d02ba4d1f3c02375468864e48d406bc3220a0f561d93e6c427184161fa1
|
7
|
+
data.tar.gz: 7c18f799d5a75cc044e86233486ca4aca0a37330e7d35eff81a0df127b32bfc444669d65b986f8e57bf728105884770f59c70cd0fea16f1c5c3f7255de29f1ec
|
@@ -10,9 +10,14 @@ module Avm
|
|
10
10
|
module Title
|
11
11
|
TITLE_BASENAME = 'title'
|
12
12
|
|
13
|
+
# @return [String]
|
14
|
+
def default_title
|
15
|
+
root_path.basename.to_s.humanize.split(/\s+/).map(&:upcase_first).join(' ')
|
16
|
+
end
|
17
|
+
|
13
18
|
# @return [String]
|
14
19
|
def title
|
15
|
-
title_path.read.strip
|
20
|
+
title_path.exist? ? title_path.read.strip : default_title
|
16
21
|
end
|
17
22
|
|
18
23
|
# @return [Pathname]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: avm-eac_asciidoctor_base0
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.22.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Put here the authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
version: '0.18'
|
40
40
|
- - ">="
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 0.18.
|
42
|
+
version: 0.18.3
|
43
43
|
type: :runtime
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -49,21 +49,21 @@ dependencies:
|
|
49
49
|
version: '0.18'
|
50
50
|
- - ">="
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version: 0.18.
|
52
|
+
version: 0.18.3
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: eac_ruby_utils
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
56
56
|
requirements:
|
57
57
|
- - "~>"
|
58
58
|
- !ruby/object:Gem::Version
|
59
|
-
version: '0.
|
59
|
+
version: '0.121'
|
60
60
|
type: :runtime
|
61
61
|
prerelease: false
|
62
62
|
version_requirements: !ruby/object:Gem::Requirement
|
63
63
|
requirements:
|
64
64
|
- - "~>"
|
65
65
|
- !ruby/object:Gem::Version
|
66
|
-
version: '0.
|
66
|
+
version: '0.121'
|
67
67
|
- !ruby/object:Gem::Dependency
|
68
68
|
name: os
|
69
69
|
requirement: !ruby/object:Gem::Requirement
|