slide-em-up 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slide-em-up
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 4
10
- version: 0.1.4
9
+ - 5
10
+ version: 0.1.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Bruno Michel
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-16 00:00:00 +02:00
18
+ date: 2011-04-19 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -49,18 +49,18 @@ dependencies:
49
49
  type: :runtime
50
50
  version_requirements: *id002
51
51
  - !ruby/object:Gem::Dependency
52
- name: nolate
52
+ name: erubis
53
53
  prerelease: false
54
54
  requirement: &id003 !ruby/object:Gem::Requirement
55
55
  none: false
56
56
  requirements:
57
57
  - - ~>
58
58
  - !ruby/object:Gem::Version
59
- hash: 11
59
+ hash: 13
60
60
  segments:
61
- - 0
62
- - 0
63
- version: "0.0"
61
+ - 2
62
+ - 7
63
+ version: "2.7"
64
64
  type: :runtime
65
65
  version_requirements: *id003
66
66
  - !ruby/object:Gem::Dependency
@@ -137,18 +137,27 @@ files:
137
137
  - README.md
138
138
  - Gemfile
139
139
  - bin/slide-em-up
140
- - lib/slide-em-up.rb
141
- - lib/slide-em-up/slides_api.rb
142
- - lib/slide-em-up/assets_api.rb
143
140
  - lib/slide-em-up/presentation.rb
141
+ - lib/slide-em-up/slides_api.rb
144
142
  - lib/slide-em-up/version.rb
145
- - themes/3d_slideshow/fonts/league_gothic-webfont.ttf
146
- - themes/3d_slideshow/js/slideshow.js
147
- - themes/3d_slideshow/css/colorful.css
148
- - themes/3d_slideshow/css/main.css
143
+ - lib/slide-em-up.rb
144
+ - themes/html5rocks/css/sea_wave.css
145
+ - themes/html5rocks/css/moon.css
146
+ - themes/html5rocks/css/sand.css
147
+ - themes/html5rocks/css/default.css
148
+ - themes/html5rocks/README
149
+ - themes/html5rocks/index.erb
150
+ - themes/html5rocks/js/slides.js
151
+ - themes/common/css/pygments/colorful.css
152
+ - themes/common/fonts/crimson_text_bold.ttf
153
+ - themes/common/fonts/crimson_text_semibold.ttf
154
+ - themes/common/fonts/league_gothic-webfont.ttf
155
+ - themes/common/fonts/crimson_text.ttf
149
156
  - themes/3d_slideshow/css/reset.css
157
+ - themes/3d_slideshow/css/main.css
150
158
  - themes/3d_slideshow/README
151
- - themes/3d_slideshow/index.nlt
159
+ - themes/3d_slideshow/index.erb
160
+ - themes/3d_slideshow/js/slideshow.js
152
161
  has_rdoc: true
153
162
  homepage: http://github.com/nono/slide-em-up
154
163
  licenses: []
@@ -1,41 +0,0 @@
1
- require "time"
2
- require "rack/utils"
3
- require "rack/mime"
4
- require "goliath/api"
5
-
6
-
7
- module SlideEmUp
8
- class AssetsAPI < Goliath::API
9
- def initialize(presentation)
10
- @presentation = presentation
11
- end
12
-
13
- def response(env)
14
- path_info = Rack::Utils.unescape(env["PATH_INFO"])
15
- path = @presentation.path_for_asset(path_info)
16
- if path_info == "/"
17
- [302, {
18
- "Location" => "http://#{env["HTTP_HOST"]}/slides",
19
- "Content-Length" => "0"
20
- }, [] ]
21
- elsif path_info.include? ".."
22
- [403, {
23
- "Content-Type" => "text/plain",
24
- "Content-Length" => "0"
25
- }, ["Forbidden\n"] ]
26
- elsif path
27
- body = File.read(path)
28
- [200, {
29
- "Last-Modified" => File.mtime(path).httpdate,
30
- "Content-Length" => Rack::Utils.bytesize(body).to_s,
31
- "Content-Type" => Rack::Mime.mime_type(File.extname(path), 'text/plain'),
32
- }, [body] ]
33
- else
34
- [404, {
35
- "Content-Type" => "text/plain",
36
- "Content-Length" => "0"
37
- }, ["File not found: #{path_info}\n"] ]
38
- end
39
- end
40
- end
41
- end