prawn-fillform 0.0.18 → 0.0.19

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 2fd8569a30534f119b6ab8b62a38aa8923c4234c
4
+ data.tar.gz: 6edafae6e58c8226cdb318690140a8a54221e852
5
+ SHA512:
6
+ metadata.gz: dfb836ad7abbffef0b7d47cba49c685f90581dbf4d02a0754a762f2550eb910152f7abb67fb665463549cf3be7dd75edfca751cf0b92387ff69a304b4cdf87c8
7
+ data.tar.gz: c8d8420121c1e57bfead121479d36bdfc496233318176759f1d56f21b1b9a723e76a06b30d2b575751e625d79111fb4946c1a01d7cab89bd0baca9b9ca88d21f
data/.gitignore CHANGED
@@ -2,3 +2,4 @@
2
2
  .bundle
3
3
  Gemfile.lock
4
4
  pkg/*
5
+ data/output.pdf
data/examples/main.rb CHANGED
@@ -4,7 +4,6 @@
4
4
  $LOAD_PATH << File.expand_path('../../lib/', __FILE__)
5
5
 
6
6
  require 'prawn'
7
- require 'active_support/all'
8
7
  require 'prawn-fillform'
9
8
 
10
9
  data = {}
@@ -1,7 +1,7 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module Prawn
3
3
  module Fillform
4
- VERSION = "0.0.18"
4
+ VERSION = "0.0.19"
5
5
  end
6
6
  end
7
7
 
@@ -1,7 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  require 'prawn-fillform/version'
3
3
  require 'open-uri'
4
- require 'active_support/all'
5
4
 
6
5
  OpenURI::Buffer.send :remove_const, 'StringMax' if OpenURI::Buffer.const_defined?('StringMax')
7
6
  OpenURI::Buffer.const_set 'StringMax', 0
@@ -221,9 +220,10 @@ module Prawn
221
220
  number = page.to_s.split("_").last.to_i
222
221
  go_to_page(number)
223
222
 
224
- field_hash = data[page].try(:[], field.name) || data[field.name]
225
-
226
- value = field_hash.fetch(:value) rescue nil
223
+ value = data[page][field.name].fetch(:value) rescue nil
224
+ if value.nil?
225
+ value = data[field.name].fetch(:value) rescue nil
226
+ end
227
227
  options = field_hash.fetch(:options) rescue nil
228
228
  options ||= {}
229
229
 
@@ -18,7 +18,6 @@ Gem::Specification.new do |s|
18
18
  s.require_paths = ["lib"]
19
19
 
20
20
  s.add_dependency "prawn"
21
- s.add_dependency "activesupport"
22
21
 
23
22
  # specify any dependencies here; for example:
24
23
  # s.add_development_dependency "rspec"
metadata CHANGED
@@ -1,46 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prawn-fillform
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.18
5
- prerelease:
4
+ version: 0.0.19
6
5
  platform: ruby
7
6
  authors:
8
7
  - Maurice Hadamczyk
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-01-26 00:00:00.000000000 Z
11
+ date: 2013-03-05 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: prawn
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
30
- - !ruby/object:Gem::Dependency
31
- name: activesupport
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ! '>='
36
- - !ruby/object:Gem::Version
37
- version: '0'
38
- type: :runtime
39
- prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
24
+ - - '>='
44
25
  - !ruby/object:Gem::Version
45
26
  version: '0'
46
27
  description:
@@ -63,26 +44,25 @@ files:
63
44
  - prawn-fillform.gemspec
64
45
  homepage: ''
65
46
  licenses: []
47
+ metadata: {}
66
48
  post_install_message:
67
49
  rdoc_options: []
68
50
  require_paths:
69
51
  - lib
70
52
  required_ruby_version: !ruby/object:Gem::Requirement
71
- none: false
72
53
  requirements:
73
- - - ! '>='
54
+ - - '>='
74
55
  - !ruby/object:Gem::Version
75
56
  version: '0'
76
57
  required_rubygems_version: !ruby/object:Gem::Requirement
77
- none: false
78
58
  requirements:
79
- - - ! '>='
59
+ - - '>='
80
60
  - !ruby/object:Gem::Version
81
61
  version: '0'
82
62
  requirements: []
83
63
  rubyforge_project: prawn-fillform
84
- rubygems_version: 1.8.24
64
+ rubygems_version: 2.0.0.rc.2
85
65
  signing_key:
86
- specification_version: 3
66
+ specification_version: 4
87
67
  summary: fill text and images through acroform fields
88
68
  test_files: []