chupa-text-decomposer-webkit 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/chupa-text-decomposer-webkit.gemspec +1 -1
- data/doc/text/news.md +6 -0
- data/lib/chupa-text/decomposers/webkit.rb +3 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9cfa2e299e210eed4fcdafa1f85934d377eb56f1
|
4
|
+
data.tar.gz: a4658b1c5b840ad94e6185ba1d41e4ba703e83c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ff6407a451e09c91b670b1ee85361bffa7c3ed166d15ef7cd88d1cbc16af1ee0381f7c011d116346090325f6d0237703b331f9d692ca25d5de04d0ed9c283e1
|
7
|
+
data.tar.gz: 122344f3cfcda27ec94131a933aed1836289c8565c439d09b6e5b37962718db211dece223af7c565fefd4d94fe50627493bbf26ad2b5288ca55224b92353a0c4
|
@@ -22,7 +22,7 @@ end
|
|
22
22
|
|
23
23
|
Gem::Specification.new do |spec|
|
24
24
|
spec.name = "chupa-text-decomposer-webkit"
|
25
|
-
spec.version = "1.0.
|
25
|
+
spec.version = "1.0.2"
|
26
26
|
spec.homepage = "https://github.com/ranguba/chupa-text-decomposer-webkit"
|
27
27
|
spec.authors = ["Kouhei Sutou"]
|
28
28
|
spec.email = ["kou@clear-code.com"]
|
data/doc/text/news.md
CHANGED
@@ -59,8 +59,8 @@ module ChupaText
|
|
59
59
|
def create_screenshot(data)
|
60
60
|
screenshot = nil
|
61
61
|
|
62
|
-
view_context
|
63
|
-
view = WebKit2Gtk::WebView.new(context: view_context)
|
62
|
+
@@view_context ||= WebKit2Gtk::WebContext.new(ephemeral: true)
|
63
|
+
view = WebKit2Gtk::WebView.new(context: @@view_context)
|
64
64
|
window = Gtk::OffscreenWindow.new
|
65
65
|
window.set_default_size(800, 600)
|
66
66
|
window.add(view)
|
@@ -104,6 +104,7 @@ module ChupaText
|
|
104
104
|
until finished
|
105
105
|
main_context.iteration(true)
|
106
106
|
end
|
107
|
+
window.destroy
|
107
108
|
|
108
109
|
screenshot
|
109
110
|
end
|