spiffy 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/spiffy.rb +3 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 608cb7c72e59533909214fa920c31a48216faef6
|
4
|
+
data.tar.gz: 083cfcd76cc421af667681a5cdc66ca96460130c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd2e4379e76aee4a38b791c2203b5125ee8975ccfa23d709efcc5d5c06207ab6ba7ba16f354269707b673e5905b63cf979dee3a47cacd5bbfc6aceddfad5e02d
|
7
|
+
data.tar.gz: fc5620dc219108fb5c24e6e8f3a2cf0eeb086485492840e2bf6d3ed5b6a00081daf8d5de65889161d6c8a3b1c49bff2b8b467d264eb4fc296ec9f9b42c64dda2
|
data/lib/spiffy.rb
CHANGED
@@ -4,10 +4,11 @@ require "haml"
|
|
4
4
|
require "pdfkit"
|
5
5
|
|
6
6
|
module Spiffy
|
7
|
-
VERSION = "0.0.
|
7
|
+
VERSION = "0.0.10"
|
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)
|
11
|
+
markup_file_name = markup_file[0..-markup_file_ext.length]
|
11
12
|
markup = File.open(markup_file, "r:UTF-8", &:read)
|
12
13
|
|
13
14
|
html = Redcarpet::Markdown.new(Redcarpet::Render::HTML, tables: true).render(markup)
|