podoff 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Makefile +1 -1
- data/lib/podoff.rb +5 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ad420a8e70f2922fb210c790029198637f8f0e02781b130085b69c4ac74832d
|
4
|
+
data.tar.gz: 23830be1137ebae7502a3fecd2d9c06c432564d4d59be81ffbc3c2182701cb16
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e260f8e869ea2a6cbb49e4dbfacb106b429ad8ea30b8d8362dadcc6f5e80708060ba3f470deb7f7f2121b094bb4b28b6f8247e434ccac9055e669475b0f7542
|
7
|
+
data.tar.gz: 76b2db5f127019578b4f9e1f07a8b9060619b7c932a5790b99493ba225301e9953c22405df73d0fdac52a14989285a9fd40debf50dd3f6ec4ccaca1b79606d83
|
data/CHANGELOG.md
CHANGED
data/Makefile
CHANGED
data/lib/podoff.rb
CHANGED
@@ -6,7 +6,7 @@ require 'stringio'
|
|
6
6
|
|
7
7
|
module Podoff
|
8
8
|
|
9
|
-
VERSION = '1.
|
9
|
+
VERSION = '1.4.0'
|
10
10
|
|
11
11
|
def self.load(path, encoding)
|
12
12
|
|
@@ -494,13 +494,15 @@ module Podoff
|
|
494
494
|
class Stream
|
495
495
|
|
496
496
|
attr_accessor :obj
|
497
|
+
attr_accessor :deflate
|
497
498
|
|
498
|
-
def initialize(obj=nil)
|
499
|
+
def initialize(obj=nil, opts={})
|
499
500
|
|
500
501
|
@obj = obj
|
501
502
|
@font = nil
|
502
503
|
@color = nil
|
503
504
|
@content = StringIO.new
|
505
|
+
@deflate = opts.has_key?(:deflate) ? opts[:deflate] : true
|
504
506
|
end
|
505
507
|
|
506
508
|
def tf(font_name, font_size)
|
@@ -588,7 +590,7 @@ module Podoff
|
|
588
590
|
|
589
591
|
s = @content.string
|
590
592
|
f = ''
|
591
|
-
if s.length > 98
|
593
|
+
if @deflate && s.length > 98
|
592
594
|
f = ' /Filter /FlateDecode'
|
593
595
|
s = Zlib::Deflate.deflate(s)
|
594
596
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: podoff
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Mettraux
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|