slideshow 3.1.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b064b61a36648e186430827fdff78bc953089d51
4
- data.tar.gz: 99599949cfab56006f90ba2c279b1bdb356fcfc6
3
+ metadata.gz: 5bdb80e160f641b068f99f6e389dcef8542929b1
4
+ data.tar.gz: 2f75c064467c489df876e1c3671157781c3cffdf
5
5
  SHA512:
6
- metadata.gz: fb9aaf038a158025fbe46185652709daca787820b01adbf8364ed4e6dfb712d2259beb3a8b1fbaa94f70a9a27e24aaebe454bcb6ff8cfc2004b4d2b2cb2c5c7d
7
- data.tar.gz: 69a927be7afaf1153546c40daeead106a8e688a874894c1fb62f0fc1d1b3beee1ff903eca6538ba043c544d3bc20ddb1e7212aef266003a2de0f1e60a4142324
6
+ metadata.gz: 66a144011e831591285edb582cbb2502c0c1821171a344be5b128e1f08d9f5f87f7b39e8f87b5041549024af68e887967cea798ed4b49bedb204868b8c82a443
7
+ data.tar.gz: bede7afee738929fc81e8ed6a7ff4c31504a0be9042e8362940bd12508e0845d52fb87ec3c43906a2321f2c87bae8e8039c934b68e4461231dfa9f84608a0149
@@ -1,10 +1,10 @@
1
- HISTORY.md
2
- Manifest.txt
3
- README.md
4
- Rakefile
5
- bin/slideshow
6
- lib/slideshow.rb
7
- lib/slideshow/cli/main.rb
8
- lib/slideshow/cli/main_utils.rb
9
- lib/slideshow/cli/opts.rb
10
- lib/slideshow/cli/version.rb
1
+ HISTORY.md
2
+ Manifest.txt
3
+ README.md
4
+ Rakefile
5
+ bin/slideshow
6
+ lib/slideshow.rb
7
+ lib/slideshow/cli/main.rb
8
+ lib/slideshow/cli/main_utils.rb
9
+ lib/slideshow/cli/opts.rb
10
+ lib/slideshow/cli/version.rb
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # slideshow gem - slide show (S9) command line tool - a free web alternative to PowerPoint and Keynote in ruby
1
+ # slideshow - slide show (S9) command line tool - a free web alternative to PowerPoint and Keynote
2
2
 
3
3
  * docu :: [slideshow-s9.github.io](http://slideshow-s9.github.io)
4
4
  * source :: [github.com/slideshow-s9/slideshow](https://github.com/slideshow-s9/slideshow)
@@ -9,125 +9,19 @@
9
9
  * forum :: [groups.google.com/group/wwwmake](http://groups.google.com/group/wwwmake)
10
10
 
11
11
 
12
- ## DESCRIPTION
12
+ ## Description
13
13
 
14
- The Slide Show (S9) Ruby gem lets you create slide shows and author slides in plain text
15
- using a wiki-style markup language that's easy-to-write and easy-to-read.
16
- The Slide Show (S9) project also collects and welcomes themes and ships
17
- "out-of-the-gem" with built-in support for "loss-free" gradient vector graphics themes.
14
+ For documention, see [slideshow-s9.github.io](http://slideshow-s9.github.io).
18
15
 
19
- ```
20
- SYNOPSIS
21
- slideshow [global options] command [command options] [arguments...]
22
16
 
23
- VERSION
24
- 3.0.0
17
+ ## License
25
18
 
26
- GLOBAL OPTIONS
27
- -c, --config=PATH - Configuration Path (default: ~/.slideshow)
28
- --verbose - (Debug) Show debug messages
29
- --version - Show version
30
-
31
- COMMANDS
32
- build, b - Build slideshow
33
- install, i - Install template pack
34
- list, ls, l - List installed template packs
35
- new, n - Generate quick starter sample
36
- about, a - (Debug) Show more version info
37
- help - Shows a list of commands or help for one command
38
- ```
39
-
40
-
41
- ### `build` Command
42
-
43
- ```
44
- NAME
45
- build - Build slideshow
46
-
47
- SYNOPSIS
48
- slideshow [global options] build [command options] FILE
49
-
50
- COMMAND OPTIONS
51
- --h1 - Set Header Level to 1 (default)
52
- --h2 - Set Header Level to 2
53
- --takahashi - Allow // for slide breaks
54
- --slide - Use only !SLIDE for slide breaks (Showoff Compatible)
55
- -o, --output=PATH - Output Path (default: .)
56
- -t, --template=MANIFEST - Template Manifest (default: s6)
57
-
58
- EXAMPLES
59
- slideshow build microformats.text
60
- slideshow build microformats.text -o slides # Output slideshow to slides folder
61
- slideshow build microformats.text -t s5blank # Use your own slide show templates (e.g. s5blank)
62
- ```
63
-
64
-
65
- ### `list` Command
66
-
67
- ```
68
- NAME
69
- list - List installed template packs
70
-
71
- SYNOPSIS
72
- slideshow [global options] list [command options]
73
-
74
- EXAMPLES
75
- slideshow list
76
- slideshow ls
77
- ```
78
-
79
-
80
- ### `install` Command
81
-
82
- ```
83
- NAME
84
- install - Install template pack
85
-
86
- SYNOPSIS
87
- slideshow [global options] install [command options] MANIFEST
88
-
89
- COMMAND OPTIONS
90
- -a, --all - Template Packs (s5blank, s5themes, slidy, g5, csss, deck.js, impress.js)
91
-
92
- EXAMPLES
93
- slideshow install impress.js
94
- slideshow install https://raw.github.com/.../impress.js.txt
95
- ```
96
-
97
-
98
- ### `new` Command
99
-
100
- ```
101
- NAME
102
- new - Generate quick starter sample
103
-
104
- SYNOPSIS
105
- slideshow [global options] new [command options]
106
-
107
- COMMAND OPTIONS
108
- -o, --output=PATH - Output Path (default: .)
109
- -t, --template=MANIFEST - Template Manifest (default: welcome)
110
-
111
- EXAMPLES
112
- slideshow new
113
- slideshow new -t impress.js
114
- ```
115
-
116
-
117
- ## INSTALL
118
-
119
- Just install the gem:
120
-
121
- $ gem install slideshow
122
-
123
- ## LICENSE
19
+ ![](https://publicdomainworks.github.io/buttons/zero88x31.png)
124
20
 
125
21
  The `slideshow` scripts and templates are dedicated to the public domain.
126
22
  Use it as you please with no restrictions whatsoever.
127
23
 
128
- ## QUESTION? COMMENTS?
24
+ ## Questions? Comments?
129
25
 
130
26
  Send them along to the [wwwmake forum/mailing list](http://groups.google.com/group/wwwmake).
131
27
  Thanks!
132
-
133
-
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ Hoe.spec 'slideshow' do
5
5
 
6
6
  self.version = SlideshowCli::VERSION
7
7
 
8
- self.summary = 'Slide Show (S9) - A Free Web Alternative to PowerPoint and Keynote in Ruby'
8
+ self.summary = 'Slide Show (S9) - Write Your Slides in Plain Text w/ Formatting Conventions - A Free Web Alternative to PowerPoint and Keynote'
9
9
  self.description = summary
10
10
 
11
11
  self.urls = ['https://github.com/slideshow-s9/slideshow']
@@ -14,8 +14,7 @@ Hoe.spec 'slideshow' do
14
14
  self.email = 'wwwmake@googlegroups.com'
15
15
 
16
16
  self.extra_deps = [
17
- ['slideshow-models', '>= 3.1.0'], ## Note: pull in all deps via slideshow-models (e.g. props, textutils, etc.)
18
- ['slideshow-templates','>= 3.0.0'],
17
+ ['slideshow-models', '>= 4.0.0'], ## Note: pull in all deps via slideshow-models (e.g. props, textutils, etc.)
19
18
  ['gli', '>= 2.13.4']
20
19
  ]
21
20
 
@@ -26,7 +25,7 @@ Hoe.spec 'slideshow' do
26
25
  self.licenses = ['Public Domain']
27
26
 
28
27
  self.spec_extras = {
29
- required_ruby_version: '>= 1.9.2'
28
+ required_ruby_version: '>= 2.3'
30
29
  }
31
30
 
32
31
 
@@ -36,21 +35,21 @@ Hoe.spec 'slideshow' do
36
35
  Tip: Try some new template packs. Example:
37
36
 
38
37
  $ slideshow install impress.js
39
-
38
+
40
39
  or
41
-
40
+
42
41
  $ slideshow install deck.js
43
-
42
+
44
43
  and use like
45
-
44
+
46
45
  $ slideshow build welcome.text -t impress.js
47
-
46
+
48
47
  or
49
-
48
+
50
49
  $ slideshow build welcome.text -t deck.js
51
-
50
+
52
51
  or add some extra (plugins) helpers (left, right, etc). Example:
53
-
52
+
54
53
  $ slideshow install plugins
55
54
 
56
55
  Questions? Comments? Send them along to the mailing list.
@@ -60,4 +59,3 @@ https://groups.google.com/group/wwwmake
60
59
  EOS
61
60
 
62
61
  end
63
-
@@ -5,7 +5,6 @@ $RUBYLIBS_DEBUG = true
5
5
 
6
6
  require 'slideshow/models'
7
7
 
8
- require 'slideshow/templates' ## for now add builtin templates (remove later? why? why not?)
9
8
 
10
9
  ## todo/fix: check slideshow-models - remove Env.slideshowopt here or in models?
11
10
  #
@@ -33,15 +32,15 @@ module Slideshow
33
32
 
34
33
  =begin
35
34
  def self.main_old
36
-
35
+
37
36
  # allow env variable to set RUBYOPT-style default command line options
38
37
  # e.g. -o slides -t <your_template_manifest_here>
39
38
  slideshowopt = Env.slideshowopt
40
-
39
+
41
40
  args = []
42
41
  args += slideshowopt.split if slideshowopt
43
42
  args += ARGV.dup
44
-
43
+
45
44
  Runner.new.run(args)
46
45
  end
47
46
  =end
@@ -8,7 +8,7 @@ module Slideshow
8
8
 
9
9
  class Tool
10
10
  def initialize
11
- LogUtils::Logger.root.level = :info # set logging level to info
11
+ LogUtils::Logger.root.level = :info # set logging level to info
12
12
  end
13
13
 
14
14
  def run( args )
@@ -32,16 +32,16 @@ module Slideshow
32
32
  def self.config() @@config; end
33
33
 
34
34
 
35
- ## some setup code
35
+ ## some setup code
36
36
  logger = LogUtils::Logger.root
37
- opts = Slideshow::Opts.new
37
+ opts = Slideshow::Opts.new
38
38
  config = Slideshow::Config.new( opts )
39
39
 
40
40
  config.load
41
41
 
42
42
 
43
43
 
44
- program_desc 'Slide Show (S9) - a free web alternative to PowerPoint and Keynote in Ruby'
44
+ program_desc 'Slide Show (S9) - a free web alternative to PowerPoint and Keynote'
45
45
 
46
46
  version SlideshowCli::VERSION
47
47
 
@@ -49,8 +49,8 @@ version SlideshowCli::VERSION
49
49
  =begin
50
50
  ## gets all merged in one paragraph - does not honor whitespace
51
51
  xxx_program_long_desc = <<EOS
52
-
53
- Slide Show (S9) is a free web alternative to PowerPoint or Keynote in Ruby
52
+
53
+ Slide Show (S9) is a free web alternative to PowerPoint or Keynote
54
54
 
55
55
  Examples:
56
56
  slideshow microformats.text
@@ -83,7 +83,7 @@ switch [:q, :quiet], negatable: false
83
83
  desc 'Configuration Path'
84
84
  arg_name 'PATH'
85
85
  default_value opts.config_path
86
- flag [:c, :config]
86
+ flag [:c, :config]
87
87
 
88
88
 
89
89
  desc 'Build slideshow'
@@ -96,13 +96,13 @@ command [:build, :b] do |c|
96
96
 
97
97
 
98
98
  # ?? opts.on( "-s", "--style STYLE", "Select Stylesheet" ) { |s| $options[:style]=s }
99
-
99
+
100
100
  # ?? cmd.on( '-i', '--include PATH', 'Load Path' ) { |s| opts.put( 'include', s ) }
101
101
 
102
102
 
103
103
  c.desc 'Set Header Level to 1 (default)'
104
104
  c.switch [:h1], negatable: false # todo: add :1 if it works e.g. -1 why? why not??
105
-
105
+
106
106
  c.desc 'Set Header Level to 2'
107
107
  c.switch [:h2], negatable: false
108
108
 
@@ -126,11 +126,11 @@ command [:build, :b] do |c|
126
126
 
127
127
  c.action do |g,o,args|
128
128
  logger.debug 'hello from build command'
129
-
129
+
130
130
  PluginLoader.new( config ).load_plugins # check for optional plugins/extension in ./lib folder
131
-
131
+
132
132
  ## pass in args array (allow/supports multi files)
133
- Slideshow::Build.new( config ).create_slideshow( args )
133
+ Slideshow::Build.new( config ).create_slideshow( args )
134
134
  end
135
135
  end
136
136
 
@@ -140,7 +140,7 @@ command [:list,:ls,:l] do |c|
140
140
 
141
141
  c.action do |g,o,args|
142
142
  logger.debug 'hello from list command'
143
-
143
+
144
144
  Slideshow::List.new( config ).run ### todo: remove opts (merge access into config)
145
145
  end
146
146
  end
@@ -155,11 +155,11 @@ command [:install,:i] do |c|
155
155
 
156
156
  c.action do |g,o,args|
157
157
  logger.debug 'hello from install command'
158
-
158
+
159
159
  if opts.fetch_all?
160
160
  Slideshow::Fetch.new( config ).fetch_all ## todo: remove opts merge into config
161
161
  end
162
-
162
+
163
163
  args.each do |arg|
164
164
  Slideshow::Fetch.new( config ).fetch( arg ) ## todo: remove opts merge into config
165
165
  end
@@ -167,16 +167,6 @@ command [:install,:i] do |c|
167
167
  end
168
168
 
169
169
 
170
- desc "Update shortcut index for template packs 'n' plugins"
171
- command [:update,:u] do |c|
172
-
173
- c.action do |g,o,args|
174
- logger.debug 'hello from update command'
175
-
176
- Slideshow::Update.new( config ).update
177
- end
178
- end
179
-
180
170
 
181
171
  desc 'Generate quick starter sample'
182
172
  command [:new,:n] do |c|
@@ -17,9 +17,9 @@ class SysInfo
17
17
  def initialize( config )
18
18
  @config = config
19
19
  end
20
-
20
+
21
21
  attr_reader :config
22
-
22
+
23
23
  def dump
24
24
  puts <<EOS
25
25
 
@@ -29,30 +29,29 @@ Gems versions:
29
29
  - pakman #{Pakman::VERSION}
30
30
  - fetcher #{Fetcher::VERSION}
31
31
  - kramdown #{Kramdown::VERSION}
32
+ - liquid #{Liquid::VERSION}
32
33
  - textutils #{TextUtils::VERSION}
33
34
  - logutils #{LogKernel::VERSION}
34
35
  - props #{Props::VERSION}
35
36
 
36
37
  - slideshow-models #{Slideshow::VERSION}
37
- - slideshow-templates #{SlideshowTemplates::VERSION}
38
38
  - slideshow #{SlideshowCli::VERSION}
39
39
 
40
40
  Env home: #{Env.home}
41
41
  Slideshow config: #{config.config_dir}
42
42
  Slideshow cache: #{config.cache_dir}
43
43
  Slideshow root: #{Slideshow.root}
44
- SlideshowTemplates root: #{SlideshowTemplates.root}
45
44
 
46
45
  EOS
47
46
 
48
47
  # dump Slideshow settings
49
48
  config.dump
50
49
  puts
51
-
50
+
52
51
  # todo:
53
52
  # add version for rubygems
54
53
 
55
-
54
+
56
55
  dump_load_path # helps debugging pluggin loading (e.g. Ruby 1.9.2> no longer includes ./ in load path)
57
56
  end
58
57
 
@@ -11,24 +11,23 @@ class Opts
11
11
  def merge_gli_options!( options={} )
12
12
  @header_level = 1 if options[:h1] == true
13
13
  @header_level = 2 if options[:h2] == true
14
-
14
+
15
15
  @slide = true if options[:slide] == true
16
16
  @takahashi = true if options[:slide] == true
17
-
17
+
18
18
  @verbose = true if options[:verbose] == true
19
-
19
+
20
20
  @fetch_all = true if options[:all] == true
21
-
21
+
22
22
  @config_path = options[:config] if options[:config].present?
23
23
  @output_path = options[:output] if options[:output].present?
24
-
24
+
25
25
  @manifest = options[:template] if options[:template].present?
26
26
 
27
- ## NB: will use :template option too
27
+ ## Note: will use :template option too
28
28
  @quick_manifest = options[:template] if options[:template].present?
29
29
  end
30
30
 
31
31
  end # class Opts
32
32
 
33
33
  end # module Slideshow
34
-
@@ -6,8 +6,8 @@
6
6
 
7
7
  module SlideshowCli
8
8
 
9
- MAJOR = 3
10
- MINOR = 1
9
+ MAJOR = 4
10
+ MINOR = 0
11
11
  PATCH = 0
12
12
  VERSION = [MAJOR,MINOR,PATCH].join('.')
13
13
 
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: 3.1.0
4
+ version: 4.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: 2016-05-06 00:00:00.000000000 Z
11
+ date: 2017-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: slideshow-models
@@ -16,28 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 3.1.0
19
+ version: 4.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: 3.1.0
27
- - !ruby/object:Gem::Dependency
28
- name: slideshow-templates
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: 3.0.0
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: 3.0.0
26
+ version: 4.0.0
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: gli
43
29
  requirement: !ruby/object:Gem::Requirement
@@ -72,16 +58,16 @@ dependencies:
72
58
  requirements:
73
59
  - - "~>"
74
60
  - !ruby/object:Gem::Version
75
- version: '3.14'
61
+ version: '3.16'
76
62
  type: :development
77
63
  prerelease: false
78
64
  version_requirements: !ruby/object:Gem::Requirement
79
65
  requirements:
80
66
  - - "~>"
81
67
  - !ruby/object:Gem::Version
82
- version: '3.14'
83
- description: Slide Show (S9) - A Free Web Alternative to PowerPoint and Keynote in
84
- Ruby
68
+ version: '3.16'
69
+ description: Slide Show (S9) - Write Your Slides in Plain Text w/ Formatting Conventions
70
+ - A Free Web Alternative to PowerPoint and Keynote
85
71
  email: wwwmake@googlegroups.com
86
72
  executables:
87
73
  - slideshow
@@ -105,12 +91,33 @@ homepage: https://github.com/slideshow-s9/slideshow
105
91
  licenses:
106
92
  - Public Domain
107
93
  metadata: {}
108
- post_install_message: "******************************************************************************\n\nTip:
109
- Try some new template packs. Example:\n\n $ slideshow install impress.js\n \nor\n
110
- \ \n $ slideshow install deck.js\n \nand use like\n \n $ slideshow build welcome.text
111
- -t impress.js\n \nor\n \n $ slideshow build welcome.text -t deck.js\n \nor add
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/wwwmake\n\n******************************************************************************\n"
94
+ post_install_message: |
95
+ ******************************************************************************
96
+
97
+ Tip: Try some new template packs. Example:
98
+
99
+ $ slideshow install impress.js
100
+
101
+ or
102
+
103
+ $ slideshow install deck.js
104
+
105
+ and use like
106
+
107
+ $ slideshow build welcome.text -t impress.js
108
+
109
+ or
110
+
111
+ $ slideshow build welcome.text -t deck.js
112
+
113
+ or add some extra (plugins) helpers (left, right, etc). Example:
114
+
115
+ $ slideshow install plugins
116
+
117
+ Questions? Comments? Send them along to the mailing list.
118
+ https://groups.google.com/group/wwwmake
119
+
120
+ ******************************************************************************
114
121
  rdoc_options:
115
122
  - "--main"
116
123
  - README.md
@@ -120,7 +127,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
120
127
  requirements:
121
128
  - - ">="
122
129
  - !ruby/object:Gem::Version
123
- version: 1.9.2
130
+ version: '2.3'
124
131
  required_rubygems_version: !ruby/object:Gem::Requirement
125
132
  requirements:
126
133
  - - ">="
@@ -128,8 +135,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
135
  version: '0'
129
136
  requirements: []
130
137
  rubyforge_project:
131
- rubygems_version: 2.2.3
138
+ rubygems_version: 2.5.2
132
139
  signing_key:
133
140
  specification_version: 4
134
- summary: Slide Show (S9) - A Free Web Alternative to PowerPoint and Keynote in Ruby
141
+ summary: Slide Show (S9) - Write Your Slides in Plain Text w/ Formatting Conventions
142
+ - A Free Web Alternative to PowerPoint and Keynote
135
143
  test_files: []