poppler 3.4.1 → 3.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/test/poppler-test-utils.rb +0 -4
- data/test/test-document.rb +18 -18
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6dbae1e781cc6683d6137a04d10e444f15b153b119d107651cf6363dd26860d5
|
4
|
+
data.tar.gz: 47306cf67eacae6857ea5b49ec4d2a41bd09698b78dbc15d124aed8cd749f97a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13dbdbd1b216a3402fec7e23fda39b0ee8de8d14e995532c4a0dbd8db93983eda9ac710dd3bbe7f0e05f47f88d3234cd8696432f0a477906dff1fcee527620d6
|
7
|
+
data.tar.gz: 2ea15d4fe3237fa1cf213f798d07a73448845ccbd6a558e778167a9ac0c1005e2a97e84be626dfcdf53e39eebc2f25b1a28ca07f590f843a14a1b82c22e1a370
|
data/test/poppler-test-utils.rb
CHANGED
data/test/test-document.rb
CHANGED
@@ -42,27 +42,27 @@ class TestDocument < Test::Unit::TestCase
|
|
42
42
|
end
|
43
43
|
|
44
44
|
def test_save
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
45
|
+
Dir.mktmpdir do |tmp_dir|
|
46
|
+
saved_pdf = File.join(tmp_dir, "saved.pdf")
|
47
|
+
document = Poppler::Document.new(text_field_pdf)
|
48
|
+
find_first_text_field(document).text = "XXX"
|
49
|
+
document.save(saved_pdf)
|
50
|
+
reread_document = Poppler::Document.new(saved_pdf)
|
51
|
+
assert_equal("XXX", find_first_text_field(reread_document).text)
|
52
|
+
end
|
53
53
|
end
|
54
54
|
|
55
55
|
def test_save_a_copy
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
56
|
+
Dir.mktmpdir do |tmp_dir|
|
57
|
+
copied_pdf = File.join(tmp_dir, "copied.pdf")
|
58
|
+
document = Poppler::Document.new(text_field_pdf)
|
59
|
+
first_text_field = find_first_text_field(document)
|
60
|
+
default_text = first_text_field.text
|
61
|
+
first_text_field.text = "XXX"
|
62
|
+
document.save_a_copy(copied_pdf)
|
63
|
+
reread_document = Poppler::Document.new(copied_pdf)
|
64
|
+
assert_equal(default_text, find_first_text_field(reread_document).text)
|
65
|
+
end
|
66
66
|
end
|
67
67
|
|
68
68
|
def test_each
|
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.4.
|
4
|
+
version: 3.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Ruby-GNOME Project Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-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.4.
|
19
|
+
version: 3.4.2
|
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.4.
|
26
|
+
version: 3.4.2
|
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.4.
|
33
|
+
version: 3.4.2
|
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.4.
|
40
|
+
version: 3.4.2
|
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: []
|
@@ -107,8 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
107
|
- !ruby/object:Gem::Version
|
108
108
|
version: '0'
|
109
109
|
requirements: []
|
110
|
-
|
111
|
-
rubygems_version: 2.7.6.2
|
110
|
+
rubygems_version: 3.2.0.pre1
|
112
111
|
signing_key:
|
113
112
|
specification_version: 4
|
114
113
|
summary: Ruby/Poppler is a Ruby binding of poppler-glib.
|