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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4429b5c3c8d35a76730c767561afbe25ea4c8c58a22dfcb1e636b0252fa2377d
4
- data.tar.gz: eda30f5543466be4bd32adc689475191926ff4b9cbd9cd120734ce7bed15e505
3
+ metadata.gz: 6dbae1e781cc6683d6137a04d10e444f15b153b119d107651cf6363dd26860d5
4
+ data.tar.gz: 47306cf67eacae6857ea5b49ec4d2a41bd09698b78dbc15d124aed8cd749f97a
5
5
  SHA512:
6
- metadata.gz: 4d46e3b0074dfc8c298c5be7c0f9fbbb9bd4ad057c74c9fb3553cc11754b3ececd3159ccf405042b8d49523bdf0ab99d05093f53b1f1b912a36a64bb40f6a910
7
- data.tar.gz: 9824317dccbcf47338eaa63207e2e2d294d8d192332ddc115a4c16ba9931dac6b5593ccd08dc647f701c74903450faef37381b84d7ba56c22dc485af16535db4
6
+ metadata.gz: 13dbdbd1b216a3402fec7e23fda39b0ee8de8d14e995532c4a0dbd8db93983eda9ac710dd3bbe7f0e05f47f88d3234cd8696432f0a477906dff1fcee527620d6
7
+ data.tar.gz: 2ea15d4fe3237fa1cf213f798d07a73448845ccbd6a558e778167a9ac0c1005e2a97e84be626dfcdf53e39eebc2f25b1a28ca07f590f843a14a1b82c22e1a370
@@ -19,10 +19,6 @@ module PopplerTestUtils
19
19
  File.join(fixtures_dir, *components)
20
20
  end
21
21
 
22
- def tmp_dir
23
- ensure_dir(File.join(test_dir, "tmp"))
24
- end
25
-
26
22
  def form_pdf
27
23
  fixture_path("form.pdf")
28
24
  end
@@ -42,27 +42,27 @@ class TestDocument < Test::Unit::TestCase
42
42
  end
43
43
 
44
44
  def test_save
45
- saved_pdf = File.join(tmp_dir, "saved.pdf")
46
- FileUtils.rm_f(saved_pdf)
47
-
48
- document = Poppler::Document.new(text_field_pdf)
49
- find_first_text_field(document).text = "XXX"
50
- document.save(saved_pdf)
51
- reread_document = Poppler::Document.new(saved_pdf)
52
- assert_equal("XXX", find_first_text_field(reread_document).text)
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
- copied_pdf = File.join(tmp_dir, "copied.pdf")
57
- FileUtils.rm_f(copied_pdf)
58
-
59
- document = Poppler::Document.new(text_field_pdf)
60
- first_text_field = find_first_text_field(document)
61
- default_text = first_text_field.text
62
- first_text_field.text = "XXX"
63
- document.save_a_copy(copied_pdf)
64
- reread_document = Poppler::Document.new(copied_pdf)
65
- assert_equal(default_text, find_first_text_field(reread_document).text)
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.1
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: 2019-10-16 00:00:00.000000000 Z
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.1
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.1
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.1
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.1
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
- rubyforge_project:
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.