spiffy 0.0.11 → 0.0.12

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 (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/spiffy +9 -9
  3. data/lib/spiffy.rb +1 -1
  4. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b7b8d7e7ec06027ceae731bbdcc67090d3e12a22
4
- data.tar.gz: 407cc67f1df5aadac4599150bd4e69d9ca83685b
3
+ metadata.gz: 95014cece307e5ef5ef201154144e025a62e3373
4
+ data.tar.gz: d328991f9e45664517bbbc34e3ca3705ba03a50f
5
5
  SHA512:
6
- metadata.gz: a17b1a079a7b19e7d1890143c2a4eb39c495f717ee89d33e031dcb0e9411feb2ba67ed0f95fee367052cb8a335fdc1ab277e519cac40849ab1f0b1c32a188d1e
7
- data.tar.gz: f3a4d731c91f4b2d7673df2e9b76e82076f29dcd72d83c92211919ef99e8ce44f3e1b57bdd24007217dccb132eb10a531fba09434ceb1515621d1c3005e7b378
6
+ metadata.gz: 609a79014b3d97480daa20109cf63448a8368d3d44795432bcede129c58d5fe3153e70bf3893e1da4e20795b0c7f1c3fb8ec525acc5348b95d27f67f150abcbc
7
+ data.tar.gz: f27fd7e4eba4bf825d529627addba1ba17cb35414205409d31e983d3df252ac354ffab9813e8f94e6a7b51b3e99d650d1cd09076d4c832318235e3912b0112fb
data/bin/spiffy CHANGED
@@ -12,9 +12,9 @@ DEFAULT_CSS_FILE = File.join(DEFAULT_DIR, "default.css")
12
12
  DOT_FILE = ".spiffy.yml"
13
13
 
14
14
  options = {
15
- "template" => DEFAULT_TEMPLATE_FILE,
16
- "css" => DEFAULT_CSS_FILE,
17
- "pdf" => false
15
+ :template_file => DEFAULT_TEMPLATE_FILE,
16
+ :css_file => DEFAULT_CSS_FILE,
17
+ :pdf => false
18
18
  }
19
19
 
20
20
  opt_parser = OptionParser.new do |opt|
@@ -24,15 +24,15 @@ opt_parser = OptionParser.new do |opt|
24
24
  opt.separator("Options")
25
25
 
26
26
  opt.on("-c", "--css [css]", "CSS to include inline in the HTML file output") do |css|
27
- options["css_file"] = css
27
+ options[:css_file] = css
28
28
  end
29
29
 
30
30
  opt.on("-t", "--template [template]", "Template to wrap the resulting HTML") do |template|
31
- options["template_file"] = template
31
+ options[:template_file] = template
32
32
  end
33
33
 
34
34
  opt.on("-p", "--pdf", "Output PDF files (default: off)") do
35
- options["pdf"] = true
35
+ options[:pdf] = true
36
36
  end
37
37
 
38
38
  opt.on("-h", "--help", "This usage outline.") do
@@ -72,9 +72,9 @@ sets.each do |set|
72
72
  Dir[input].each do |file|
73
73
  print "Converting #{file}..."
74
74
  Spiffy.markup_to_html(file,
75
- css_file: set["css_file"] || options["css_file"],
76
- template_file: set["template_file"] || options["template_file"],
77
- pdf: set["pdf"] || options["pdf"])
75
+ css_file: set["css_file"] || options[:css_file],
76
+ template_file: set["template_file"] || options[:template_file],
77
+ pdf: set["pdf"] || options[:pdf])
78
78
  puts "done"
79
79
  end
80
80
  end
@@ -4,7 +4,7 @@ require "haml"
4
4
  require "pdfkit"
5
5
 
6
6
  module Spiffy
7
- VERSION = "0.0.11"
7
+ VERSION = "0.0.12"
8
8
 
9
9
  def self.markup_to_html(markup_file, css_file: nil, template_file: nil, pdf: false)
10
10
  markup_file_ext = File.extname(markup_file)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spiffy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leigh McCulloch
@@ -90,8 +90,8 @@ dependencies:
90
90
  - - ">="
91
91
  - !ruby/object:Gem::Version
92
92
  version: 4.0.6
93
- description: A markup to HTML & PDF converter. Supports all markups supported by Github,
94
- including markdown, rdoc, etc.
93
+ description: A markdown to HTML & PDF converter, with simple ERB & HAML templating
94
+ and CSS styling.
95
95
  email: leigh@mcchouse.com
96
96
  executables:
97
97
  - spiffy
@@ -125,5 +125,5 @@ rubyforge_project:
125
125
  rubygems_version: 2.4.3
126
126
  signing_key:
127
127
  specification_version: 4
128
- summary: A markup to HTML & PDF converter.
128
+ summary: A markdown to HTML & PDF converter.
129
129
  test_files: []