cocoawebview 0.2.4 → 0.2.5

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: 789cb8c4e51be7b6588304a2c023a909393dc8339f41c02d07b8028b514308e7
4
- data.tar.gz: 689b4f1bb5048f686466471b0d1cc4fb86b8998a697147d4a5cf0e677395d00e
3
+ metadata.gz: 6fff092b9157198789bcbabb8503718b360a642edb6172324637c5f449f3fec7
4
+ data.tar.gz: d620a9315c261e03e70568ed591683aba789a1fff86684588e64901519d9c7de
5
5
  SHA512:
6
- metadata.gz: c2dfac832e60aaee3601c517bb50e15c51ab10fd83cae9b1e98c6add910678caf308d1a5dd5d65c71ab1db8b59eb22cda265fae91aa92f6eba4b24a78b3367fe
7
- data.tar.gz: cfffc685240676021f501b9cbdafbc42dced814551fe964829b708b69ad6d334e3615b3be1daf864cbb039788c77b621d8e710ba2c4ae53d568e659dfe2d51fe
6
+ metadata.gz: 2815a0ae33f5f7a18a15fab267e435c41c279aa1dea86816d8ad0e7a4c13e4c545e4104efb6d50133a12b4ec65e02a11bf41e1dcd53d5d1f517b006ad17d9baf
7
+ data.tar.gz: 5cc3b1bfb804aa27f4852d5e866662ec93da3fcccec597b9fd281ee7c57d2b5d4fa683773a6d9d1bf8f522b679178ed20d6e643cfa23fec48f1d106fd6df6654
@@ -9,6 +9,7 @@ NSApplication *application = nil;
9
9
 
10
10
  VALUE nsapp_initialize(VALUE self);
11
11
  VALUE nsapp_run(VALUE self);
12
+ VALUE nsapp_exit(VALUE self);
12
13
 
13
14
  VALUE webview_initialize(VALUE self, VALUE debug, VALUE style);
14
15
  VALUE webview_show(VALUE self);
@@ -170,6 +171,7 @@ Init_cocoawebview(void)
170
171
  rb_mNSAppClass = rb_define_class_under(rb_mCocoawebview, "NSApp", rb_cObject);
171
172
  rb_define_method(rb_mNSAppClass, "initialize", nsapp_initialize, 0);
172
173
  rb_define_method(rb_mNSAppClass, "run", nsapp_run, 0);
174
+ rb_define_method(rb_mNSAppClass, "exit", nsapp_exit, 0);
173
175
 
174
176
  /* CocoaWebview */
175
177
  rb_mCocoaWebviewClass = rb_define_class_under(rb_mCocoawebview, "CocoaWebview", rb_cObject);
@@ -199,6 +201,10 @@ VALUE nsapp_run(VALUE self) {
199
201
  [application run];
200
202
  }
201
203
 
204
+ VALUE nsapp_exit(VALUE self) {
205
+ [[NSApplication sharedApplication] terminate:nil];
206
+ }
207
+
202
208
  VALUE webview_initialize(VALUE self, VALUE debug, VALUE style) {
203
209
  rb_iv_set(self, "@var", rb_hash_new());
204
210
  rb_iv_set(self, "@bindings", rb_hash_new());
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cocoawebview
4
- VERSION = "0.2.4"
4
+ VERSION = "0.2.5"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoawebview
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tommy Jeff