asciidoctor-indir_ext 0.1.2 → 0.1.3

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: e223708a043aee7fe3db6aebe237e727d2074c4b9937ec3261b6d28b4a05185f
4
- data.tar.gz: c0a899b375cf0b6bea009353fe30400b9ebafd2fba04f938e6fc391f3c361081
3
+ metadata.gz: b2c1fc5fe08d35ade5f6175fa68e42345d883ddeaddcab4d872158ff3f593044
4
+ data.tar.gz: f6742f7f388c8c5ea0e8285ab251bc83394273bb3a4631d67c808f8ef708d91f
5
5
  SHA512:
6
- metadata.gz: 3012191c5aaaa9d528d7e70784d01306d78050580319632e9a69c160b5b1b0df4b0162fb992a8c40887ad6fe20df56596e56b01934bf1a9ba18a772a619ca4b8
7
- data.tar.gz: 4e72e8dfd5c8d36f003b07d1726d76458b5502cfb2d2f26e65bb1068e916301e80fc6dc0f4778276189693f86da3cd37fb906f07ed70dd104bcde3f8e6fa957d
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
- * After checking out the repo, run `bundle install` to install dependencies.
56
- * To list all available rake tasks, run `bundle exec rake -T`.
57
- * To build a gem package on your local machine, run `bundle exec rake build`.
58
- * To install this gem onto your local machine, run `bundle exec rake install`.
59
- * 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).
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
 
@@ -1,5 +1,5 @@
1
1
  module Asciidoctor
2
2
  module IndirExt
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
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.2
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: 2019-05-01 00:00:00.000000000 Z
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.0.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