podoff 1.2.1 → 1.2.2
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.
- data/CHANGELOG.txt +5 -0
- data/README.md +5 -1
- data/lib/podoff.rb +2 -3
- metadata +2 -2
data/CHANGELOG.txt
CHANGED
data/README.md
CHANGED
@@ -42,11 +42,15 @@ d.write('d3.pdf')
|
|
42
42
|
|
43
43
|
For more about the podoff "api", read ["how I use podoff"](#how-i-use-podoff).
|
44
44
|
|
45
|
-
If you're looking for serious libraries, look at
|
45
|
+
If you're looking for serious libraries, look at:
|
46
46
|
|
47
47
|
* https://github.com/payrollhero/pdf_tempura
|
48
48
|
* https://github.com/prawnpdf/prawn-templates
|
49
49
|
|
50
|
+
And more recently:
|
51
|
+
|
52
|
+
* https://github.com/gettalong/hexapdf
|
53
|
+
|
50
54
|
|
51
55
|
## preparing documents for use with podoff
|
52
56
|
|
data/lib/podoff.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
|
2
1
|
#--
|
3
2
|
# Copyright (c) 2015-2017, John Mettraux, jmettraux@gmail.com
|
4
3
|
#
|
@@ -30,7 +29,7 @@ require 'stringio'
|
|
30
29
|
|
31
30
|
module Podoff
|
32
31
|
|
33
|
-
VERSION = '1.2.
|
32
|
+
VERSION = '1.2.2'
|
34
33
|
|
35
34
|
def self.load(path, encoding)
|
36
35
|
|
@@ -47,7 +46,7 @@ module Podoff
|
|
47
46
|
def self.load(path, encoding)
|
48
47
|
|
49
48
|
Podoff::Document.new(
|
50
|
-
File.open(path, '
|
49
|
+
File.open(path, 'rb:' + encoding) { |f| f.read },
|
51
50
|
encoding
|
52
51
|
)
|
53
52
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: podoff
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-02-
|
12
|
+
date: 2017-02-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|