pandoc-ruby 0.7.4 → 0.7.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.markdown +1 -1
- data/lib/pandoc-ruby.rb +3 -2
- data/pandoc-ruby.gemspec +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3658e79390d364b65c6bcdc7e4b21ed9c5c9e456
|
4
|
+
data.tar.gz: 05e2821ad3a8add8126c85f29a899b7f1194cb5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c753b5af720e64a66ac89a2630024706ef47cf5e5b922a3d987a2b0e64f0fe9764192568301ccf15aae0da78cd145fdf3b2aaa87413801e9b68e9977bcf75d70
|
7
|
+
data.tar.gz: e61b4db2df1b2c1db386044a22583168b24e5ee0426bd0e6d9fef8e20e94715d1aa3cb0e593de768c741d49f1cc75ccb03a3462f41f7da9e91079ada5da56c08
|
data/README.markdown
CHANGED
@@ -91,4 +91,4 @@ If you are trying to generate a standalone file with full file headers rather th
|
|
91
91
|
|
92
92
|
## Copyright
|
93
93
|
|
94
|
-
Copyright (c) 2009
|
94
|
+
Copyright (c) 2009-∞ William Melody · => [@alphabetum](http://twitter.com/alphabetum)
|
data/lib/pandoc-ruby.rb
CHANGED
@@ -160,6 +160,7 @@ class PandocRuby
|
|
160
160
|
# converted string.
|
161
161
|
#
|
162
162
|
# Example:
|
163
|
+
#
|
163
164
|
# PandocRuby.new("# text").to_html
|
164
165
|
# # => "<h1 id=\"text\">text</h1>\n"
|
165
166
|
WRITERS.each_key do |w|
|
@@ -236,6 +237,7 @@ private
|
|
236
237
|
# command line options. If the option has an argument, it is also included.
|
237
238
|
def create_option(flag, argument = nil)
|
238
239
|
return if !flag
|
240
|
+
flag = flag.to_s
|
239
241
|
set_pandoc_ruby_options(flag, argument)
|
240
242
|
if !!argument
|
241
243
|
"#{format_flag(flag)} #{argument}"
|
@@ -257,8 +259,7 @@ private
|
|
257
259
|
# Takes an option and optional argument and uses them to set any flags
|
258
260
|
# used by PandocRuby.
|
259
261
|
def set_pandoc_ruby_options(flag, argument = nil)
|
260
|
-
|
261
|
-
when :t, :to
|
262
|
+
if flag == 't' || flag == 'to'
|
262
263
|
self.writer = argument.to_s
|
263
264
|
self.binary_output = true if BINARY_WRITERS.keys.include?(self.writer)
|
264
265
|
end
|
data/pandoc-ruby.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "pandoc-ruby"
|
8
|
-
s.version = "0.7.
|
8
|
+
s.version = "0.7.5"
|
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 = "2013-
|
12
|
+
s.date = "2013-08-20"
|
13
13
|
s.description = "Ruby wrapper for Pandoc"
|
14
14
|
s.email = "hi@williammelody.com"
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pandoc-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Melody
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mocha
|