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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +1 -1
  3. data/lib/gdk_pixbuf2/pixbuf.rb +8 -1
  4. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5703bde76653a8a9cf29a66a88eb1331973285ab7fee2eb2d55e130ce0160245
4
- data.tar.gz: 955b9863a831a6bffa08266a47c2d31938069fcd83f025f3219bb486ad71890b
3
+ metadata.gz: cdbf8a4078dbf2c83cb66aeebf19201a100e1f81d9c60d8bba5ed38d50d4fb2d
4
+ data.tar.gz: 82556499445f5eaf8b8a6578531ce60d8510dba6c5ba9fc56cedb01a9c2e5762
5
5
  SHA512:
6
- metadata.gz: 9a4c4a1cdd724a261f3a12555c34990e1852196ce34c226e307b12d0155c98b8ac2cae91d80e9b294ee10c36e51e61b59ecda1c2d28dfe64fad4ce754a00a2c7
7
- data.tar.gz: 11957c6ac078b7487497558a46515774024ff05393a036389016423c857b821899903d7cdc9c3b136ea770138fecd2edcc9946e7d3c3f0f30bfd5fa967949364
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.36.12",
37
+ :version => "2.38.0",
38
38
  :compression_method => "xz",
39
39
  :windows => {
40
40
  :configure_args => [
@@ -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 ||= data.bytesize / height
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.2.9
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-08-08 00:00:00.000000000 Z
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.2.9
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.2.9
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: []