lib/reveal-ck.rb in reveal-ck-0.1.5 vs lib/reveal-ck.rb in reveal-ck-0.1.6
- old
+ new
@@ -10,10 +10,21 @@
require_relative 'reveal-ck/build_task'
require_relative 'reveal-ck/builder'
require_relative 'reveal-ck/slides_html_builder'
require_relative 'reveal-ck/slide_builder'
require_relative 'reveal-ck/presentation_builder'
+require_relative 'reveal-ck/presentation_dsl'
+# RevealCK::LOCATION is the path where reveal-ck is residing on your
+# system as a gem.
module RevealCK
- revealjs_root = File.expand_path(File.join(File.dirname(__FILE__), '..', 'reveal.js'))
- REVEALJS_FILES = Dir.glob "#{revealjs_root}/**/*"
+ lib = File.dirname __FILE__
+ root = File.join lib, '..'
+ LOCATION = File.expand_path root
+end
+
+# RevealCK::REVEALJS_FILES is a list of files that compromise
+# reveal.js bundled into this gem.
+module RevealCK
+ revealjs = File.join LOCATION, 'reveal.js'
+ REVEALJS_FILES = Dir.glob "#{revealjs}/**/*"
end