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: eb16b5036a3115476326afa24a89bc40da17326fa76ea99f1d7df0bb021b53db
4
- data.tar.gz: 4fc856b7b229420888cc496f798f0dac76681a339a9feaa319eab6759bf38be4
3
+ metadata.gz: 86e7479fb17c135b93292f4069c45482cbe5a3ba102fcad365ca7f3e63b9052d
4
+ data.tar.gz: 2b3214a713b0d10db4e92dbf938bc0926f4dd50d10a4b57e4d8af8483341c4d9
5
5
  SHA512:
6
- metadata.gz: 90988a7ba168f8a781121a46721eb798b5bb6429b04a0e58da80c97d48ebf4e6b8b0fbdc83d67cf993899da5bb0ac1eb20904f4098751ea019f112096997cc8e
7
- data.tar.gz: 578fc517e677e5460815d7cb03eca55ab438158060aa17508d1751d180378dabf009de46aaf3db1637d796732995ba565acdc80404e09708fbf68016957f0b70
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]
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacAsciidoctorBase0
5
- VERSION = '0.21.0'
5
+ VERSION = '0.22.0'
6
6
  end
7
7
  end
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.21.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: 2023-11-22 00:00:00.000000000 Z
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.2
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.2
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.120'
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.120'
66
+ version: '0.121'
67
67
  - !ruby/object:Gem::Dependency
68
68
  name: os
69
69
  requirement: !ruby/object:Gem::Requirement