asciidoctor-foodogsquared-extensions 1.0.0 → 1.0.1

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: f9f519d0ae3e0ac0e73c26e85acb925d53b9b937019d0361ee82b47fa4f8466a
4
- data.tar.gz: b25430e1aeb1dee8b2563dc859a45879ed283698e4cdadef73f534a9a9876aaa
3
+ metadata.gz: 6a55ecb1f3ae045ca8f031f4aa860ac4f41e1d496fa870267a2b58bc95da210f
4
+ data.tar.gz: ed560382c0fa5f713c90141dc2365332dddcc9a0020f9c7889372b93c405a421
5
5
  SHA512:
6
- metadata.gz: 307b4db3e7bc66f0ea323344fb177d90c65c3141aa714891277b76cfb656fc501f7ca7e9788e7dbeee7141637e2ec0cea2d0f13b409679f854840ae1b76c0163
7
- data.tar.gz: 63dfa05bd984ea781cb53791a155303e162c1b6b6f582140b28f1804bc20c86fdeee7aaae523c5ec410266417130dba8852801b50d2cc5cc1e727e656a530b9a
6
+ metadata.gz: 0ba15527bab757745d67ec082b4afff429d712b9d727bf01bb4725177e7b0d138e68c8ff9a5428cd9b2c562a81258d24637cdc6b58125b660a68873155bd21c5
7
+ data.tar.gz: be6a519a1417b082d571f806c115942c338fce4296e95bf9bf8e8cc658fbe59afba7ef321e683bd2e986d30eb0aea668b4d6ca2727416e092ce5d7688865c8ea
data/CHANGELOG.adoc ADDED
@@ -0,0 +1,48 @@
1
+ = Changelog
2
+ :toc:
3
+
4
+ :github-repo: asciidoctor-foodogsquared-extensions
5
+ :commit-url: https://github.com/foo-dogsquared/{github-repo}/commit
6
+
7
+
8
+ The guidelines for writing this changelog is based from link:https://common-changelog.org[Common Changelog].
9
+
10
+
11
+ == [1.0.1] - 2023-07-09
12
+
13
+ === Updated
14
+
15
+ * Update the gem metadata. (link:{commit-url}/b052cddf56397489c4eb9c7908bfbadbce2c080f[`b052cddf`]) (Gabriel Arazas)
16
+
17
+ === Fixed
18
+
19
+ * Fix the `avatarstype` attribute override for the chat block extension.
20
+ This is considered a bug since it is more intended as a project-wide attribute. (link:{commit-url}/1faf4d45ec9891532254867c219ffb5094781948[`1faf4d45`]) (Gabriel Arazas)
21
+
22
+
23
+ == [1.0.0] - 2023-07-07
24
+
25
+ The initial version of the extension set.
26
+
27
+ === Added
28
+
29
+ * Add `man:` inline macro for online manual pages (link:{commit-url}/4201e1c6e8a028618ab4cb4c6e54af5c3990aa27[`4201e1c6e`] footnote:[Hehe...]) (Gabriel Arazas)
30
+ * Add `rfc:` inline macro for IETF RFCs (link:{commit-url}/0def42d0675dc73ead13491d61ec0220d888462c[`0def42d0`]) (Gabriel Arazas)
31
+ * Add `swh:` inline macro for linking SWHIDs (link:{commit-url}/e18383275ed691d992e5894301534a869e0ccded[`e18383275`]) (Gabriel Arazas)
32
+ * Add `github:` inline macro for adding GitHub links (link:{commit-url}/d846aaa15990ed009261caa6f9d9f1b72a09a727[`d846aaa1`]) (Gabriel Arazas)
33
+ * Add `gitlab:` inline macro for adding GitLab links (link:{commit-url}/e36e3ef452a34f985e974fc56474da1124256649[`e36e3ef45`]) (Gabriel Arazas)
34
+ * Add `wikipedia:` inline macro for adding Wikipedia links (link:{commit-url}/fb35866b30f6266c540541ad6d5c71f58f8bd401[`fb35866b`]) (Gabriel Arazas)
35
+ * Add `ctan:` inline macro for linking CTAN packages (link:{commit-url}/50a9c33f8c55925d690a29f9c3812a79c1a19087[`50a9c33f`]) (Gabriel Arazas)
36
+ * Add `pypi:` inline macro for linking Pypi packages (link:{commit-url}/50a9c33f8c55925d690a29f9c3812a79c1a19087[`50a9c33f`]) (Gabriel Arazas)
37
+ * Add `cratesio:` inline macro for linking crates.io packages (link:{commit-url}/50a9c33f8c55925d690a29f9c3812a79c1a19087[`50a9c33f`]) (Gabriel Arazas)
38
+ * Add `flathub:` inline macro for Flathub packages (link:{commit-url}/ebbde1491c2a0df40938d507b28c6f958ce4fef2[`ebbde149`]) (Gabriel Arazas)
39
+ * Add `fdroid:` inline macro for F-Droid apps (link:{commit-url}/7ddcd9be707833f2958da5e8ba839a0cfceefc92[`7ddcd9be`]) (Gabriel Arazas)
40
+ * Add `musicbrainz:` inline macro for MusicBrainz database objects (link:{commit-url}/ca82f674af87363bda64d8e7795ce0a2b7ef2fe6[`ca82f674`]) (Gabriel Arazas)
41
+ * Add `repology:` inline macro for Repology projects (link:{commit-url}/cef163c722c8af5fa7db2588cfbaf4b3a6fd1f55[`cef163c7`]) (Gabriel Arazas)
42
+ * Add HTML-backend exclusive chat block.
43
+ * Add include processor for SWHIDs (link:{commit-url}/567c52d80aafdd940e095bc8f3708ec4aa9a5097[`567c52d8`]) (Gabriel Arazas)
44
+ * Add include processor for GitHub content (link:{commit-url}/88902f6540a67916eb9233ac5cfe174219017af4[`88902f65`]) (Gabriel Arazas)
45
+
46
+ * Add include processor for GitLab content (link:{commit-url}/d03f1ca7008bb8928de0ec8538d8c110516b68f7[`d03f1ca7`]) (Gabriel Arazas)
47
+ * Add include processor for Git blob objects (link:{commit-url}/02bebfef70d7b2424377bed497671ba1bc8be84d[`02bebfef`]) (Gabriel Arazas)
48
+ * Add preprocessor as prerequisite for `GitBlobIncludeProcessor` (link:{commit-url}/02bebfef70d7b2424377bed497671ba1bc8be84d[`02bebfef`]) (Gabriel Arazas)
data/LICENSE ADDED
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2023 Gabriel Arazas <foodogsquared@foodogsquared.one>
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ THE SOFTWARE.
data/README.adoc ADDED
@@ -0,0 +1,40 @@
1
+ = asciidoctor-foodogsquared-extensions
2
+ :toc:
3
+
4
+
5
+ A set of link:https://asciidoctor.org/[Asciidoctor] extensions mainly for personal use of its author (foodogsquared). :)
6
+
7
+ Despite being v1.0.0, treat this as almost unstable because it is only aimed for its author.
8
+ However, feel free to leave suggestions and improvements.
9
+ Who knows, parts of the set might develop into a more presentable and stable extension of its own.
10
+
11
+
12
+ == Prerequisites
13
+
14
+ The extension is required to be used with Ruby 3.0 and above.
15
+ (At least until I can test and confirm it works on the previous versions.)
16
+
17
+ In order to use it, you have to install it first in your Ruby environment.
18
+ It is available as a gem in RubyGems as `asciidoctor-foodogsquared-extensions` so you can add the following line in `Gemfile`.
19
+
20
+ [source, ruby]
21
+ ----
22
+ gem 'asciidoctor-foodogsquared-extensions'
23
+ ----
24
+
25
+ Somewhere in your Ruby codebase, you can just import it with the following line.
26
+
27
+ [source, ruby]
28
+ ----
29
+ require 'asciidoctor-foodogsquared-extensions'
30
+ ----
31
+
32
+ And bada-bing-bada-boom, you now have the Asciidoctor extensions.
33
+ If installed in the environment, you can now use the extension with the following Asciidoctor command.
34
+
35
+ [source, shell]
36
+ ----
37
+ asciidoctor -r asciidoctor-foodogsquared-extensions ./document.adoc
38
+ ----
39
+
40
+ For now, there's no documentation for the individual macros but you can look into the README files for each macro at link:./lib/asciidoctor/[`./lib/asciidoctor/`].
@@ -1,21 +1,21 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'asciidoctor-foodogsquared-extensions'
3
- s.version = '1.0.0'
3
+ s.version = '1.0.1'
4
4
  s.licenses = ['MIT']
5
5
  s.summary = "foo-dogsquared's custom Asciidoctor extensions"
6
6
  s.description = <<-DESC
7
- foo-dogsquared's custom Asciidoctor extensions as a Gem. This is not meant
8
- to be used in production or as a public Gem. This is used since Hugo
9
- doesn't allow loading Asciidoctor extensions with path separators.
7
+ foo-dogsquared's set of Asciidoctor extensions as a Gem. This is where I
8
+ implemented several pet features that will most likely never be a part of
9
+ Asciidoctor.
10
10
  DESC
11
11
 
12
12
  s.required_ruby_version = '>= 3.0.0'
13
13
 
14
14
  s.authors = ['Gabriel Arazas']
15
15
  s.email = 'foodogsquared@foodogsquared.one'
16
- s.metadata = { 'source_code_uri' => 'https://github.com/foo-dogsquared/foo-dogsquared.github.io' }
16
+ s.metadata = { 'source_code_uri' => 'https://github.com/foo-dogsquared/asciidoctor-foodogsquared-extensions' }
17
17
 
18
- s.files = Dir['lib/**/*', '*.gemspec']
18
+ s.files = Dir['lib/**/*', '*.gemspec', 'LICENSE', 'CHANGELOG.adoc', 'README.adoc']
19
19
 
20
20
  s.add_runtime_dependency 'asciidoctor', '~> 2.0'
21
21
  s.add_runtime_dependency 'rugged', '~> 1.0'
@@ -6,7 +6,7 @@ class ChatBlock < Asciidoctor::Extensions::BlockProcessor
6
6
  named :chat
7
7
  on_context :example
8
8
  name_positional_attributes 'avatar', 'state'
9
- default_attributes 'state' => 'default', 'avatarstype' => 'avif'
9
+ default_attributes 'state' => 'default'
10
10
 
11
11
  def process(parent, reader, attrs)
12
12
  block = create_block parent, :pass, nil, attrs, content_model: :compound
@@ -23,6 +23,7 @@ class ChatBlock < Asciidoctor::Extensions::BlockProcessor
23
23
  ))
24
24
 
25
25
  attrs['avatarsdir'] ||= File.expand_path('./avatars', attrs['iconsdir'])
26
+ attrs['avatarstype'] ||= 'avif'
26
27
 
27
28
  avatar_sticker = "#{attrs['avatar'].to_kebab}/#{attrs['state'].to_kebab}.#{attrs['avatarstype']}"
28
29
  avatar_img_attrs = {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asciidoctor-foodogsquared-extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Arazas
@@ -39,14 +39,17 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.0'
41
41
  description: |2
42
- foo-dogsquared's custom Asciidoctor extensions as a Gem. This is not meant
43
- to be used in production or as a public Gem. This is used since Hugo
44
- doesn't allow loading Asciidoctor extensions with path separators.
42
+ foo-dogsquared's set of Asciidoctor extensions as a Gem. This is where I
43
+ implemented several pet features that will most likely never be a part of
44
+ Asciidoctor.
45
45
  email: foodogsquared@foodogsquared.one
46
46
  executables: []
47
47
  extensions: []
48
48
  extra_rdoc_files: []
49
49
  files:
50
+ - CHANGELOG.adoc
51
+ - LICENSE
52
+ - README.adoc
50
53
  - asciidoctor-foodogsquared-extensions.gemspec
51
54
  - lib/asciidoctor-foodogsquared-extensions.rb
52
55
  - lib/asciidoctor/chat-block-processor/README.adoc
@@ -86,7 +89,7 @@ homepage:
86
89
  licenses:
87
90
  - MIT
88
91
  metadata:
89
- source_code_uri: https://github.com/foo-dogsquared/foo-dogsquared.github.io
92
+ source_code_uri: https://github.com/foo-dogsquared/asciidoctor-foodogsquared-extensions
90
93
  post_install_message:
91
94
  rdoc_options: []
92
95
  require_paths: