slideshow 1.2.3 → 1.2.4

Sign up to get free protection for your applications and to get access to all the features.
data/config/slideshow.yml CHANGED
@@ -77,23 +77,23 @@ rest:
77
77
  # shortcuts for fetching template packs
78
78
  # map shortcut to URI
79
79
  fetch:
80
- s6syntax: https://raw.github.com/geraldb/slideshow-s6-syntax-highlighter/master/s6syntax.txt
81
- s6blank: https://raw.github.com/geraldb/slideshow-s6-blank/master/s6blank.txt
82
- s5blank: https://raw.github.com/geraldb/slideshow-s5-blank/master/s5blank.txt
83
- s5themes: https://raw.github.com/geraldb/slideshow-s5-themes/master/s5themes.txt
84
- fullerscreen: https://raw.github.com/geraldb/slideshow-fullerscreen/master/fullerscreen.txt
85
- slidy: https://raw.github.com/geraldb/slideshow-slidy/master/slidy.txt
86
- g5: https://raw.github.com/geraldb/slideshow-google-html5-slides/master/g5.txt
87
- slippy: https://raw.github.com/geraldb/slideshow-slippy/master/slippy.txt
88
- csss: https://raw.github.com/geraldb/slideshow-csss/master/csss.txt
89
- deck.js: https://raw.github.com/geraldb/slideshow-deck.js/master/deck.js.txt
90
- impress.js: https://raw.github.com/geraldb/slideshow-impress.js/master/impress.js.txt
91
- shower: https://raw.github.com/geraldb/slideshow-shower/master/shower.txt
80
+ s6syntax: https://raw.github.com/slideshow-s9/slideshow-s6-syntax-highlighter/master/s6syntax.txt
81
+ s6blank: https://raw.github.com/slideshow-s9/slideshow-s6-blank/master/s6blank.txt
82
+ s5blank: https://raw.github.com/slideshow-s9/slideshow-s5-blank/master/s5blank.txt
83
+ s5themes: https://raw.github.com/slideshow-s9/slideshow-s5-themes/master/s5themes.txt
84
+ fullerscreen: https://raw.github.com/slideshow-s9/slideshow-fullerscreen/master/fullerscreen.txt
85
+ slidy: https://raw.github.com/slideshow-s9/slideshow-slidy/master/slidy.txt
86
+ g5: https://raw.github.com/slideshow-s9/slideshow-google-html5-slides/master/g5.txt
87
+ slippy: https://raw.github.com/slideshow-s9/slideshow-slippy/master/slippy.txt
88
+ csss: https://raw.github.com/slideshow-s9/slideshow-csss/master/csss.txt
89
+ deck.js: https://raw.github.com/slideshow-s9/slideshow-deck.js/master/deck.js.txt
90
+ impress.js: https://raw.github.com/slideshow-s9/slideshow-impress.js/master/impress.js.txt
91
+ shower: https://raw.github.com/slideshow-s9/slideshow-shower/master/shower.txt
92
92
 
93
93
  ###########################
94
94
  # shortcuts for quick starter templates
95
95
  quick:
96
- slidy: https://raw.github.com/geraldb/slideshow-slidy/master/slidy.txt.quick
97
- deck.js: https://raw.github.com/geraldb/slideshow-deck.js/master/deck.js.txt.quick
98
- impress.js: https://raw.github.com/geraldb/slideshow-impress.js/master/impress.js.txt.quick
99
- csss: https://raw.github.com/geraldb/slideshow-csss/master/csss.txt.quick
96
+ slidy: https://raw.github.com/slideshow-s9/slideshow-slidy/master/slidy.txt.quick
97
+ deck.js: https://raw.github.com/slideshow-s9/slideshow-deck.js/master/deck.js.txt.quick
98
+ impress.js: https://raw.github.com/slideshow-s9/slideshow-impress.js/master/impress.js.txt.quick
99
+ csss: https://raw.github.com/slideshow-s9/slideshow-csss/master/csss.txt.quick
@@ -206,14 +206,19 @@ class Gen
206
206
 
207
207
  manifestsrc = matches[0][1]
208
208
  end
209
-
209
+
210
+ ### todo: use File.expand_path( xx, relative_to ) always with second arg
211
+ ## do NOT default to cwd (because cwd will change!)
212
+
213
+ # Reference src with absolute path, because this can be used with different pwd
214
+ manifestsrc = File.expand_path(manifestsrc)
210
215
 
211
216
  # expand output path in current dir and make sure output path exists
212
217
  outpath = File.expand_path( opts.output_path )
213
218
  logger.debug "outpath=#{outpath}"
214
219
  FileUtils.makedirs( outpath ) unless File.directory? outpath
215
220
 
216
- dirname = File.dirname( fn )
221
+ dirname = File.dirname( fn )
217
222
  basename = File.basename( fn, '.*' )
218
223
  extname = File.extname( fn )
219
224
  logger.debug "dirname=#{dirname}, basename=#{basename}, extname=#{extname}"
@@ -223,7 +228,13 @@ class Gen
223
228
 
224
229
  newcwd = File.expand_path( dirname )
225
230
  oldcwd = File.expand_path( Dir.pwd )
226
-
231
+
232
+ # check: assume pwd is always absolute?? check for home dir e.g. will use ~/ ?? or not?
233
+ # todo: use for File.expand_path
234
+ # fix: use ordir n srcdir etec instead of newcwd and oldcwd -
235
+ srcdir_restore = File.expand_path( dirname )
236
+ orgdir_restore = File.expand_path( Dir.pwd )
237
+
227
238
  unless newcwd == oldcwd then
228
239
  logger.debug "oldcwd=#{oldcwd}"
229
240
  logger.debug "newcwd=#{newcwd}"
@@ -285,21 +296,42 @@ class Gen
285
296
  end
286
297
 
287
298
 
299
+ #### pak merge
300
+ # nb: change cwd to template pak root
301
+
302
+ @pakdir = File.dirname( manifestsrc ) # template pak root - make availabe too in erb via binding
303
+ logger.debug " pakdir=>#{@pakdir}<"
304
+
305
+ # todo/fix: change current work dir (cwd) in pakman gem itself
306
+ # for now lets do it here
307
+
308
+ logger.debug "changing cwd to pak dir - oldcwd=>#{Dir.pwd}<, newcwd=>#{@pakdir}<"
309
+ Dir.chdir( @pakdir )
310
+
288
311
 
289
312
  pakpath = opts.output_path
290
313
 
314
+ # expand output path in current dir and make sure output path exists
315
+ pakpath = File.expand_path( pakpath, orgdir_restore )
316
+ logger.debug "pakpath=#{pakpath}"
317
+ FileUtils.makedirs( pakpath ) unless File.directory? pakpath
318
+
291
319
  logger.debug( "manifestsrc=>#{manifestsrc}<, pakpath=>#{pakpath}<" )
292
320
 
293
321
  Pakman::Templater.new( logger ).merge_pak( manifestsrc, pakpath, binding, basename )
294
-
295
- ## pop/restore working folder/dir
322
+
323
+ logger.debug "restoring cwd to src dir - oldcwd=>#{Dir.pwd}<, newcwd=>#{srcdir_restore}<"
324
+ Dir.chdir( srcdir_restore )
325
+
326
+ ## pop/restore org (original) working folder/dir
296
327
  unless newcwd == oldcwd
297
- logger.debug "oldcwd=>#{oldcwd}<, newcwd=>#{newcwd}<"
328
+ logger.debug "restoring cwd to org dir - oldcwd=>#{oldcwd}<, newcwd=>#{newcwd}<"
298
329
  Dir.chdir( oldcwd )
299
330
  end
300
331
 
301
332
  puts "Done."
302
- end
333
+ end # method create_slideshow
334
+
303
335
 
304
336
  end # class Gen
305
337
 
@@ -1,3 +1,3 @@
1
1
  module Slideshow
2
- VERSION = '1.2.3'
2
+ VERSION = '1.2.4'
3
3
  end
metadata CHANGED
@@ -1,162 +1,117 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: slideshow
3
- version: !ruby/object:Gem::Version
4
- hash: 25
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.2.4
5
5
  prerelease:
6
- segments:
7
- - 1
8
- - 2
9
- - 3
10
- version: 1.2.3
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
- date: 2012-06-24 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2013-06-15 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: props
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &77883910 !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
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *77883910
25
+ - !ruby/object:Gem::Dependency
26
+ name: markdown
27
+ requirement: &77883690 !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
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *77883690
36
+ - !ruby/object:Gem::Dependency
37
+ name: textutils
38
+ requirement: &77883470 !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
- requirement: &id004 !ruby/object:Gem::Requirement
46
+ version_requirements: *77883470
47
+ - !ruby/object:Gem::Dependency
48
+ name: pakman
49
+ requirement: &77883250 !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
- requirement: &id005 !ruby/object:Gem::Requirement
57
+ version_requirements: *77883250
58
+ - !ruby/object:Gem::Dependency
59
+ name: activesupport
60
+ requirement: &77883040 !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
- requirement: &id006 !ruby/object:Gem::Requirement
68
+ version_requirements: *77883040
69
+ - !ruby/object:Gem::Dependency
70
+ name: RedCloth
71
+ requirement: &77882820 !ruby/object:Gem::Requirement
104
72
  none: false
105
- requirements:
106
- - - ">="
107
- - !ruby/object:Gem::Version
108
- hash: 37
109
- segments:
110
- - 4
111
- - 2
112
- - 9
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
113
76
  version: 4.2.9
114
77
  type: :runtime
115
- version_requirements: *id006
116
- - !ruby/object:Gem::Dependency
117
- name: rdoc
118
78
  prerelease: false
119
- requirement: &id007 !ruby/object:Gem::Requirement
79
+ version_requirements: *77882820
80
+ - !ruby/object:Gem::Dependency
81
+ name: rdoc
82
+ requirement: &77882600 !ruby/object:Gem::Requirement
120
83
  none: false
121
- requirements:
84
+ requirements:
122
85
  - - ~>
123
- - !ruby/object:Gem::Version
124
- hash: 19
125
- segments:
126
- - 3
127
- - 10
128
- version: "3.10"
86
+ - !ruby/object:Gem::Version
87
+ version: '3.10'
129
88
  type: :development
130
- version_requirements: *id007
131
- - !ruby/object:Gem::Dependency
132
- name: hoe
133
89
  prerelease: false
134
- requirement: &id008 !ruby/object:Gem::Requirement
90
+ version_requirements: *77882600
91
+ - !ruby/object:Gem::Dependency
92
+ name: hoe
93
+ requirement: &77882380 !ruby/object:Gem::Requirement
135
94
  none: false
136
- requirements:
95
+ requirements:
137
96
  - - ~>
138
- - !ruby/object:Gem::Version
139
- hash: 7
140
- segments:
141
- - 3
142
- - 0
143
- version: "3.0"
97
+ - !ruby/object:Gem::Version
98
+ version: '3.3'
144
99
  type: :development
145
- version_requirements: *id008
146
- description: |-
147
- The Slide Show (S9) Ruby gem lets you create slide shows and author slides in plain text
148
- using a wiki-style markup language that's easy-to-write and easy-to-read.
149
- The Slide Show (S9) project also collects and welcomes themes and ships
150
- "out-of-the-gem" with built-in support for "loss-free" gradient vector graphics themes.
100
+ prerelease: false
101
+ version_requirements: *77882380
102
+ description: ! "The Slide Show (S9) Ruby gem lets you create slide shows and author
103
+ slides in plain text\r\nusing a wiki-style markup language that's easy-to-write
104
+ and easy-to-read.\r\nThe Slide Show (S9) project also collects and welcomes themes
105
+ and ships\r\n\"out-of-the-gem\" with built-in support for \"loss-free\" gradient
106
+ vector graphics themes."
151
107
  email: webslideshow@googlegroups.com
152
- executables:
108
+ executables:
153
109
  - slideshow
154
110
  extensions: []
155
-
156
- extra_rdoc_files:
111
+ extra_rdoc_files:
157
112
  - Manifest.txt
158
113
  - templates/s6.txt
159
- files:
114
+ files:
160
115
  - History.markdown
161
116
  - Manifest.txt
162
117
  - README.markdown
@@ -213,44 +168,38 @@ files:
213
168
  - templates/welcome.txt.quick
214
169
  homepage: http://slideshow.rubyforge.org
215
170
  licenses: []
171
+ post_install_message: ! '******************************************************************************
172
+
216
173
 
217
- post_install_message: |
218
- ******************************************************************************
219
-
220
174
  Questions? Comments? Send them along to the mailing list.
175
+
221
176
  https://groups.google.com/group/webslideshow
222
-
177
+
178
+
223
179
  ******************************************************************************
224
180
 
225
- rdoc_options:
181
+ '
182
+ rdoc_options:
226
183
  - --main
227
184
  - README.markdown
228
- require_paths:
185
+ require_paths:
229
186
  - lib
230
- required_ruby_version: !ruby/object:Gem::Requirement
187
+ required_ruby_version: !ruby/object:Gem::Requirement
231
188
  none: false
232
- requirements:
233
- - - ">="
234
- - !ruby/object:Gem::Version
235
- hash: 3
236
- segments:
237
- - 0
238
- version: "0"
239
- required_rubygems_version: !ruby/object:Gem::Requirement
189
+ requirements:
190
+ - - ! '>='
191
+ - !ruby/object:Gem::Version
192
+ version: '0'
193
+ required_rubygems_version: !ruby/object:Gem::Requirement
240
194
  none: false
241
- requirements:
242
- - - ">="
243
- - !ruby/object:Gem::Version
244
- hash: 3
245
- segments:
246
- - 0
247
- version: "0"
195
+ requirements:
196
+ - - ! '>='
197
+ - !ruby/object:Gem::Version
198
+ version: '0'
248
199
  requirements: []
249
-
250
200
  rubyforge_project: slideshow
251
- rubygems_version: 1.8.24
201
+ rubygems_version: 1.8.17
252
202
  signing_key:
253
203
  specification_version: 3
254
204
  summary: Slide Show (S9) - A Free Web Alternative to PowerPoint and KeyNote in Ruby
255
205
  test_files: []
256
-