podoff 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/CHANGELOG.txt +5 -0
  2. data/README.md +5 -1
  3. data/lib/podoff.rb +2 -3
  4. metadata +2 -2
data/CHANGELOG.txt CHANGED
@@ -2,6 +2,11 @@
2
2
  = podoff CHANGELOG.txt
3
3
 
4
4
 
5
+ == podoff 1.2.2 released 2017-02-13
6
+
7
+ - Use rb: + enc instead of just r: + enc, should fix issues on Windows
8
+
9
+
5
10
  == podoff 1.2.1 released 2017-02-01
6
11
 
7
12
  - Fail with ArgumentError when pdf not "unpacked"
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.1'
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, 'r:' + encoding) { |f| f.read },
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.1
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-01 00:00:00.000000000 Z
12
+ date: 2017-02-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec