gtk4 4.2.1 → 4.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/gtk4/css-provider.rb +23 -4
  3. metadata +7 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ee3cc60156eca6c427677ae1510a7c9f09f9eaaccedc335e3ecd1d7c0d65f2ac
4
- data.tar.gz: d6884900e2efae9edf179ccca61c067bade58ba008e8e566cde03224f7355b60
3
+ metadata.gz: 02dd1bd53ba9bafc05d0522edf2dfe450552e20e51bd0313af0486b8003533f4
4
+ data.tar.gz: 955035c7037890a8fc25e3c2edda4fef7842ca4102dc32ffa5ad218c175fad2c
5
5
  SHA512:
6
- metadata.gz: 5081feb21a29911f714a3fbed55830ecc3bbdbe1a27210d0106ac4ae2b8d62522371ab276ae3c5212ba7073d4db6d9999b36e6cdb6e60235136e7892fd61137a
7
- data.tar.gz: d78d34de8d259e1c565a037fdd5363cfd56f4782f4d8dc72c2f046e851c63c309813bffd0c078561a9e3170220d6a030b4549bd8256ae9894b0faaef540fcd14
6
+ metadata.gz: f070587f2fbbf9c55845d7807452802fa47a4584a07909a8654bda97b4daf80aecbe8be43e6fd2785e45c7e07d54309a44e3e8f82bd8aa6958a898a61164c737
7
+ data.tar.gz: 8c0fe0914e123efb5eb10e63b2ca4e10a10ca49d37e571bae9f237ac7a363315ef92f7330b68f5f8d5a98f62986a5032eca2eb5dcc4af5c75f8c2ce1194edb74
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2014-2023 Ruby-GNOME Project Team
1
+ # Copyright (C) 2014-2024 Ruby-GNOME 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
@@ -17,12 +17,30 @@
17
17
  module Gtk
18
18
  class CssProvider
19
19
  def load(options)
20
+ string = options[:string]
21
+ bytes = options[:bytes]
20
22
  data = options[:data]
21
23
  file = options[:file]
22
24
  path = options[:path]
23
25
  resource_path = options[:resource_path]
24
- if data
25
- load_from_data(data)
26
+ if string
27
+ if Version.or_later?(4, 12, 0)
28
+ load_from_string(string)
29
+ else
30
+ load_from_data(string)
31
+ end
32
+ elsif bytes
33
+ if Version.or_later?(4, 12, 0)
34
+ load_from_bytes(bytes)
35
+ else
36
+ load_from_data(bytes)
37
+ end
38
+ elsif data
39
+ if Version.or_later?(4, 12, 0)
40
+ load_from_bytes(data)
41
+ else
42
+ load_from_data(data)
43
+ end
26
44
  elsif file
27
45
  load_from_file(file)
28
46
  elsif path
@@ -30,7 +48,8 @@ module Gtk
30
48
  elsif resource_path
31
49
  load_from_resource(resource_path)
32
50
  else
33
- message = "Must specify one of :data, :file, :path or :resource_path"
51
+ message = "Must specify one of " +
52
+ ":string, :bytes, :data, :file, :path or :resource_path"
34
53
  raise ArgumentError, "#{message}: #{options.inspect}"
35
54
  end
36
55
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gtk4
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.1
4
+ version: 4.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Ruby-GNOME Project Team
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-02-22 00:00:00.000000000 Z
10
+ date: 2024-04-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: atk
@@ -16,28 +15,28 @@ dependencies:
16
15
  requirements:
17
16
  - - '='
18
17
  - !ruby/object:Gem::Version
19
- version: 4.2.1
18
+ version: 4.2.2
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
23
  - - '='
25
24
  - !ruby/object:Gem::Version
26
- version: 4.2.1
25
+ version: 4.2.2
27
26
  - !ruby/object:Gem::Dependency
28
27
  name: gdk4
29
28
  requirement: !ruby/object:Gem::Requirement
30
29
  requirements:
31
30
  - - '='
32
31
  - !ruby/object:Gem::Version
33
- version: 4.2.1
32
+ version: 4.2.2
34
33
  type: :runtime
35
34
  prerelease: false
36
35
  version_requirements: !ruby/object:Gem::Requirement
37
36
  requirements:
38
37
  - - '='
39
38
  - !ruby/object:Gem::Version
40
- version: 4.2.1
39
+ version: 4.2.2
41
40
  description: Ruby/GTK4 is a Ruby binding of GTK+-4.x.
42
41
  email: ruby-gnome2-devel-en@lists.sourceforge.net
43
42
  executables: []
@@ -169,7 +168,6 @@ homepage: https://ruby-gnome2.osdn.jp/
169
168
  licenses:
170
169
  - LGPL-2.1+
171
170
  metadata: {}
172
- post_install_message:
173
171
  rdoc_options: []
174
172
  require_paths:
175
173
  - lib
@@ -184,8 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
184
182
  - !ruby/object:Gem::Version
185
183
  version: '0'
186
184
  requirements: []
187
- rubygems_version: 3.5.1
188
- signing_key:
185
+ rubygems_version: 3.6.0.dev
189
186
  specification_version: 4
190
187
  summary: Ruby/GTK4 is a Ruby binding of GTK+-4.x.
191
188
  test_files: []