pdbook 0.1.5 → 0.1.6

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 (3) hide show
  1. data/lib/pdbook.rb +1 -1
  2. data/lib/pdbook/converter.rb +3 -3
  3. metadata +1 -1
@@ -4,5 +4,5 @@ $:.unshift(File.dirname(__FILE__)) unless
4
4
  require 'pdbook/converter'
5
5
 
6
6
  module Pdbook
7
- VERSION = '0.1.5'
7
+ VERSION = '0.1.6'
8
8
  end
@@ -15,9 +15,9 @@ module Pdbook
15
15
  @font = font
16
16
  @options = options
17
17
  @options[:page_size] = ENV["page_size"] if ENV["page_size"]
18
- @options[:margin] = ENV["margin"] if ENV["margin"]
19
- @options[:font_size] = ENV["font_size"].to_i if ENV["font_size"]
20
- @options[:spacing] = ENV["spacing"].to_i if ENV["spacing"]
18
+ @options[:margin] = (ENV["margin"].to_f * 1.in) if ENV["margin"]
19
+ @options[:font_size] = ENV["font_size"].to_f if ENV["font_size"]
20
+ @options[:spacing] = ENV["spacing"].to_f if ENV["spacing"]
21
21
 
22
22
  @pdb = Palm::PDB.new(input)
23
23
  @log = Logger.new($STDOUT)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdbook
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francis Chong