webkit2-gtk 3.2.9 → 3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/sample/browser.rb +31 -30
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc7c1cd749daf7944de344c4419577be133179624e75596cd29408d01aec9707
|
4
|
+
data.tar.gz: d5f8db40382daaf965ed11414551bfa75a1f64dd223b858ade735169ba27ae5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '098f87a360c032b77d74dbad531d12a16305b1e6b78e787da680754b1e6cfb8e4d30a691a7ea8865d767c9ed4054d44a9a2d77f0166eaea09fde69f189d81c86'
|
7
|
+
data.tar.gz: 99448dd985b8a211fd90e2cfc3de55e60616eff0c8e3600ea5459aaf71716b60f8c1ea2578caac70677216804b0e5228d29f05f87e23174a5a615666634ee5c2
|
data/Rakefile
CHANGED
@@ -81,7 +81,7 @@ GNOME2::Rake::PackageTask.define(spec, __dir__) do |package|
|
|
81
81
|
:name => "webkitgtk",
|
82
82
|
:download_site => :webkitgtk,
|
83
83
|
:label => "WebKitGTK+",
|
84
|
-
:version => "2.
|
84
|
+
:version => "2.22.3",
|
85
85
|
:compression_method => "xz",
|
86
86
|
:windows => {
|
87
87
|
:build_concurrently => false,
|
data/sample/browser.rb
CHANGED
@@ -19,37 +19,38 @@ require "webkit2-gtk"
|
|
19
19
|
|
20
20
|
uri = URI.parse(ARGV.shift || "https://webkitgtk.org/")
|
21
21
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
Gtk.
|
26
|
-
|
22
|
+
app = Gtk::Application.new("com.github.ruby-gnome2.webkit2-gtk.sample.browser",
|
23
|
+
:flags_none)
|
24
|
+
app.signal_connect(:activate) do |_|
|
25
|
+
window = Gtk::ApplicationWindow.new(app)
|
26
|
+
window.set_default_size(800, 600)
|
27
27
|
|
28
|
-
# For supporting http_proxy and https_proxy.
|
29
|
-
# view_context = WebKit2Gtk::WebContext.new
|
30
|
-
# proxy_settings = WebKit2Gtk::NetworkProxySettings.new
|
31
|
-
# proxy_settings.add_proxy_for_scheme("http", ENV["http_proxy"])
|
32
|
-
# proxy_settings.add_proxy_for_scheme("https", ENV["https_proxy"])
|
33
|
-
# view_context.set_network_proxy_settings(:custom, proxy_settings)
|
34
|
-
# view = WebKit2Gtk::WebView.new(context: view_context)
|
35
|
-
view = WebKit2Gtk::WebView.new
|
36
|
-
view.signal_connect("load-changed") do |_, load_event|
|
37
|
-
|
38
|
-
end
|
39
|
-
view.signal_connect("load-failed") do |_, _, failed_uri, error|
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
end
|
28
|
+
# For supporting http_proxy and https_proxy.
|
29
|
+
# view_context = WebKit2Gtk::WebContext.new
|
30
|
+
# proxy_settings = WebKit2Gtk::NetworkProxySettings.new
|
31
|
+
# proxy_settings.add_proxy_for_scheme("http", ENV["http_proxy"])
|
32
|
+
# proxy_settings.add_proxy_for_scheme("https", ENV["https_proxy"])
|
33
|
+
# view_context.set_network_proxy_settings(:custom, proxy_settings)
|
34
|
+
# view = WebKit2Gtk::WebView.new(context: view_context)
|
35
|
+
view = WebKit2Gtk::WebView.new
|
36
|
+
view.signal_connect("load-changed") do |_, load_event|
|
37
|
+
p [:load_changed, view.uri, load_event]
|
38
|
+
end
|
39
|
+
view.signal_connect("load-failed") do |_, _, failed_uri, error|
|
40
|
+
message = "failed to load URI: #{failed_uri}: "
|
41
|
+
message << "#{error.class}(#{error.code}): #{error.message}"
|
42
|
+
puts(message)
|
43
|
+
true
|
44
|
+
end
|
45
45
|
|
46
|
-
if uri.class == URI::Generic
|
47
|
-
|
48
|
-
else
|
49
|
-
|
50
|
-
end
|
46
|
+
if uri.class == URI::Generic
|
47
|
+
view.load_html(File.read(uri.path), uri.to_s)
|
48
|
+
else
|
49
|
+
view.load_uri(uri.to_s)
|
50
|
+
end
|
51
51
|
|
52
|
-
window.add(view)
|
53
|
-
window.show_all
|
52
|
+
window.add(view)
|
53
|
+
window.show_all
|
54
|
+
end
|
54
55
|
|
55
|
-
|
56
|
+
app.run
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webkit2-gtk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.3.0
|
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-
|
11
|
+
date: 2018-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gtk3
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.
|
19
|
+
version: 3.3.0
|
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.
|
26
|
+
version: 3.3.0
|
27
27
|
description: Ruby/WebKit2GTK is a Ruby binding of WebKit2GTK+.
|
28
28
|
email: ruby-gnome2-devel-en@lists.sourceforge.net
|
29
29
|
executables: []
|