asciidoctor 1.5.6 → 1.5.6.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of asciidoctor might be problematic. Click here for more details.

@@ -1052,11 +1052,11 @@ output file name is used.
1052
1052
  EOS
1053
1053
  doc = document_from_string input
1054
1054
  table = doc.blocks.first
1055
- assert !table.nil?
1055
+ refute_nil table
1056
1056
  tbody = table.rows.body
1057
1057
  assert_equal 2, tbody.size
1058
1058
  body_cell_1_3 = tbody[0][2]
1059
- assert !body_cell_1_3.inner_document.nil?
1059
+ refute_nil body_cell_1_3.inner_document
1060
1060
  assert body_cell_1_3.inner_document.nested?
1061
1061
  assert_equal doc, body_cell_1_3.inner_document.parent_document
1062
1062
  assert_equal doc.converter, body_cell_1_3.inner_document.converter
@@ -286,16 +286,18 @@ This line is separated by something that is not a horizontal rule...
286
286
  assert_xpath "//code/strong", rendered
287
287
  end
288
288
 
289
- test "unconstrained quotes" do
290
- rendered_chars = render_string("**B**__I__++M++", :attributes => {'compat-mode' => ''})
291
- assert_xpath "//strong", rendered_chars
292
- assert_xpath "//em", rendered_chars
293
- assert_xpath "//code", rendered_chars
294
-
295
- rendered_chars = render_string("**B**__I__``M``")
296
- assert_xpath "//strong", rendered_chars
297
- assert_xpath "//em", rendered_chars
298
- assert_xpath "//code", rendered_chars
289
+ test 'unconstrained quotes' do
290
+ rendered_chars = render_string('**B**__I__++M++[role]++M++', :attributes => {'compat-mode' => ''})
291
+ assert_xpath '//strong', rendered_chars, 1
292
+ assert_xpath '//em', rendered_chars, 1
293
+ assert_xpath '//code[not(@class)]', rendered_chars, 1
294
+ assert_xpath '//code[@class="role"]', rendered_chars, 1
295
+
296
+ rendered_chars = render_string('**B**__I__``M``[role]``M``')
297
+ assert_xpath '//strong', rendered_chars, 1
298
+ assert_xpath '//em', rendered_chars, 1
299
+ assert_xpath '//code[not(@class)]', rendered_chars, 1
300
+ assert_xpath '//code[@class="role"]', rendered_chars, 1
299
301
  end
300
302
  end
301
303
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asciidoctor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.6
4
+ version: 1.5.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Allen
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2017-07-12 00:00:00.000000000 Z
16
+ date: 2017-07-23 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: asciimath
@@ -372,7 +372,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
372
372
  version: '0'
373
373
  requirements: []
374
374
  rubyforge_project:
375
- rubygems_version: 2.6.11
375
+ rubygems_version: 2.4.5
376
376
  signing_key:
377
377
  specification_version: 4
378
378
  summary: An implementation of the AsciiDoc text processor and publishing toolchain