gdk_pixbuf2 3.3.0 → 3.3.1

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
  SHA256:
3
- metadata.gz: cdbf8a4078dbf2c83cb66aeebf19201a100e1f81d9c60d8bba5ed38d50d4fb2d
4
- data.tar.gz: 82556499445f5eaf8b8a6578531ce60d8510dba6c5ba9fc56cedb01a9c2e5762
3
+ metadata.gz: 85e4da7ae46f4d7208d1ab09f06fbfff556cc720c4bd55a72789b5699ccd7010
4
+ data.tar.gz: 3e9f97b4c530ba9e22bd1ad5b1af1c497c08b8958e4a2f9abdb44888c7f755e9
5
5
  SHA512:
6
- metadata.gz: 496d6ecc52364bbf186571e4cd96a96f787e03e5d5fe9aa2f4984a1fbf5a8fc86f253ca47790669126fd51e09881b2144869a54d07a65c7787fbc84efb46318b
7
- data.tar.gz: 2d78989f4b1fbb2802d16ba3cb2de52ec4c41f423ce6206d6161932c90894f0cd24dee0e3f1c0ac6cf9ba74ec599476130b13fc2085758a366ecadf3904800d2
6
+ metadata.gz: 18d040a1c1c8506e9831190535a89c7df1b51f1653caa6a5795f788fe21dafb258eb5e0cc24f66c497b566d9e6d5669d45d62848261b396bac5751230391c001
7
+ data.tar.gz: 494192f28dfc1e51c6915ab3b81dd3b49a43477602f6ad11f18eab50a0abb4498ef2de0cdeaa05eba9876a423ff4cc586adbbfc673688be8c38a1d87c7828d2a
data/README.md CHANGED
@@ -4,9 +4,9 @@ Ruby/GdkPixbuf2 is a Ruby binding of GdkPixbuf-2.x.
4
4
 
5
5
  Requirements
6
6
  ------------
7
- Ruby: http://www.ruby-lang.org/
8
- GTK+: http://www.gtk.org/
9
- Ruby/GLib2, Ruby/GTK2: http://ruby-gnome2.sourceforge.net/
7
+ * Ruby: http://www.ruby-lang.org/
8
+ * GTK+: http://www.gtk.org/
9
+ * Ruby/GLib2, Ruby/GTK2: http://ruby-gnome2.sourceforge.net/
10
10
 
11
11
  Install
12
12
  -------
@@ -18,7 +18,7 @@ Install
18
18
 
19
19
  Copying
20
20
  -------
21
- Copyright (c) 2002-2016 Ruby-GNOME2 Project Team
21
+ Copyright (c) 2002-2018 Ruby-GNOME2 Project Team
22
22
 
23
23
  This program is free software.
24
24
  You can distribute/modify this program under the terms of
@@ -26,5 +26,5 @@ Copying
26
26
 
27
27
  Project Websites
28
28
  ----------------
29
- https://ruby-gnome2.osdn.jp/
30
- https://github.com/ruby-gnome2/ruby-gnome2
29
+ * https://ruby-gnome2.osdn.jp/
30
+ * https://github.com/ruby-gnome2/ruby-gnome2
data/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
1
  # -*- ruby -*-
2
2
  #
3
- # Copyright (C) 2016 Ruby-GNOME2 Project Team
3
+ # Copyright (C) 2016-2018 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
@@ -23,27 +23,4 @@ package_name = File.basename(__dir__)
23
23
  spec = Gem::Specification.load("#{package_name}.gemspec")
24
24
 
25
25
  GNOME2::Rake::PackageTask.define(spec, __dir__) do |package|
26
- package.windows.packages = []
27
- package.windows.dependencies = []
28
- package.windows.build_dependencies = [
29
- "glib2",
30
- "gobject-introspection",
31
- ]
32
- package.external_packages = [
33
- {
34
- :name => "gdk-pixbuf",
35
- :download_site => :gnome,
36
- :label => "gdk-pixbuf",
37
- :version => "2.38.0",
38
- :compression_method => "xz",
39
- :windows => {
40
- :configure_args => [
41
- "--with-included-loaders",
42
- "--enable-introspection",
43
- ],
44
- :build_concurrently => false,
45
- :built_file => "bin/libgdk_pixbuf-2.0-0.dll",
46
- },
47
- }
48
- ]
49
26
  end
data/lib/gdk_pixbuf2.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2016 Ruby-GNOME2 Project Team
1
+ # Copyright (C) 2016-2018 Ruby-GNOME2 Project Team
2
2
  #
3
3
  # This library is free software; you can redistribute it and/or
4
4
  # modify it under the terms of the GNU Lesser General Public
@@ -14,16 +14,8 @@
14
14
  # License along with this library; if not, write to the Free Software
15
15
  # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
- require "gobject-introspection"
18
17
  require "gio2"
19
18
 
20
- base_dir = Pathname.new(__FILE__).dirname.dirname.expand_path
21
- vendor_dir = base_dir + "vendor" + "local"
22
- vendor_bin_dir = vendor_dir + "bin"
23
- GLib.prepend_dll_path(vendor_bin_dir)
24
- vendor_girepository_dir = vendor_dir + "lib" + "girepository-1.0"
25
- GObjectIntrospection.prepend_typelib_path(vendor_girepository_dir)
26
-
27
19
  require "gdk_pixbuf2/loader"
28
20
 
29
21
  module GdkPixbuf
@@ -119,21 +119,26 @@ module GdkPixbuf
119
119
  elsif resource && !scale
120
120
  initialize_new_from_resource(resource)
121
121
  elsif data && size
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
130
- initialize_new_from_data(data, colorspace, has_alpha, bits_per_sample,
131
- width, height, row_stride)
122
+ data = data.pack("C*") if data.is_a?(Array)
123
+ row_stride ||= data.bytesize / height
124
+ initialize_new_from_data(data,
125
+ colorspace,
126
+ has_alpha,
127
+ bits_per_sample,
128
+ width,
129
+ height,
130
+ row_stride)
131
+ @data = data
132
132
  elsif bytes && size
133
133
  row_stride ||= bytes.size / height
134
- initialize_new_from_bytes(bytes, colorspace, has_alpha, bits_per_sample,
135
- width, height, row_stride)
136
-
134
+ initialize_new_from_bytes(bytes,
135
+ colorspace,
136
+ has_alpha,
137
+ bits_per_sample,
138
+ width,
139
+ height,
140
+ row_stride)
141
+ @bytes = bytes
137
142
  elsif xpm
138
143
  initialize_new_from_xpm_data(xpm)
139
144
  elsif size
@@ -166,19 +171,6 @@ module GdkPixbuf
166
171
  end
167
172
  private :initialize_with_hash
168
173
 
169
- if private_method_defined?(:initialize_new_from_file_utf8)
170
- alias_method :initialize_new_from_file,
171
- :initialize_new_from_file_utf8
172
- end
173
- if private_method_defined?(:initialize_new_from_file_at_size_utf8)
174
- alias_method :initialize_new_from_file_at_size,
175
- :initialize_new_from_file_at_size_utf8
176
- end
177
- if private_method_defined?(:initialize_new_from_file_at_scale_utf8)
178
- alias_method :initialize_new_from_file_at_scale,
179
- :initialize_new_from_file_at_scale_utf8
180
- end
181
-
182
174
  alias_method :row_stride, :rowstride
183
175
 
184
176
  def dup
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.3.0
4
+ version: 3.3.1
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-10-31 00:00:00.000000000 Z
11
+ date: 2019-01-08 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.3.0
19
+ version: 3.3.1
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.3.0
26
+ version: 3.3.1
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: []
@@ -84,8 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  - !ruby/object:Gem::Version
85
85
  version: '0'
86
86
  requirements: []
87
- rubyforge_project:
88
- rubygems_version: 3.0.0.beta1
87
+ rubygems_version: 3.0.2
89
88
  signing_key:
90
89
  specification_version: 4
91
90
  summary: Ruby/GdkPixbuf2 is a Ruby binding of GdkPixbuf-2.x.