slideshow 2.4.1 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 96e56005ffdb5a5e4b283c78b4364db18c1ee44c
4
- data.tar.gz: f05f0d0a1505e753d63cec2fba596b6a7320b113
3
+ metadata.gz: c663d54cb5dd9931ee0e71fc1cd7bc622a9b48b5
4
+ data.tar.gz: fe26d19d250103c5895963d0be66810192a2eb7a
5
5
  SHA512:
6
- metadata.gz: 026bb6dea474ff7e1982a7bf2b37ee922d361f8ce53d7dc057233aed203a203a8297d48b3470368d0a95c3912fb861cb918bc38e9b93bb4343bb4affb983452a
7
- data.tar.gz: 5e1e7f44073bb3e40d65aeb1a5ec9c27d1ae0380bd7de7bf17852bdbd7050f187a10b1f99da8d800dfafe27846d8817c213b48ac3cd9b7be5e3403d829f0519e
6
+ metadata.gz: 348471ace5d0f27ca6d74c80056804794cb8ccaee1e45554566d837286e74f3b92461a95b3b98f7a0935150ea5d3ac62f9e3d8f9470c62727a6dbea07ca7dcca
7
+ data.tar.gz: 4e5f19a3bcc9c8e2c4e44d6c5de78672b867a4f1ce41f23d251bdc7cfca0ab50b7c0745e7ab8dead79a4bd5dca83bbab2db722676e97e5baf91498bcf476f0e7
data/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
  * gem :: [rubygems.org/gems/slideshow](https://rubygems.org/gems/slideshow)
7
7
  * rdoc :: [rubydoc.info/gems/slideshow](http://rubydoc.info/gems/slideshow)
8
8
  * templates :: [github.com/slideshow-templates](https://github.com/slideshow-templates)
9
- * forum :: [groups.google.com/group/webslideshow](http://groups.google.com/group/webslideshow)
9
+ * forum :: [groups.google.com/group/wwwmake](http://groups.google.com/group/wwwmake)
10
10
 
11
11
 
12
12
  ## DESCRIPTION
@@ -16,7 +16,7 @@ using a wiki-style markup language that's easy-to-write and easy-to-read.
16
16
  The Slide Show (S9) project also collects and welcomes themes and ships
17
17
  "out-of-the-gem" with built-in support for "loss-free" gradient vector graphics themes.
18
18
 
19
- ~~~
19
+ ```
20
20
  SYNOPSIS
21
21
  slideshow [global options] command [command options] [arguments...]
22
22
 
@@ -35,12 +35,12 @@ COMMANDS
35
35
  new, n - Generate quick starter sample
36
36
  about, a - (Debug) Show more version info
37
37
  help - Shows a list of commands or help for one command
38
- ~~~
38
+ ```
39
39
 
40
40
 
41
41
  ### `build` Command
42
42
 
43
- ~~~
43
+ ```
44
44
  NAME
45
45
  build - Build slideshow
46
46
 
@@ -57,17 +57,15 @@ COMMAND OPTIONS
57
57
 
58
58
  EXAMPLES
59
59
  slideshow build microformats
60
- slideshow build microformats.text # Process slides using Markdown
61
- slideshow build microformats.textile # Process slides using Textile
62
- slideshow build microformats.rst # Process slides using reStructuredText
60
+ slideshow build microformats.text
63
61
  slideshow build microformats -o slides # Output slideshow to slides folder
64
62
  slideshow build microformats -t s5blank # Use your own slide show templates (e.g. s5blank)
65
- ~~~
63
+ ```
66
64
 
67
65
 
68
66
  ### `list` Command
69
67
 
70
- ~~~
68
+ ```
71
69
  NAME
72
70
  list - List installed template packs
73
71
 
@@ -77,12 +75,12 @@ SYNOPSIS
77
75
  EXAMPLES
78
76
  slideshow list
79
77
  slideshow ls
80
- ~~~
78
+ ```
81
79
 
82
80
 
83
81
  ### `install` Command
84
82
 
85
- ~~~
83
+ ```
86
84
  NAME
87
85
  install - Install template pack
88
86
 
@@ -95,12 +93,12 @@ COMMAND OPTIONS
95
93
  EXAMPLES
96
94
  slideshow install impress.js
97
95
  slideshow install https://raw.github.com/.../impress.js.txt
98
- ~~~
96
+ ```
99
97
 
100
98
 
101
99
  ### `new` Command
102
100
 
103
- ~~~
101
+ ```
104
102
  NAME
105
103
  new - Generate quick starter sample
106
104
 
@@ -114,7 +112,7 @@ COMMAND OPTIONS
114
112
  EXAMPLES
115
113
  slideshow new
116
114
  slideshow new -t impress.js
117
- ~~~
115
+ ```
118
116
 
119
117
 
120
118
  ## INSTALL
@@ -130,5 +128,7 @@ Use it as you please with no restrictions whatsoever.
130
128
 
131
129
  ## QUESTION? COMMENTS?
132
130
 
133
- Send them along to the [Free Web Slide Show Alternatives (S5, S6, S9, Slidy And Friends) Forum/Mailing List](http://groups.google.com/group/webslideshow).
131
+ Send them along to the [wwwmake forum/mailing list](http://groups.google.com/group/wwwmake).
134
132
  Thanks!
133
+
134
+
data/Rakefile CHANGED
@@ -11,19 +11,17 @@ Hoe.spec 'slideshow' do
11
11
  self.urls = ['https://github.com/slideshow-s9/slideshow']
12
12
 
13
13
  self.author = 'Gerald Bauer'
14
- self.email = 'webslideshow@googlegroups.com'
14
+ self.email = 'wwwmake@googlegroups.com'
15
15
 
16
16
  self.extra_deps = [
17
- ['slideshow-models', '>= 2.4.0'], ## Note: pull in all deps via slideshow-models (e.g. props, textutils, etc.)
18
- ['slideshow-templates','>= 2.4.0'],
19
- ['gli', '>= 2.5.6']
20
- ## ['wikicloth', '>= 0.8.0'] make it a soft dependency # mediawiki markup engine
21
- ## ['RedCloth','>= 4.2.9'] make it a soft dependency # textile markup engine
17
+ ['slideshow-models', '>= 3.0.0'], ## Note: pull in all deps via slideshow-models (e.g. props, textutils, etc.)
18
+ ['slideshow-templates','>= 3.0.0'],
19
+ ['gli', '>= 2.13.4']
22
20
  ]
23
21
 
24
22
  # switch extension to .markdown for gihub formatting
25
- self.readme_file = 'README.md'
26
- self.history_file = 'HISTORY.md'
23
+ # self.readme_file = 'README.md'
24
+ # self.history_file = 'HISTORY.md'
27
25
 
28
26
  self.licenses = ['Public Domain']
29
27
 
@@ -56,9 +54,10 @@ or add some extra (plugins) helpers (left, right, etc). Example:
56
54
  $ slideshow install plugins
57
55
 
58
56
  Questions? Comments? Send them along to the mailing list.
59
- https://groups.google.com/group/webslideshow
57
+ https://groups.google.com/group/wwwmake
60
58
 
61
59
  ******************************************************************************
62
60
  EOS
63
61
 
64
62
  end
63
+
data/bin/slideshow CHANGED
File without changes
@@ -31,14 +31,11 @@ module Slideshow
31
31
  def self.config=(value) @@config = value; end
32
32
  def self.config() @@config; end
33
33
 
34
- def self.headers=(value) @@headers = value; end
35
- def self.headers() @@headers; end
36
34
 
37
35
  ## some setup code
38
36
  logger = LogUtils::Logger.root
39
37
  opts = Slideshow::Opts.new
40
38
  config = Slideshow::Config.new( opts )
41
- headers = Slideshow::Headers.new( config ) ## NB: needed for build - move into build - why? why not?
42
39
 
43
40
  config.load
44
41
 
@@ -56,10 +53,7 @@ xxx_program_long_desc = <<EOS
56
53
  Slide Show (S9) is a free web alternative to PowerPoint or Keynote in Ruby
57
54
 
58
55
  Examples:
59
- slideshow microformats
60
- slideshow microformats.text # Process slides using Markdown (#{config.known_markdown_extnames.join(', ')})
61
- slideshow microformats.textile # Process slides using Textile (#{config.known_textile_extnames.join(', ')})
62
- slideshow microformats.rst # Process slides using reStructuredText (#{config.known_rest_extnames.join(', ')})
56
+ slideshow microformats.text
63
57
  slideshow -o slides microformats # Output slideshow to slides folder
64
58
 
65
59
  More examles:
@@ -135,14 +129,8 @@ command [:build, :b] do |c|
135
129
 
136
130
  PluginLoader.new( config ).load_plugins # check for optional plugins/extension in ./lib folder
137
131
 
138
- finder = FileFinder.new( config )
139
-
140
132
  args.each do |arg|
141
- files = finder.find_files( arg )
142
- files.each do |file|
143
- ### fix/todo: reset/clean headers
144
- Slideshow::Gen.new( opts, config, headers ).create_slideshow( file )
145
- end
133
+ Slideshow::Gen.new( config ).create_slideshow( arg )
146
134
  end
147
135
 
148
136
  end
@@ -155,7 +143,7 @@ command [:list,:ls,:l] do |c|
155
143
  c.action do |g,o,args|
156
144
  logger.debug 'hello from list command'
157
145
 
158
- Slideshow::List.new( opts, config ).run ### todo: remove opts (merge access into config)
146
+ Slideshow::List.new( config ).run ### todo: remove opts (merge access into config)
159
147
  end
160
148
  end
161
149
 
@@ -171,11 +159,11 @@ command [:install,:i] do |c|
171
159
  logger.debug 'hello from install command'
172
160
 
173
161
  if opts.fetch_all?
174
- Slideshow::Fetch.new( opts, config ).fetch_all ## todo: remove opts merge into config
162
+ Slideshow::Fetch.new( config ).fetch_all ## todo: remove opts merge into config
175
163
  end
176
164
 
177
165
  args.each do |arg|
178
- Slideshow::Fetch.new( opts, config ).fetch( arg ) ## todo: remove opts merge into config
166
+ Slideshow::Fetch.new( config ).fetch( arg ) ## todo: remove opts merge into config
179
167
  end
180
168
  end
181
169
  end
@@ -187,8 +175,10 @@ command [:update,:u] do |c|
187
175
  c.action do |g,o,args|
188
176
  logger.debug 'hello from update command'
189
177
 
190
- # todo: move update to its own command
191
- Slideshow::Fetch.new( opts, config ).update()
178
+ ##########
179
+ # todo: move update to its own command !!!!!!!!!!!!!!!!!!!
180
+
181
+ Slideshow::Fetch.new( config ).update()
192
182
  end
193
183
  end
194
184
 
@@ -211,7 +201,7 @@ command [:new,:n] do |c|
211
201
  logger.debug 'hello from new command'
212
202
 
213
203
  ## use quick_manifest (default) otherwise pass along/use args
214
- Slideshow::Quick.new( opts, config ).run ### todo: remove opts
204
+ Slideshow::Quick.new( config ).run
215
205
 
216
206
  end
217
207
  end
@@ -231,7 +221,7 @@ command [:plugins,:plugin,:p] do |c|
231
221
  c.action do
232
222
  logger.debug 'hello from plugin command'
233
223
 
234
- Slideshow::Plugins.new( opts, config ).run ### todo: remove opts (merge access into config)
224
+ Slideshow::Plugins.new( config ).run
235
225
  end
236
226
  end
237
227
 
@@ -262,10 +252,6 @@ pre do |g,c,o,args|
262
252
  # dump Slideshow settings
263
253
  config.dump
264
254
  puts
265
-
266
- # dump Markdown settings
267
- Markdown.dump
268
- puts
269
255
  end
270
256
 
271
257
  logger.debug " executing command #{c.name}"
@@ -1,5 +1,6 @@
1
1
  # encoding: utf-8
2
2
 
3
+
3
4
  class PluginLoader
4
5
  include LogUtils::Logging
5
6
  include Slideshow::PluginHelper # e.g. gets us load_plugins machinery
@@ -12,56 +13,6 @@ class PluginLoader
12
13
  end
13
14
 
14
15
 
15
- class FileFinder
16
- include LogUtils::Logging
17
-
18
- def initialize( config )
19
- @config = config
20
- end
21
-
22
- attr_reader :config
23
-
24
- def find_file_with_known_extension( fn )
25
- dirname = File.dirname( fn )
26
- basename = File.basename( fn, '.*' )
27
- extname = File.extname( fn )
28
- logger.debug "dirname=#{dirname}, basename=#{basename}, extname=#{extname}"
29
-
30
- config.known_extnames.each do |e|
31
- newname = File.join( dirname, "#{basename}#{e}" )
32
- logger.debug "File.exists? #{newname}"
33
- return newname if File.exists?( newname )
34
- end # each extension (e)
35
-
36
- nil # not found; return nil
37
- end
38
-
39
-
40
- def find_files( file_or_dir_or_pattern )
41
- filtered_files = []
42
-
43
- ## for now process/assume only single file
44
-
45
- ## (check for missing extension)
46
- if File.exists?( file_or_dir_or_pattern )
47
- file = file_or_dir_or_pattern
48
- logger.debug " adding file '#{file}'..."
49
- filtered_files << file
50
- else # check for existing file w/ missing extension
51
- file = find_file_with_known_extension( file_or_dir_or_pattern )
52
- if file.nil?
53
- puts " skipping missing file '#{file_or_dir_or_pattern}{#{config.known_extnames.join(',')}}'..."
54
- else
55
- logger.debug " adding file '#{file}'..."
56
- filtered_files << file
57
- end
58
- end
59
-
60
- filtered_files
61
- end # method find_files
62
- end # class FileFinder
63
-
64
-
65
16
  class SysInfo
66
17
  def initialize( config )
67
18
  @config = config
@@ -77,7 +28,7 @@ class SysInfo
77
28
  Gems versions:
78
29
  - pakman #{Pakman::VERSION}
79
30
  - fetcher #{Fetcher::VERSION}
80
- - markdown #{Markdown::VERSION}
31
+ - kramdown #{Kramdown::VERSION}
81
32
  - textutils #{TextUtils::VERSION}
82
33
  - logutils #{LogKernel::VERSION}
83
34
  - props #{Props::VERSION}
@@ -98,16 +49,8 @@ EOS
98
49
  config.dump
99
50
  puts
100
51
 
101
- # dump Markdown settings
102
- Markdown.dump
103
- puts
104
-
105
52
  # todo:
106
- # add verison for rubygems
107
-
108
- ## todo: add more gem version info
109
- #- redcloth
110
- #- kramdown
53
+ # add version for rubygems
111
54
 
112
55
 
113
56
  dump_load_path # helps debugging pluggin loading (e.g. Ruby 1.9.2> no longer includes ./ in load path)
@@ -3,6 +3,9 @@
3
3
  module Slideshow
4
4
 
5
5
 
6
+ ## note: just extents version in slideshow-models
7
+
8
+
6
9
  class Opts
7
10
 
8
11
  def merge_gli_options!( options={} )
@@ -25,105 +28,7 @@ class Opts
25
28
  @quick_manifest = options[:template] if options[:template].present?
26
29
  end
27
30
 
28
-
29
- def header_level=(value)
30
- @header_level = value.to_i
31
- end
32
-
33
- def header_level
34
- ## todo: check 0 is not nil?
35
- @header_level || 1
36
- end
37
-
38
- def slide=(boolean)
39
- @slide = boolean
40
- end
41
-
42
- def slide?
43
- return false if @slide.nil? # default slide flag is false
44
- @slide == true
45
- end
46
-
47
- def takahashi=(boolean)
48
- @takahashi = boolean
49
- end
50
-
51
- def takahashi?
52
- return false if @takahashi.nil? # default takahashi flag is false
53
- @takahashi == true
54
- end
55
-
56
- def verbose=(boolean) # add: alias for debug ??
57
- @verbose = boolean
58
- end
59
-
60
- def verbose?
61
- return false if @verbose.nil? # default verbose/debug flag is false
62
- @verbose == true
63
- end
64
-
65
-
66
-
67
- def quick_manifest=(value)
68
- @quick_manifest = value
69
- end
70
-
71
- def quick_manifest
72
- @quick_manifest || 'welcome'
73
- end
74
-
75
-
76
-
77
- def fetch_all=(boolean)
78
- @fetch_all = boolean
79
- end
80
-
81
- def fetch_all?
82
- return false if @fetch_all.nil? # default fetch all flag is false
83
- @fetch_all == true
84
- end
85
-
86
-
87
-
88
- def includes=(value)
89
- @includes = value
90
- end
91
-
92
- def includes
93
- # fix: use os-agnostic delimiter (use : for Mac/Unix?)
94
- @includes.nil? ? [] : @includes.split( ';' )
95
- end
96
-
97
- def has_includes?
98
- @includes.nil? ? false : true
99
- end
100
-
101
-
102
- def manifest=(value)
103
- @manifest = value
104
- end
105
-
106
- def manifest
107
- @manifest || 's6'
108
- end
109
-
110
-
111
- def config_path=(value)
112
- @config_path = value
113
- end
114
-
115
- def config_path
116
- @config_path || File.join( Env.home, '.slideshow' )
117
- end
118
-
119
- def output_path=(value)
120
- @output_path = value
121
- end
122
-
123
- def output_path
124
- @output_path || '.'
125
- end
126
-
127
31
  end # class Opts
128
32
 
129
33
  end # module Slideshow
34
+
@@ -6,9 +6,9 @@
6
6
 
7
7
  module SlideshowCli
8
8
 
9
- MAJOR = 2
10
- MINOR = 4
11
- PATCH = 1
9
+ MAJOR = 3
10
+ MINOR = 0
11
+ PATCH = 0
12
12
  VERSION = [MAJOR,MINOR,PATCH].join('.')
13
13
 
14
14
  def self.version
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slideshow
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.1
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gerald Bauer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-10 00:00:00.000000000 Z
11
+ date: 2016-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: slideshow-models
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 2.4.0
19
+ version: 3.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 2.4.0
26
+ version: 3.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: slideshow-templates
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 2.4.0
33
+ version: 3.0.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 2.4.0
40
+ version: 3.0.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: gli
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 2.5.6
47
+ version: 2.13.4
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 2.5.6
54
+ version: 2.13.4
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rdoc
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -72,17 +72,17 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '3.13'
75
+ version: '3.14'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '3.13'
82
+ version: '3.14'
83
83
  description: Slide Show (S9) - A Free Web Alternative to PowerPoint and Keynote in
84
84
  Ruby
85
- email: webslideshow@googlegroups.com
85
+ email: wwwmake@googlegroups.com
86
86
  executables:
87
87
  - slideshow
88
88
  extensions: []
@@ -110,7 +110,7 @@ post_install_message: "*********************************************************
110
110
  \ \n $ slideshow install deck.js\n \nand use like\n \n $ slideshow build welcome.text
111
111
  -t impress.js\n \nor\n \n $ slideshow build welcome.text -t deck.js\n \nor add
112
112
  some extra (plugins) helpers (left, right, etc). Example:\n \n $ slideshow install
113
- plugins\n\nQuestions? Comments? Send them along to the mailing list.\nhttps://groups.google.com/group/webslideshow\n\n******************************************************************************\n"
113
+ plugins\n\nQuestions? Comments? Send them along to the mailing list.\nhttps://groups.google.com/group/wwwmake\n\n******************************************************************************\n"
114
114
  rdoc_options:
115
115
  - "--main"
116
116
  - README.md
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
128
  version: '0'
129
129
  requirements: []
130
130
  rubyforge_project:
131
- rubygems_version: 2.4.2
131
+ rubygems_version: 2.2.3
132
132
  signing_key:
133
133
  specification_version: 4
134
134
  summary: Slide Show (S9) - A Free Web Alternative to PowerPoint and Keynote in Ruby