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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6f00dc9362b886a41503ee704896eac8f85d089c
4
- data.tar.gz: 549d29f0cb678579da8c7c5aac00090e4257df3e
3
+ metadata.gz: 4a944527ca6b7e7f0f262f967d44ba6d24fc5a64
4
+ data.tar.gz: 6677f6f2c335306c3dc1d9104e4130b60b5a42a7
5
5
  SHA512:
6
- metadata.gz: 07a6941e03153814fe0900418c23435f8386024f2b1cfeeb4551d355950b387d5ab751d40edce8b22b39c627cd174ac4e88a810769fa2239ed3c392c9315a1c6
7
- data.tar.gz: 334822b84449b70a131e70d124071deec97824e791b6c350bee7a6c514a7b23da7204f3f7aafebdb4b96255f49c2a2467577998aa9022a45beed842cbe5704fb
6
+ metadata.gz: a9107bebd83f33451b3e7af135c97840bd37de33d03de5faadc691be339e58ee4eeac2a8e731fd2835e4eddd4d76dcef2c066e2081a68878b17a6a5669da14ba
7
+ data.tar.gz: b504bdcc6f4a3180160c2a5e684a947553c3bd969e3c9506368807af2c007361bce9c89515e31c02f7f58b841837e06e9ef8ab498a54f40297b732ef9b4cc6c0
@@ -8,6 +8,10 @@
8
8
  <script src="lib/js/head.min.js"></script>
9
9
  <script src="js/reveal.js"></script>
10
10
 
11
+ <% js_files.each do |file| %>
12
+ <script src="<%= file %>"></script>
13
+ <% end %>
14
+
11
15
  <script>
12
16
  <%= script %>
13
17
  </script>
@@ -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);
@@ -1,4 +1,6 @@
1
1
  require_relative 'render/contents_of'
2
2
  require_relative 'render/css_files'
3
+ require_relative 'render/js_files'
4
+ require_relative 'render/plugin_files'
3
5
  require_relative 'render/index_html_maker'
4
6
  require_relative 'render/scope'
@@ -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
@@ -5,6 +5,8 @@ module RevealCK
5
5
  include Retrieve
6
6
  include ContentsOf
7
7
  include CssFiles
8
+ include JsFiles
9
+ include PluginFiles
8
10
  include IndexHtmlMaker
9
11
 
10
12
  attr_reader :config
@@ -1,4 +1,4 @@
1
1
  # RevealCK::VERSION is the current version of reveal-ck
2
2
  module RevealCK
3
- VERSION = '3.7.0'.freeze
3
+ VERSION = '3.8.0'.freeze
4
4
  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.7.0
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-10 00:00:00.000000000 Z
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