slide-em-up 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/slide-em-up +1 -0
- data/lib/slide-em-up/presentation.rb +5 -5
- data/lib/slide-em-up/version.rb +1 -1
- metadata +4 -4
data/bin/slide-em-up
CHANGED
@@ -8,6 +8,7 @@ presentation = SlideEmUp::Presentation.new(Dir.pwd)
|
|
8
8
|
|
9
9
|
runner = Goliath::Runner.new(ARGV, nil)
|
10
10
|
runner.app = Rack::Builder.new do
|
11
|
+
use Rack::CommonLogger
|
11
12
|
map '/slides' do run SlideEmUp::SlidesAPI.new(presentation) end
|
12
13
|
map '/' do run SlideEmUp::AssetsAPI.new(presentation) end
|
13
14
|
end
|
@@ -15,10 +15,10 @@ module SlideEmUp
|
|
15
15
|
|
16
16
|
def initialize(dir)
|
17
17
|
infos = extract_normal_infos(dir) || extract_infos_from_showoff(dir) || {}
|
18
|
-
infos = {
|
19
|
-
@meta = build_meta(infos[
|
20
|
-
@theme = build_theme(infos[
|
21
|
-
@titles = infos[
|
18
|
+
infos = { "title" => "No title", "theme" => "default" }.merge(infos)
|
19
|
+
@meta = build_meta(infos["title"], dir)
|
20
|
+
@theme = build_theme(infos["theme"])
|
21
|
+
@titles = infos["sections"]
|
22
22
|
end
|
23
23
|
|
24
24
|
def html
|
@@ -45,7 +45,7 @@ module SlideEmUp
|
|
45
45
|
return unless File.exists?(filename)
|
46
46
|
infos = Yajl::Parser.parse(File.read filename)
|
47
47
|
sections = infos["sections"].map {|s| s["section"] }
|
48
|
-
{
|
48
|
+
{ "title" => infos["name"], "theme" => "showoff", "sections" => sections }
|
49
49
|
end
|
50
50
|
|
51
51
|
def build_meta(title, dir)
|
data/lib/slide-em-up/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slide-em-up
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 4
|
10
|
+
version: 0.1.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Bruno Michel
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-04-
|
18
|
+
date: 2011-04-16 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|