rhet-butler 0.12.1 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YmJjMGFjYThjNTljOTU0NjU0OWJhZGNiMTQ3YzlhOGJjNjMxYzFiMQ==
4
+ ODZlMjBlZjY5N2JhNjhiNjkwYjA0MWE0YjBmNDhmZTRiY2M5MTVhNA==
5
5
  data.tar.gz: !binary |-
6
- MGQ5ZTFjOGEzMDBhY2U2NDIxYzAzYTI4OGY2N2E3NDQzYzY2ZTZmOA==
6
+ ZWI4OWU5YzZlZWM3ODdjYzBlOTA1NTE5MTAwYTEyYmUyMzJlMWVlYQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZjM5N2RjODMxMjBkYWQyMzBhMzMwODQxY2YyYWIwMGFmMjIzNjBjNzY4Y2Jh
10
- NjllNmIwNDdiYzVkYWQ2YTg5OTBiMGY3MWFkNGYxNzFlNjI2NTFmMzJhYmU0
11
- NWQ2YjMwNGIzOTcwZDI0MDRkMmE0NDY5NWUxY2FmODRjMWY0NGI=
9
+ MTJjYjA1Nzg4NGI5ZWQyYTczZGYwOTViNWIxYTc5OTJiYmMwODNkN2RkNDFh
10
+ MDRjZDIzNTVlNzE2MTVkOGFiNDljYTdhMTZkYWZjMTk2ZTNmMzQ5ODc3MmNh
11
+ NDg0Yzc5YzRkM2VmN2UxMDBlOGU2YTVjYTVkMDJkZjNhYzI0YzI=
12
12
  data.tar.gz: !binary |-
13
- MmI3MTkzOTc2NzI4NzUyZDM5OTUwNTZkMzVhOWUyOTg3MGFjOTg1MGJiMzQ5
14
- NDE4OTQ4ZDYxYzRkZTg2ZTFjOGQxZWM3ZGExYmIyMDI3YzA1Y2RkMTYxMmZj
15
- MWM0ODRhYTM0NzQwNDhmNWRiMmMzYWZkZTgyZjIzYmM4ZGJmNjI=
13
+ Mzg5OTE4YzNjYjc5ZjliZmU1MGJjNzFkN2M2MTBkMjBiNGNiZTEwZjdjZmRj
14
+ ZTFkOGVhYzc3ODFjZDY3MGRiOGY2NGU4NWUwY2VlNGI3NWQxMDQ0NjdkYTll
15
+ NzNhMTFiOWFiYmZkOTU4MzQ5YzhiODk0N2Q2YmIyYTkxYmRkM2Q=
@@ -0,0 +1,33 @@
1
+ @font-face
2
+ font-family: 'Arimo'
3
+ font-style: normal
4
+ font-weight: 700
5
+ src: local("Arimo Bold"), local("Arimo-Bold"), url(../../themes.googleusercontent.com/static/fonts/arimo/v5/K-bXE71xZHgbUS_UdQjugvesZW2xOQ-xsNqO47m55DA.ttf) format("truetype")
6
+
7
+
8
+ @font-face
9
+ font-family: 'Cinzel Decorative'
10
+ font-style: normal
11
+ font-weight: 700
12
+ src: local("Cinzel Decorative Bold"), local("CinzelDecorative-Bold"), url(../../themes.googleusercontent.com/static/fonts/cinzeldecorative/v1/pXhIVnhFtL_B9Vb1wq2F9wIh9oxuYcmvOvyh_107lQs.ttf) format("truetype")
13
+
14
+
15
+ @font-face
16
+ font-family: 'Cinzel Decorative'
17
+ font-style: normal
18
+ font-weight: 900
19
+ src: local("Cinzel Decorative Black"), local("CinzelDecorative-Black"), url(../../themes.googleusercontent.com/static/fonts/cinzeldecorative/v1/pXhIVnhFtL_B9Vb1wq2F9zCUrkmwPfdnoTjOU_kXqBI.ttf) format("truetype")
20
+
21
+
22
+ @font-face
23
+ font-family: 'Droid Sans Mono'
24
+ font-style: normal
25
+ font-weight: 400
26
+ src: local("Droid Sans Mono"), local("DroidSansMono"), url(../../themes.googleusercontent.com/static/fonts/droidsansmono/v4/ns-m2xQYezAtqh7ai59hJYW_AySPyikQrZReizgrnuw.ttf) format("truetype")
27
+
28
+
29
+ @font-face
30
+ font-family: 'Slackey'
31
+ font-style: normal
32
+ font-weight: 400
33
+ src: local("Slackey"), url(../../themes.googleusercontent.com/static/fonts/slackey/v3/bJZDrYrGx8atJRHR9DVdqg.ttf) format("truetype")
@@ -1,6 +1,6 @@
1
1
  @import 'compass/reset'
2
2
  @import 'compass'
3
- @import 'font.css'
3
+ @import 'font'
4
4
  @import 'animate-helpers'
5
5
  @import 'animate/windblown'
6
6
  @import 'animate/fade'
@@ -1,11 +1,11 @@
1
1
  ---
2
2
  named-filters:
3
3
  normal:
4
- - !textile
4
+ - !markdown
5
5
  - !cues
6
6
  code:
7
7
  - !code
8
- - !textile
8
+ - !markdown
9
9
  - !cues
10
10
 
11
11
  template-cache: .template-cache
@@ -3,5 +3,5 @@
3
3
  - !group
4
4
  - !include whoami.yaml
5
5
  - !group
6
- - !slide |
7
- contents: It'll knock your socks off!
6
+ - !slide
7
+ content: It'll knock your socks off!
@@ -48,7 +48,6 @@ module RhetButler
48
48
  content.filters = get_filters(content.filters || default_content_filters)
49
49
  end
50
50
  end
51
-
52
51
  rescue
53
52
  puts "While processing #{slide}:"
54
53
  raise
@@ -39,4 +39,5 @@ end
39
39
 
40
40
  require 'rhet-butler/slide-renderers/code'
41
41
  require 'rhet-butler/slide-renderers/textile'
42
+ require 'rhet-butler/slide-renderers/markdown'
42
43
  require 'rhet-butler/slide-renderers/cues'
@@ -0,0 +1,15 @@
1
+ require 'kramdown'
2
+
3
+ module RhetButler
4
+ module SlideRenderers
5
+ class Markdown < SlideRenderer
6
+ register "markdown"
7
+ register "kramdown"
8
+ register "gfm"
9
+
10
+ def process(string)
11
+ Kramdown::Document.new(string).to_html
12
+ end
13
+ end
14
+ end
15
+ end
@@ -13,6 +13,9 @@ module RhetButler
13
13
  slide.notes = filter_text(slide.raw_notes, slide.note_filters)
14
14
  raise "Slide content needs to be a string, was: #{slide.content.inspect}" unless String === slide.content
15
15
  raise "Slide notes needs to be a string, was: #{slide.notes.inspect}" unless String === slide.notes
16
+ rescue
17
+ puts "While processing #{slide}:"
18
+ raise
16
19
  end
17
20
 
18
21
  def filter_text(content, filters)
@@ -28,6 +28,7 @@ module RhetButler
28
28
  [:block, :value].each do |key|
29
29
  children = children[key]
30
30
  break if children.nil?
31
+ break if children.is_a? Array
31
32
  end
32
33
  list += url_nodes(children)
33
34
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rhet-butler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.1
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Judson Lester
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-17 00:00:00.000000000 Z
11
+ date: 2015-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: compass-core
@@ -206,6 +206,20 @@ dependencies:
206
206
  - - ~>
207
207
  - !ruby/object:Gem::Version
208
208
  version: 4.2.9
209
+ - !ruby/object:Gem::Dependency
210
+ name: kramdown
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ~>
214
+ - !ruby/object:Gem::Version
215
+ version: 1.7.0
216
+ type: :runtime
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - ~>
221
+ - !ruby/object:Gem::Version
222
+ version: 1.7.0
209
223
  description: ! " Rhet Butler is a presentation assistant. Build a slide deck in simple
210
224
  YAML,\n design it in CSS, run the presentation with your smartphone over Websockets.\n"
211
225
  email:
@@ -240,6 +254,7 @@ files:
240
254
  - lib/rhet-butler/slide-renderers/code.rb
241
255
  - lib/rhet-butler/slide-renderers/cues.rb
242
256
  - lib/rhet-butler/slide-renderers/textile.rb
257
+ - lib/rhet-butler/slide-renderers/markdown.rb
243
258
  - lib/rhet-butler/slide-rendering.rb
244
259
  - lib/rhet-butler/slide-traverser.rb
245
260
  - lib/rhet-butler/resource-localizer.rb
@@ -285,7 +300,7 @@ files:
285
300
  - default-configuration/assets/stylesheets/solarized.scss
286
301
  - default-configuration/assets/stylesheets/google-open-sans.css
287
302
  - default-configuration/assets/stylesheets/rhet.css.sass
288
- - default-configuration/assets/stylesheets/font.css
303
+ - default-configuration/assets/stylesheets/font.sass
289
304
  - default-configuration/assets/stylesheets/presenter/rhet.css.sass
290
305
  - default-configuration/assets/stylesheets/_animate-helpers.scss
291
306
  - default-configuration/assets/stylesheets/animate/fade/_fadeIn.sass
@@ -390,7 +405,7 @@ rdoc_options:
390
405
  - --main
391
406
  - doc/README
392
407
  - --title
393
- - rhet-butler-0.12.1 Documentation
408
+ - rhet-butler-0.13.0 Documentation
394
409
  require_paths:
395
410
  - lib/
396
411
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -1,30 +0,0 @@
1
- @font-face {
2
- font-family: 'Arimo';
3
- font-style: normal;
4
- font-weight: 700;
5
- src: local('Arimo Bold'), local('Arimo-Bold'), url(../../themes.googleusercontent.com/static/fonts/arimo/v5/K-bXE71xZHgbUS_UdQjugvesZW2xOQ-xsNqO47m55DA.ttf) format('truetype');
6
- }
7
- @font-face {
8
- font-family: 'Cinzel Decorative';
9
- font-style: normal;
10
- font-weight: 700;
11
- src: local('Cinzel Decorative Bold'), local('CinzelDecorative-Bold'), url(../../themes.googleusercontent.com/static/fonts/cinzeldecorative/v1/pXhIVnhFtL_B9Vb1wq2F9wIh9oxuYcmvOvyh_107lQs.ttf) format('truetype');
12
- }
13
- @font-face {
14
- font-family: 'Cinzel Decorative';
15
- font-style: normal;
16
- font-weight: 900;
17
- src: local('Cinzel Decorative Black'), local('CinzelDecorative-Black'), url(../../themes.googleusercontent.com/static/fonts/cinzeldecorative/v1/pXhIVnhFtL_B9Vb1wq2F9zCUrkmwPfdnoTjOU_kXqBI.ttf) format('truetype');
18
- }
19
- @font-face {
20
- font-family: 'Droid Sans Mono';
21
- font-style: normal;
22
- font-weight: 400;
23
- src: local('Droid Sans Mono'), local('DroidSansMono'), url(../../themes.googleusercontent.com/static/fonts/droidsansmono/v4/ns-m2xQYezAtqh7ai59hJYW_AySPyikQrZReizgrnuw.ttf) format('truetype');
24
- }
25
- @font-face {
26
- font-family: 'Slackey';
27
- font-style: normal;
28
- font-weight: 400;
29
- src: local('Slackey'), url(../../themes.googleusercontent.com/static/fonts/slackey/v3/bJZDrYrGx8atJRHR9DVdqg.ttf) format('truetype');
30
- }