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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 14a1a9cf34cabd0e899bcca087ded365f55b1c2f
4
- data.tar.gz: dab0854d9a742e64a548bffb3c93a8533451ca5e
3
+ metadata.gz: eaa4122a847c17707fe41faa5102caf81c29b806
4
+ data.tar.gz: 06b7879985defd6be84fc2d42bf6e69dae9d7939
5
5
  SHA512:
6
- metadata.gz: ff1dd60376d4afbca29d0fcb76d5b54091e5196fb12c79fd32c7b8c1e30afa8c74bb6c79c098ed4288b2fa194bc2a52558a8d8f4e5e8750f50fcf267049dddac
7
- data.tar.gz: 144a87ee80c25017d3d83005cb39dcaf767e6aa23921fe1efd8e93f526a8d908bdcf4945775248533e48ebdd4ca83021180ae0f431c91743ec2401b84e18ce7c
6
+ metadata.gz: 1a67bc2f4752d1dc6e822866e61640dc7436c7cfa6e8ab37b3cf2450d8bdbed16dee5fbda43f546b0d5bb545d14f24550e09fb5d3edc822b584c2bdac3a730af
7
+ data.tar.gz: fb2d1f34ac4188dbc747bbc2a64f62186702d8f5a7fb201651d105fe96bebf8022ac77262189bfd74567632b7203b75fadc6a1e24828478caa1d3baaeeb1ea40
@@ -213,7 +213,7 @@ EOD
213
213
 
214
214
  def paragraph(text)
215
215
  lines = text.split(/ $/)
216
- if text[0] == '%'
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"
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module Gibier
2
- VERSION = "0.8.7"
2
+ VERSION = "0.8.8"
3
3
  end
@@ -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
- className: 'slide',
178
- style: {zoom: zoom, top: "#{top}px", left: "#{left}px"},
179
- onKeyDown: -> (event) { handle_key_down(event) }
180
- },
181
- pages(SLIDE_HEIGHT * zoom)
182
- ),
183
- Gibier::TrackField.el({total_time: duration, start: @state[:start], page_number: @state[:page_number], page_count: Gibier.page_count}),
184
- section({className: 'footer'}.merge(footer_style),
185
- p({className: 'title'}, Gibier.title),
186
- p({className: 'powered-by'}, "Powered by ", span({className: "hyalite"}, "Hyalite"))
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.7
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-08-23 00:00:00.000000000 Z
11
+ date: 2017-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra