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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8b71fcbc4b1108eda9fb8a990592c9831f2b71c5
4
- data.tar.gz: a5365e0341f8979a063988dc0fef092e13292ce8
3
+ metadata.gz: 9cfa2e299e210eed4fcdafa1f85934d377eb56f1
4
+ data.tar.gz: a4658b1c5b840ad94e6185ba1d41e4ba703e83c4
5
5
  SHA512:
6
- metadata.gz: c59249d7dc608751b0e53e4b1750eedab519a239976666f886621367e9f7b2f3b9336f42aff32c42ad353c6ea8e8d5989e6ec002dd8e2eeb524a6c2e2c6f7ae8
7
- data.tar.gz: e535871f2fb6794f4510dfeda1542069fdbd6b01b6a29d3d8ca50bbf2ebdb12064ed2e97d3aac575daabf16f6f20c893dfef820f244a293d123a7068f3e79720
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.1"
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
@@ -1,5 +1,11 @@
1
1
  # News
2
2
 
3
+ ## 1.0.2: 2017-07-11
4
+
5
+ ### Improvements
6
+
7
+ * Reduces required resources.
8
+
3
9
  ## 1.0.1: 2017-07-11
4
10
 
5
11
  ### Improvements
@@ -59,8 +59,8 @@ module ChupaText
59
59
  def create_screenshot(data)
60
60
  screenshot = nil
61
61
 
62
- view_context = WebKit2Gtk::WebContext.new(ephemeral: true)
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chupa-text-decomposer-webkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou