asciidoctor-indir_ext 0.1.2 → 0.1.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 +4 -4
- data/README.md +9 -5
- data/lib/asciidoctor/indir_ext/extension.rb +3 -0
- data/lib/asciidoctor/indir_ext/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2c1fc5fe08d35ade5f6175fa68e42345d883ddeaddcab4d872158ff3f593044
|
4
|
+
data.tar.gz: f6742f7f388c8c5ea0e8285ab251bc83394273bb3a4631d67c808f8ef708d91f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5351bfec908b7fd078c8503059c80ecdd9cc9399141ba93f7a60cf4b1aa7a9960f644d0f883127d222e19f0ec3b40efb3d6a684a841db2cf1332c465a56c2d16
|
7
|
+
data.tar.gz: 8a1931f1db0b01996b50bc432487ed99f5f6f99589153c3fe7f527f8a93431ae01ecfcffaba4cde34c32b9fe7403dbd544330959467023789fb6d5dbbad72c9b
|
data/README.md
CHANGED
@@ -52,11 +52,15 @@ As a result, the extension provides an `indir` variable, which always points at
|
|
52
52
|
|
53
53
|
## Development
|
54
54
|
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
*
|
55
|
+
It is possible to start a docker container using `docker-compose run --rm dev bash`.
|
56
|
+
This allows to run the following commands inside the docker container
|
57
|
+
and thus avoids messing with the local system setup.
|
58
|
+
|
59
|
+
* Run `bundle install` to install dependencies
|
60
|
+
* To list all available rake tasks, run `bundle exec rake -T`
|
61
|
+
* To build a gem package on your local machine, run `bundle exec rake build`
|
62
|
+
* To install this gem onto your local machine, run `bundle exec rake install`
|
63
|
+
* To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org)
|
60
64
|
|
61
65
|
|
62
66
|
## Contributing
|
@@ -21,6 +21,9 @@ module Asciidoctor
|
|
21
21
|
# read content using functionality from super
|
22
22
|
content = super(filename, selector)
|
23
23
|
|
24
|
+
# Ignore non-asciidoc files
|
25
|
+
if not ['.asciidoc', '.adoc', '.ad', '.asc', '.txt'].include? File.extname(filename) then return content end
|
26
|
+
|
24
27
|
# split content into a list of lines if it has been provided as string
|
25
28
|
if content.is_a? String then content = content.lines end
|
26
29
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: asciidoctor-indir_ext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- johannesjh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|
@@ -152,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
152
152
|
- !ruby/object:Gem::Version
|
153
153
|
version: '0'
|
154
154
|
requirements: []
|
155
|
-
rubygems_version: 3.
|
155
|
+
rubygems_version: 3.1.4
|
156
156
|
signing_key:
|
157
157
|
specification_version: 4
|
158
158
|
summary: An Asciidoctor extension that adds a variable `indir`, which always points
|