mg_showoff 0.5.1 → 0.5.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +13 -0
- data/lib/showoff.rb +8 -1
- metadata +118 -82
data/Rakefile
CHANGED
@@ -5,3 +5,16 @@ rescue LoadError
|
|
5
5
|
end
|
6
6
|
|
7
7
|
MG.new("showoff.gemspec")
|
8
|
+
|
9
|
+
|
10
|
+
require 'rake'
|
11
|
+
require 'rake/testtask'
|
12
|
+
|
13
|
+
task :default => [:test_units]
|
14
|
+
|
15
|
+
desc "Run basic tests"
|
16
|
+
Rake::TestTask.new("test_units") { |t|
|
17
|
+
t.verbose = true
|
18
|
+
# t.warning = true
|
19
|
+
t.libs << "test"
|
20
|
+
}
|
data/lib/showoff.rb
CHANGED
@@ -32,12 +32,15 @@ end
|
|
32
32
|
|
33
33
|
class ShowOff < Sinatra::Application
|
34
34
|
|
35
|
-
Version = VERSION = '0.5.1'
|
35
|
+
Version = VERSION = '0.5.1.1'
|
36
36
|
|
37
37
|
attr_reader :cached_image_size
|
38
38
|
|
39
39
|
set :views, File.dirname(__FILE__) + '/../views'
|
40
40
|
set :public, File.dirname(__FILE__) + '/../public'
|
41
|
+
set :pres_dir, nil
|
42
|
+
set :pres_file, nil
|
43
|
+
set :verbose, false
|
41
44
|
|
42
45
|
def initialize(app=nil)
|
43
46
|
super(app)
|
@@ -48,14 +51,18 @@ class ShowOff < Sinatra::Application
|
|
48
51
|
dir = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
49
52
|
@logger.debug(dir)
|
50
53
|
|
54
|
+
# showoff_dir: The directory that the showoff gem has been installed in
|
51
55
|
showoff_dir = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
56
|
+
# If working directory is the showoff gem install dir, set presentation directory to the example folder and set the root path to "."
|
52
57
|
if Dir.pwd == showoff_dir
|
53
58
|
options.pres_dir = "#{showoff_dir}/example"
|
54
59
|
@root_path = "."
|
60
|
+
# Otherwise set presentation directory to either the one specified or the current working directory, and set the root path to ".."
|
55
61
|
else
|
56
62
|
options.pres_dir ||= Dir.pwd
|
57
63
|
@root_path = ".."
|
58
64
|
end
|
65
|
+
# Now expand path of the presentation directory
|
59
66
|
options.pres_dir = File.expand_path(options.pres_dir)
|
60
67
|
if (options.pres_file)
|
61
68
|
puts "Using #{options.pres_file}"
|
metadata
CHANGED
@@ -1,106 +1,132 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: mg_showoff
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 97
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 5
|
9
|
+
- 1
|
10
|
+
- 1
|
11
|
+
version: 0.5.1.1
|
6
12
|
platform: ruby
|
7
|
-
authors:
|
13
|
+
authors:
|
8
14
|
- Mike Grassotti
|
9
15
|
autorequire:
|
10
16
|
bindir: bin
|
11
17
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
18
|
+
|
19
|
+
date: 2010-08-17 00:00:00 Z
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
15
22
|
name: sinatra
|
16
|
-
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
17
25
|
none: false
|
18
|
-
requirements:
|
19
|
-
- -
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
30
|
+
segments:
|
31
|
+
- 0
|
32
|
+
version: "0"
|
22
33
|
type: :runtime
|
23
|
-
|
24
|
-
|
25
|
-
- !ruby/object:Gem::Dependency
|
34
|
+
version_requirements: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
26
36
|
name: bluecloth
|
27
|
-
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
28
39
|
none: false
|
29
|
-
requirements:
|
30
|
-
- -
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
hash: 3
|
44
|
+
segments:
|
45
|
+
- 0
|
46
|
+
version: "0"
|
33
47
|
type: :runtime
|
34
|
-
|
35
|
-
|
36
|
-
- !ruby/object:Gem::Dependency
|
48
|
+
version_requirements: *id002
|
49
|
+
- !ruby/object:Gem::Dependency
|
37
50
|
name: nokogiri
|
38
|
-
|
51
|
+
prerelease: false
|
52
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
39
53
|
none: false
|
40
|
-
requirements:
|
41
|
-
- -
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
hash: 3
|
58
|
+
segments:
|
59
|
+
- 0
|
60
|
+
version: "0"
|
44
61
|
type: :runtime
|
45
|
-
|
46
|
-
|
47
|
-
- !ruby/object:Gem::Dependency
|
62
|
+
version_requirements: *id003
|
63
|
+
- !ruby/object:Gem::Dependency
|
48
64
|
name: json
|
49
|
-
|
65
|
+
prerelease: false
|
66
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
50
67
|
none: false
|
51
|
-
requirements:
|
52
|
-
- -
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
|
68
|
+
requirements:
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
hash: 3
|
72
|
+
segments:
|
73
|
+
- 0
|
74
|
+
version: "0"
|
55
75
|
type: :runtime
|
56
|
-
|
57
|
-
|
58
|
-
- !ruby/object:Gem::Dependency
|
76
|
+
version_requirements: *id004
|
77
|
+
- !ruby/object:Gem::Dependency
|
59
78
|
name: gli
|
60
|
-
|
79
|
+
prerelease: false
|
80
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
61
81
|
none: false
|
62
|
-
requirements:
|
63
|
-
- -
|
64
|
-
- !ruby/object:Gem::Version
|
82
|
+
requirements:
|
83
|
+
- - ">="
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
hash: 31
|
86
|
+
segments:
|
87
|
+
- 1
|
88
|
+
- 3
|
89
|
+
- 2
|
65
90
|
version: 1.3.2
|
66
91
|
type: :runtime
|
67
|
-
|
68
|
-
|
69
|
-
- !ruby/object:Gem::Dependency
|
92
|
+
version_requirements: *id005
|
93
|
+
- !ruby/object:Gem::Dependency
|
70
94
|
name: parslet
|
71
|
-
|
95
|
+
prerelease: false
|
96
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
72
97
|
none: false
|
73
|
-
requirements:
|
74
|
-
- -
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
|
98
|
+
requirements:
|
99
|
+
- - ">="
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
hash: 3
|
102
|
+
segments:
|
103
|
+
- 0
|
104
|
+
version: "0"
|
77
105
|
type: :runtime
|
78
|
-
|
79
|
-
|
80
|
-
- !ruby/object:Gem::Dependency
|
106
|
+
version_requirements: *id006
|
107
|
+
- !ruby/object:Gem::Dependency
|
81
108
|
name: mg
|
82
|
-
|
109
|
+
prerelease: false
|
110
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
83
111
|
none: false
|
84
|
-
requirements:
|
85
|
-
- -
|
86
|
-
- !ruby/object:Gem::Version
|
87
|
-
|
112
|
+
requirements:
|
113
|
+
- - ">="
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
hash: 3
|
116
|
+
segments:
|
117
|
+
- 0
|
118
|
+
version: "0"
|
88
119
|
type: :development
|
89
|
-
|
90
|
-
|
91
|
-
description: ! " ShowOff is a Sinatra web app that reads simple configuration files
|
92
|
-
for a\n presentation. It is sort of like a Keynote web app engine. I am using
|
93
|
-
it\n to do all my talks in 2010, because I have a deep hatred in my heart for\n
|
94
|
-
\ Keynote and yet it is by far the best in the field.\n\n The idea is that you
|
95
|
-
setup your slide files in section subdirectories and\n then startup the showoff
|
96
|
-
server in that directory. It will read in your\n showoff.json file for which sections
|
97
|
-
go in which order and then will give \n you a URL to present from.\n"
|
120
|
+
version_requirements: *id007
|
121
|
+
description: " ShowOff is a Sinatra web app that reads simple configuration files for a\n presentation. It is sort of like a Keynote web app engine. I am using it\n to do all my talks in 2010, because I have a deep hatred in my heart for\n Keynote and yet it is by far the best in the field.\n\n The idea is that you setup your slide files in section subdirectories and\n then startup the showoff server in that directory. It will read in your\n showoff.json file for which sections go in which order and then will give \n you a URL to present from.\n"
|
98
122
|
email: mike@grassotti.com
|
99
|
-
executables:
|
123
|
+
executables:
|
100
124
|
- showoff
|
101
125
|
extensions: []
|
126
|
+
|
102
127
|
extra_rdoc_files: []
|
103
|
-
|
128
|
+
|
129
|
+
files:
|
104
130
|
- README.rdoc
|
105
131
|
- Rakefile
|
106
132
|
- LICENSE
|
@@ -202,26 +228,36 @@ files:
|
|
202
228
|
- public/js/showoffcore.js
|
203
229
|
homepage: http://github.com/grasscode/showoff
|
204
230
|
licenses: []
|
231
|
+
|
205
232
|
post_install_message:
|
206
233
|
rdoc_options: []
|
207
|
-
|
234
|
+
|
235
|
+
require_paths:
|
208
236
|
- lib
|
209
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
237
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
210
238
|
none: false
|
211
|
-
requirements:
|
212
|
-
- -
|
213
|
-
- !ruby/object:Gem::Version
|
214
|
-
|
215
|
-
|
239
|
+
requirements:
|
240
|
+
- - ">="
|
241
|
+
- !ruby/object:Gem::Version
|
242
|
+
hash: 3
|
243
|
+
segments:
|
244
|
+
- 0
|
245
|
+
version: "0"
|
246
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
216
247
|
none: false
|
217
|
-
requirements:
|
218
|
-
- -
|
219
|
-
- !ruby/object:Gem::Version
|
220
|
-
|
248
|
+
requirements:
|
249
|
+
- - ">="
|
250
|
+
- !ruby/object:Gem::Version
|
251
|
+
hash: 3
|
252
|
+
segments:
|
253
|
+
- 0
|
254
|
+
version: "0"
|
221
255
|
requirements: []
|
256
|
+
|
222
257
|
rubyforge_project:
|
223
|
-
rubygems_version: 1.8.
|
258
|
+
rubygems_version: 1.8.6
|
224
259
|
signing_key:
|
225
260
|
specification_version: 3
|
226
261
|
summary: The best damn presentation software a developer could ever love.
|
227
262
|
test_files: []
|
263
|
+
|