gibier 0.8.7 → 0.8.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gibier/renderer.rb +1 -1
- data/lib/gibier/slide_loader.rb +2 -0
- data/lib/gibier/version.rb +1 -1
- data/template/project/app/slide.rb +14 -12
- data/template/project/assets/css/application.css +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eaa4122a847c17707fe41faa5102caf81c29b806
|
4
|
+
data.tar.gz: 06b7879985defd6be84fc2d42bf6e69dae9d7939
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a67bc2f4752d1dc6e822866e61640dc7436c7cfa6e8ab37b3cf2450d8bdbed16dee5fbda43f546b0d5bb545d14f24550e09fb5d3edc822b584c2bdac3a730af
|
7
|
+
data.tar.gz: fb2d1f34ac4188dbc747bbc2a64f62186702d8f5a7fb201651d105fe96bebf8022ac77262189bfd74567632b7203b75fadc6a1e24828478caa1d3baaeeb1ea40
|
data/lib/gibier/renderer.rb
CHANGED
@@ -213,7 +213,7 @@ EOD
|
|
213
213
|
|
214
214
|
def paragraph(text)
|
215
215
|
lines = text.split(/ $/)
|
216
|
-
if text
|
216
|
+
if text =~ /\A%\w+:/
|
217
217
|
class_name = text[1...text.index(':')]
|
218
218
|
lines[0] = lines.first[(lines.first.index(':') + 1)...lines.first.length].lstrip
|
219
219
|
" children << p({className:\"#{class_name}\"}, #{lines.map{|l| l.expand_tag}.join(',Hyalite.create_element(\'br\'),')})\n"
|
data/lib/gibier/slide_loader.rb
CHANGED
@@ -52,6 +52,8 @@ module Gibier
|
|
52
52
|
File.open("#{src_path(name)}/script.rb", "w+") do |f|
|
53
53
|
f.write Tilt::StringTemplate.new(File.expand_path('../../../template/script.rb', __FILE__)).render(Object.new, name: name)
|
54
54
|
end
|
55
|
+
rescue => e
|
56
|
+
p e
|
55
57
|
end
|
56
58
|
|
57
59
|
def self.src_path(name)
|
data/lib/gibier/version.rb
CHANGED
@@ -61,7 +61,7 @@ module Gibier
|
|
61
61
|
end
|
62
62
|
when :print
|
63
63
|
Gibier.page_count.times.map do |i|
|
64
|
-
Object.const_get("Gibier::Page#{i}").el({visible: true, page_number: i, slide_height: height})
|
64
|
+
Object.const_get("Gibier::Page#{i}").el({visible: true, page_number: i, slide_height: height/Gibier.page_count})
|
65
65
|
end
|
66
66
|
end
|
67
67
|
end
|
@@ -173,17 +173,19 @@ module Gibier
|
|
173
173
|
case @state[:mode]
|
174
174
|
when :slide
|
175
175
|
div({className: 'background'},
|
176
|
-
div({
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
176
|
+
div({className: 'background-filter'},
|
177
|
+
div({
|
178
|
+
className: 'slide',
|
179
|
+
style: {zoom: zoom, top: "#{top}px", left: "#{left}px"},
|
180
|
+
onKeyDown: -> (event) { handle_key_down(event) }
|
181
|
+
},
|
182
|
+
pages(SLIDE_HEIGHT * zoom)
|
183
|
+
),
|
184
|
+
Gibier::TrackField.el({total_time: duration, start: @state[:start], page_number: @state[:page_number], page_count: Gibier.page_count}),
|
185
|
+
section({className: 'footer'}.merge(footer_style),
|
186
|
+
p({className: 'title'}, Gibier.title),
|
187
|
+
p({className: 'powered-by'}, "Powered by ", span({className: "hyalite"}, "Hyalite"))
|
188
|
+
)
|
187
189
|
)
|
188
190
|
)
|
189
191
|
when :print
|
@@ -25,6 +25,12 @@ body {
|
|
25
25
|
color: #fff;
|
26
26
|
}
|
27
27
|
|
28
|
+
.gibier .background-filter {
|
29
|
+
height: 100%;
|
30
|
+
width: 100%;
|
31
|
+
position: absolute;
|
32
|
+
}
|
33
|
+
|
28
34
|
.slide {
|
29
35
|
position: absolute;
|
30
36
|
width: 960px;
|
@@ -93,6 +99,7 @@ body {
|
|
93
99
|
|
94
100
|
.page p.large {
|
95
101
|
text-align: center;
|
102
|
+
margin: 0;
|
96
103
|
}
|
97
104
|
|
98
105
|
.page p.large img {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gibier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- youchan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|