slideshow 2.2.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Manifest.txt +1 -1
- data/Rakefile +19 -1
- data/config/slideshow.index.yml +25 -13
- data/config/slideshow.yml +3 -0
- data/lib/slideshow/cli/commands/gen.rb +14 -22
- data/lib/slideshow/config.rb +5 -1
- data/lib/slideshow/helpers/text_helper.rb +0 -25
- data/lib/slideshow/markup/mediawiki.rb +38 -0
- data/lib/slideshow/markup/textile.rb +18 -1
- data/lib/slideshow/version.rb +1 -1
- data/lib/slideshow.rb +3 -3
- metadata +103 -194
- data/lib/slideshow/helpers/table_helper.rb +0 -63
data/Manifest.txt
CHANGED
@@ -31,10 +31,10 @@ lib/slideshow/helpers/step_helper.rb
|
|
31
31
|
lib/slideshow/helpers/syntax/coderay_helper.rb
|
32
32
|
lib/slideshow/helpers/syntax/sh_helper.rb
|
33
33
|
lib/slideshow/helpers/syntax/uv_helper.rb
|
34
|
-
lib/slideshow/helpers/table_helper.rb
|
35
34
|
lib/slideshow/helpers/text_helper.rb
|
36
35
|
lib/slideshow/manifest_helpers.rb
|
37
36
|
lib/slideshow/markup/markdown.rb
|
37
|
+
lib/slideshow/markup/mediawiki.rb
|
38
38
|
lib/slideshow/markup/rest.rb
|
39
39
|
lib/slideshow/markup/textile.rb
|
40
40
|
lib/slideshow/plugin_helpers.rb
|
data/Rakefile
CHANGED
@@ -17,9 +17,10 @@ Hoe.spec 'slideshow' do
|
|
17
17
|
['textutils','>= 0.2.0'],
|
18
18
|
['pakman','>= 0.4.0'],
|
19
19
|
['activesupport', '>= 3.2.6'],
|
20
|
-
['RedCloth','>= 4.2.9'],
|
21
20
|
['logutils','>= 0.6.0'],
|
22
21
|
['gli', '>= 2.5.6']
|
22
|
+
## ['wikicloth', '>= 0.8.0'] make it a soft dependency # mediawiki markup engine
|
23
|
+
## ['RedCloth','>= 4.2.9'] make it a soft dependency # textile markup engine
|
23
24
|
]
|
24
25
|
|
25
26
|
# switch extension to .markdown for gihub formatting
|
@@ -29,6 +30,23 @@ Hoe.spec 'slideshow' do
|
|
29
30
|
self.post_install_message =<<EOS
|
30
31
|
******************************************************************************
|
31
32
|
|
33
|
+
Tip: Try some new template packs. Example:
|
34
|
+
|
35
|
+
$ slideshow install impress.js
|
36
|
+
|
37
|
+
or
|
38
|
+
|
39
|
+
$ slideshow install deck.js
|
40
|
+
|
41
|
+
and use like
|
42
|
+
|
43
|
+
$ slideshow build welcome.text -t impress.js
|
44
|
+
|
45
|
+
or
|
46
|
+
|
47
|
+
$ slideshow build welcome.text -t deck.js
|
48
|
+
|
49
|
+
|
32
50
|
Questions? Comments? Send them along to the mailing list.
|
33
51
|
https://groups.google.com/group/webslideshow
|
34
52
|
|
data/config/slideshow.index.yml
CHANGED
@@ -1,18 +1,16 @@
|
|
1
|
-
|
2
|
-
#
|
3
|
-
#
|
4
|
-
# issue
|
5
|
-
# slideshow update
|
6
|
-
# to update index
|
7
|
-
|
1
|
+
###########################################################################################
|
2
|
+
# Slide Show (S9) Update Index for Template Packs, Quick Starter Samples 'n' Plugins
|
8
3
|
|
9
|
-
|
10
|
-
#
|
4
|
+
# find the latest version online at
|
5
|
+
# - https://github.com/slideshow-s9/update
|
6
|
+
#
|
7
|
+
# use $ slideshow update -- for automatic update e.g. download the latest slideshow.index.yml file
|
11
8
|
|
12
9
|
|
13
10
|
#############
|
14
|
-
# shortcuts for fetching template packs (w/ optional quick starter
|
15
|
-
#
|
11
|
+
# shortcuts for fetching template packs (w/ optional quick starter samples)
|
12
|
+
# maps shortcut to URI
|
13
|
+
|
16
14
|
|
17
15
|
s6blank: https://raw.github.com/slideshow-s9/slideshow-s6-blank/master/s6blank.txt
|
18
16
|
|
@@ -43,7 +41,21 @@ impress.js:
|
|
43
41
|
shower: https://raw.github.com/slideshow-s9/slideshow-shower/master/shower.txt
|
44
42
|
|
45
43
|
|
46
|
-
|
47
|
-
#
|
44
|
+
##############
|
45
|
+
# Plugins
|
48
46
|
|
49
47
|
analytics: https://raw.github.com/slideshow-s9/analytics/master/analytics.txt.plugin
|
48
|
+
|
49
|
+
tables: https://raw.github.com/slideshow-s9/tables/master/tables.txt.plugin
|
50
|
+
|
51
|
+
snippets: https://raw.github.com/slideshow-s9/snippets/master/snippets.txt.plugin
|
52
|
+
|
53
|
+
plugins:
|
54
|
+
- https://raw.github.com/slideshow-s9/analytics/master/analytics.txt.plugin
|
55
|
+
- https://raw.github.com/slideshow-s9/tables/master/tables.txt.plugin
|
56
|
+
- https://raw.github.com/slideshow-s9/snippets/master/snippets.txt.plugin
|
57
|
+
|
58
|
+
#############################
|
59
|
+
# Quick Starter Stamples
|
60
|
+
|
61
|
+
formatting: https://raw.github.com/slideshow-s9/formatting/master/formatting.txt.quick
|
data/config/slideshow.yml
CHANGED
@@ -29,15 +29,17 @@ class Gen ## todo: rename command to build
|
|
29
29
|
attr_reader :opts, :config, :headers
|
30
30
|
attr_reader :session # give helpers/plugins a session-like hash
|
31
31
|
|
32
|
-
attr_reader :markup_type # :textile, :markdown, :rest
|
33
|
-
|
34
|
-
# uses configured markup processor (textile,markdown,rest) to generate html
|
32
|
+
attr_reader :markup_type # :textile, :markdown, :mediawiki, :rest
|
33
|
+
|
34
|
+
# uses configured markup processor (textile,markdown,rest,mediawiki) to generate html
|
35
35
|
def text_to_html( content )
|
36
36
|
content = case @markup_type
|
37
37
|
when :markdown
|
38
38
|
markdown_to_html( content )
|
39
39
|
when :textile
|
40
40
|
textile_to_html( content )
|
41
|
+
when :mediawiki
|
42
|
+
mediawiki_to_html( content )
|
41
43
|
when :rest
|
42
44
|
rest_to_html( content )
|
43
45
|
end
|
@@ -49,10 +51,13 @@ class Gen ## todo: rename command to build
|
|
49
51
|
# thus, to avoid runs - use guard_block (add a leading newline to avoid getting include in block that goes before)
|
50
52
|
|
51
53
|
# todo/fix: remove wrap_markup; replace w/ guard_text
|
52
|
-
# why: text might be css, js, not just html
|
54
|
+
# why: text might be css, js, not just html
|
55
|
+
|
56
|
+
## todo: add print depreciation warning
|
57
|
+
|
53
58
|
wrap_markup( text )
|
54
59
|
end
|
55
|
-
|
60
|
+
|
56
61
|
def guard_block( text )
|
57
62
|
if markup_type == :textile
|
58
63
|
# saveguard with notextile wrapper etc./no further processing needed
|
@@ -61,6 +66,8 @@ class Gen ## todo: rename command to build
|
|
61
66
|
elsif markup_type == :markdown
|
62
67
|
# wrap in newlines to avoid runons
|
63
68
|
"\n\n#{text}\n\n"
|
69
|
+
elsif markup_type == :mediawiki
|
70
|
+
"\n\n<nowiki>\n#{text}\n</nowiki>\n"
|
64
71
|
else
|
65
72
|
text
|
66
73
|
end
|
@@ -81,23 +88,6 @@ class Gen ## todo: rename command to build
|
|
81
88
|
end
|
82
89
|
|
83
90
|
|
84
|
-
## fix:/todo: check if these get called
|
85
|
-
## from helpers
|
86
|
-
## fix: cleanup and remove
|
87
|
-
|
88
|
-
def load_template( path )
|
89
|
-
puts "*** depreceated api - load_template() - use Pakman gem api"
|
90
|
-
puts " Loading template #{path}..."
|
91
|
-
return File.read( path )
|
92
|
-
end
|
93
|
-
|
94
|
-
def render_template( content, the_binding )
|
95
|
-
puts "*** depreceated api - render_template() - use Pakman gem api"
|
96
|
-
ERB.new( content ).result( the_binding )
|
97
|
-
end
|
98
|
-
|
99
|
-
|
100
|
-
|
101
91
|
# move into a filter??
|
102
92
|
def post_processing_slides( content )
|
103
93
|
|
@@ -252,6 +242,8 @@ class Gen ## todo: rename command to build
|
|
252
242
|
@markup_type = :textile
|
253
243
|
elsif config.known_rest_extnames.include?( extname )
|
254
244
|
@markup_type = :rest
|
245
|
+
elsif config.known_mediawiki_extnames.include?( extname )
|
246
|
+
@markup_type = :mediawiki
|
255
247
|
else # default/fallback use markdown
|
256
248
|
@markup_type = :markdown
|
257
249
|
end
|
data/lib/slideshow/config.rb
CHANGED
@@ -175,6 +175,10 @@ class Config
|
|
175
175
|
@props.fetch_from_section( 'textile', 'extnames', [] )
|
176
176
|
end
|
177
177
|
|
178
|
+
def known_mediawiki_extnames
|
179
|
+
@props.fetch_from_section( 'mediawiki', 'extnames', [] )
|
180
|
+
end
|
181
|
+
|
178
182
|
def known_markdown_extnames
|
179
183
|
## delegate config to Markdown gem for now
|
180
184
|
## todo/fix: how to pass on setting to Markdown gem??
|
@@ -192,7 +196,7 @@ class Config
|
|
192
196
|
# ruby check: is it better self. ?? or more confusing
|
193
197
|
# possible conflict only with write access (e.g. prop=)
|
194
198
|
|
195
|
-
known_textile_extnames + known_markdown_extnames + known_rest_extnames
|
199
|
+
known_textile_extnames + known_markdown_extnames + known_mediawiki_extnames + known_rest_extnames
|
196
200
|
end
|
197
201
|
|
198
202
|
def text_filters
|
@@ -6,31 +6,6 @@ def s9_include( name, opts = {} )
|
|
6
6
|
content = File.read( name )
|
7
7
|
end
|
8
8
|
|
9
|
-
def help()
|
10
|
-
puts " Adding HTML for Slide Show help instructions..."
|
11
|
-
|
12
|
-
text = <<EOS
|
13
|
-
*Slide Show Keyboard Controls (Help)*
|
14
|
-
|
15
|
-
| Action | Key |
|
16
|
-
| Go to next slide | Space Bar, Right Arrow, Down Arrow, Page Down, Click Heading |
|
17
|
-
| Go to previous slide | Left Arrow, Up Arrow, Page Up |
|
18
|
-
| Toggle between slideshow and outline view (Ø) | T |
|
19
|
-
| Show/hide slide controls (Ø « ») | C, Move mouse to bottom right corner |
|
20
|
-
| Zoom in, zoom out, zoom reset (100%) | Control[@+@]Plus, Control[@+@]Minus, Control[@+@]@0@ |
|
21
|
-
EOS
|
22
|
-
|
23
|
-
html = <<EOS
|
24
|
-
<!-- begin help -->
|
25
|
-
<div class='help projection'>
|
26
|
-
#{textile_to_html( text )}
|
27
|
-
</div>
|
28
|
-
<!-- end help -->
|
29
|
-
EOS
|
30
|
-
|
31
|
-
guard_block( html )
|
32
|
-
end
|
33
|
-
|
34
9
|
|
35
10
|
# Usage example:
|
36
11
|
# <%= code 'code/file.rb#section', :lang => 'ruby', :class => 'small' %>
|
@@ -0,0 +1,38 @@
|
|
1
|
+
module Slideshow
|
2
|
+
module MediawikiEngines
|
3
|
+
|
4
|
+
|
5
|
+
def setup_mediawiki_engine
|
6
|
+
return if @mediawiki_engine_setup
|
7
|
+
logger.debug 'require wikicloth -- load mediawiki library'
|
8
|
+
require 'wikicloth' # default mediawiki library
|
9
|
+
@mediawiki_engine_setup = true
|
10
|
+
rescue LoadError
|
11
|
+
puts "You're missing a library required for Mediawiki to Hypertext conversion. Please run:"
|
12
|
+
puts " $ gem install wikicloth"
|
13
|
+
# check: raise exception instead of exit e.g
|
14
|
+
# raise FatalException.new( 'Missing library dependency: wikicloth' )
|
15
|
+
exit 1
|
16
|
+
end
|
17
|
+
|
18
|
+
|
19
|
+
def mediawiki_to_html( content )
|
20
|
+
|
21
|
+
setup_mediawiki_engine()
|
22
|
+
|
23
|
+
puts " Converting Mediawiki-text (#{content.length} bytes) to HTML..."
|
24
|
+
|
25
|
+
# NB: turn off table_of_contents (TOC) auto-generation with __NOTOC__
|
26
|
+
# NB: turn off adding of edit section/markers for headings (noedit:true)
|
27
|
+
|
28
|
+
wiki = WikiCloth::Parser.new( data: "__NOTOC__\n"+content, params: {} )
|
29
|
+
|
30
|
+
content = wiki.to_html( noedit: true )
|
31
|
+
end
|
32
|
+
|
33
|
+
end # module MediawikiEngines
|
34
|
+
end # module Slideshow
|
35
|
+
|
36
|
+
class Slideshow::Gen
|
37
|
+
include Slideshow::MediawikiEngines
|
38
|
+
end
|
@@ -24,7 +24,24 @@ module Slideshow
|
|
24
24
|
end
|
25
25
|
|
26
26
|
|
27
|
-
def
|
27
|
+
def setup_textile_engine
|
28
|
+
return if @textile_engine_setup
|
29
|
+
logger.debug 'require redcloth -- load textile library'
|
30
|
+
require 'redcloth' # default textile library
|
31
|
+
@textile_engine_setup = true
|
32
|
+
rescue LoadError
|
33
|
+
puts "You're missing a library required for Textile to Hypertext conversion. Please run:"
|
34
|
+
puts " $ gem install RedCloth"
|
35
|
+
# check: raise exception instead of exit e.g
|
36
|
+
# raise FatalException.new( 'Missing library dependency: RedCloth' )
|
37
|
+
exit 1
|
38
|
+
end
|
39
|
+
|
40
|
+
|
41
|
+
def textile_to_html( content )
|
42
|
+
|
43
|
+
setup_textile_engine() # optinal lib; extra; load only textile lib if used (soft dependency)
|
44
|
+
|
28
45
|
puts " Converting Textile-text (#{content.length} bytes) to HTML..."
|
29
46
|
|
30
47
|
# JRuby workaround for RedCloth 4 multi-byte character bug
|
data/lib/slideshow/version.rb
CHANGED
data/lib/slideshow.rb
CHANGED
@@ -25,7 +25,6 @@ require 'active_support/all'
|
|
25
25
|
|
26
26
|
require 'logutils' # logger utils library
|
27
27
|
|
28
|
-
require 'redcloth' # default textile library
|
29
28
|
require 'markdown' # default markdown library
|
30
29
|
require 'fetcher' # fetch docs and blogs via http, https, etc.
|
31
30
|
|
@@ -58,13 +57,14 @@ require 'slideshow/cli/commands/plugins'
|
|
58
57
|
require 'slideshow/cli/commands/quick'
|
59
58
|
|
60
59
|
|
61
|
-
require 'slideshow/markup/textile'
|
62
60
|
require 'slideshow/markup/markdown'
|
61
|
+
require 'slideshow/markup/mediawiki'
|
62
|
+
require 'slideshow/markup/textile'
|
63
|
+
|
63
64
|
|
64
65
|
# load built-in (required) helpers/plugins
|
65
66
|
require 'slideshow/helpers/text_helper'
|
66
67
|
require 'slideshow/helpers/capture_helper'
|
67
|
-
require 'slideshow/helpers/table_helper'
|
68
68
|
require 'slideshow/helpers/step_helper'
|
69
69
|
require 'slideshow/helpers/background_helper'
|
70
70
|
require 'slideshow/helpers/source_helper'
|
metadata
CHANGED
@@ -1,215 +1,136 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: slideshow
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.3.0
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 2
|
8
|
-
- 2
|
9
|
-
- 0
|
10
|
-
version: 2.2.0
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Gerald Bauer
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2013-07-16 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
21
15
|
name: props
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &88039630 !ruby/object:Gem::Requirement
|
24
17
|
none: false
|
25
|
-
requirements:
|
26
|
-
- -
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
hash: 23
|
29
|
-
segments:
|
30
|
-
- 1
|
31
|
-
- 0
|
32
|
-
- 0
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
33
21
|
version: 1.0.0
|
34
22
|
type: :runtime
|
35
|
-
version_requirements: *id001
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
|
-
name: markdown
|
38
23
|
prerelease: false
|
39
|
-
|
24
|
+
version_requirements: *88039630
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: markdown
|
27
|
+
requirement: &88039410 !ruby/object:Gem::Requirement
|
40
28
|
none: false
|
41
|
-
requirements:
|
42
|
-
- -
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
hash: 23
|
45
|
-
segments:
|
46
|
-
- 1
|
47
|
-
- 0
|
48
|
-
- 0
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
49
32
|
version: 1.0.0
|
50
33
|
type: :runtime
|
51
|
-
version_requirements: *id002
|
52
|
-
- !ruby/object:Gem::Dependency
|
53
|
-
name: textutils
|
54
34
|
prerelease: false
|
55
|
-
|
35
|
+
version_requirements: *88039410
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: textutils
|
38
|
+
requirement: &88039190 !ruby/object:Gem::Requirement
|
56
39
|
none: false
|
57
|
-
requirements:
|
58
|
-
- -
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
hash: 23
|
61
|
-
segments:
|
62
|
-
- 0
|
63
|
-
- 2
|
64
|
-
- 0
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
65
43
|
version: 0.2.0
|
66
44
|
type: :runtime
|
67
|
-
version_requirements: *id003
|
68
|
-
- !ruby/object:Gem::Dependency
|
69
|
-
name: pakman
|
70
45
|
prerelease: false
|
71
|
-
|
46
|
+
version_requirements: *88039190
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: pakman
|
49
|
+
requirement: &88038970 !ruby/object:Gem::Requirement
|
72
50
|
none: false
|
73
|
-
requirements:
|
74
|
-
- -
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
hash: 15
|
77
|
-
segments:
|
78
|
-
- 0
|
79
|
-
- 4
|
80
|
-
- 0
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
81
54
|
version: 0.4.0
|
82
55
|
type: :runtime
|
83
|
-
version_requirements: *id004
|
84
|
-
- !ruby/object:Gem::Dependency
|
85
|
-
name: activesupport
|
86
56
|
prerelease: false
|
87
|
-
|
57
|
+
version_requirements: *88038970
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: activesupport
|
60
|
+
requirement: &88038760 !ruby/object:Gem::Requirement
|
88
61
|
none: false
|
89
|
-
requirements:
|
90
|
-
- -
|
91
|
-
- !ruby/object:Gem::Version
|
92
|
-
hash: 3
|
93
|
-
segments:
|
94
|
-
- 3
|
95
|
-
- 2
|
96
|
-
- 6
|
62
|
+
requirements:
|
63
|
+
- - ! '>='
|
64
|
+
- !ruby/object:Gem::Version
|
97
65
|
version: 3.2.6
|
98
66
|
type: :runtime
|
99
|
-
version_requirements: *id005
|
100
|
-
- !ruby/object:Gem::Dependency
|
101
|
-
name: RedCloth
|
102
67
|
prerelease: false
|
103
|
-
|
104
|
-
|
105
|
-
requirements:
|
106
|
-
- - ">="
|
107
|
-
- !ruby/object:Gem::Version
|
108
|
-
hash: 37
|
109
|
-
segments:
|
110
|
-
- 4
|
111
|
-
- 2
|
112
|
-
- 9
|
113
|
-
version: 4.2.9
|
114
|
-
type: :runtime
|
115
|
-
version_requirements: *id006
|
116
|
-
- !ruby/object:Gem::Dependency
|
68
|
+
version_requirements: *88038760
|
69
|
+
- !ruby/object:Gem::Dependency
|
117
70
|
name: logutils
|
118
|
-
|
119
|
-
requirement: &id007 !ruby/object:Gem::Requirement
|
71
|
+
requirement: &88038540 !ruby/object:Gem::Requirement
|
120
72
|
none: false
|
121
|
-
requirements:
|
122
|
-
- -
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
hash: 7
|
125
|
-
segments:
|
126
|
-
- 0
|
127
|
-
- 6
|
128
|
-
- 0
|
73
|
+
requirements:
|
74
|
+
- - ! '>='
|
75
|
+
- !ruby/object:Gem::Version
|
129
76
|
version: 0.6.0
|
130
77
|
type: :runtime
|
131
|
-
version_requirements: *id007
|
132
|
-
- !ruby/object:Gem::Dependency
|
133
|
-
name: gli
|
134
78
|
prerelease: false
|
135
|
-
|
79
|
+
version_requirements: *88038540
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: gli
|
82
|
+
requirement: &88038320 !ruby/object:Gem::Requirement
|
136
83
|
none: false
|
137
|
-
requirements:
|
138
|
-
- -
|
139
|
-
- !ruby/object:Gem::Version
|
140
|
-
hash: 23
|
141
|
-
segments:
|
142
|
-
- 2
|
143
|
-
- 5
|
144
|
-
- 6
|
84
|
+
requirements:
|
85
|
+
- - ! '>='
|
86
|
+
- !ruby/object:Gem::Version
|
145
87
|
version: 2.5.6
|
146
88
|
type: :runtime
|
147
|
-
version_requirements: *id008
|
148
|
-
- !ruby/object:Gem::Dependency
|
149
|
-
name: rdoc
|
150
89
|
prerelease: false
|
151
|
-
|
90
|
+
version_requirements: *88038320
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: rdoc
|
93
|
+
requirement: &88038100 !ruby/object:Gem::Requirement
|
152
94
|
none: false
|
153
|
-
requirements:
|
95
|
+
requirements:
|
154
96
|
- - ~>
|
155
|
-
- !ruby/object:Gem::Version
|
156
|
-
|
157
|
-
segments:
|
158
|
-
- 3
|
159
|
-
- 10
|
160
|
-
version: "3.10"
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '3.10'
|
161
99
|
type: :development
|
162
|
-
version_requirements: *id009
|
163
|
-
- !ruby/object:Gem::Dependency
|
164
|
-
name: hoe
|
165
100
|
prerelease: false
|
166
|
-
|
101
|
+
version_requirements: *88038100
|
102
|
+
- !ruby/object:Gem::Dependency
|
103
|
+
name: hoe
|
104
|
+
requirement: &88037880 !ruby/object:Gem::Requirement
|
167
105
|
none: false
|
168
|
-
requirements:
|
106
|
+
requirements:
|
169
107
|
- - ~>
|
170
|
-
- !ruby/object:Gem::Version
|
171
|
-
|
172
|
-
segments:
|
173
|
-
- 3
|
174
|
-
- 3
|
175
|
-
version: "3.3"
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '3.3'
|
176
110
|
type: :development
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
"out-of-the-gem" with built-in support for "loss-free" gradient
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
-c, --config=PATH - Configuration Path (default: ~/.slideshow)
|
193
|
-
--verbose - (Debug) Show debug messages
|
194
|
-
--version - Show version
|
195
|
-
|
196
|
-
COMMANDS
|
197
|
-
build, b - Build slideshow
|
198
|
-
install, i - Install template pack
|
199
|
-
list, ls, l - List installed template packs
|
200
|
-
new, n - Generate quick starter sample
|
201
|
-
about, a - (Debug) Show more version info
|
202
|
-
help - Shows a list of commands or help for one command
|
203
|
-
~~~
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: *88037880
|
113
|
+
description: ! "The Slide Show (S9) Ruby gem lets you create slide shows and author
|
114
|
+
slides in plain text\r\nusing a wiki-style markup language that's easy-to-write
|
115
|
+
and easy-to-read.\r\nThe Slide Show (S9) project also collects and welcomes themes
|
116
|
+
and ships\r\n\"out-of-the-gem\" with built-in support for \"loss-free\" gradient
|
117
|
+
vector graphics themes.\r\n\r\n~~~\r\nSYNOPSIS\r\n slideshow [global options]
|
118
|
+
command [command options] [arguments...]\r\n\r\nVERSION\r\n 2.0.0\r\n\r\nGLOBAL
|
119
|
+
OPTIONS\r\n -c, --config=PATH - Configuration Path (default: ~/.slideshow)\r\n
|
120
|
+
\ --verbose - (Debug) Show debug messages\r\n --version - Show
|
121
|
+
version\r\n\r\nCOMMANDS\r\n build, b - Build slideshow\r\n install,
|
122
|
+
i - Install template pack\r\n list, ls, l - List installed template
|
123
|
+
packs\r\n new, n - Generate quick starter sample\r\n about, a
|
124
|
+
\ - (Debug) Show more version info\r\n help - Shows a
|
125
|
+
list of commands or help for one command\r\n~~~"
|
204
126
|
email: webslideshow@googlegroups.com
|
205
|
-
executables:
|
127
|
+
executables:
|
206
128
|
- slideshow
|
207
129
|
extensions: []
|
208
|
-
|
209
|
-
extra_rdoc_files:
|
130
|
+
extra_rdoc_files:
|
210
131
|
- Manifest.txt
|
211
132
|
- templates/s6.txt
|
212
|
-
files:
|
133
|
+
files:
|
213
134
|
- History.markdown
|
214
135
|
- Manifest.txt
|
215
136
|
- README.markdown
|
@@ -243,10 +164,10 @@ files:
|
|
243
164
|
- lib/slideshow/helpers/syntax/coderay_helper.rb
|
244
165
|
- lib/slideshow/helpers/syntax/sh_helper.rb
|
245
166
|
- lib/slideshow/helpers/syntax/uv_helper.rb
|
246
|
-
- lib/slideshow/helpers/table_helper.rb
|
247
167
|
- lib/slideshow/helpers/text_helper.rb
|
248
168
|
- lib/slideshow/manifest_helpers.rb
|
249
169
|
- lib/slideshow/markup/markdown.rb
|
170
|
+
- lib/slideshow/markup/mediawiki.rb
|
250
171
|
- lib/slideshow/markup/rest.rb
|
251
172
|
- lib/slideshow/markup/textile.rb
|
252
173
|
- lib/slideshow/plugin_helpers.rb
|
@@ -267,44 +188,32 @@ files:
|
|
267
188
|
- templates/welcome.txt.quick
|
268
189
|
homepage: http://slideshow-s9.github.io
|
269
190
|
licenses: []
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
******************************************************************************
|
278
|
-
|
279
|
-
rdoc_options:
|
191
|
+
post_install_message: ! "******************************************************************************\n\nTip:
|
192
|
+
Try some new template packs. Example:\n\n $ slideshow install impress.js\n \n
|
193
|
+
\ or\n \n $ slideshow install deck.js\n \n and use like\n \n $ slideshow build
|
194
|
+
welcome.text -t impress.js\n \n or\n \n $ slideshow build welcome.text -t deck.js\n\n\nQuestions?
|
195
|
+
Comments? Send them along to the mailing list.\nhttps://groups.google.com/group/webslideshow\n\n******************************************************************************\n"
|
196
|
+
rdoc_options:
|
280
197
|
- --main
|
281
198
|
- README.markdown
|
282
|
-
require_paths:
|
199
|
+
require_paths:
|
283
200
|
- lib
|
284
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
201
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
285
202
|
none: false
|
286
|
-
requirements:
|
287
|
-
- -
|
288
|
-
- !ruby/object:Gem::Version
|
289
|
-
|
290
|
-
|
291
|
-
- 0
|
292
|
-
version: "0"
|
293
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
203
|
+
requirements:
|
204
|
+
- - ! '>='
|
205
|
+
- !ruby/object:Gem::Version
|
206
|
+
version: '0'
|
207
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
294
208
|
none: false
|
295
|
-
requirements:
|
296
|
-
- -
|
297
|
-
- !ruby/object:Gem::Version
|
298
|
-
|
299
|
-
segments:
|
300
|
-
- 0
|
301
|
-
version: "0"
|
209
|
+
requirements:
|
210
|
+
- - ! '>='
|
211
|
+
- !ruby/object:Gem::Version
|
212
|
+
version: '0'
|
302
213
|
requirements: []
|
303
|
-
|
304
214
|
rubyforge_project: slideshow
|
305
|
-
rubygems_version: 1.8.
|
215
|
+
rubygems_version: 1.8.17
|
306
216
|
signing_key:
|
307
217
|
specification_version: 3
|
308
218
|
summary: Slide Show (S9) - A Free Web Alternative to PowerPoint and Keynote in Ruby
|
309
219
|
test_files: []
|
310
|
-
|
@@ -1,63 +0,0 @@
|
|
1
|
-
module Slideshow
|
2
|
-
module TableHelper
|
3
|
-
|
4
|
-
# todo: add center, plus generic col helper
|
5
|
-
|
6
|
-
|
7
|
-
def left( opts={}, &blk )
|
8
|
-
|
9
|
-
width = opts.fetch( :width, "50%" )
|
10
|
-
clazz = opts.fetch( :class, nil )
|
11
|
-
|
12
|
-
puts " Adding HTML for left column (using table layout)..."
|
13
|
-
|
14
|
-
text = capture_erb(&blk)
|
15
|
-
|
16
|
-
before = "<!-- begin left #{opts.inspect} -->\n"
|
17
|
-
before << "<div class='#{clazz}'>\n" if clazz
|
18
|
-
before << "<table width='100%'><tr><td width='#{width}' markdown='block' style='vertical-align: top;'>\n"
|
19
|
-
|
20
|
-
after = "</td>\n"
|
21
|
-
after << "<!-- end left -->\n"
|
22
|
-
|
23
|
-
html = ""
|
24
|
-
html << guard_block( before )
|
25
|
-
html << text
|
26
|
-
html << guard_block( after )
|
27
|
-
|
28
|
-
concat_erb( html, blk.binding )
|
29
|
-
return
|
30
|
-
end
|
31
|
-
|
32
|
-
def right( opts={}, &blk )
|
33
|
-
|
34
|
-
width = opts.fetch( :width, "50%" )
|
35
|
-
clazz = opts.fetch( :class, nil )
|
36
|
-
|
37
|
-
puts " Adding HTML for right column (using table layout)..."
|
38
|
-
|
39
|
-
text = capture_erb(&blk)
|
40
|
-
|
41
|
-
before = "<!-- begin right #{opts.inspect} -->\n"
|
42
|
-
before << "<td width='#{width}' markdown='block' style='vertical-align: top;'>\n"
|
43
|
-
|
44
|
-
after = "</td></tr></table>\n"
|
45
|
-
after << "</div>\n" if clazz
|
46
|
-
after << "<!-- end right -->\n"
|
47
|
-
|
48
|
-
html = ""
|
49
|
-
html << guard_block( before )
|
50
|
-
html << text
|
51
|
-
html << guard_block( after )
|
52
|
-
|
53
|
-
concat_erb( html, blk.binding )
|
54
|
-
return
|
55
|
-
end
|
56
|
-
|
57
|
-
|
58
|
-
end # module TableHelper
|
59
|
-
end # module Slideshow
|
60
|
-
|
61
|
-
class Slideshow::Gen
|
62
|
-
include Slideshow::TableHelper
|
63
|
-
end
|