spiffy 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/spiffy +9 -9
- data/lib/spiffy.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95014cece307e5ef5ef201154144e025a62e3373
|
4
|
+
data.tar.gz: d328991f9e45664517bbbc34e3ca3705ba03a50f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
16
|
-
|
17
|
-
|
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[
|
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[
|
31
|
+
options[:template_file] = template
|
32
32
|
end
|
33
33
|
|
34
34
|
opt.on("-p", "--pdf", "Output PDF files (default: off)") do
|
35
|
-
options[
|
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[
|
76
|
-
template_file: set["template_file"] || options[
|
77
|
-
pdf: set["pdf"] || options[
|
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
|
data/lib/spiffy.rb
CHANGED
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.
|
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
|
94
|
-
|
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
|
128
|
+
summary: A markdown to HTML & PDF converter.
|
129
129
|
test_files: []
|