rsvg2 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: 2cf1150faeb712983f523263b7a5178548ff2af0
4
- data.tar.gz: 75d466ffb3ff5180bd88873d12e54d1966c462c4
3
+ metadata.gz: ed0bbe9f7d2402bc030d1e1ceaf122be8a5a8831
4
+ data.tar.gz: 962051894fe72d0fe84d9e194789847b75da330c
5
5
  SHA512:
6
- metadata.gz: e1c131aeb3df5f24d53024fd361ac2239d48a6be9d165a6d57598fb53b370284cafdf857c0ef97647a3a1993bfd0ca9421e130f9278ed0150fb782534dd9ede6
7
- data.tar.gz: ee5eb7e28629cb230c3aac7b4ba63ae7e0111ca232295033d3b26b8fbe4685fb442f989be6a7aa82bb79a9e9ea4d1120ac8b243598fb4fc8775c48b75812a823
6
+ metadata.gz: de36cb8b8085209f44c746938b478fc94835dc57d958ff366ee9cf5159d31e37fb45766913a495a8df21ebc1f4c1cc55885b88e8d54469bcfc5f3e1ea8a949db
7
+ data.tar.gz: 91da879ab098771c01143b629c6310a75d6b45dd831f7e5391b299bbc79ec975622c29cd719caf907cc837d78780c0c0fb0e8e34c7521cb9871959bbb71c4a1b
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: 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,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