pandoc-ruby 0.7.4 → 0.7.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 44c1e1023851d7d32909507bd39cec6c948eacf5
4
- data.tar.gz: 409bcc78e2196c6994278eeae2b2c037a98675a6
3
+ metadata.gz: 3658e79390d364b65c6bcdc7e4b21ed9c5c9e456
4
+ data.tar.gz: 05e2821ad3a8add8126c85f29a899b7f1194cb5c
5
5
  SHA512:
6
- metadata.gz: 2dc36b5c90c9168427830860986c06e03475f7d6b42a31475042a6eed4279376aa1700ff4e06575990ef140de94f89f68363df000f67c458db7711a992da5b92
7
- data.tar.gz: 5b277ba40a835e1fdb1e3eef3608411ecdb8dd2fede008f49fec3d7ea3cf5e2c0c77e94c4c8c9a4c0343b21d5635b836a63b3895e7b3cf417d868f641ea2360a
6
+ metadata.gz: c753b5af720e64a66ac89a2630024706ef47cf5e5b922a3d987a2b0e64f0fe9764192568301ccf15aae0da78cd145fdf3b2aaa87413801e9b68e9977bcf75d70
7
+ data.tar.gz: e61b4db2df1b2c1db386044a22583168b24e5ee0426bd0e6d9fef8e20e94715d1aa3cb0e593de768c741d49f1cc75ccb03a3462f41f7da9e91079ada5da56c08
@@ -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-2012 William Melody · Follow me [@alphabetum](http://twitter.com/alphabetum)
94
+ Copyright (c) 2009-∞ William Melody · => [@alphabetum](http://twitter.com/alphabetum)
@@ -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
- case flag.to_sym
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
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "pandoc-ruby"
8
- s.version = "0.7.4"
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-06-24"
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
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-06-24 00:00:00.000000000 Z
11
+ date: 2013-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mocha