gdk_pixbuf2 3.2.9 → 3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/lib/gdk_pixbuf2/pixbuf.rb +8 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cdbf8a4078dbf2c83cb66aeebf19201a100e1f81d9c60d8bba5ed38d50d4fb2d
|
4
|
+
data.tar.gz: 82556499445f5eaf8b8a6578531ce60d8510dba6c5ba9fc56cedb01a9c2e5762
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 496d6ecc52364bbf186571e4cd96a96f787e03e5d5fe9aa2f4984a1fbf5a8fc86f253ca47790669126fd51e09881b2144869a54d07a65c7787fbc84efb46318b
|
7
|
+
data.tar.gz: 2d78989f4b1fbb2802d16ba3cb2de52ec4c41f423ce6206d6161932c90894f0cd24dee0e3f1c0ac6cf9ba74ec599476130b13fc2085758a366ecadf3904800d2
|
data/Rakefile
CHANGED
@@ -34,7 +34,7 @@ GNOME2::Rake::PackageTask.define(spec, __dir__) do |package|
|
|
34
34
|
:name => "gdk-pixbuf",
|
35
35
|
:download_site => :gnome,
|
36
36
|
:label => "gdk-pixbuf",
|
37
|
-
:version => "2.
|
37
|
+
:version => "2.38.0",
|
38
38
|
:compression_method => "xz",
|
39
39
|
:windows => {
|
40
40
|
:configure_args => [
|
data/lib/gdk_pixbuf2/pixbuf.rb
CHANGED
@@ -119,7 +119,14 @@ module GdkPixbuf
|
|
119
119
|
elsif resource && !scale
|
120
120
|
initialize_new_from_resource(resource)
|
121
121
|
elsif data && size
|
122
|
-
row_stride
|
122
|
+
if row_stride.nil?
|
123
|
+
if data.is_a?(Array)
|
124
|
+
total_size = data.size
|
125
|
+
else
|
126
|
+
total_size = data.bytesize
|
127
|
+
end
|
128
|
+
row_stride = total_size / height
|
129
|
+
end
|
123
130
|
initialize_new_from_data(data, colorspace, has_alpha, bits_per_sample,
|
124
131
|
width, height, row_stride)
|
125
132
|
elsif bytes && size
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gdk_pixbuf2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.3.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: 2018-
|
11
|
+
date: 2018-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gio2
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.
|
19
|
+
version: 3.3.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.
|
26
|
+
version: 3.3.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: []
|