eac_cli 0.45.0 → 0.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6dd5466a1f7cc65d4299531cf8a513e3b26a57180dc110f17c20688f7a06f95e
|
|
4
|
+
data.tar.gz: 7d877160d393954a01bd957e4b203017d07c68c4f74d1263f3c76224631da63c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9b24f3028baade9f0d8c46f7f82286daebb93ce0e8a52ef2b1ebb3a0560f6a4125a8f8da569bef7f44a092096c4d75624a36f9435d706864099fc041a9b232a9
|
|
7
|
+
data.tar.gz: 346e5793dfd919b3a0ec09b6083b1db66e8e64dd41b279aa82ff8d290a6d60673a4a14657eee5469222c78ab69ff1a24dd53212d173e7d023602bc1944323f9a
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module EacCli
|
|
4
|
+
module RunnerWith
|
|
5
|
+
module OutputItem
|
|
6
|
+
class AsciidocFormatter < ::EacCli::RunnerWith::OutputItem::BaseFormatter
|
|
7
|
+
class Section
|
|
8
|
+
acts_as_instance_method
|
|
9
|
+
common_constructor :caller, :title, :content, :level
|
|
10
|
+
|
|
11
|
+
# @return [String]
|
|
12
|
+
def result
|
|
13
|
+
"#{formatted_title}#{formatted_content}"
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
protected
|
|
17
|
+
|
|
18
|
+
# @return [String]
|
|
19
|
+
def formatted_title
|
|
20
|
+
title.if_present('') { |_e| "#{'=' * level} #{title}\n\n" }
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# @return [String]
|
|
24
|
+
def formatted_content
|
|
25
|
+
caller.send(:output_object, content, level + 1)
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -43,27 +43,7 @@ module EacCli
|
|
|
43
43
|
"* #{string.to_s.strip}\n"
|
|
44
44
|
end
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
# @param content [String]
|
|
48
|
-
# @param level [Integer]
|
|
49
|
-
# @return [String]
|
|
50
|
-
def section(title, content, level)
|
|
51
|
-
"#{section_title(title, level)}\n\n#{section_content(content, level)}"
|
|
52
|
-
end
|
|
53
|
-
|
|
54
|
-
# @param title [String]
|
|
55
|
-
# @param level [Integer]
|
|
56
|
-
# @return [String]
|
|
57
|
-
def section_title(title, level)
|
|
58
|
-
"#{'=' * level} #{title}"
|
|
59
|
-
end
|
|
60
|
-
|
|
61
|
-
# @param content [String]
|
|
62
|
-
# @param level [Integer]
|
|
63
|
-
# @return [String]
|
|
64
|
-
def section_content(content, level)
|
|
65
|
-
output_object(content, level)
|
|
66
|
-
end
|
|
46
|
+
require_sub __FILE__, require_mode: :kernel
|
|
67
47
|
end
|
|
68
48
|
end
|
|
69
49
|
end
|
data/lib/eac_cli/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: eac_cli
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.46.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Esquilo Azul Company
|
|
8
|
+
autorequire:
|
|
8
9
|
bindir: bin
|
|
9
10
|
cert_chain: []
|
|
10
|
-
date:
|
|
11
|
+
date: 2026-04-17 00:00:00.000000000 Z
|
|
11
12
|
dependencies:
|
|
12
13
|
- !ruby/object:Gem::Dependency
|
|
13
14
|
name: clipboard
|
|
@@ -63,20 +64,14 @@ dependencies:
|
|
|
63
64
|
requirements:
|
|
64
65
|
- - "~>"
|
|
65
66
|
- !ruby/object:Gem::Version
|
|
66
|
-
version: '0.
|
|
67
|
-
- - ">="
|
|
68
|
-
- !ruby/object:Gem::Version
|
|
69
|
-
version: 0.128.6
|
|
67
|
+
version: '0.130'
|
|
70
68
|
type: :runtime
|
|
71
69
|
prerelease: false
|
|
72
70
|
version_requirements: !ruby/object:Gem::Requirement
|
|
73
71
|
requirements:
|
|
74
72
|
- - "~>"
|
|
75
73
|
- !ruby/object:Gem::Version
|
|
76
|
-
version: '0.
|
|
77
|
-
- - ">="
|
|
78
|
-
- !ruby/object:Gem::Version
|
|
79
|
-
version: 0.128.6
|
|
74
|
+
version: '0.130'
|
|
80
75
|
- !ruby/object:Gem::Dependency
|
|
81
76
|
name: tty-table
|
|
82
77
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -98,6 +93,9 @@ dependencies:
|
|
|
98
93
|
- - "~>"
|
|
99
94
|
- !ruby/object:Gem::Version
|
|
100
95
|
version: '0.12'
|
|
96
|
+
- - ">="
|
|
97
|
+
- !ruby/object:Gem::Version
|
|
98
|
+
version: 0.12.2
|
|
101
99
|
type: :development
|
|
102
100
|
prerelease: false
|
|
103
101
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -105,6 +103,11 @@ dependencies:
|
|
|
105
103
|
- - "~>"
|
|
106
104
|
- !ruby/object:Gem::Version
|
|
107
105
|
version: '0.12'
|
|
106
|
+
- - ">="
|
|
107
|
+
- !ruby/object:Gem::Version
|
|
108
|
+
version: 0.12.2
|
|
109
|
+
description:
|
|
110
|
+
email:
|
|
108
111
|
executables: []
|
|
109
112
|
extensions: []
|
|
110
113
|
extra_rdoc_files: []
|
|
@@ -171,6 +174,7 @@ files:
|
|
|
171
174
|
- lib/eac_cli/runner_with/output/clipboard_writer.rb
|
|
172
175
|
- lib/eac_cli/runner_with/output_item.rb
|
|
173
176
|
- lib/eac_cli/runner_with/output_item/asciidoc_formatter.rb
|
|
177
|
+
- lib/eac_cli/runner_with/output_item/asciidoc_formatter/section.rb
|
|
174
178
|
- lib/eac_cli/runner_with/output_item/base_formatter.rb
|
|
175
179
|
- lib/eac_cli/runner_with/output_item/csv_formatter.rb
|
|
176
180
|
- lib/eac_cli/runner_with/output_item/yaml_formatter.rb
|
|
@@ -191,8 +195,10 @@ files:
|
|
|
191
195
|
- lib/eac_cli/speaker/options.rb
|
|
192
196
|
- lib/eac_cli/speaker/request_from_list.rb
|
|
193
197
|
- lib/eac_cli/version.rb
|
|
198
|
+
homepage:
|
|
194
199
|
licenses: []
|
|
195
200
|
metadata: {}
|
|
201
|
+
post_install_message:
|
|
196
202
|
rdoc_options: []
|
|
197
203
|
require_paths:
|
|
198
204
|
- lib
|
|
@@ -207,7 +213,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
207
213
|
- !ruby/object:Gem::Version
|
|
208
214
|
version: '0'
|
|
209
215
|
requirements: []
|
|
210
|
-
rubygems_version: 3.
|
|
216
|
+
rubygems_version: 3.4.19
|
|
217
|
+
signing_key:
|
|
211
218
|
specification_version: 4
|
|
212
219
|
summary: Utilities to build CLI applications with Ruby.
|
|
213
220
|
test_files: []
|