rsvg2 3.0.5-x86-mingw32 → 3.0.6-x86-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: cd02b871c85bd555017ddd586ad6a7ac6f8b0348
4
- data.tar.gz: f14138830f1bc60d31dee2c1a2fff4f8c9f4a93b
3
+ metadata.gz: bae4743807b77b06484488957198dcbad17843fd
4
+ data.tar.gz: 2a4de46a5057f5cb5dcfd0e58ceef6a22a457c10
5
5
  SHA512:
6
- metadata.gz: 4cc1a94d910db72ad1f85fa9eb3264dc39282bcbf11f4d3c1b29662c3061d1b5de719e6f3ee763c074d08b80552f1d64bf7c69d6deb67498e1c68d344bbc3953
7
- data.tar.gz: 912347d8fde9fc46e34bf36eaa4e06745b6b472c399ecce184f899e2a6ad229560baefa14c7a8074d9d4be0713a7c0760f4fd96ded0740ff159bd520a67f65d2
6
+ metadata.gz: 1fe6adceeb551d6b2463aac41704658713f3f02e72e0275d12a0ea198452a41929bc865d6730153377c770814de42ac3b75b39c03a04afd4fe6f47def85ddcac
7
+ data.tar.gz: eedc129f4b0f3d3abe2291cf180cb8948e7d386e56fa6d4494d273fc50402e4dca11636d11a1bcbff69d51c7f8fd425bb8a43f441d5b215e0d0ac47f20433a5c
Binary file
Binary file
Binary file
@@ -78,6 +78,24 @@ module RSVG
78
78
  end
79
79
  end
80
80
  end
81
+
82
+ module Version
83
+ MAJOR, MINOR, MICRO = BUILD_VERSION
84
+ STRING = "#{MAJOR}.#{MINOR}.#{MICRO}"
85
+
86
+ class << self
87
+ def or_later?(major, minor, micro=nil)
88
+ micro || 0
89
+ version = [
90
+ MAJOR,
91
+ MINOR,
92
+ MICRO,
93
+ ]
94
+ (version <=> [major, minor, micro]) >= 0
95
+ end
96
+ end
97
+ end
98
+
81
99
  end
82
100
 
83
101
  module Cairo
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  #
3
- # Copyright (C) 2014 Ruby-GNOME2 Project Team
3
+ # Copyright (C) 2014-2015 Ruby-GNOME2 Project Team
4
4
  #
5
5
  # This library is free software; you can redistribute it and/or
6
6
  # modify it under the terms of the GNU Lesser General Public
@@ -46,4 +46,4 @@ require "rsvg2-test-utils"
46
46
 
47
47
  require "rsvg2"
48
48
 
49
- exit Test::Unit::AutoRunner.run(true)
49
+ exit Test::Unit::AutoRunner.run(true, File.join(rsvg2_base, "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 TestRSVGVersion < Test::Unit::TestCase
18
+ include RSVG2TestUtils
19
+
20
+ test "STRING" do
21
+ major = RSVG::Version::MAJOR
22
+ minor = RSVG::Version::MINOR
23
+ micro = RSVG::Version::MICRO
24
+ assert_equal([major, minor, micro].join("."),
25
+ RSVG::Version::STRING)
26
+ end
27
+
28
+ sub_test_case("#or_later?") do
29
+ test "same" do
30
+ assert_true(RSVG::Version.or_later?(RSVG::Version::MAJOR,
31
+ RSVG::Version::MINOR,
32
+ RSVG::Version::MICRO))
33
+ end
34
+
35
+ test "later" do
36
+ assert_true(RSVG::Version.or_later?(RSVG::Version::MAJOR,
37
+ RSVG::Version::MINOR - 1,
38
+ RSVG::Version::MICRO))
39
+ end
40
+
41
+ test "earlier" do
42
+ assert_false(RSVG::Version.or_later?(RSVG::Version::MAJOR,
43
+ RSVG::Version::MINOR + 1,
44
+ RSVG::Version::MICRO))
45
+ end
46
+ end
47
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rsvg2
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.5
4
+ version: 3.0.6
5
5
  platform: x86-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,28 +30,28 @@ 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
  - !ruby/object:Gem::Dependency
42
42
  name: pango
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 3.0.5
47
+ version: 3.0.6
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 3.0.5
54
+ version: 3.0.6
55
55
  description: Ruby/RSVG is a Ruby binding of librsvg-2.x.
56
56
  email: ruby-gnome2-devel-en@lists.sourceforge.net
57
57
  executables: []
@@ -77,6 +77,7 @@ files:
77
77
  - test/rsvg2-test-utils.rb
78
78
  - test/run-test.rb
79
79
  - test/test-handle.rb
80
+ - test/test-version.rb
80
81
  - vendor/local/bin/croco-0.6-config
81
82
  - vendor/local/bin/csslint-0.6.exe
82
83
  - vendor/local/bin/libcroco-0.6-3.dll