cocoawebview 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7cad99e128e05d31cff115cfd0d6fc28baff36d22d9247e5c7b5884b327138a8
4
- data.tar.gz: 76bf581086b3728ee51dc4ee80c0313cfb53d25b0c3a960728c95db980817a77
3
+ metadata.gz: b4a5dc8becbe3e08126dfc0c5920a10f73c7dc83c6dbd0498a61df08e716b198
4
+ data.tar.gz: df179bc016e9c58461733d6b9aa1028f636dd95234781612406d0358731669e2
5
5
  SHA512:
6
- metadata.gz: b42b5d66a586af10424ecb0a1ef5db21491a08db9b94a81a113ad9d352cc4b0fbfc801493a14095cab83c3ca17015db681c615f00602a223d7591c21f6235498
7
- data.tar.gz: 3c11815ce1c970017adc901344e16b3c06451debf750a1b3ec05ff2ae42995b799a97042d22f9876bd52c3f7a56ed30fc50d167d40acbed18bacd1e5faf7a755
6
+ metadata.gz: 2545e3fc29b1e863015317a9e8375534bfb98050475cac4ed52ccad54a0c9ee9604b6f1b36bc43510ec5b2428681228ae417788a006f4af3020b7d22253d2ed3
7
+ data.tar.gz: 9173d6c094e3a87dfd6945b3c8f145f8f702d0264ff874d9279bd336d2ebdc76288a65ffb0259b2fdd61f8a5825f3cdadc852bf287d82a69f27795baeda3a670
@@ -105,6 +105,10 @@ VALUE webview_set_bg(VALUE self, VALUE r, VALUE g, VALUE b, VALUE a);
105
105
  app = a;
106
106
  }
107
107
 
108
+ - (void)applicationWillTerminate:(NSNotification *)notification {
109
+ rb_funcall(app, rb_intern("app_will_exit"), 0);
110
+ }
111
+
108
112
  - (BOOL)applicationShouldHandleReopen:(NSApplication *)sender hasVisibleWindows:(BOOL)flag {
109
113
  rb_funcall(app, rb_intern("dock_did_click"), 0);
110
114
  return YES;
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cocoawebview
4
- VERSION = "0.4.0"
4
+ VERSION = "0.5.0"
5
5
  end
data/lib/cocoawebview.rb CHANGED
@@ -23,6 +23,10 @@ module CocoaWebview
23
23
  def dock_did_click
24
24
  puts "Dock icon clicked"
25
25
  end
26
+
27
+ def app_will_exit
28
+ puts "NSApp will exit"
29
+ end
26
30
  end
27
31
 
28
32
  class CocoaWebview
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoawebview
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tommy Jeff
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-10-04 00:00:00.000000000 Z
10
+ date: 2025-10-16 00:00:00.000000000 Z
11
11
  dependencies: []
12
12
  description: Webview ruby binding for macOS
13
13
  email: