webkit-gtk2 2.2.5 → 3.0.1

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/lib/webkit-gtk2.rb +21 -2
  3. data/test/run-test.rb +9 -0
  4. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6a69aad5e8640eea0528fb9ffd2cb49c5965e1a4
4
- data.tar.gz: fe39b0d35b7d9d7921395cf49fd3c05b031369f4
3
+ metadata.gz: cc0f43de6a4747da3412d5c1374ee0ab5eca6ee2
4
+ data.tar.gz: 980625d341354a13d653f5e00d46bfd262040965
5
5
  SHA512:
6
- metadata.gz: 0b0bd5d62396b8a9ba86a582f9f6762f91b9616eb5c2e7270a4fd124c796e001cdf897cabc17f35ce70e51aae361e32bfd1bdd32886590105cb7d3ac42d9cac4
7
- data.tar.gz: 72d2b6602ed336ee0236af170f757277eb894916ffbba0a3078486a78373350d1421f59037ec4f2493ed4de7451a3451c1033eaa8e8559a7b84f52a325825df1
6
+ metadata.gz: d62b2d47fc410255db3c77d164951b26b218b3be5fc3da08fa8e45dd9be38d18a53ff527ae1552c3fc630bb704bcc18c8019c7f25a0b4e5d4f9a2574341b9c4e
7
+ data.tar.gz: 40944118ce7e793d72d14ceebb83c3efa78bc53d8d7b504ff33fbd3ddb543039b053874b126a373399e6df5acd36459a9fa0aac937b72745367b4c9d315ff779
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2013 Ruby-GNOME2 Project Team
1
+ # Copyright (C) 2013-2015 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
@@ -38,10 +38,29 @@ module WebKitGtk2
38
38
  remove_method(:init)
39
39
  remove_method(:const_missing)
40
40
  end
41
- Loader.load("WebKit", self, :version => "1.0")
41
+ loader = Loader.new(self)
42
+ loader.load
42
43
  end
43
44
  end
44
45
 
45
46
  class Loader < GObjectIntrospection::Loader
47
+ NAMESPACE = "WebKit"
48
+ VERSION = "1.0"
49
+
50
+ def initialize(base_module)
51
+ super
52
+ @version = VERSION
53
+ end
54
+
55
+ def load
56
+ super(NAMESPACE)
57
+ end
58
+
59
+ private
60
+ def initialize_post(object)
61
+ super
62
+ return unless object.is_a?(GLib::Object)
63
+ self.class.reference_gobject(object, :sink => true)
64
+ end
46
65
  end
47
66
  end
@@ -57,4 +57,13 @@ require "webkit-gtk-test-utils"
57
57
 
58
58
  require "webkit-gtk2"
59
59
 
60
+ repository = GObjectIntrospection::Repository.default
61
+ begin
62
+ repository.require(WebKitGtk2::Loader::NAMESPACE,
63
+ WebKitGtk2::Loader::VERSION)
64
+ rescue GLib::Error
65
+ puts("Omit because typelib file doesn't exist: #{$!.message}")
66
+ exit(true)
67
+ end
68
+
60
69
  exit Test::Unit::AutoRunner.run(true)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webkit-gtk2
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.5
4
+ version: 3.0.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: 2015-04-24 00:00:00.000000000 Z
11
+ date: 2015-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gobject-introspection
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 2.2.5
19
+ version: 3.0.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: 2.2.5
26
+ version: 3.0.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: gtk2
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 2.2.5
33
+ version: 3.0.1
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: 2.2.5
40
+ version: 3.0.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: test-unit-notify
43
43
  requirement: !ruby/object:Gem::Requirement