spiffy 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/spiffy.rb +3 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8fd7207321a4862e5d721ceec8c5f8a5da9aee23
4
- data.tar.gz: 5c50cbdc02cb7a5e4530d04069578808a5908d0d
3
+ metadata.gz: 608cb7c72e59533909214fa920c31a48216faef6
4
+ data.tar.gz: 083cfcd76cc421af667681a5cdc66ca96460130c
5
5
  SHA512:
6
- metadata.gz: b946ec0af3015da987bc908e55cf2a0cd608780943fa045b0872c8143958c76d25f88253627d2a184a25c7d7f21df1b8488f6a30bd5fcd84128cff1f1cf7703a
7
- data.tar.gz: ea2cb7e0be61583c3be582aa82a22fbaa8bae14aa87988c65f5fdd5b4dbfaae37c97fed7a80a02706e1476a0362cc91f126721b3da51a997dc44cf9f63a9ca71
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.9"
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
- markup_file_name = File.basename(markup_file, ".*")
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)
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.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leigh McCulloch