gdk_pixbuf2 3.0.8 → 3.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +1 -1
  3. data/lib/gdk_pixbuf2.rb +11 -69
  4. data/lib/gdk_pixbuf2/deprecated.rb +160 -0
  5. data/lib/gdk_pixbuf2/loader.rb +51 -0
  6. data/lib/gdk_pixbuf2/pixbuf-loader.rb +24 -0
  7. data/lib/gdk_pixbuf2/pixbuf.rb +282 -0
  8. data/lib/gdk_pixbuf2/version.rb +33 -0
  9. data/sample/anim.rb +2 -2
  10. data/sample/composite.rb +41 -11
  11. data/sample/flip.rb +2 -2
  12. data/sample/format.rb +2 -4
  13. data/sample/loader.rb +3 -3
  14. data/sample/rotate.rb +4 -4
  15. data/sample/save.rb +3 -3
  16. data/sample/scale.rb +14 -6
  17. data/sample/simpleanim.rb +10 -4
  18. data/sample/utils.rb +7 -4
  19. data/sample/xpm.rb +9 -9
  20. data/test/fixture/floppybuddy.gif +0 -0
  21. data/test/fixture/gnome-logo-icon.png +0 -0
  22. data/test/fixture/image.gresource +0 -0
  23. data/test/fixture/image.gresource.xml +6 -0
  24. data/test/gdk_pixbuf2-test-utils.rb +11 -0
  25. data/test/run-test.rb +6 -3
  26. data/test/test-animation.rb +30 -0
  27. data/test/test-loader.rb +31 -0
  28. data/test/test-pixbuf.rb +334 -0
  29. metadata +18 -25
  30. data/README +0 -29
  31. data/ext/gdk_pixbuf2/depend +0 -11
  32. data/ext/gdk_pixbuf2/extconf.rb +0 -68
  33. data/ext/gdk_pixbuf2/gdk_pixbuf2.def +0 -2
  34. data/ext/gdk_pixbuf2/rbgdk-pixbuf-format.c +0 -179
  35. data/ext/gdk_pixbuf2/rbgdk-pixbuf-loader.c +0 -164
  36. data/ext/gdk_pixbuf2/rbgdk-pixbuf.c +0 -737
  37. data/ext/gdk_pixbuf2/rbgdk-pixbuf.h +0 -41
  38. data/ext/gdk_pixbuf2/rbgdk-pixbuf2conversions.h +0 -42
  39. data/ext/gdk_pixbuf2/rbgdk-pixbuf2private.h +0 -35
  40. data/ext/gdk_pixbuf2/rbgdk-pixbufanimation.c +0 -93
  41. data/ext/gdk_pixbuf2/rbgdk-pixbufanimationiter.c +0 -71
  42. data/ext/gdk_pixbuf2/rbgdk-pixbufsimpleanim.c +0 -53
  43. data/ext/gdk_pixbuf2/rbgdk-pixdata.c +0 -213
  44. data/extconf.rb +0 -49
  45. data/sample/inline.rb +0 -37
  46. data/sample/pixdata.rb +0 -39
  47. data/test/test-version.rb +0 -47
@@ -0,0 +1,30 @@
1
+ # Copyright (C) 2016 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 TestAnimationIter < Test::Unit::TestCase
18
+ include GdkPixbufTestUtils
19
+
20
+ setup do
21
+ @animation = GdkPixbuf::PixbufAnimation.new(fixture_path("floppybuddy.gif"))
22
+ @iter = @animation.get_iter
23
+ end
24
+
25
+ test("#on_currently_loading_frame?") do
26
+ assert do
27
+ not @iter.on_currently_loading_frame?
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,31 @@
1
+ # Copyright (C) 2016 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 TestLoader < Test::Unit::TestCase
18
+ include GdkPixbufTestUtils
19
+
20
+ setup do
21
+ @loader = GdkPixbuf::PixbufLoader.new
22
+ end
23
+
24
+ test("#last_write") do
25
+ assert_nil(@loader.pixbuf)
26
+ File.open(fixture_path("gnome-logo-icon.png"), "rb") do |png|
27
+ @loader.last_write(png.read)
28
+ end
29
+ assert_not_nil(@loader.pixbuf)
30
+ end
31
+ end
@@ -0,0 +1,334 @@
1
+ # Copyright (C) 2016 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 TestPixbuf < Test::Unit::TestCase
18
+ include GdkPixbufTestUtils
19
+
20
+ sub_test_case(".new") do
21
+ def r_xpm
22
+ [
23
+ "10 10 3 1",
24
+ " c None",
25
+ ". c #FE0B0B",
26
+ "+ c #FFFFFF",
27
+ "+.......++",
28
+ "+.. ..+",
29
+ "+.. ..+",
30
+ "+.. ...+",
31
+ "+.......++",
32
+ "+.....++++",
33
+ "+..++..+++",
34
+ "+..++...++",
35
+ "+..+++...+",
36
+ "+..++++..+",
37
+ ]
38
+ end
39
+
40
+ sub_test_case("legacy form") do
41
+ test "basic" do
42
+ colorspace = GdkPixbuf::Colorspace::RGB
43
+ width = 100
44
+ height = 100
45
+ has_alpha = true
46
+ bits_per_sample = 8
47
+ pixbuf = GdkPixbuf::Pixbuf.new(colorspace,
48
+ has_alpha,
49
+ bits_per_sample,
50
+ width,
51
+ height)
52
+ assert_equal(colorspace, pixbuf.colorspace)
53
+ assert_equal(width, pixbuf.width)
54
+ assert_equal(height, pixbuf.height)
55
+ assert_equal(has_alpha, pixbuf.has_alpha?)
56
+ assert_equal(bits_per_sample, pixbuf.bits_per_sample)
57
+ end
58
+
59
+ test "file" do
60
+ pixbuf = GdkPixbuf::Pixbuf.new(fixture_path("gnome-logo-icon.png"))
61
+ assert_equal(GdkPixbuf::Colorspace::RGB, pixbuf.colorspace)
62
+ end
63
+
64
+ test "xpm" do
65
+ pixbuf = GdkPixbuf::Pixbuf.new(r_xpm)
66
+ assert_equal(GdkPixbuf::Colorspace::RGB, pixbuf.colorspace)
67
+ end
68
+
69
+ test "file: size" do
70
+ pixbuf = GdkPixbuf::Pixbuf.new(fixture_path("gnome-logo-icon.png"),
71
+ 32, 48)
72
+ assert_equal(GdkPixbuf::Colorspace::RGB, pixbuf.colorspace)
73
+ assert_equal(32, pixbuf.width)
74
+ assert_equal(32, pixbuf.height)
75
+ end
76
+
77
+ test "file: scale" do
78
+ pixbuf = GdkPixbuf::Pixbuf.new(fixture_path("gnome-logo-icon.png"),
79
+ 32, 48, false)
80
+ assert_equal(GdkPixbuf::Colorspace::RGB, pixbuf.colorspace)
81
+ assert_equal(32, pixbuf.width)
82
+ assert_equal(48, pixbuf.height)
83
+ end
84
+
85
+ test "subpixbuf" do
86
+ src_pixbuf = GdkPixbuf::Pixbuf.new(fixture_path("gnome-logo-icon.png"))
87
+ pixbuf = GdkPixbuf::Pixbuf.new(src_pixbuf, 0, 0, 32, 32)
88
+ assert_equal(GdkPixbuf::Colorspace::RGB, pixbuf.colorspace)
89
+ assert_equal(32, pixbuf.width)
90
+ assert_equal(32, pixbuf.height)
91
+ end
92
+
93
+ test "data" do
94
+ src_pixbuf = GdkPixbuf::Pixbuf.new(fixture_path("gnome-logo-icon.png"))
95
+ data = src_pixbuf.pixels.pack("C*")
96
+ pixbuf = GdkPixbuf::Pixbuf.new(data,
97
+ src_pixbuf.colorspace,
98
+ src_pixbuf.has_alpha?,
99
+ src_pixbuf.bits_per_sample,
100
+ src_pixbuf.width,
101
+ src_pixbuf.height,
102
+ src_pixbuf.rowstride,
103
+ )
104
+ assert_equal(src_pixbuf.pixels, pixbuf.pixels)
105
+ end
106
+ end
107
+
108
+ sub_test_case("Hash form") do
109
+ test "basic" do
110
+ colorspace = GdkPixbuf::Colorspace::RGB
111
+ width = 100
112
+ height = 100
113
+ has_alpha = true
114
+ bits_per_sample = 8
115
+ pixbuf = GdkPixbuf::Pixbuf.new(:colorspace => colorspace,
116
+ :has_alpha => has_alpha,
117
+ :width => width,
118
+ :height => height,
119
+ :bits_per_sample => bits_per_sample)
120
+ assert_equal(colorspace, pixbuf.colorspace)
121
+ assert_equal(width, pixbuf.width)
122
+ assert_equal(height, pixbuf.height)
123
+ assert_equal(has_alpha, pixbuf.has_alpha?)
124
+ assert_equal(bits_per_sample, pixbuf.bits_per_sample)
125
+ end
126
+
127
+ test "file" do
128
+ filename = fixture_path("gnome-logo-icon.png")
129
+ pixbuf = GdkPixbuf::Pixbuf.new(:file => filename)
130
+ assert_equal(GdkPixbuf::Colorspace::RGB, pixbuf.colorspace)
131
+ end
132
+
133
+ test "xpm" do
134
+ pixbuf = GdkPixbuf::Pixbuf.new(:xpm => r_xpm)
135
+ assert_equal(GdkPixbuf::Colorspace::RGB, pixbuf.colorspace)
136
+ end
137
+
138
+ test "file: size" do
139
+ filename = fixture_path("gnome-logo-icon.png")
140
+ pixbuf = GdkPixbuf::Pixbuf.new(:file => filename,
141
+ :width => 32,
142
+ :height => 48)
143
+ assert_equal(GdkPixbuf::Colorspace::RGB, pixbuf.colorspace)
144
+ assert_equal(32, pixbuf.width)
145
+ assert_equal(32, pixbuf.height)
146
+ end
147
+
148
+ test "file: scale" do
149
+ filename = fixture_path("gnome-logo-icon.png")
150
+ pixbuf = GdkPixbuf::Pixbuf.new(:file => filename,
151
+ :width => 32,
152
+ :height => 48,
153
+ :scale => true,
154
+ :preserve_aspect_ratio => false)
155
+ assert_equal(GdkPixbuf::Colorspace::RGB, pixbuf.colorspace)
156
+ assert_equal(32, pixbuf.width)
157
+ assert_equal(48, pixbuf.height)
158
+ end
159
+
160
+ test "subpixbuf" do
161
+ src_pixbuf = GdkPixbuf::Pixbuf.new(fixture_path("gnome-logo-icon.png"))
162
+ pixbuf = GdkPixbuf::Pixbuf.new(:src_pixbuf => src_pixbuf,
163
+ :src_x => 0,
164
+ :src_y => 0,
165
+ :width => 32,
166
+ :height => 32)
167
+ assert_equal(GdkPixbuf::Colorspace::RGB, pixbuf.colorspace)
168
+ assert_equal(32, pixbuf.width)
169
+ assert_equal(32, pixbuf.height)
170
+ end
171
+
172
+ test "data" do
173
+ src_pixbuf = GdkPixbuf::Pixbuf.new(fixture_path("gnome-logo-icon.png"))
174
+ data = src_pixbuf.pixels.pack("C*")
175
+ pixbuf = GdkPixbuf::Pixbuf.new(:data => data,
176
+ :colorspace => src_pixbuf.colorspace,
177
+ :has_alpha => src_pixbuf.has_alpha?,
178
+ :bits_per_sample => src_pixbuf.bits_per_sample,
179
+ :width => src_pixbuf.width,
180
+ :height => src_pixbuf.height,
181
+ :row_stride => src_pixbuf.rowstride,
182
+ )
183
+ assert_equal(src_pixbuf.pixels, pixbuf.pixels)
184
+ end
185
+
186
+ test "bytes" do
187
+ only_version(2, 32)
188
+ src_pixbuf = GdkPixbuf::Pixbuf.new(fixture_path("gnome-logo-icon.png"))
189
+ bytes = src_pixbuf.pixels.flatten.pack("C*")
190
+ pixbuf = GdkPixbuf::Pixbuf.new(:bytes => bytes,
191
+ :colorspace => src_pixbuf.colorspace,
192
+ :has_alpha => src_pixbuf.has_alpha?,
193
+ :bits_per_sample => src_pixbuf.bits_per_sample,
194
+ :width => src_pixbuf.width,
195
+ :height => src_pixbuf.height,
196
+ :row_stride => src_pixbuf.rowstride,
197
+ )
198
+ assert_equal(src_pixbuf.pixels, pixbuf.pixels)
199
+ end
200
+
201
+ test "resource" do
202
+ src_pixbuf = GdkPixbuf::Pixbuf.new(fixture_path("gnome-logo-icon.png"))
203
+ resource = Gio::Resource.load(fixture_path("image.gresource"))
204
+ Gio::Resources.register(resource)
205
+ begin
206
+ resource_path = "/org/ruby/gnome/gnome-logo-icon.png"
207
+ pixbuf = GdkPixbuf::Pixbuf.new(:resource => resource_path)
208
+ assert_equal(src_pixbuf.pixels, pixbuf.pixels)
209
+ ensure
210
+ Gio::Resources.unregister(resource)
211
+ end
212
+ end
213
+
214
+ test "resource: scale" do
215
+ resource = Gio::Resource.load(fixture_path("image.gresource"))
216
+ Gio::Resources.register(resource)
217
+ begin
218
+ resource_path = "/org/ruby/gnome/gnome-logo-icon.png"
219
+ pixbuf = GdkPixbuf::Pixbuf.new(:resource => resource_path,
220
+ :width => 32,
221
+ :height => 48,
222
+ :scale => true,
223
+ :preserve_aspect_ratio => false)
224
+ assert_equal([
225
+ GdkPixbuf::Colorspace::RGB,
226
+ 32,
227
+ 48,
228
+ ],
229
+ [
230
+ pixbuf.colorspace,
231
+ pixbuf.width,
232
+ pixbuf.height,
233
+ ])
234
+ ensure
235
+ Gio::Resources.unregister(resource)
236
+ end
237
+ end
238
+ end
239
+
240
+ def test_new_subpixbuf
241
+ src_pixbuf = GdkPixbuf::Pixbuf.new(fixture_path("gnome-logo-icon.png"))
242
+ pixbuf = src_pixbuf.new_subpixbuf(0, 0, 32, 32)
243
+ assert_equal(GdkPixbuf::Colorspace::RGB, pixbuf.colorspace)
244
+ assert_equal(32, pixbuf.width)
245
+ assert_equal(32, pixbuf.height)
246
+ end
247
+ end
248
+
249
+ def test_dup
250
+ pixbuf = GdkPixbuf::Pixbuf.new(fixture_path("gnome-logo-icon.png"))
251
+ assert_equal(pixbuf.pixels, pixbuf.dup.pixels)
252
+ end
253
+
254
+ def test_fill!
255
+ filename = fixture_path("gnome-logo-icon.png")
256
+ pixbuf = GdkPixbuf::Pixbuf.new(:file => filename)
257
+ pixbuf.fill!(0xffffffff)
258
+ assert_equal([0xff] * (pixbuf.rowstride * pixbuf.height),
259
+ pixbuf.pixels)
260
+ end
261
+
262
+ def test_rotate
263
+ pixbuf = GdkPixbuf::Pixbuf.new(fixture_path("gnome-logo-icon.png"))
264
+ inverted_pixbuf = pixbuf.rotate(:upsidedown)
265
+ assert_not_equal(pixbuf.pixels, inverted_pixbuf.pixels)
266
+ inverted_twice_pixbuf = inverted_pixbuf.rotate(:upsidedown)
267
+ assert_equal(pixbuf.pixels, inverted_twice_pixbuf.pixels)
268
+ end
269
+
270
+ sub_test_case("saturate_and_pixelate") do
271
+ # Based on the function gdk_pixbuf_saturate_and_pixelate
272
+ # in gdk-pixbuf-util.c
273
+ def saturate_and_pixelate_pixels(pixbuf, saturation, pixelate)
274
+ alpha = pixbuf.has_alpha?
275
+ width = pixbuf.width
276
+ height = pixbuf.height
277
+ pixels = pixbuf.pixels
278
+ dest_pix = []
279
+ dark_factor = 0.7
280
+ height.times do |i|
281
+ width.times do |k|
282
+ j =((i ) * width + k) * 4
283
+ intens = intensity(pixels[j + 0], pixels[j + 1], pixels[j + 2])
284
+ if pixelate == true && ( (i + k) % 2 == 0)
285
+ dest_pix << (intens / 2 + 127).floor
286
+ dest_pix << (intens / 2 + 127).floor
287
+ dest_pix << (intens / 2 + 127).floor
288
+ elsif pixelate == true
289
+ dest_pix << clamp_uchar(saturate(pixels[j + 0],
290
+ saturation, intens) * dark_factor).floor
291
+ dest_pix << clamp_uchar(saturate(pixels[j + 1],
292
+ saturation, intens) * dark_factor).floor
293
+ dest_pix << clamp_uchar(saturate(pixels[j + 2],
294
+ saturation, intens) * dark_factor).floor
295
+ else
296
+ dest_pix << clamp_uchar(saturate(pixels[j + 0], saturation, intens)).floor
297
+ dest_pix << clamp_uchar(saturate(pixels[j + 1], saturation, intens)).floor
298
+ dest_pix << clamp_uchar(saturate(pixels[j + 2], saturation, intens)).floor
299
+ end
300
+ dest_pix << pixels[j + 3] if alpha
301
+ end
302
+ end
303
+ dest_pix
304
+ end
305
+
306
+ def saturate(value, saturation, intensity)
307
+ (1.0 - saturation) * intensity + saturation * (1.0 * value)
308
+ end
309
+
310
+ def clamp_uchar(x)
311
+ [0, x, 255].sort[1]
312
+ end
313
+
314
+ def intensity(r, g, b)
315
+ (r * 0.30 + g * 0.59 + b * 0.11).floor
316
+ end
317
+
318
+ test "no modifications" do
319
+ src_pixbuf = GdkPixbuf::Pixbuf.new(fixture_path("gnome-logo-icon.png"))
320
+ pixbuf = src_pixbuf.saturate_and_pixelate(1, false)
321
+ assert_equal(src_pixbuf.pixels, pixbuf.pixels)
322
+ end
323
+
324
+ test "normal usage" do
325
+ src_pixbuf = GdkPixbuf::Pixbuf.new(fixture_path("gnome-logo-icon.png"))
326
+ pixbuf = src_pixbuf.saturate_and_pixelate(0, true)
327
+ ref = saturate_and_pixelate_pixels(src_pixbuf, 0, true)
328
+ assert_equal(ref, pixbuf.pixels, ref.size)
329
+ pixbuf = src_pixbuf.saturate_and_pixelate(0.5, true)
330
+ ref = saturate_and_pixelate_pixels(src_pixbuf, 0.5, true)
331
+ assert_equal(ref, pixbuf.pixels)
332
+ end
333
+ end
334
+ end
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.0.8
4
+ version: 3.0.9
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-04-03 00:00:00.000000000 Z
11
+ date: 2016-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: glib2
@@ -16,56 +16,49 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.0.8
19
+ version: 3.0.9
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.8
26
+ version: 3.0.9
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: []
30
- extensions:
31
- - ext/gdk_pixbuf2/extconf.rb
30
+ extensions: []
32
31
  extra_rdoc_files: []
33
32
  files:
34
- - README
35
33
  - Rakefile
36
- - ext/gdk_pixbuf2/depend
37
- - ext/gdk_pixbuf2/extconf.rb
38
- - ext/gdk_pixbuf2/gdk_pixbuf2.def
39
- - ext/gdk_pixbuf2/rbgdk-pixbuf-format.c
40
- - ext/gdk_pixbuf2/rbgdk-pixbuf-loader.c
41
- - ext/gdk_pixbuf2/rbgdk-pixbuf.c
42
- - ext/gdk_pixbuf2/rbgdk-pixbuf.h
43
- - ext/gdk_pixbuf2/rbgdk-pixbuf2conversions.h
44
- - ext/gdk_pixbuf2/rbgdk-pixbuf2private.h
45
- - ext/gdk_pixbuf2/rbgdk-pixbufanimation.c
46
- - ext/gdk_pixbuf2/rbgdk-pixbufanimationiter.c
47
- - ext/gdk_pixbuf2/rbgdk-pixbufsimpleanim.c
48
- - ext/gdk_pixbuf2/rbgdk-pixdata.c
49
- - extconf.rb
50
34
  - lib/gdk_pixbuf2.rb
35
+ - lib/gdk_pixbuf2/deprecated.rb
36
+ - lib/gdk_pixbuf2/loader.rb
37
+ - lib/gdk_pixbuf2/pixbuf-loader.rb
38
+ - lib/gdk_pixbuf2/pixbuf.rb
39
+ - lib/gdk_pixbuf2/version.rb
51
40
  - sample/anim.rb
52
41
  - sample/composite.rb
53
42
  - sample/flip.rb
54
43
  - sample/floppybuddy.gif
55
44
  - sample/format.rb
56
45
  - sample/gnome-foot.png
57
- - sample/inline.rb
58
46
  - sample/loader.rb
59
- - sample/pixdata.rb
60
47
  - sample/rotate.rb
61
48
  - sample/save.rb
62
49
  - sample/scale.rb
63
50
  - sample/simpleanim.rb
64
51
  - sample/utils.rb
65
52
  - sample/xpm.rb
53
+ - test/fixture/floppybuddy.gif
54
+ - test/fixture/gnome-logo-icon.png
55
+ - test/fixture/image.gresource
56
+ - test/fixture/image.gresource.xml
66
57
  - test/gdk_pixbuf2-test-utils.rb
67
58
  - test/run-test.rb
68
- - test/test-version.rb
59
+ - test/test-animation.rb
60
+ - test/test-loader.rb
61
+ - test/test-pixbuf.rb
69
62
  homepage: http://ruby-gnome2.sourceforge.jp/
70
63
  licenses:
71
64
  - LGPLv2.1+
@@ -78,7 +71,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
78
71
  requirements:
79
72
  - - ">="
80
73
  - !ruby/object:Gem::Version
81
- version: 1.9.3
74
+ version: 2.1.0
82
75
  required_rubygems_version: !ruby/object:Gem::Requirement
83
76
  requirements:
84
77
  - - ">="