deckrb 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -82,6 +82,27 @@ and you'll get a web server running on `http://localhost:4333` serving up a slid
82
82
  --version, -v: Print version and exit
83
83
  --help, -h: Show this message
84
84
 
85
+ ## Deploying to Heroku
86
+
87
+ To deploy your slides as a Heroku app, put them into a Git repo, and add a file
88
+ called `config.ru` with contents like this:
89
+
90
+ require "rubygems"
91
+ require "bundler"
92
+ Bundler.setup
93
+ Bundler.require
94
+
95
+ require 'deck/rack_app'
96
+ run Deck::RackApp.build('slides.md')
97
+
98
+ and a `Gemfile` like this:
99
+
100
+ gem "deckrb"
101
+
102
+ Then deploy to Heroku as usual (e.g. `heroku apps:create`).
103
+
104
+ (Note that Deck::RackApp can accept either a filename or an array of filenames.)
105
+
85
106
  ## Known Issues (Bugs and Limitations)
86
107
 
87
108
  * If you're running Webrick, you may not be able to kill the server with Ctrl-C. This is apparently due to a bug in recent versions of Webrick.
@@ -95,6 +95,7 @@ module Deck
95
95
  def <<(s)
96
96
  if s.strip =~ /^\s*<?!VIDEO +([^\s>]*)>?$/
97
97
  youtube_id = $1
98
+ # see https://developers.google.com/youtube/player_parameters
98
99
  s = %Q(<iframe class="video youtube" type="text/html" width="640" height="390" src="http://www.youtube.com/embed/#{youtube_id}" frameborder="0"></iframe>\n)
99
100
  end
100
101
  @markdown_text << s
@@ -1,3 +1,3 @@
1
1
  module Deck
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deckrb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-24 00:00:00.000000000 Z
12
+ date: 2012-09-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: erector
@@ -50,7 +50,7 @@ dependencies:
50
50
  requirements:
51
51
  - - ! '>='
52
52
  - !ruby/object:Gem::Version
53
- version: '0'
53
+ version: 1.4.1
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
@@ -58,7 +58,7 @@ dependencies:
58
58
  requirements:
59
59
  - - ! '>='
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: 1.4.1
62
62
  - !ruby/object:Gem::Dependency
63
63
  name: trollop
64
64
  requirement: !ruby/object:Gem::Requirement
@@ -152,7 +152,6 @@ extra_rdoc_files:
152
152
  files:
153
153
  - lib/deck/noko.rb
154
154
  - lib/deck/rack_app.rb
155
- - lib/deck/rack_static_patch.rb
156
155
  - lib/deck/slide.rb
157
156
  - lib/deck/slide_deck.rb
158
157
  - lib/deck/version.rb
@@ -249,7 +248,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
249
248
  version: '0'
250
249
  segments:
251
250
  - 0
252
- hash: 2930937714507842566
251
+ hash: -4288283773795279670
253
252
  required_rubygems_version: !ruby/object:Gem::Requirement
254
253
  none: false
255
254
  requirements:
@@ -258,10 +257,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
258
257
  version: '0'
259
258
  segments:
260
259
  - 0
261
- hash: 2930937714507842566
260
+ hash: -4288283773795279670
262
261
  requirements: []
263
262
  rubyforge_project:
264
- rubygems_version: 1.8.21
263
+ rubygems_version: 1.8.24
265
264
  signing_key:
266
265
  specification_version: 3
267
266
  summary: Make HTML slide shows; wraps deck.js
@@ -1,13 +0,0 @@
1
- # Fix Rack bug https://github.com/rack/rack/issues/301
2
- module Rack
3
- class Static
4
- def initialize(app, options={})
5
- @app = app
6
- @urls = options[:urls] || ["/favicon.ico"]
7
- @index = options[:index]
8
- root = options[:root] || Dir.pwd
9
- cache_control = options[:cache_control]
10
- @file_server = Rack::File.new(root, cache_control)
11
- end
12
- end
13
- end