pandoc-ruby 0.0.9 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -42,6 +42,8 @@ becomes
42
42
  PandocRuby assumes the pandoc executables are in the path. If not, set their location
43
43
  with `PandocRuby.bin_path = '/path/to/bin'`
44
44
 
45
+ Available format readers and writers are available in the `PandocRuby::READERS` and `PandocRuby::WRITERS` constants.
46
+
45
47
  For more information on Pandoc, see the [Pandoc documentation](http://johnmacfarlane.net/pandoc/) or run `man pandoc`.
46
48
 
47
49
  If you'd prefer a pure-Ruby extended markdown interpreter that can output a few different formats, take a look at [Maruku](http://maruku.rubyforge.org/).
data/Rakefile CHANGED
@@ -8,9 +8,10 @@ begin
8
8
  gem.summary = %Q{PandocRuby}
9
9
  gem.description = %Q{Ruby wrapper for Pandoc}
10
10
  gem.email = "wmelody@gmail.com"
11
- gem.homepage = "http://github.com/autodata/pandoc-ruby"
11
+ gem.homepage = "http://rdoc.info/projects/autodata/pandoc-ruby"
12
12
  gem.authors = ["William Melody"]
13
13
  gem.add_development_dependency "shoulda"
14
+ gem.add_development_dependency "mocha"
14
15
  gem.add_dependency "open4"
15
16
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
16
17
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.9
1
+ 0.1.0
@@ -9,6 +9,28 @@ class PandocRuby
9
9
  hsmarkdown
10
10
  ]
11
11
 
12
+ READERS = {
13
+ 'rst' => 'reStructuredText',
14
+ 'markdown' => 'markdown',
15
+ 'html' => 'HTML',
16
+ 'latex' => 'LaTeX'
17
+ }
18
+
19
+ WRITERS = {
20
+ 'markdown' => 'markdown',
21
+ 'rst' => 'reStructuredText',
22
+ 'html' => 'HTML',
23
+ 'latex' => 'LaTeX',
24
+ 'context' => 'ConTeXt',
25
+ 'man' => 'groff man',
26
+ 'mediawiki' => 'MediaWiki markup',
27
+ 'texinfo' => 'GNU Texinfo',
28
+ 'docbook' => 'DocBook XML',
29
+ 'opendocument' => 'OpenDocument XML',
30
+ 's5' => 'S5 HTML and javascript slide show',
31
+ 'rtf' => 'rich text format'
32
+ }
33
+
12
34
  def self.bin_path=(path)
13
35
  @@bin_path = path
14
36
  end
@@ -1,15 +1,15 @@
1
1
  # Generated by jeweler
2
- # DO NOT EDIT THIS FILE
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{pandoc-ruby}
8
- s.version = "0.0.9"
8
+ s.version = "0.1.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["William Melody"]
12
- s.date = %q{2009-10-20}
12
+ s.date = %q{2009-11-04}
13
13
  s.description = %q{Ruby wrapper for Pandoc}
14
14
  s.email = %q{wmelody@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -32,7 +32,7 @@ Gem::Specification.new do |s|
32
32
  "test/test_helper.rb",
33
33
  "test/test_pandoc-ruby.rb"
34
34
  ]
35
- s.homepage = %q{http://github.com/autodata/pandoc-ruby}
35
+ s.homepage = %q{http://rdoc.info/projects/autodata/pandoc-ruby}
36
36
  s.rdoc_options = ["--charset=UTF-8"]
37
37
  s.require_paths = ["lib"]
38
38
  s.rubygems_version = %q{1.3.5}
@@ -50,13 +50,17 @@ Gem::Specification.new do |s|
50
50
 
51
51
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
52
52
  s.add_development_dependency(%q<shoulda>, [">= 0"])
53
+ s.add_development_dependency(%q<mocha>, [">= 0"])
53
54
  s.add_runtime_dependency(%q<open4>, [">= 0"])
54
55
  else
55
56
  s.add_dependency(%q<shoulda>, [">= 0"])
57
+ s.add_dependency(%q<mocha>, [">= 0"])
56
58
  s.add_dependency(%q<open4>, [">= 0"])
57
59
  end
58
60
  else
59
61
  s.add_dependency(%q<shoulda>, [">= 0"])
62
+ s.add_dependency(%q<mocha>, [">= 0"])
60
63
  s.add_dependency(%q<open4>, [">= 0"])
61
64
  end
62
65
  end
66
+
@@ -84,4 +84,28 @@ class TestPandocRuby < Test::Unit::TestCase
84
84
  flunk e
85
85
  end
86
86
  end
87
+
88
+ should "have reader and writer constants" do
89
+ assert_equal PandocRuby::READERS, {
90
+ 'rst' => 'reStructuredText',
91
+ 'markdown' => 'markdown',
92
+ 'html' => 'HTML',
93
+ 'latex' => 'LaTeX'
94
+ }
95
+
96
+ assert_equal PandocRuby::WRITERS, {
97
+ 'markdown' => 'markdown',
98
+ 'rst' => 'reStructuredText',
99
+ 'html' => 'HTML',
100
+ 'latex' => 'LaTeX',
101
+ 'context' => 'ConTeXt',
102
+ 'man' => 'groff man',
103
+ 'mediawiki' => 'MediaWiki markup',
104
+ 'texinfo' => 'GNU Texinfo',
105
+ 'docbook' => 'DocBook XML',
106
+ 'opendocument' => 'OpenDocument XML',
107
+ 's5' => 'S5 HTML and javascript slide show',
108
+ 'rtf' => 'rich text format'
109
+ }
110
+ end
87
111
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pandoc-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Melody
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-20 00:00:00 -05:00
12
+ date: 2009-11-04 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -22,6 +22,16 @@ dependencies:
22
22
  - !ruby/object:Gem::Version
23
23
  version: "0"
24
24
  version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: mocha
27
+ type: :development
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: "0"
34
+ version:
25
35
  - !ruby/object:Gem::Dependency
26
36
  name: open4
27
37
  type: :runtime
@@ -57,7 +67,7 @@ files:
57
67
  - test/test_helper.rb
58
68
  - test/test_pandoc-ruby.rb
59
69
  has_rdoc: true
60
- homepage: http://github.com/autodata/pandoc-ruby
70
+ homepage: http://rdoc.info/projects/autodata/pandoc-ruby
61
71
  licenses: []
62
72
 
63
73
  post_install_message: