deckrb 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +21 -0
- data/lib/deck/slide.rb +1 -0
- data/lib/deck/version.rb +1 -1
- metadata +7 -8
- data/lib/deck/rack_static_patch.rb +0 -13
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.
|
data/lib/deck/slide.rb
CHANGED
@@ -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
|
data/lib/deck/version.rb
CHANGED
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.
|
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-
|
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:
|
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:
|
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:
|
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:
|
260
|
+
hash: -4288283773795279670
|
262
261
|
requirements: []
|
263
262
|
rubyforge_project:
|
264
|
-
rubygems_version: 1.8.
|
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
|