reveal-ck 3.5.1 → 3.6.0
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/Rakefile +1 -1
- data/bin/reveal-ck +6 -6
- data/files/reveal-ck/Guardfile +1 -1
- data/files/reveal-ck/templates/index.html/head.html.erb +8 -0
- data/files/reveal-ck/templates/index.html/index.html.erb +1 -1
- data/lib/reveal-ck/builders/create_index_html.rb +1 -0
- data/lib/reveal-ck/builders/index_html.rb +4 -2
- data/lib/reveal-ck/config.rb +14 -8
- data/lib/reveal-ck/presentation.rb +1 -1
- data/lib/reveal-ck/version.rb +1 -1
- data/rakelib/ci.rake +1 -1
- data/spec/lib/reveal-ck/builders/create_slides_html_spec.rb +1 -1
- data/spec/lib/reveal-ck/builders/creation_task_spec.rb +1 -1
- data/spec/lib/reveal-ck/builders/index_html_spec.rb +10 -0
- data/spec/lib/reveal-ck/config_spec.rb +5 -0
- data/spec/lib/reveal-ck/markdown/post_processor_spec.rb +143 -143
- data/spec/lib/reveal-ck/markdown/pre_processor_spec.rb +179 -179
- data/spec/lib/reveal-ck/markdown/slide_markdown_template_spec.rb +33 -33
- metadata +17 -4
@@ -14,71 +14,71 @@ module RevealCK
|
|
14
14
|
end
|
15
15
|
|
16
16
|
it 'does not turn _s within a single emoji into <em>s' do
|
17
|
-
output = render_markdown <<-
|
18
|
-
:money_with_wings:
|
19
|
-
|
17
|
+
output = render_markdown <<-EOS.strip_heredoc
|
18
|
+
:money_with_wings:
|
19
|
+
EOS
|
20
20
|
expect(output).to include ':money_with_wings:'
|
21
21
|
end
|
22
22
|
|
23
23
|
it 'does not turn _s between two emojis into <em>s' do
|
24
|
-
output = render_markdown <<-
|
25
|
-
:blue_heart: :blue_heart:
|
26
|
-
|
24
|
+
output = render_markdown <<-EOS.strip_heredoc
|
25
|
+
:blue_heart: :blue_heart:
|
26
|
+
EOS
|
27
27
|
expect(output).to include ':blue_heart: :blue_heart:'
|
28
28
|
end
|
29
29
|
|
30
30
|
it 'uses "---" to create "<section>"s' do
|
31
|
-
output = render_markdown <<-
|
32
|
-
# h1 Slide
|
33
|
-
---
|
34
|
-
## h2 Slide
|
35
|
-
|
31
|
+
output = render_markdown <<-EOS.strip_heredoc
|
32
|
+
# h1 Slide
|
33
|
+
---
|
34
|
+
## h2 Slide
|
35
|
+
EOS
|
36
36
|
expect(output).to include '<h1>h1 Slide</h1>'
|
37
37
|
expect(output).to include "</section>\n<section>"
|
38
38
|
expect(output).to include '<h2>h2 Slide</h2>'
|
39
39
|
end
|
40
40
|
|
41
41
|
it 'wraps ``` code in a <pre> and <code>' do
|
42
|
-
output = render_markdown <<-
|
43
|
-
```
|
44
|
-
def adder(a, b); a + b; end
|
45
|
-
```
|
46
|
-
|
42
|
+
output = render_markdown <<-EOS.strip_heredoc
|
43
|
+
```
|
44
|
+
def adder(a, b); a + b; end
|
45
|
+
```
|
46
|
+
EOS
|
47
47
|
expect(output).to include '<pre><code>'
|
48
48
|
expect(output).to include '</code></pre>'
|
49
49
|
expect(output).to include 'a + b'
|
50
50
|
end
|
51
51
|
|
52
52
|
it 'converts special characters in ``` block to entity references' do
|
53
|
-
output = render_markdown <<-
|
54
|
-
```
|
55
|
-
<p>"&"</p>
|
56
|
-
```
|
57
|
-
|
53
|
+
output = render_markdown <<-EOS.strip_heredoc
|
54
|
+
```
|
55
|
+
<p>"&"</p>
|
56
|
+
```
|
57
|
+
EOS
|
58
58
|
expect(output).to include '<pre><code>'
|
59
59
|
expect(output).to include '</code></pre>'
|
60
60
|
expect(output).to include '<p>"&"</p>'
|
61
61
|
end
|
62
62
|
|
63
63
|
it 'wraps ```ruby code in a <pre> and <code class="language-ruby">' do
|
64
|
-
output = render_markdown <<-
|
65
|
-
```ruby
|
66
|
-
def adder(a, b); a + b; end
|
67
|
-
```
|
68
|
-
|
64
|
+
output = render_markdown <<-EOS.strip_heredoc
|
65
|
+
```ruby
|
66
|
+
def adder(a, b); a + b; end
|
67
|
+
```
|
68
|
+
EOS
|
69
69
|
expect(output).to include '<pre><code class="language-ruby">'
|
70
70
|
expect(output).to include '</code></pre>'
|
71
71
|
expect(output).to include 'a + b'
|
72
72
|
end
|
73
73
|
|
74
74
|
it 'works when there is no space surrounding the ---' do
|
75
|
-
output = render_markdown <<-
|
76
|
-
# Your headline
|
77
|
-
* Bullet 1
|
78
|
-
* Bullet 2
|
79
|
-
---
|
80
|
-
# Next Slide
|
81
|
-
|
75
|
+
output = render_markdown <<-EOS.strip_heredoc
|
76
|
+
# Your headline
|
77
|
+
* Bullet 1
|
78
|
+
* Bullet 2
|
79
|
+
---
|
80
|
+
# Next Slide
|
81
|
+
EOS
|
82
82
|
expect(output).to include "</section>\n<section>"
|
83
83
|
end
|
84
84
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reveal-ck
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jed Northridge
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: docile
|
@@ -234,6 +234,20 @@ dependencies:
|
|
234
234
|
- - '='
|
235
235
|
- !ruby/object:Gem::Version
|
236
236
|
version: 0.19.1
|
237
|
+
- !ruby/object:Gem::Dependency
|
238
|
+
name: activesupport
|
239
|
+
requirement: !ruby/object:Gem::Requirement
|
240
|
+
requirements:
|
241
|
+
- - ">="
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
version: '0'
|
244
|
+
type: :development
|
245
|
+
prerelease: false
|
246
|
+
version_requirements: !ruby/object:Gem::Requirement
|
247
|
+
requirements:
|
248
|
+
- - ">="
|
249
|
+
- !ruby/object:Gem::Version
|
250
|
+
version: '0'
|
237
251
|
- !ruby/object:Gem::Dependency
|
238
252
|
name: aruba
|
239
253
|
requirement: !ruby/object:Gem::Requirement
|
@@ -346,8 +360,7 @@ dependencies:
|
|
346
360
|
- - ">="
|
347
361
|
- !ruby/object:Gem::Version
|
348
362
|
version: '0'
|
349
|
-
description: A
|
350
|
-
markdown.
|
363
|
+
description: A cli for generating reveal.js presentations from markdown.
|
351
364
|
email:
|
352
365
|
- reveal-ck@jedcn.com
|
353
366
|
executables:
|