slideshow 0.3 → 0.3.1

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.
Files changed (3) hide show
  1. data/bin/slideshow +3 -3
  2. data/lib/slideshow.rb +8 -5
  3. metadata +7 -7
data/bin/slideshow CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env ruby
2
- require 'rubygems'
3
- require 'slideshow'
1
+ #!/usr/bin/env ruby
2
+ require 'rubygems'
3
+ require 'slideshow'
4
4
  Slideshow.main
data/lib/slideshow.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'optparse'
2
2
  require 'erb'
3
- require 'RedCloth'
4
- require 'BlueCloth'
3
+ require 'redcloth'
4
+ require 'maruku'
5
5
  require 'logger'
6
6
 
7
7
 
@@ -91,7 +91,8 @@ def Slideshow.create_slideshow( fn )
91
91
  content = File.read( inname )
92
92
 
93
93
  if known_markdown_extnames.include?( extname )
94
- content = BlueCloth.new( content ).to_html
94
+ content = Maruku.new( content, {:on_error => :raise} ).to_html
95
+ # content = BlueCloth.new( content ).to_html
95
96
  else
96
97
  content = RedCloth.new( content ).to_html
97
98
  end
@@ -163,9 +164,11 @@ def Slideshow.main
163
164
 
164
165
  opt.parse!
165
166
 
166
- puts "Slide Show (S9) Version: 0.3 on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
167
+ puts "Slide Show (S9) Version: 0.3.1 on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
167
168
 
168
169
  ARGV.each { |fn| Slideshow.create_slideshow( fn ) }
169
170
  end
170
171
 
171
- end
172
+ end
173
+
174
+ Slideshow.main if __FILE__ == $0
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: "0.3"
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gerald Bauer
@@ -9,8 +9,8 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-03-08 00:00:00 -08:00
13
- default_executable: slideshow
12
+ date: 2008-05-16 00:00:00 -07:00
13
+ default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: RedCloth
@@ -22,18 +22,18 @@ dependencies:
22
22
  version: 3.0.0
23
23
  version:
24
24
  - !ruby/object:Gem::Dependency
25
- name: BlueCloth
25
+ name: maruku
26
26
  version_requirement:
27
27
  version_requirements: !ruby/object:Gem::Requirement
28
28
  requirements:
29
29
  - - ">="
30
30
  - !ruby/object:Gem::Version
31
- version: 1.0.0
31
+ version: 0.5.8
32
32
  version:
33
33
  description:
34
34
  email: geraldbauer2007@gmail.com
35
- executables: []
36
-
35
+ executables:
36
+ - slideshow
37
37
  extensions: []
38
38
 
39
39
  extra_rdoc_files: []