Skip to content

Commit 8644ce3

Browse files
committed
Use <<~ heredoc where applicable
1 parent 5f7112f commit 8644ce3

2 files changed

Lines changed: 10 additions & 13 deletions

File tree

asciidoctor-include-ext.gemspec

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ Gem::Specification.new do |s|
99
s.license = 'MIT'
1010

1111
s.summary = "Asciidoctor's standard include::[] processor reimplemented as an extension"
12-
s.description = <<EOF
13-
This is a reimplementation of the Asciidoctor's built-in (pre)processor for the
14-
include::[] directive in extensible and more clean way. It provides the same
15-
features, but you can easily adjust it or extend for your needs. For example,
16-
you can change how it loads included files or add another ways how to select
17-
portions of the document to include.
18-
EOF
12+
s.description = <<~EOF
13+
This is a reimplementation of the Asciidoctor's built-in (pre)processor for the
14+
include::[] directive in extensible and more clean way. It provides the same
15+
features, but you can easily adjust it or extend for your needs. For example,
16+
you can change how it loads included files or add another ways how to select
17+
portions of the document to include.
18+
EOF
1919

2020
s.files = Dir['lib/**/*', '*.gemspec', 'LICENSE*', 'README*']
2121

spec/integration_spec.rb

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
require_relative 'spec_helper'
22
require 'asciidoctor/include_ext/include_processor'
3-
require 'corefines'
43
require 'webrick'
54

65
FIXTURES_DIR = File.expand_path('../fixtures', __FILE__)
76

8-
using Corefines::String::unindent
9-
107
describe 'Integration tests' do
118

129
subject(:output) { Asciidoctor.convert(input, options) }
@@ -59,7 +56,7 @@
5956
end
6057

6158
it 'is replaced by a warning when target is not found' do
62-
given <<-ADOC.unindent
59+
given <<~ADOC
6360
include::no-such-file.adoc[]
6461
6562
trailing content
@@ -70,7 +67,7 @@
7067
end
7168

7269
it 'is skipped when target is not found and optional option is set' do
73-
given <<-ADOC.unindent
70+
given <<~ADOC
7471
include::no-such-file.adoc[opts=optional]
7572
7673
trailing content
@@ -131,7 +128,7 @@
131128
end
132129

133130
it 'supports tagged selection in language that uses circumfix comments' do
134-
given <<-ADOC.unindent
131+
given <<~ADOC
135132
[source, ml]
136133
----
137134
include::include-file.ml[tag=snippet]

0 commit comments

Comments
 (0)