devcenter-parser 2.0.0 → 2.0.1
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/lib/devcenter-parser.rb +1 -1
- data/lib/devcenter-parser/version.rb +1 -1
- data/test/devcenter-parser_test.rb +20 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4202949ff8ceca79019d50dd5fb2e56070dfd1f
|
4
|
+
data.tar.gz: 77d65c6f8a1b34a1e7c40af5bafa1d6ce7e96b54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e61edd2fa91ebba77bca201844e1010a083b11c8bf80bbdc91c45ed3aa7e3516782c10c14f5563614af64ff25c9a23a9b6d0d005984dd6d3c5be397da86008ff
|
7
|
+
data.tar.gz: 90cb5f9916d40eb568c74325eb6035c378322accedeefc72166b6023f80b74d9474c06f89e75d031217177dd9f44af0e4cfdcd8fec9c0ac5b3a6166187ce6d4c
|
data/lib/devcenter-parser.rb
CHANGED
@@ -70,7 +70,7 @@ module DevcenterParser
|
|
70
70
|
def self.sanitize_config
|
71
71
|
return @@sanitize_config if defined?(@@sanitize_config)
|
72
72
|
config = Sanitize::Config::RELAXED
|
73
|
-
config[:attributes][:all] += %w{ id class style name width height border align }
|
73
|
+
config[:attributes][:all] += %w{ id class style name width height border align data-next-message}
|
74
74
|
config[:attributes]['a'] += %w{ target }
|
75
75
|
config[:elements] += %w{ div span hr tt }
|
76
76
|
|
@@ -402,6 +402,26 @@ more callout</p>
|
|
402
402
|
assert_parsing_result md, html
|
403
403
|
end
|
404
404
|
|
405
|
+
it 'allows id data-next-message attributes, used in dynamic tutorials' do
|
406
|
+
md = <<-MARKDOWN
|
407
|
+
<h2 data-next-message="Finished first step">
|
408
|
+
First step
|
409
|
+
</h2>
|
410
|
+
|
411
|
+
Text for first step
|
412
|
+
MARKDOWN
|
413
|
+
|
414
|
+
html = <<-HTML
|
415
|
+
<h2 data-next-message="Finished first step" id="first-step">
|
416
|
+
First step
|
417
|
+
</h2>
|
418
|
+
|
419
|
+
<p>Text for first step</p>
|
420
|
+
HTML
|
421
|
+
|
422
|
+
assert_parsing_result md, html
|
423
|
+
end
|
424
|
+
|
405
425
|
end
|
406
426
|
|
407
427
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devcenter-parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Heroku
|
@@ -117,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
117
117
|
version: '0'
|
118
118
|
requirements: []
|
119
119
|
rubyforge_project:
|
120
|
-
rubygems_version: 2.4.5
|
120
|
+
rubygems_version: 2.4.5
|
121
121
|
signing_key:
|
122
122
|
specification_version: 4
|
123
123
|
summary: Parser for Heroku Dev Center's content
|