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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +1 -1
  3. data/sample/browser.rb +31 -30
  4. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fdd7ffafb135193f9ae2745a467ad3ef4cfefac8ab71eabfe72953b08cf88176
4
- data.tar.gz: f8ce56c124a1a005d8e6dc1821eeadc860ff54f1e46d8159fd63e66711de1fc6
3
+ metadata.gz: dc7c1cd749daf7944de344c4419577be133179624e75596cd29408d01aec9707
4
+ data.tar.gz: d5f8db40382daaf965ed11414551bfa75a1f64dd223b858ade735169ba27ae5f
5
5
  SHA512:
6
- metadata.gz: a262b28120fee851e8120d1eda90b20115bfadf9690c246cf326a5d849fccb883515790b0993105c8c305eea6d85a29d6be4899678b4058e097844d09763c177
7
- data.tar.gz: 481a60d469130a5c357d9f5762d1d8f0826a327a42cc4b7b472d313b05409cecce1381f2e63febb318d8bd24666653f60eaaa5fff539decb0da249e70b3a7cff
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.21.5",
84
+ :version => "2.22.3",
85
85
  :compression_method => "xz",
86
86
  :windows => {
87
87
  :build_concurrently => false,
@@ -19,37 +19,38 @@ require "webkit2-gtk"
19
19
 
20
20
  uri = URI.parse(ARGV.shift || "https://webkitgtk.org/")
21
21
 
22
- window = Gtk::Window.new
23
- window.set_default_size(800, 600)
24
- window.signal_connect("destroy") do
25
- Gtk.main_quit
26
- end
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
- 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
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
- view.load_html(File.read(uri.path), uri.to_s)
48
- else
49
- view.load_uri(uri.to_s)
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
- Gtk.main
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.2.9
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-08-08 00:00:00.000000000 Z
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.2.9
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.2.9
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: []