gio2 3.0.7-x86-mingw32 → 3.0.8-x86-mingw32

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
  SHA1:
3
- metadata.gz: 81de474e4d09e5c546b819d1def1bab1e26575d5
4
- data.tar.gz: 0cbc1f91b9b8e8ef05bd7ec4d65fb75e861a29e3
3
+ metadata.gz: 937ae249f14f39798ba6ba0754b4fecd72bd1e17
4
+ data.tar.gz: ca0d62c1fcfc73c0d3bb12a3b34de9fc353e3f9c
5
5
  SHA512:
6
- metadata.gz: 6f770b44bf9b52183721edb656dbbca81a882fb4e17c37c257856010f94f05981005283bb1325bc69fd3012d48cc82f63f1d7df5c22dac824c7f6c0dd59b6507
7
- data.tar.gz: 2609ccae3f66de26aadbcd7eb1b350fff911046fc61b191ee97e0e28bf19493c5fda23ac1985a76b08b52922db349b77157aa1ed5cb3d1ea76f230483d295bb6
6
+ metadata.gz: b0d0fb2202163d5330bc76fffb610118a5d304a29aa7e6222805d3fa368d07e8240e5a5ad027dc41539c9144bbefa5323f34b389ab266a7c3a2f1ea93500dcfe
7
+ data.tar.gz: 5873a20b66edd0a1ba19a4a85d93f413b1e53d397a1abc49e63c7a89c11720ddb153987873ad15c2c5cece50d4148db615ee41c2fc400581923e672811f13465
@@ -52,6 +52,7 @@ end
52
52
  setup_windows(module_name, base_dir)
53
53
 
54
54
  unless required_pkg_config_package(package_id,
55
+ :altlinux => "libgio-devel",
55
56
  :debian => "libglib2.0-dev",
56
57
  :redhat => "glib2-devel",
57
58
  :arch => "glib2",
@@ -22,49 +22,6 @@
22
22
 
23
23
  #define RG_TARGET_NAMESPACE rb_mGio
24
24
 
25
- static gboolean
26
- name_equal(GIArgInfo *info, const gchar *target_name)
27
- {
28
- GITypeInfo type_info;
29
- GIBaseInfo *interface_info;
30
- const gchar *namespace;
31
- const gchar *name;
32
- gboolean equal_name_p = FALSE;
33
-
34
- g_arg_info_load_type(info, &type_info);
35
- interface_info = g_type_info_get_interface(&type_info);
36
- namespace = g_base_info_get_namespace(interface_info);
37
- name = g_base_info_get_name(interface_info);
38
- if (strcmp(namespace, "Gio") == 0 && strcmp(name, target_name) == 0) {
39
- equal_name_p = TRUE;
40
- }
41
- g_base_info_unref(interface_info);
42
-
43
- return equal_name_p;
44
- }
45
-
46
- static void
47
- rb_gio2_async_ready_callback_callback(GObject *source_object,
48
- GAsyncResult *result,
49
- gpointer user_data)
50
- {
51
- RBGICallbackData *callback_data = user_data;
52
- ID id_call;
53
-
54
- CONST_ID(id_call, "call");
55
- rb_funcall(callback_data->rb_callback, id_call, 2,
56
- GOBJ2RVAL(source_object), GOBJ2RVAL(result));
57
- }
58
-
59
- static gpointer
60
- rb_gio2_async_ready_callback_finder(GIArgInfo *info)
61
- {
62
- if (!name_equal(info, "AsyncReadyCallback")) {
63
- return NULL;
64
- }
65
- return rb_gio2_async_ready_callback_callback;
66
- }
67
-
68
25
  void
69
26
  Init_gio2 (void)
70
27
  {
@@ -74,6 +31,4 @@ Init_gio2 (void)
74
31
 
75
32
  rb_gio2_init_application(RG_TARGET_NAMESPACE);
76
33
  rb_gio2_init_pollable_source(RG_TARGET_NAMESPACE);
77
-
78
- rb_gi_callback_register_finder(rb_gio2_async_ready_callback_finder);
79
34
  }
Binary file
Binary file
@@ -16,6 +16,18 @@
16
16
 
17
17
  module Gio
18
18
  class ApplicationCommandLine
19
+ def initialize(properties=nil)
20
+ if properties
21
+ arguments = properties[:arguments]
22
+ if arguments and !arguments.is_a?(GLib::Variant)
23
+ arguments = GLib::Variant.new(arguments,
24
+ GLib::VariantType::BYTESTRING_ARRAY)
25
+ properties = properties.merge(:arguments => arguments)
26
+ end
27
+ end
28
+ super(properties)
29
+ end
30
+
19
31
  alias_method :arguments_raw, :arguments
20
32
  def arguments
21
33
  arguments_raw[0]
@@ -16,12 +16,10 @@
16
16
 
17
17
  class TestApplicationCommandLine < Test::Unit::TestCase
18
18
  include GioTestUtils::Omissions
19
- def setup
20
- @command_line = Gio::ApplicationCommandLine.new
21
- end
22
19
 
23
20
  test "#arguments" do
24
21
  omit_on_travis_ci
25
- assert_equal([], @command_line.arguments)
22
+ command_line = Gio::ApplicationCommandLine.new(:arguments => ["hello"])
23
+ assert_equal(["hello"], command_line.arguments)
26
24
  end
27
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gio2
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.7
4
+ version: 3.0.8
5
5
  platform: x86-mingw32
6
6
  authors:
7
7
  - The Ruby-GNOME2 Project Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-06 00:00:00.000000000 Z
11
+ date: 2016-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: glib2
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.0.7
19
+ version: 3.0.8
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.7
26
+ version: 3.0.8
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: gobject-introspection
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 3.0.7
33
+ version: 3.0.8
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 3.0.7
40
+ version: 3.0.8
41
41
  description: Ruby/GIO2 is a Ruby binding of gio-2.x.
42
42
  email: ruby-gnome2-devel-en@lists.sourceforge.net
43
43
  executables: []
@@ -52,9 +52,8 @@ files:
52
52
  - ext/gio2/rb-gio2.c
53
53
  - ext/gio2/rb-gio2.h
54
54
  - extconf.rb
55
- - lib/2.0/gio2.so
56
- - lib/2.1/gio2.so
57
55
  - lib/2.2/gio2.so
56
+ - lib/2.3/gio2.so
58
57
  - lib/gio2.rb
59
58
  - lib/gio2/action-map.rb
60
59
  - lib/gio2/action.rb
@@ -99,7 +98,7 @@ files:
99
98
  - test/test-version.rb
100
99
  homepage: http://ruby-gnome2.sourceforge.jp/
101
100
  licenses:
102
- - LGPLv2.1 or later
101
+ - LGPLv2.1+
103
102
  metadata: {}
104
103
  post_install_message:
105
104
  rdoc_options: []
Binary file
Binary file