poppler 3.2.4 → 3.2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/poppler/document.rb +7 -4
  3. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e3804957d6db0323aa7484ac2d6f90940e71b06caed9da0bf207c18ef8fe9d1b
4
- data.tar.gz: 503ce86cccfc4191bedb7f9afdc4324641ef51f2feabecffc5bbbeee3199717d
3
+ metadata.gz: 368be3bb7f388be1f3722b11ed639451542e1bb7864b1ad40797fee49ffd58e7
4
+ data.tar.gz: 165be1c7f9e102211a12f9c072616c16899b3c380f2e8242083d72038fd82a6a
5
5
  SHA512:
6
- metadata.gz: a7c0f20dff12de151c0954e844346b8b3562c78d10b1e5616f06c179135d1120e3508a265cb3bfb892f7ada45a25f11ab0e8f15bbc40184c3aad66bbdaa1cbb8
7
- data.tar.gz: 90cf9a4562338c0956ca1465e98e880fb5008de1a939afc6b4b2d1b31f6abe127e3c87c8321e434c57d7e92a8af4e77874b2a15cb3b5939d4694a4ca6c8110d6
6
+ metadata.gz: 8e07975550cdfe2585b0dfc31222e70683e7f1f94254c856dc907dc71652bfc43fba117aa9458d6c9771089c771ab4d473ba00eafe9c89104640d7d96dc9b003
7
+ data.tar.gz: 50021ac32a4bac53ad4f60a0b090dec47046481cbc6547ebe72583ce12ffd58f70af8ef478946055151cfc9cc4959d8b5182789f40930e0593bbecd733b1f799
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2017 Ruby-GNOME2 Project Team
1
+ # Copyright (C) 2017-2018 Ruby-GNOME2 Project Team
2
2
  #
3
3
  # This library is free software; you can redistribute it and/or
4
4
  # modify it under the terms of the GNU Lesser General Public
@@ -14,6 +14,8 @@
14
14
  # License along with this library; if not, write to the Free Software
15
15
  # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
+ require "tempfile"
18
+
17
19
  module Poppler
18
20
  class Document
19
21
  include Enumerable
@@ -53,9 +55,10 @@ module Poppler
53
55
  # TODO: Enable the following:
54
56
  # initialize_new_from_data(data, password)
55
57
 
56
- @bytes = GLib::Bytes.new(data)
57
- @stream = Gio::MemoryInputStream.new(@bytes)
58
- initialize_new_from_stream(@stream, data.bytesize, password)
58
+ @file = Tempfile.new(["poppler", ".pdf"])
59
+ @file.write(data)
60
+ @file.close
61
+ initialize_new_from_file(ensure_uri(@file.path), password)
59
62
  elsif uri
60
63
  initialize_new_from_file(uri, password)
61
64
  elsif path
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: poppler
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.4
4
+ version: 3.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Ruby-GNOME2 Project Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-09 00:00:00.000000000 Z
11
+ date: 2018-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cairo-gobject
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.2.4
19
+ version: 3.2.5
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 3.2.4
26
+ version: 3.2.5
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: gio2
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 3.2.4
33
+ version: 3.2.5
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 3.2.4
40
+ version: 3.2.5
41
41
  description: Ruby/Poppler is a Ruby binding of poppler-glib.
42
42
  email: ruby-gnome2-devel-en@lists.sourceforge.net
43
43
  executables: []