slideshow 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +99 -32
- data/lib/slideshow/cli/commands/plugins.rb +3 -1
- data/lib/slideshow/cli/main_utils.rb +12 -1
- data/lib/slideshow/plugin_helpers.rb +4 -2
- data/lib/slideshow/version.rb +2 -2
- metadata +31 -23
data/README.markdown
CHANGED
@@ -14,38 +14,105 @@ using a wiki-style markup language that's easy-to-write and easy-to-read.
|
|
14
14
|
The Slide Show (S9) project also collects and welcomes themes and ships
|
15
15
|
"out-of-the-gem" with built-in support for "loss-free" gradient vector graphics themes.
|
16
16
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
17
|
+
~~~
|
18
|
+
SYNOPSIS
|
19
|
+
slideshow [global options] command [command options] [arguments...]
|
20
|
+
|
21
|
+
VERSION
|
22
|
+
2.0.0
|
23
|
+
|
24
|
+
GLOBAL OPTIONS
|
25
|
+
-c, --config=PATH - Configuration Path (default: ~/.slideshow)
|
26
|
+
--verbose - (Debug) Show debug messages
|
27
|
+
--version - Show version
|
28
|
+
|
29
|
+
COMMANDS
|
30
|
+
build, b - Build slideshow
|
31
|
+
install, i - Install template pack
|
32
|
+
list, ls, l - List installed template packs
|
33
|
+
new, n - Generate quick starter sample
|
34
|
+
about, a - (Debug) Show more version info
|
35
|
+
help - Shows a list of commands or help for one command
|
36
|
+
~~~
|
37
|
+
|
38
|
+
|
39
|
+
### `build` Command
|
40
|
+
|
41
|
+
~~~
|
42
|
+
NAME
|
43
|
+
build - Build slideshow
|
44
|
+
|
45
|
+
SYNOPSIS
|
46
|
+
slideshow [global options] build [command options] FILE
|
47
|
+
|
48
|
+
COMMAND OPTIONS
|
49
|
+
--h1 - Set Header Level to 1 (default)
|
50
|
+
--h2 - Set Header Level to 2
|
51
|
+
--takahashi - Allow // for slide breaks
|
52
|
+
--slide - Use only !SLIDE for slide breaks (Showoff Compatible)
|
53
|
+
-o, --output=PATH - Output Path (default: .)
|
54
|
+
-t, --template=MANIFEST - Template Manifest (default: s6)
|
55
|
+
|
56
|
+
EXAMPLES
|
57
|
+
slideshow build microformats
|
58
|
+
slideshow build microformats.text # Process slides using Markdown
|
59
|
+
slideshow build microformats.textile # Process slides using Textile
|
60
|
+
slideshow build microformats.rst # Process slides using reStructuredText
|
61
|
+
slideshow build microformats -o slides # Output slideshow to slides folder
|
62
|
+
slideshow build microformats -t s5blank # Use your own slide show templates (e.g. s5blank)
|
63
|
+
~~~
|
64
|
+
|
65
|
+
|
66
|
+
### `list` Command
|
67
|
+
|
68
|
+
~~~
|
69
|
+
NAME
|
70
|
+
list - List installed template packs
|
71
|
+
|
72
|
+
SYNOPSIS
|
73
|
+
slideshow [global options] list [command options]
|
74
|
+
|
75
|
+
EXAMPLES
|
76
|
+
slideshow list
|
77
|
+
slideshow ls
|
78
|
+
~~~
|
79
|
+
|
80
|
+
|
81
|
+
### `install` Command
|
82
|
+
|
83
|
+
~~~
|
84
|
+
NAME
|
85
|
+
install - Install template pack
|
86
|
+
|
87
|
+
SYNOPSIS
|
88
|
+
slideshow [global options] install [command options] MANIFEST
|
89
|
+
|
90
|
+
COMMAND OPTIONS
|
91
|
+
-a, --all - Template Packs (s5blank, s5themes, slidy, g5, csss, deck.js, impress.js)
|
92
|
+
|
93
|
+
EXAMPLES
|
94
|
+
slideshow install impress.js
|
95
|
+
slideshow install https://raw.github.com/.../impress.js.txt
|
96
|
+
~~~
|
97
|
+
|
98
|
+
|
99
|
+
### `new` Command
|
100
|
+
|
101
|
+
~~~
|
102
|
+
NAME
|
103
|
+
new - Generate quick starter sample
|
104
|
+
|
105
|
+
SYNOPSIS
|
106
|
+
slideshow [global options] new [command options]
|
107
|
+
|
108
|
+
COMMAND OPTIONS
|
109
|
+
-o, --output=PATH - Output Path (default: .)
|
110
|
+
-t, --template=MANIFEST - Template Manifest (default: welcome)
|
111
|
+
|
112
|
+
EXAMPLES
|
113
|
+
slideshow new
|
114
|
+
slideshow new -t impress.js
|
115
|
+
~~~
|
49
116
|
|
50
117
|
|
51
118
|
## INSTALL
|
@@ -29,7 +29,9 @@ class Plugins
|
|
29
29
|
puts " -- none --"
|
30
30
|
else
|
31
31
|
plugins.each do |plugin|
|
32
|
-
|
32
|
+
## NB: use full_path - since Ruby 1.9.2 - ./ no longer included in load path for security
|
33
|
+
plugin_fullpath = File.expand_path( plugin )
|
34
|
+
puts " #{plugin} (#{plugin_fullpath})"
|
33
35
|
end
|
34
36
|
end
|
35
37
|
end
|
@@ -95,12 +95,23 @@ EOS
|
|
95
95
|
# dump Markdown settings
|
96
96
|
Markdown.dump
|
97
97
|
puts
|
98
|
-
|
98
|
+
|
99
99
|
# todo:
|
100
100
|
# add verison for rubygems
|
101
101
|
|
102
102
|
## todo: add more gem version info
|
103
103
|
#- redcloth
|
104
104
|
#- kramdown
|
105
|
+
|
106
|
+
|
107
|
+
dump_load_path # helps debugging pluggin loading (e.g. Ruby 1.9.2> no longer includes ./ in load path)
|
105
108
|
end
|
109
|
+
|
110
|
+
def dump_load_path
|
111
|
+
puts 'load path:'
|
112
|
+
$LOAD_PATH.each_with_index do |path,i|
|
113
|
+
puts " [#{i+1}] #{path}"
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
106
117
|
end # class SysInfo
|
@@ -29,8 +29,10 @@ module PluginHelper
|
|
29
29
|
pattern.gsub!( '\\', '/') # normalize path; make sure all path use / only
|
30
30
|
Dir.glob( pattern ) do |plugin|
|
31
31
|
begin
|
32
|
-
|
33
|
-
|
32
|
+
## NB: use full_path - since Ruby 1.9.2 - ./ no longer included in load path for security
|
33
|
+
plugin_fullpath = File.expand_path( plugin ) # nb: will use Dir.pwd (e.g. ./) as second arg
|
34
|
+
puts "Loading plugins in '#{plugin}' (#{plugin_fullpath})..."
|
35
|
+
require( plugin_fullpath )
|
34
36
|
rescue Exception => e
|
35
37
|
puts "** error: failed loading plugins in '#{plugin}': #{e}"
|
36
38
|
end
|
data/lib/slideshow/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
module Slideshow
|
2
|
-
VERSION = '2.0.
|
3
|
-
end
|
2
|
+
VERSION = '2.0.1'
|
3
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slideshow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-06-
|
12
|
+
date: 2013-06-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: props
|
16
|
-
requirement: &
|
16
|
+
requirement: &83862160 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 1.0.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *83862160
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: markdown
|
27
|
-
requirement: &
|
27
|
+
requirement: &83861940 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 1.0.0
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *83861940
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: textutils
|
38
|
-
requirement: &
|
38
|
+
requirement: &83861720 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 0.2.0
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *83861720
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: pakman
|
49
|
-
requirement: &
|
49
|
+
requirement: &83861500 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 0.4.0
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *83861500
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: activesupport
|
60
|
-
requirement: &
|
60
|
+
requirement: &83861290 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: 3.2.6
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *83861290
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: RedCloth
|
71
|
-
requirement: &
|
71
|
+
requirement: &83861070 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: 4.2.9
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *83861070
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: logutils
|
82
|
-
requirement: &
|
82
|
+
requirement: &83860850 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: 0.6.0
|
88
88
|
type: :runtime
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *83860850
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: gli
|
93
|
-
requirement: &
|
93
|
+
requirement: &83860630 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ! '>='
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
version: 2.5.6
|
99
99
|
type: :runtime
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *83860630
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: rdoc
|
104
|
-
requirement: &
|
104
|
+
requirement: &83860410 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ~>
|
@@ -109,10 +109,10 @@ dependencies:
|
|
109
109
|
version: '3.10'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *83860410
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: hoe
|
115
|
-
requirement: &
|
115
|
+
requirement: &83860190 !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
118
118
|
- - ~>
|
@@ -120,12 +120,20 @@ dependencies:
|
|
120
120
|
version: '3.3'
|
121
121
|
type: :development
|
122
122
|
prerelease: false
|
123
|
-
version_requirements: *
|
123
|
+
version_requirements: *83860190
|
124
124
|
description: ! "The Slide Show (S9) Ruby gem lets you create slide shows and author
|
125
125
|
slides in plain text\r\nusing a wiki-style markup language that's easy-to-write
|
126
126
|
and easy-to-read.\r\nThe Slide Show (S9) project also collects and welcomes themes
|
127
127
|
and ships\r\n\"out-of-the-gem\" with built-in support for \"loss-free\" gradient
|
128
|
-
vector graphics themes
|
128
|
+
vector graphics themes.\r\n\r\n~~~\r\nSYNOPSIS\r\n slideshow [global options]
|
129
|
+
command [command options] [arguments...]\r\n\r\nVERSION\r\n 2.0.0\r\n\r\nGLOBAL
|
130
|
+
OPTIONS\r\n -c, --config=PATH - Configuration Path (default: ~/.slideshow)\r\n
|
131
|
+
\ --verbose - (Debug) Show debug messages\r\n --version - Show
|
132
|
+
version\r\n\r\nCOMMANDS\r\n build, b - Build slideshow\r\n install,
|
133
|
+
i - Install template pack\r\n list, ls, l - List installed template
|
134
|
+
packs\r\n new, n - Generate quick starter sample\r\n about, a
|
135
|
+
\ - (Debug) Show more version info\r\n help - Shows a
|
136
|
+
list of commands or help for one command\r\n~~~"
|
129
137
|
email: webslideshow@googlegroups.com
|
130
138
|
executables:
|
131
139
|
- slideshow
|