reveal-ck 3.7.0 → 3.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/files/reveal-ck/templates/index.html/body.html.erb +4 -0
- data/files/reveal-ck/templates/index.html/script.js.erb +5 -0
- data/lib/reveal-ck/render.rb +2 -0
- data/lib/reveal-ck/render/js_files.rb +15 -0
- data/lib/reveal-ck/render/plugin_files.rb +15 -0
- data/lib/reveal-ck/render/scope.rb +2 -0
- data/lib/reveal-ck/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a944527ca6b7e7f0f262f967d44ba6d24fc5a64
|
4
|
+
data.tar.gz: 6677f6f2c335306c3dc1d9104e4130b60b5a42a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9107bebd83f33451b3e7af135c97840bd37de33d03de5faadc691be339e58ee4eeac2a8e731fd2835e4eddd4d76dcef2c066e2081a68878b17a6a5669da14ba
|
7
|
+
data.tar.gz: b504bdcc6f4a3180160c2a5e684a947553c3bd969e3c9506368807af2c007361bce9c89515e31c02f7f58b841837e06e9ef8ab498a54f40297b732ef9b4cc6c0
|
@@ -16,6 +16,11 @@
|
|
16
16
|
{ src: 'plugin/notes/notes.js', async: true }
|
17
17
|
]
|
18
18
|
};
|
19
|
+
|
20
|
+
<% plugin_files.each do |plugin| %>
|
21
|
+
baseOptions.dependencies.push({ src: '<%= plugin %>', async: true });
|
22
|
+
<% end %>
|
23
|
+
|
19
24
|
var configOptions = <%= config.revealjs_config.to_json %>
|
20
25
|
var initializeOptions = {};
|
21
26
|
extend(initializeOptions, baseOptions);
|
data/lib/reveal-ck/render.rb
CHANGED
@@ -0,0 +1,15 @@
|
|
1
|
+
module RevealCK
|
2
|
+
module Render
|
3
|
+
# Determine which .js files are underneath a @dir
|
4
|
+
module JsFiles
|
5
|
+
def js_files
|
6
|
+
things_in_js_dir = FileList["#{@dir}/js/**/*"]
|
7
|
+
only_js_files = things_in_js_dir.grep(/\.js$/)
|
8
|
+
relative_js_files = only_js_files.map do |file|
|
9
|
+
file.sub("#{@dir}/", '')
|
10
|
+
end
|
11
|
+
relative_js_files
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module RevealCK
|
2
|
+
module Render
|
3
|
+
# Determine which js files are in the plugin dir
|
4
|
+
module PluginFiles
|
5
|
+
def plugin_files
|
6
|
+
things_in_plugin_dir = FileList["#{@dir}/plugin/**/*"]
|
7
|
+
only_js_files = things_in_plugin_dir.grep(/\.js$/)
|
8
|
+
relative_plugin_files = only_js_files.map do |file|
|
9
|
+
file.sub("#{@dir}/", '')
|
10
|
+
end
|
11
|
+
relative_plugin_files
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/lib/reveal-ck/version.rb
CHANGED
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.8.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-06-
|
11
|
+
date: 2017-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: docile
|
@@ -536,6 +536,8 @@ files:
|
|
536
536
|
- lib/reveal-ck/render/contents_of.rb
|
537
537
|
- lib/reveal-ck/render/css_files.rb
|
538
538
|
- lib/reveal-ck/render/index_html_maker.rb
|
539
|
+
- lib/reveal-ck/render/js_files.rb
|
540
|
+
- lib/reveal-ck/render/plugin_files.rb
|
539
541
|
- lib/reveal-ck/render/scope.rb
|
540
542
|
- lib/reveal-ck/retrieve.rb
|
541
543
|
- lib/reveal-ck/slide.rb
|