gdk_pixbuf2 3.0.9 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +4 -2
- data/lib/gdk_pixbuf2/loader.rb +0 -6
- data/lib/gdk_pixbuf2/pixbuf.rb +13 -0
- data/test/run-test.rb +2 -0
- data/test/test-pixbuf.rb +3 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0e18444ee5c0a6aa4e2bd625668b0b2904a8444
|
4
|
+
data.tar.gz: 6894e65834b0624b89e54cacc2ee9368b82944a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 262f535c393cf485565c388afa096f831aff9d39eac5ed4f0afabf8ec1f90c60ac504eb7333ea75f8ed214fe080892a921244ab5c14d4f24f0024eb048bb4465
|
7
|
+
data.tar.gz: a85711018d4690740a54dccc0bcada978791cb916b966578cc1e3de35dabc699416b15b46ff54368d44c0f1deee9dff710a5d12aae51664444f4a6272ee643d3
|
data/Rakefile
CHANGED
@@ -22,7 +22,9 @@ require "gnome2/rake/package-task"
|
|
22
22
|
package_task = GNOME2::Rake::PackageTask.new do |package|
|
23
23
|
package.summary = "Ruby/GdkPixbuf2 is a Ruby binding of GdkPixbuf-2.x."
|
24
24
|
package.description = "Ruby/GdkPixbuf2 is a Ruby binding of GdkPixbuf-2.x."
|
25
|
-
package.dependency.gem.runtime = [
|
25
|
+
package.dependency.gem.runtime = [
|
26
|
+
"gio2",
|
27
|
+
]
|
26
28
|
package.windows.packages = []
|
27
29
|
package.windows.dependencies = []
|
28
30
|
package.windows.build_dependencies = [
|
@@ -34,7 +36,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
|
|
34
36
|
:name => "gdk-pixbuf",
|
35
37
|
:download_site => :gnome,
|
36
38
|
:label => "gdk-pixbuf",
|
37
|
-
:version => "2.
|
39
|
+
:version => "2.36.0",
|
38
40
|
:compression_method => "xz",
|
39
41
|
:windows => {
|
40
42
|
:configure_args => [
|
data/lib/gdk_pixbuf2/loader.rb
CHANGED
@@ -35,12 +35,6 @@ module GdkPixbuf
|
|
35
35
|
require "gdk_pixbuf2/version"
|
36
36
|
end
|
37
37
|
|
38
|
-
def initialize_post(object)
|
39
|
-
super
|
40
|
-
return unless object.is_a?(GLib::Object)
|
41
|
-
self.class.reference_gobject(object, :sink => true)
|
42
|
-
end
|
43
|
-
|
44
38
|
def define_constant(name, info)
|
45
39
|
if /PIXBUF_/ =~ name
|
46
40
|
name = $POSTMATCH
|
data/lib/gdk_pixbuf2/pixbuf.rb
CHANGED
@@ -157,6 +157,19 @@ module GdkPixbuf
|
|
157
157
|
end
|
158
158
|
private :initialize_with_hash
|
159
159
|
|
160
|
+
if private_method_defined?(:initialize_new_from_file_utf8)
|
161
|
+
alias_method :initialize_new_from_file,
|
162
|
+
:initialize_new_from_file_utf8
|
163
|
+
end
|
164
|
+
if private_method_defined?(:initialize_new_from_file_at_size_utf8)
|
165
|
+
alias_method :initialize_new_from_file_at_size,
|
166
|
+
:initialize_new_from_file_at_size_utf8
|
167
|
+
end
|
168
|
+
if private_method_defined?(:initialize_new_from_file_at_scale_utf8)
|
169
|
+
alias_method :initialize_new_from_file_at_scale,
|
170
|
+
:initialize_new_from_file_at_scale_utf8
|
171
|
+
end
|
172
|
+
|
160
173
|
def dup
|
161
174
|
copy
|
162
175
|
end
|
data/test/run-test.rb
CHANGED
@@ -20,11 +20,13 @@ ruby_gnome2_base = File.join(File.dirname(__FILE__), "..", "..")
|
|
20
20
|
ruby_gnome2_base = File.expand_path(ruby_gnome2_base)
|
21
21
|
|
22
22
|
glib_base = File.join(ruby_gnome2_base, "glib2")
|
23
|
+
gio2_base = File.join(ruby_gnome2_base, "gio2")
|
23
24
|
gobject_introspection_base = File.join(ruby_gnome2_base, "gobject-introspection")
|
24
25
|
gdk_pixbuf2_base = File.join(ruby_gnome2_base, "gdk_pixbuf2")
|
25
26
|
|
26
27
|
modules = [
|
27
28
|
[glib_base, "glib2"],
|
29
|
+
[gio2_base, "gio2"],
|
28
30
|
[gobject_introspection_base, "gobject-introspection"],
|
29
31
|
[gdk_pixbuf2_base, "gdk_pixbuf2"],
|
30
32
|
]
|
data/test/test-pixbuf.rb
CHANGED
@@ -322,6 +322,9 @@ class TestPixbuf < Test::Unit::TestCase
|
|
322
322
|
end
|
323
323
|
|
324
324
|
test "normal usage" do
|
325
|
+
if /\Ai\d86-/ === RUBY_PLATFORM
|
326
|
+
omit("floating point calculation result is different on i386")
|
327
|
+
end
|
325
328
|
src_pixbuf = GdkPixbuf::Pixbuf.new(fixture_path("gnome-logo-icon.png"))
|
326
329
|
pixbuf = src_pixbuf.saturate_and_pixelate(0, true)
|
327
330
|
ref = saturate_and_pixelate_pixels(src_pixbuf, 0, true)
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gdk_pixbuf2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Ruby-GNOME2 Project Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: gio2
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.0
|
19
|
+
version: 3.1.0
|
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.0
|
26
|
+
version: 3.1.0
|
27
27
|
description: Ruby/GdkPixbuf2 is a Ruby binding of GdkPixbuf-2.x.
|
28
28
|
email: ruby-gnome2-devel-en@lists.sourceforge.net
|
29
29
|
executables: []
|