prawn-fillform 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module Prawn
3
3
  module Fillform
4
- VERSION = "0.0.6"
4
+ VERSION = "0.0.7"
5
5
  end
6
6
  end
7
7
 
@@ -167,14 +167,14 @@ module Prawn
167
167
  if value
168
168
  if field.type == :text
169
169
  fill_color options[:font_color] || field.font_color
170
- text_box value, :at => [field.x + 2, field.y - 1],
170
+ text_box value.to_s, :at => [field.x + 2, field.y - 1],
171
171
  :align => options[:align] || field.align,
172
172
  :width => options[:width] || field.width,
173
173
  :height => options[:height] || field.height,
174
174
  :valign => options[:valign] || :center,
175
175
  :size => options[:font_size] || field.font_size
176
176
  elsif field.type == :button
177
- image value, :at => [field.x + 2, field.y - 1],
177
+ image value.to_s, :at => [field.x + 2, field.y - 1],
178
178
  :position => options[:position] || :center,
179
179
  :vposition => options[:vposition] || :center,
180
180
  :fit => options[:fit] || [field.width, field.height]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prawn-fillform
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: