pandoc-ruby 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile ADDED
@@ -0,0 +1,13 @@
1
+ source "http://rubygems.org"
2
+ # Add dependencies required to use your gem here.
3
+ # Example:
4
+ # gem "activesupport", ">= 2.3.5"
5
+
6
+ # Add dependencies to develop your gem here.
7
+ # Include everything needed to run rake, tests, features, etc.
8
+ group :development, :test do
9
+ gem "jeweler", "~> 1.8.4"
10
+ gem "mocha", ">= 0"
11
+ gem "rdoc", "~> 3.12"
12
+ gem "shoulda", ">= 0"
13
+ end
@@ -0,0 +1,36 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ activesupport (3.2.8)
5
+ i18n (~> 0.6)
6
+ multi_json (~> 1.0)
7
+ git (1.2.5)
8
+ i18n (0.6.1)
9
+ jeweler (1.8.4)
10
+ bundler (~> 1.0)
11
+ git (>= 1.2.5)
12
+ rake
13
+ rdoc
14
+ json (1.7.5)
15
+ metaclass (0.0.1)
16
+ mocha (0.12.7)
17
+ metaclass (~> 0.0.1)
18
+ multi_json (1.3.6)
19
+ rake (0.9.2.2)
20
+ rdoc (3.12)
21
+ json (~> 1.4)
22
+ shoulda (3.3.0)
23
+ shoulda-context (~> 1.0)
24
+ shoulda-matchers (~> 1.4)
25
+ shoulda-context (1.0.0)
26
+ shoulda-matchers (1.4.0)
27
+ activesupport (>= 3.0.0)
28
+
29
+ PLATFORMS
30
+ ruby
31
+
32
+ DEPENDENCIES
33
+ jeweler (~> 1.8.4)
34
+ mocha
35
+ rdoc (~> 3.12)
36
+ shoulda
@@ -63,7 +63,7 @@ Available format readers and writers are available in the `PandocRuby::READERS`
63
63
 
64
64
  For more information on Pandoc, see the [Pandoc documentation](http://johnmacfarlane.net/pandoc/) or run `man pandoc` ([also available here](http://johnmacfarlane.net/pandoc/pandoc.1.html)).
65
65
 
66
- 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/). If you want to use the full reStructuredText syntax from within Ruby, check out [RbST](http://rdoc.info/projects/alphabetum/rbst), a docutils wrapper.
66
+ 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/). If you want to use the full reStructuredText syntax from within Ruby, check out [RbST](https://github.com/alphabetum/rbst), a docutils wrapper.
67
67
 
68
68
  This gem was inspired by [Albino](http://github.com/github/albino). For a slightly different approach to using Pandoc with Ruby, see [Pandoku](http://github.com/dahlia/pandoku).
69
69
 
@@ -92,4 +92,4 @@ If you are trying to generate a standalone file with full file headers rather th
92
92
 
93
93
  ## Copyright
94
94
 
95
- Copyright (c) 2009 William Melody. See LICENSE for details.
95
+ Copyright (c) 2009-2012 William Melody · Follow me [@alphabetum](http://twitter.com/alphabetum)
data/Rakefile CHANGED
@@ -1,22 +1,29 @@
1
+ # encoding: utf-8
2
+
1
3
  require 'rubygems'
4
+ require 'bundler'
5
+ begin
6
+ Bundler.setup(:default, :development)
7
+ rescue Bundler::BundlerError => e
8
+ $stderr.puts e.message
9
+ $stderr.puts "Run `bundle install` to install missing gems"
10
+ exit e.status_code
11
+ end
2
12
  require 'rake'
3
13
 
4
- begin
5
- require 'jeweler'
6
- Jeweler::Tasks.new do |gem|
7
- gem.name = "pandoc-ruby"
8
- gem.summary = %Q{PandocRuby}
9
- gem.description = %Q{Ruby wrapper for Pandoc}
10
- gem.email = "wmelody@gmail.com"
11
- gem.homepage = "http://rdoc.info/projects/alphabetum/pandoc-ruby"
12
- gem.authors = ["William Melody"]
13
- gem.add_development_dependency "shoulda"
14
- gem.add_development_dependency "mocha"
15
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
16
- end
17
- rescue LoadError
18
- puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
14
+ require 'jeweler'
15
+ Jeweler::Tasks.new do |gem|
16
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
+ gem.name = "pandoc-ruby"
18
+ gem.homepage = "http://github.com/alphabetum/pandoc-ruby"
19
+ gem.license = "MIT"
20
+ gem.summary = %Q{PandocRuby}
21
+ gem.description = %Q{Ruby wrapper for Pandoc}
22
+ gem.email = "hi@williammelody.com"
23
+ gem.authors = ["William Melody"]
24
+ # dependencies defined in Gemfile
19
25
  end
26
+ Jeweler::RubygemsDotOrgTasks.new
20
27
 
21
28
  require 'rake/testtask'
22
29
  Rake::TestTask.new(:test) do |test|
@@ -25,33 +32,14 @@ Rake::TestTask.new(:test) do |test|
25
32
  test.verbose = true
26
33
  end
27
34
 
28
- begin
29
- require 'rcov/rcovtask'
30
- Rcov::RcovTask.new do |test|
31
- test.libs << 'test'
32
- test.pattern = 'test/**/test_*.rb'
33
- test.verbose = true
34
- end
35
- rescue LoadError
36
- task :rcov do
37
- abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
38
- end
39
- end
40
-
41
- task :test => :check_dependencies
42
-
43
35
  task :default => :test
44
36
 
45
- require 'rake/rdoctask'
37
+ require 'rdoc/task'
46
38
  Rake::RDocTask.new do |rdoc|
47
- if File.exist?('VERSION')
48
- version = File.read('VERSION')
49
- else
50
- version = ""
51
- end
39
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
52
40
 
53
41
  rdoc.rdoc_dir = 'rdoc'
54
42
  rdoc.title = "pandoc-ruby #{version}"
55
43
  rdoc.rdoc_files.include('README*')
56
44
  rdoc.rdoc_files.include('lib/**/*.rb')
57
- end
45
+ end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.0
1
+ 0.6.0
@@ -11,17 +11,17 @@ class PandocRuby
11
11
  hsmarkdown
12
12
  ]
13
13
 
14
- READERS = {
15
- 'native' => 'pandoc native',
16
- 'json' => 'pandoc JSON',
17
- 'markdown' => 'markdown',
18
- 'rst' => 'reStructuredText',
19
- 'textile' => 'textile',
20
- 'html' => 'HTML',
21
- 'latex' => 'LaTeX',
14
+ READERS = {
15
+ 'native' => 'pandoc native',
16
+ 'json' => 'pandoc JSON',
17
+ 'markdown' => 'markdown',
18
+ 'rst' => 'reStructuredText',
19
+ 'textile' => 'textile',
20
+ 'html' => 'HTML',
21
+ 'latex' => 'LaTeX',
22
22
  }
23
23
 
24
- WRITERS = {
24
+ WRITERS = {
25
25
  'native' => 'pandoc native',
26
26
  'json' => 'pandoc JSON',
27
27
  'html' => 'HTML',
@@ -5,19 +5,21 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "pandoc-ruby"
8
- s.version = "0.5.0"
8
+ s.version = "0.6.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 = "2012-04-01"
12
+ s.date = "2012-11-01"
13
13
  s.description = "Ruby wrapper for Pandoc"
14
- s.email = "wmelody@gmail.com"
14
+ s.email = "hi@williammelody.com"
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE",
17
17
  "README.markdown"
18
18
  ]
19
19
  s.files = [
20
20
  ".document",
21
+ "Gemfile",
22
+ "Gemfile.lock",
21
23
  "LICENSE",
22
24
  "README.markdown",
23
25
  "Rakefile",
@@ -27,28 +29,35 @@ Gem::Specification.new do |s|
27
29
  "test/benchmark.rb",
28
30
  "test/files/benchmark.txt",
29
31
  "test/files/test.md",
32
+ "test/helper.rb",
30
33
  "test/test_conversions.rb",
31
- "test/test_helper.rb",
32
34
  "test/test_pandoc-ruby.rb"
33
35
  ]
34
- s.homepage = "http://rdoc.info/projects/alphabetum/pandoc-ruby"
36
+ s.homepage = "http://github.com/alphabetum/pandoc-ruby"
37
+ s.licenses = ["MIT"]
35
38
  s.require_paths = ["lib"]
36
- s.rubygems_version = "1.8.10"
39
+ s.rubygems_version = "1.8.24"
37
40
  s.summary = "PandocRuby"
38
41
 
39
42
  if s.respond_to? :specification_version then
40
43
  s.specification_version = 3
41
44
 
42
45
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
43
- s.add_development_dependency(%q<shoulda>, [">= 0"])
46
+ s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
44
47
  s.add_development_dependency(%q<mocha>, [">= 0"])
48
+ s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
49
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
45
50
  else
46
- s.add_dependency(%q<shoulda>, [">= 0"])
51
+ s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
47
52
  s.add_dependency(%q<mocha>, [">= 0"])
53
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
54
+ s.add_dependency(%q<shoulda>, [">= 0"])
48
55
  end
49
56
  else
50
- s.add_dependency(%q<shoulda>, [">= 0"])
57
+ s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
51
58
  s.add_dependency(%q<mocha>, [">= 0"])
59
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
60
+ s.add_dependency(%q<shoulda>, [">= 0"])
52
61
  end
53
62
  end
54
63
 
@@ -1,4 +1,12 @@
1
1
  require 'rubygems'
2
+ require 'bundler'
3
+ begin
4
+ Bundler.setup(:default, :development)
5
+ rescue Bundler::BundlerError => e
6
+ $stderr.puts e.message
7
+ $stderr.puts "Run `bundle install` to install missing gems"
8
+ exit e.status_code
9
+ end
2
10
  require 'test/unit'
3
11
  require 'shoulda'
4
12
  require 'mocha'
@@ -1,4 +1,4 @@
1
- require 'test_helper'
1
+ require 'helper'
2
2
 
3
3
  class TestConversions < Test::Unit::TestCase
4
4
 
@@ -1,4 +1,4 @@
1
- require 'test_helper'
1
+ require 'helper'
2
2
 
3
3
  class TestPandocRuby < Test::Unit::TestCase
4
4
 
@@ -53,7 +53,7 @@ class TestPandocRuby < Test::Unit::TestCase
53
53
  }, 'no-wrap')
54
54
  converter \
55
55
  .expects(:execute) \
56
- .with('pandoc -s --to=rst -f markdown --no-wrap') \
56
+ .with('pandoc -s -f markdown --to=rst --no-wrap') \
57
57
  .returns(true)
58
58
  assert converter.convert
59
59
  end
@@ -62,7 +62,7 @@ class TestPandocRuby < Test::Unit::TestCase
62
62
  converter = PandocRuby.new(@file)
63
63
  converter \
64
64
  .expects(:execute) \
65
- .with('pandoc -s --to=rst -f markdown --no-wrap') \
65
+ .with('pandoc -s -f markdown --to=rst --no-wrap') \
66
66
  .returns(true)
67
67
  assert converter.convert(:s, {:f => :markdown, :to => :rst}, 'no-wrap')
68
68
  end
metadata CHANGED
@@ -1,61 +1,91 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: pandoc-ruby
3
- version: !ruby/object:Gem::Version
4
- hash: 11
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.6.0
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 5
9
- - 0
10
- version: 0.5.0
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - William Melody
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-04-01 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- name: shoulda
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
12
+ date: 2012-11-01 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: jeweler
16
+ requirement: !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 3
29
- segments:
30
- - 0
31
- version: "0"
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 1.8.4
32
22
  type: :development
33
- version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 1.8.4
30
+ - !ruby/object:Gem::Dependency
35
31
  name: mocha
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :development
36
39
  prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
40
+ version_requirements: !ruby/object:Gem::Requirement
38
41
  none: false
39
- requirements:
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- hash: 3
43
- segments:
44
- - 0
45
- version: "0"
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: rdoc
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: '3.12'
46
54
  type: :development
47
- version_requirements: *id002
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '3.12'
62
+ - !ruby/object:Gem::Dependency
63
+ name: shoulda
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
48
78
  description: Ruby wrapper for Pandoc
49
- email: wmelody@gmail.com
79
+ email: hi@williammelody.com
50
80
  executables: []
51
-
52
81
  extensions: []
53
-
54
- extra_rdoc_files:
82
+ extra_rdoc_files:
55
83
  - LICENSE
56
84
  - README.markdown
57
- files:
85
+ files:
58
86
  - .document
87
+ - Gemfile
88
+ - Gemfile.lock
59
89
  - LICENSE
60
90
  - README.markdown
61
91
  - Rakefile
@@ -65,41 +95,35 @@ files:
65
95
  - test/benchmark.rb
66
96
  - test/files/benchmark.txt
67
97
  - test/files/test.md
98
+ - test/helper.rb
68
99
  - test/test_conversions.rb
69
- - test/test_helper.rb
70
100
  - test/test_pandoc-ruby.rb
71
- homepage: http://rdoc.info/projects/alphabetum/pandoc-ruby
72
- licenses: []
73
-
101
+ homepage: http://github.com/alphabetum/pandoc-ruby
102
+ licenses:
103
+ - MIT
74
104
  post_install_message:
75
105
  rdoc_options: []
76
-
77
- require_paths:
106
+ require_paths:
78
107
  - lib
79
- required_ruby_version: !ruby/object:Gem::Requirement
108
+ required_ruby_version: !ruby/object:Gem::Requirement
80
109
  none: false
81
- requirements:
82
- - - ">="
83
- - !ruby/object:Gem::Version
84
- hash: 3
85
- segments:
110
+ requirements:
111
+ - - ! '>='
112
+ - !ruby/object:Gem::Version
113
+ version: '0'
114
+ segments:
86
115
  - 0
87
- version: "0"
88
- required_rubygems_version: !ruby/object:Gem::Requirement
116
+ hash: 2560706058636642411
117
+ required_rubygems_version: !ruby/object:Gem::Requirement
89
118
  none: false
90
- requirements:
91
- - - ">="
92
- - !ruby/object:Gem::Version
93
- hash: 3
94
- segments:
95
- - 0
96
- version: "0"
119
+ requirements:
120
+ - - ! '>='
121
+ - !ruby/object:Gem::Version
122
+ version: '0'
97
123
  requirements: []
98
-
99
124
  rubyforge_project:
100
- rubygems_version: 1.8.10
125
+ rubygems_version: 1.8.24
101
126
  signing_key:
102
127
  specification_version: 3
103
128
  summary: PandocRuby
104
129
  test_files: []
105
-