poppler 3.0.5-x64-mingw32 → 3.0.6-x64-mingw32

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
  SHA1:
3
- metadata.gz: 7f258dd2dc6733684ef181c326ed60dc59384a7b
4
- data.tar.gz: c43dbb0ab908a39b216e72fd68020cf2927f1561
3
+ metadata.gz: 013928adec0424c5c2bf76153e95f4129f3d98b6
4
+ data.tar.gz: 5422e7183b7616708fef60c2671db2abea56be4a
5
5
  SHA512:
6
- metadata.gz: 6424de8155a945667b597887241033ef23fb90aac3e5775da8610c7dfd1a4cbbeb02e2b5fd213810f10da283808d9dd20166907415c6837d480104c17e513301
7
- data.tar.gz: 0f9843559abd70765c4639a429c219f16f298ad248e48654d49941c9f1734025618271f0dbd6afbdcfd259aef8fe86e130b5eb89df14fd1a78eb0e06a42e6d56
6
+ metadata.gz: 87a30fc12c6ff49f68738e492340a6642066e3564c3312765e839c4b50aa345fe02b36d56d62da7f2b53c4ac7f855e41a99a524414e6ca8151a840a8b757482f
7
+ data.tar.gz: 86d48b85d4fa5805f9e8a07932d53613821733d45fa303ac95f399146202ad3de8faaa128dd9b781272b6cc462d91815c6699221e073701eb5222974ad99f8dc
Binary file
Binary file
Binary file
@@ -1,4 +1,4 @@
1
- # Copyright(C) 2006-2009 Ruby-GNOME2 Project.
1
+ # Copyright(C) 2006-2015 Ruby-GNOME2 Project.
2
2
  #
3
3
  # This library is free software: you can redistribute it and/or modify
4
4
  # it under the terms of the GNU Lesser General Public License as published by
@@ -34,6 +34,23 @@ module Poppler
34
34
 
35
35
  VERSION = version.split(".").collect {|x| x.to_i}
36
36
 
37
+ module Version
38
+ MAJOR, MINOR, MICRO = BUILD_VERSION
39
+ STRING = "#{MAJOR}.#{MINOR}.#{MICRO}"
40
+
41
+ class << self
42
+ def or_later?(major, minor, micro=nil)
43
+ micro || 0
44
+ version = [
45
+ MAJOR,
46
+ MINOR,
47
+ MICRO,
48
+ ]
49
+ (version <=> [major, minor, micro]) >= 0
50
+ end
51
+ end
52
+ end
53
+
37
54
  class Document
38
55
  private
39
56
  def pdf_data?(data)
@@ -29,4 +29,4 @@ class Test::Unit::TestCase
29
29
  include PopplerTestUtils
30
30
  end
31
31
 
32
- exit Test::Unit::AutoRunner.run(true)
32
+ exit Test::Unit::AutoRunner.run(true, File.join(base_dir, "test"))
@@ -0,0 +1,47 @@
1
+ # Copyright (C) 2015 Ruby-GNOME2 Project Team
2
+ #
3
+ # This library is free software; you can redistribute it and/or
4
+ # modify it under the terms of the GNU Lesser General Public
5
+ # License as published by the Free Software Foundation; either
6
+ # version 2.1 of the License, or (at your option) any later version.
7
+ #
8
+ # This library is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
+ # Lesser General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU Lesser General Public
14
+ # License along with this library; if not, write to the Free Software
15
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
+
17
+ class TestPopplerVersion < Test::Unit::TestCase
18
+ include PopplerTestUtils
19
+
20
+ test "STRING" do
21
+ major = Poppler::Version::MAJOR
22
+ minor = Poppler::Version::MINOR
23
+ micro = Poppler::Version::MICRO
24
+ assert_equal([major, minor, micro].join("."),
25
+ Poppler::Version::STRING)
26
+ end
27
+
28
+ sub_test_case("#or_later?") do
29
+ test "same" do
30
+ assert_true(Poppler::Version.or_later?(Poppler::Version::MAJOR,
31
+ Poppler::Version::MINOR,
32
+ Poppler::Version::MICRO))
33
+ end
34
+
35
+ test "later" do
36
+ assert_true(Poppler::Version.or_later?(Poppler::Version::MAJOR,
37
+ Poppler::Version::MINOR - 1,
38
+ Poppler::Version::MICRO))
39
+ end
40
+
41
+ test "earlier" do
42
+ assert_false(Poppler::Version.or_later?(Poppler::Version::MAJOR,
43
+ Poppler::Version::MINOR + 1,
44
+ Poppler::Version::MICRO))
45
+ end
46
+ end
47
+ end
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.0.5
4
+ version: 3.0.6
5
5
  platform: x64-mingw32
6
6
  authors:
7
7
  - The Ruby-GNOME2 Project Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-22 00:00:00.000000000 Z
11
+ date: 2015-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cairo
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 3.0.5
33
+ version: 3.0.6
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.0.5
40
+ version: 3.0.6
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: []
@@ -92,6 +92,7 @@ files:
92
92
  - test/fixtures/image.png
93
93
  - test/poppler-test-utils.rb
94
94
  - test/run-test.rb
95
+ - test/test-version.rb
95
96
  - test/test_annotation.rb
96
97
  - test/test_color.rb
97
98
  - test/test_constants.rb