webkit2-gtk 3.3.0 → 3.3.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/Rakefile +0 -98
  3. data/sample/browser.rb +16 -2
  4. metadata +5 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc7c1cd749daf7944de344c4419577be133179624e75596cd29408d01aec9707
4
- data.tar.gz: d5f8db40382daaf965ed11414551bfa75a1f64dd223b858ade735169ba27ae5f
3
+ metadata.gz: 442cc5a6d62ccbaff418d44bb3c7af0f78af98642eed0bcd923eb2d0a8617c75
4
+ data.tar.gz: c550568c557b58b3b8326c377214b481a6b0fe18e76a788c319d047aad482d17
5
5
  SHA512:
6
- metadata.gz: '098f87a360c032b77d74dbad531d12a16305b1e6b78e787da680754b1e6cfb8e4d30a691a7ea8865d767c9ed4054d44a9a2d77f0166eaea09fde69f189d81c86'
7
- data.tar.gz: 99448dd985b8a211fd90e2cfc3de55e60616eff0c8e3600ea5459aaf71716b60f8c1ea2578caac70677216804b0e5228d29f05f87e23174a5a615666634ee5c2
6
+ metadata.gz: 517465bc49909cef7d5bc6cf88e00bb314127ba95a760a2acf9702c092b5821bf8b7da13ca2809dfaeea71a709db3da732df88398b29c9a21881dd8e9fe8bd03
7
+ data.tar.gz: 40e2e0098ac5b37b0c5dcfa3c79883cbfbdbe195cef0686ce16855b5a3e2df303801c285bececdb58a057e03ad1f5d2cad114ba3ae9595a4ddf292a0c7ec7591
data/Rakefile CHANGED
@@ -23,102 +23,4 @@ package_name = File.basename(__dir__)
23
23
  spec = Gem::Specification.load("#{package_name}.gemspec")
24
24
 
25
25
  GNOME2::Rake::PackageTask.define(spec, __dir__) do |package|
26
- package.windows.packages = []
27
- package.windows.dependencies = []
28
- package.windows.build_dependencies = [
29
- "glib2",
30
- "gio2",
31
- "gobject-introspection",
32
- "atk",
33
- "pango",
34
- "gdk_pixbuf2",
35
- "gdk3",
36
- "gstreamer",
37
- ]
38
- package.windows.gobject_introspection_dependencies = [
39
- "gio2",
40
- "atk",
41
- "gdk_pixbuf2",
42
- "pango",
43
- "gdk3",
44
- "gstreamer",
45
- ]
46
-
47
- rcairo_binary_base_dir =
48
- package.windows_binary_build_task.rcairo_binary_base_dir
49
- glib2_binary_base_dir =
50
- package.windows_binary_build_task.glib2_binary_base_dir
51
- gstreamer_binary_base_dir =
52
- package.windows_binary_build_task.binary_base_dir("gstreamer")
53
-
54
- package.external_packages = [
55
- {
56
- :name => "libwebp",
57
- :download_base_url => "https://storage.googleapis.com/downloads.webmproject.org/releases/webp",
58
- :label => "WebP",
59
- :version => "0.5.1",
60
- :windows => {
61
- :built_file => "bin/libwebp-6.dll",
62
- },
63
- },
64
- {
65
- :name => "libxslt",
66
- :version => "1.1.28",
67
- :download_base_url => "ftp://xmlsoft.org/libxslt",
68
- :compression_method => "gz",
69
- :windows => {
70
- :built_file => "bin/libxslt-1.dll",
71
- :configure_args => [
72
- "--without-python",
73
- "--with-libxml-prefix=#{rcairo_binary_base_dir}",
74
- ],
75
- :patches => [
76
- "libxslt-1.1.28-add-mkdir-fallback.diff",
77
- ],
78
- },
79
- },
80
- {
81
- :name => "webkitgtk",
82
- :download_site => :webkitgtk,
83
- :label => "WebKitGTK+",
84
- :version => "2.22.3",
85
- :compression_method => "xz",
86
- :windows => {
87
- :build_concurrently => false,
88
- :cmake_args => [
89
- "-DPORT=GTK",
90
- "-DZLIB_INCLUDE_DIR=#{rcairo_binary_base_dir}/include",
91
- "-DZLIB_LIBRARY=#{rcairo_binary_base_dir}/lib/libzlib.dll.a",
92
- "-DPNG_PNG_INCLUDE_DIR=#{rcairo_binary_base_dir}/include",
93
- "-DPNG_LIBRARY=#{rcairo_binary_base_dir}/lib/libpng.dll.a",
94
- "-DJPEG_INCLUDE_DIR=#{gstreamer_binary_base_dir}/include",
95
- "-DJPEG_LIBRARY=#{gstreamer_binary_base_dir}/lib/libjpeg.dll.a",
96
- "-DFONTCONFIG_INCLUDE_DIR=#{rcairo_binary_base_dir}/include",
97
- "-DFONTCONFIG_LIBRARIES=#{rcairo_binary_base_dir}/lib",
98
- "-DSQLITE_INCLUDE_DIR=#{gstreamer_binary_base_dir}/include",
99
- "-DSQLITE_LIBRARIES=#{gstreamer_binary_base_dir}/lib",
100
- "-DPC_GNUTLS_INCLUDEDIR=#{glib2_binary_base_dir}/include",
101
- "-DPC_GNUTLS_LIBDIR=#{glib2_binary_base_dir}/lib",
102
- "-DENABLE_PLUGIN_PROCESS_GTK2=OFF",
103
- "-DENABLE_X11_TARGET=OFF",
104
- "-DENABLE_JIT=OFF",
105
- "-DENABLE_GTKDOC=OFF",
106
- "-DENABLE_GEOLOCATION=OFF",
107
- "-DENABLE_OPENGL=OFF",
108
- "-DENABLE_SPELLCHECK=OFF",
109
- "-DENABLE_API_TESTS=OFF",
110
- "-DENABLE_FETCH_API=OFF",
111
- "-DENABLE_INDEXED_DATABASE=OFF",
112
- "-DUSE_SYSTEM_MALLOC=ON",
113
- "-DUSE_LIBNOTIFY=OFF",
114
- "-DUSE_LIBHYPHEN=OFF",
115
- "-DUSE_LIBSECRET=OFF",
116
- "-DADDITIONAL_COMPILER_FLAGS=-D_WIN32_WINNT=0x0601 -DWINVER=0x0601",
117
- ],
118
- :patches => [
119
- "webkitgtk-2.13.4-try-buildable.diff",
120
- ],
121
- },
122
- },
123
- ]
124
26
  end
data/sample/browser.rb CHANGED
@@ -21,10 +21,22 @@ uri = URI.parse(ARGV.shift || "https://webkitgtk.org/")
21
21
 
22
22
  app = Gtk::Application.new("com.github.ruby-gnome2.webkit2-gtk.sample.browser",
23
23
  :flags_none)
24
- app.signal_connect(:activate) do |_|
24
+ app.signal_connect(:activate) do
25
25
  window = Gtk::ApplicationWindow.new(app)
26
26
  window.set_default_size(800, 600)
27
27
 
28
+ view = nil
29
+
30
+ box = Gtk::Box.new(:vertical)
31
+ window.add(box)
32
+
33
+ entry = Gtk::Entry.new
34
+ entry.signal_connect("activate") do
35
+ view.load_uri(entry.text)
36
+ end
37
+
38
+ box.pack_start(entry)
39
+
28
40
  # For supporting http_proxy and https_proxy.
29
41
  # view_context = WebKit2Gtk::WebContext.new
30
42
  # proxy_settings = WebKit2Gtk::NetworkProxySettings.new
@@ -35,6 +47,7 @@ app.signal_connect(:activate) do |_|
35
47
  view = WebKit2Gtk::WebView.new
36
48
  view.signal_connect("load-changed") do |_, load_event|
37
49
  p [:load_changed, view.uri, load_event]
50
+ entry.text = view.uri
38
51
  end
39
52
  view.signal_connect("load-failed") do |_, _, failed_uri, error|
40
53
  message = "failed to load URI: #{failed_uri}: "
@@ -49,7 +62,8 @@ app.signal_connect(:activate) do |_|
49
62
  view.load_uri(uri.to_s)
50
63
  end
51
64
 
52
- window.add(view)
65
+ box.pack_start(view, expand: true, fill: true)
66
+
53
67
  window.show_all
54
68
  end
55
69
 
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.3.0
4
+ version: 3.3.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: 2018-10-31 00:00:00.000000000 Z
11
+ date: 2019-01-08 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.3.0
19
+ version: 3.3.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: 3.3.0
26
+ version: 3.3.1
27
27
  description: Ruby/WebKit2GTK is a Ruby binding of WebKit2GTK+.
28
28
  email: ruby-gnome2-devel-en@lists.sourceforge.net
29
29
  executables: []
@@ -66,8 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
66
66
  - !ruby/object:Gem::Version
67
67
  version: '0'
68
68
  requirements: []
69
- rubyforge_project:
70
- rubygems_version: 3.0.0.beta1
69
+ rubygems_version: 3.0.2
71
70
  signing_key:
72
71
  specification_version: 4
73
72
  summary: Ruby/WebKit2GTK is a Ruby binding of WebKit2GTK+.