faa-asciidoctor-extension 0.3

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: be8a20a4a101153b691828145519a90d518b1df3eff3ffd13370d8bcfed8bb9e
4
+ data.tar.gz: bc6c3b281b12a1d89bd1c33832f56285fcc11ee8660aec300b846d2b21717a18
5
+ SHA512:
6
+ metadata.gz: bb40be7b0099fa5406ee0e23ce30e17b41729845d65978161f6f0c02ae8f201d793f0cebc7024e7cc014bbefbd6468b05c5c9266f7ba92d564d1f057520e9ed9
7
+ data.tar.gz: 2a93a425e82388a6e4d4efe4b9f85a92a97332bfcd6207ec22dbcb03ffef26fb4e72dc8ab76d0a5e8e23d361a429db82efe7cb17c04842fa60e9d1b54a16e3cd
data/.autotest ADDED
@@ -0,0 +1,25 @@
1
+ # -*- ruby -*-
2
+
3
+ require "autotest/restart"
4
+
5
+ # Autotest.add_hook :initialize do |at|
6
+ # at.testlib = "minitest/unit"
7
+ #
8
+ # at.extra_files << "../some/external/dependency.rb"
9
+ #
10
+ # at.libs << ":../some/external"
11
+ #
12
+ # at.add_exception "vendor"
13
+ #
14
+ # at.add_mapping(/dependency.rb/) do |f, _|
15
+ # at.files_matching(/test_.*rb$/)
16
+ # end
17
+ #
18
+ # %w(TestA TestB).each do |klass|
19
+ # at.extra_class_map[klass] = "test/test_misc.rb"
20
+ # end
21
+ # end
22
+
23
+ # Autotest.add_hook :run_command do |at|
24
+ # system "rake build"
25
+ # end
data/.standard.yml ADDED
@@ -0,0 +1 @@
1
+ ruby_version: 3.3
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.6.3
7
+ before_install: gem install bundler -v 2.0.2
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at dsisnero@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in faa-asciidoctor-extension.gemspec
4
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,119 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ faa-asciidoctor-extension (0.3)
5
+ asciidoctor (~> 2.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ asciidoctor (2.0.22)
11
+ ast (2.4.2)
12
+ backport (1.2.0)
13
+ benchmark (0.3.0)
14
+ diff-lcs (1.5.1)
15
+ e2mmap (0.1.0)
16
+ jaro_winkler (1.5.6)
17
+ json (2.7.2)
18
+ kramdown (2.4.0)
19
+ rexml
20
+ kramdown-parser-gfm (1.1.0)
21
+ kramdown (~> 2.0)
22
+ language_server-protocol (3.17.0.3)
23
+ lint_roller (1.1.0)
24
+ mini_portile2 (2.8.6)
25
+ minitest (5.22.3)
26
+ nokogiri (1.16.5)
27
+ mini_portile2 (~> 2.8.2)
28
+ racc (~> 1.4)
29
+ nokogiri (1.16.5-x64-mingw-ucrt)
30
+ racc (~> 1.4)
31
+ nokogiri (1.16.5-x86-mingw32)
32
+ racc (~> 1.4)
33
+ parallel (1.24.0)
34
+ parser (3.3.1.0)
35
+ ast (~> 2.4.1)
36
+ racc
37
+ prism (0.27.0)
38
+ racc (1.7.3)
39
+ rainbow (3.1.1)
40
+ rake (13.2.1)
41
+ rbs (2.8.4)
42
+ regexp_parser (2.9.1)
43
+ reverse_markdown (2.1.1)
44
+ nokogiri
45
+ rexml (3.2.6)
46
+ rubocop (1.63.5)
47
+ json (~> 2.3)
48
+ language_server-protocol (>= 3.17.0)
49
+ parallel (~> 1.10)
50
+ parser (>= 3.3.0.2)
51
+ rainbow (>= 2.2.2, < 4.0)
52
+ regexp_parser (>= 1.8, < 3.0)
53
+ rexml (>= 3.2.5, < 4.0)
54
+ rubocop-ast (>= 1.31.1, < 2.0)
55
+ ruby-progressbar (~> 1.7)
56
+ unicode-display_width (>= 2.4.0, < 3.0)
57
+ rubocop-ast (1.31.3)
58
+ parser (>= 3.3.1.0)
59
+ rubocop-performance (1.21.0)
60
+ rubocop (>= 1.48.1, < 2.0)
61
+ rubocop-ast (>= 1.31.1, < 2.0)
62
+ ruby-lsp (0.16.6)
63
+ language_server-protocol (~> 3.17.0)
64
+ prism (>= 0.23.0, < 0.28)
65
+ sorbet-runtime (>= 0.5.10782)
66
+ ruby-progressbar (1.13.0)
67
+ solargraph (0.50.0)
68
+ backport (~> 1.2)
69
+ benchmark
70
+ bundler (~> 2.0)
71
+ diff-lcs (~> 1.4)
72
+ e2mmap
73
+ jaro_winkler (~> 1.5)
74
+ kramdown (~> 2.3)
75
+ kramdown-parser-gfm (~> 1.1)
76
+ parser (~> 3.0)
77
+ rbs (~> 2.0)
78
+ reverse_markdown (~> 2.0)
79
+ rubocop (~> 1.38)
80
+ thor (~> 1.0)
81
+ tilt (~> 2.0)
82
+ yard (~> 0.9, >= 0.9.24)
83
+ sorbet-runtime (0.5.11375)
84
+ standard (1.36.0)
85
+ language_server-protocol (~> 3.17.0.2)
86
+ lint_roller (~> 1.0)
87
+ rubocop (~> 1.63.0)
88
+ standard-custom (~> 1.0.0)
89
+ standard-performance (~> 1.4)
90
+ standard-custom (1.0.2)
91
+ lint_roller (~> 1.0)
92
+ rubocop (~> 1.50)
93
+ standard-performance (1.4.0)
94
+ lint_roller (~> 1.1)
95
+ rubocop-performance (~> 1.21.0)
96
+ standardrb (1.0.1)
97
+ standard
98
+ thor (1.3.1)
99
+ tilt (2.3.0)
100
+ unicode-display_width (2.5.0)
101
+ yard (0.9.36)
102
+
103
+ PLATFORMS
104
+ ruby
105
+ x64-mingw-ucrt
106
+ x64-mingw32
107
+ x86-mingw32
108
+
109
+ DEPENDENCIES
110
+ bundler
111
+ faa-asciidoctor-extension!
112
+ minitest
113
+ rake
114
+ ruby-lsp
115
+ solargraph
116
+ standardrb
117
+
118
+ BUNDLED WITH
119
+ 2.5.17
data/History.txt ADDED
@@ -0,0 +1,9 @@
1
+ === 0.0.1 / 2019-09-19
2
+
3
+ * 1 major enhancement
4
+
5
+ * Birthday!
6
+
7
+ === 0.0.6 / 2019-09-23
8
+
9
+ * changed to hoe rakefile
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Dominic Sisneros
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/Manifest.txt ADDED
@@ -0,0 +1,10 @@
1
+ .autotest
2
+ History.txt
3
+ Manifest.txt
4
+ README.txt
5
+ Rakefile
6
+ lib/faa-asciidoctor-extension.rb
7
+ lib/faa/asciidoctor/extension.rb
8
+ lib/faa/asciidoctor/extension/version.rb
9
+ test/faa/asciidoctor/extension_test.rb
10
+ test/test_helper.rb
data/README.txt ADDED
@@ -0,0 +1,76 @@
1
+ = faa-asciidoctor-extension
2
+
3
+ home :: https://github.com/dsisnero/faa-asciidoctor-extension
4
+ code :: https://github.com/dsisnero/faa-asciidoctor-extension
5
+ rdoc :: https://github.com/dsisnero/faa-asciidoctor-extension
6
+ bugs :: https://github.com/dsisnero/faa-asciidoctor-extension
7
+ ... etc ...
8
+
9
+ == DESCRIPTION:
10
+
11
+ Extensions for Asciidoctor that help in FAA projects
12
+
13
+ adds the following features:
14
+
15
+ * A cwp inline macro
16
+
17
+ cwp:{jcn}[See CWP for details]
18
+
19
+ * A ormp inline extension
20
+
21
+ ormp:{jcn}[Enter ORMP]
22
+
23
+ == FEATURES/PROBLEMS:
24
+
25
+
26
+ == SYNOPSIS:
27
+
28
+ asciidoctor-pdf -r faa-asciidoctor-extension transmittal.adoc
29
+
30
+ == REQUIREMENTS:
31
+
32
+ asciidoctor
33
+
34
+ == INSTALL:
35
+
36
+ source "https://rubygems.org"
37
+
38
+ gem "rails"
39
+
40
+ source "https://rubygems.pkg.github.com/dsisnero" do
41
+ gem "faa-asciidoctor-extension"
42
+ end
43
+
44
+ == DEVELOPERS:
45
+
46
+ After checking out the source, run:
47
+
48
+ $ rake newb
49
+
50
+ This task will install any missing dependencies, run the tests/specs,
51
+ and generate the RDoc.
52
+
53
+ == LICENSE:
54
+
55
+ (The MIT License)
56
+
57
+ Copyright (c) 2019 FIX
58
+
59
+ Permission is hereby granted, free of charge, to any person obtaining
60
+ a copy of this software and associated documentation files (the
61
+ 'Software'), to deal in the Software without restriction, including
62
+ without limitation the rights to use, copy, modify, merge, publish,
63
+ distribute, sublicense, and/or sell copies of the Software, and to
64
+ permit persons to whom the Software is furnished to do so, subject to
65
+ the following conditions:
66
+
67
+ The above copyright notice and this permission notice shall be
68
+ included in all copies or substantial portions of the Software.
69
+
70
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
71
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
72
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
73
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
74
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
75
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
76
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile ADDED
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rake/testtask"
5
+
6
+ Rake::TestTask.new(:test) do |t|
7
+ t.libs << "test"
8
+ t.libs << "lib"
9
+ t.test_files = FileList["test/**/test_*.rb"]
10
+ end
11
+
12
+ require "standard/rake"
13
+
14
+ task default: %i[test standard]
@@ -0,0 +1,7 @@
1
+ module Faa
2
+ module Asciidoctor
3
+ module Extension
4
+ VERSION = "0.3".freeze
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,42 @@
1
+ require "asciidoctor"
2
+ require "asciidoctor/extensions"
3
+ # require 'pdf_block_macro'
4
+ module Faa
5
+ module Asciidoctor
6
+ include ::Asciidoctor
7
+ class CwpMacro < Extensions::InlineMacroProcessor
8
+ use_dsl
9
+
10
+ named :cwp
11
+ name_positional_attributes "text"
12
+
13
+ def process(parent, target, attrs)
14
+ doc = parent.document
15
+ jcn = target
16
+ url = %(https://corporateworkplan.faa.gov:7011/CWPPortal/faces/projects?pageId=null&searchString=null&jcn=#{jcn})
17
+ text = attrs["text"] || "CWP: #{jcn}"
18
+ doc.register :links, target
19
+ (create_anchor parent, text, type: :link, target: url, attributes: {"title" => jcn}).render
20
+ end
21
+ end
22
+
23
+ class OrmpMacro < Extensions::InlineMacroProcessor
24
+ use_dsl
25
+
26
+ named :ormp
27
+
28
+ def process(parent, target, attrs)
29
+ doc = parent.document
30
+ url = %(https://ormp.faa.gov)
31
+ text = "ORMP Search Form"
32
+ doc.register :links, url
33
+ (create_anchor parent, text, type: :link, target: url).render
34
+ end
35
+ end
36
+ end
37
+ end
38
+
39
+ Asciidoctor::Extensions.register do
40
+ inline_macro Faa::Asciidoctor::CwpMacro
41
+ inline_macro Faa::Asciidoctor::OrmpMacro
42
+ end
@@ -0,0 +1 @@
1
+ require "faa/asciidoctor/extension"
metadata ADDED
@@ -0,0 +1,158 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: faa-asciidoctor-extension
3
+ version: !ruby/object:Gem::Version
4
+ version: '0.3'
5
+ platform: ruby
6
+ authors:
7
+ - Dominic Sisneros
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2024-08-13 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: asciidoctor
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: minitest
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: solargraph
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: standardrb
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: ruby-lsp
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ description: jcn processor for asciidoctor
112
+ email:
113
+ - dsisnero@gmail.com
114
+ executables: []
115
+ extensions: []
116
+ extra_rdoc_files: []
117
+ files:
118
+ - ".autotest"
119
+ - ".standard.yml"
120
+ - ".travis.yml"
121
+ - CODE_OF_CONDUCT.md
122
+ - Gemfile
123
+ - Gemfile.lock
124
+ - History.txt
125
+ - LICENSE.txt
126
+ - Manifest.txt
127
+ - README.txt
128
+ - Rakefile
129
+ - lib/faa-asciidoctor-extension.rb
130
+ - lib/faa/asciidoctor/extension.rb
131
+ - lib/faa/asciidoctor/extension/version.rb
132
+ homepage: https://github.com/dsisnero/faa-asciidoctor-extension
133
+ licenses:
134
+ - MIT
135
+ metadata:
136
+ homepage_uri: https://github.com/dsisnero/faa-asciidoctor-extension
137
+ source_code_uri: https://github.com/dsisnero/faa-asciidoctor-extension.git
138
+ changelog_uri: https://github.com/dsisnero/faa-asciidoctor-extension/CHANGELOG
139
+ post_install_message:
140
+ rdoc_options: []
141
+ require_paths:
142
+ - lib
143
+ required_ruby_version: !ruby/object:Gem::Requirement
144
+ requirements:
145
+ - - ">="
146
+ - !ruby/object:Gem::Version
147
+ version: '3'
148
+ required_rubygems_version: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ requirements: []
154
+ rubygems_version: 3.5.17
155
+ signing_key:
156
+ specification_version: 4
157
+ summary: faa asciidoctor extensions
158
+ test_files: []