spiffy 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/spiffy +4 -4
  3. data/lib/spiffy.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a98634a6d2e36a063cdb530761470c10d96af17c
4
- data.tar.gz: 1005f0d72d78f30b69d0a4dfe87f4fa7d5fe1899
3
+ metadata.gz: 8fd7207321a4862e5d721ceec8c5f8a5da9aee23
4
+ data.tar.gz: 5c50cbdc02cb7a5e4530d04069578808a5908d0d
5
5
  SHA512:
6
- metadata.gz: b02bfba964ba03a1cdb148a36dd75e63e5f1c054a0a0ebda6a6dfe1cd76ac0f3da8196d52a926de455089b06f5ea24b299f734d7ee4b924fb7273b2d22fa60a5
7
- data.tar.gz: aa530aac3a0ccbfdcf3bdfa2a3d9ca09a1928d7aedc78ff8d3880cc8a568414dd329fba0551ec51c11e69d5eb04873a6b1f10cb4c83d463b25dc04450da58304
6
+ metadata.gz: b946ec0af3015da987bc908e55cf2a0cd608780943fa045b0872c8143958c76d25f88253627d2a184a25c7d7f21df1b8488f6a30bd5fcd84128cff1f1cf7703a
7
+ data.tar.gz: ea2cb7e0be61583c3be582aa82a22fbaa8bae14aa87988c65f5fdd5b4dbfaae37c97fed7a80a02706e1476a0362cc91f126721b3da51a997dc44cf9f63a9ca71
data/bin/spiffy CHANGED
@@ -56,7 +56,7 @@ case
56
56
  when ARGV.any?
57
57
  warn "Ignoring .spiffy.yml as arguments provided." if has_dot_file
58
58
  sets = ARGV.map do |arg|
59
- { "markdown_files" => [arg] }.merge(options)
59
+ { "markdown_files" => [arg] }
60
60
  end
61
61
  when has_dot_file
62
62
  sets = YAML.load_file(DOT_FILE)
@@ -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"],
76
- template_file: set["template_file"],
77
- pdf: set["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.8"
7
+ VERSION = "0.0.9"
8
8
 
9
9
  def self.markup_to_html(markup_file, css_file: nil, template_file: nil, pdf: false)
10
10
  markup_file_name = File.basename(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.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leigh McCulloch