cocoawebview 0.2.1 → 0.2.3

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: b434fa5361c35d5a60d14a7c817e353896e2748b7a5663f0220b6ca7481f01f1
4
- data.tar.gz: 87ff99830e7533c2579f8525e042e9c0e19212b03babaeff3942a452cd022499
3
+ metadata.gz: 6c80c17f0587af34667682432b333f7843f65dac96f707883cf8b5a287d42320
4
+ data.tar.gz: 0b14d8bc43ad02263f5afe91f187f6f0fb86427dffd429ec0106c11aa25892dd
5
5
  SHA512:
6
- metadata.gz: b4a99f3ffebd8b527c0155f569dac8fdd4634241b042a69d74815fda262816267f85a8708df444e30a18ea49bc14206b44dfe98a24d31e9ded533d7f847df088
7
- data.tar.gz: acc2363c86cf15816129176aaa863d89b6b810f1967a0aba5f3b2851168b432ed4649849cecd4dbfa06d9abc435c6c1d057778dfd33b66996c36fa018ea89cf7
6
+ metadata.gz: dcd142915acc1e77d6c09b897b89d9eb341dc32317ef7363a1e960f08c84951b11fc87468cc59d62affbd89cfbcc8d0dfea808c484effddd6f93b670ed3d8eba
7
+ data.tar.gz: 77fff479d4d46be2216718ee8a2dc899b58daace4b48d98b82ff182d2a3b1f859ab524cbf08ba5ffc9d48edb712bd3fe821553d34cc9aca59fcee935dbe9dcb1
@@ -207,10 +207,7 @@ VALUE webview_initialize(VALUE self, VALUE debug, VALUE style) {
207
207
  flag = NO;
208
208
  }
209
209
 
210
- //int c_style = NUM2INT(style);
211
- int c_style = NSWindowStyleMaskTitled | NSWindowStyleMaskClosable | NSWindowStyleMaskResizable |
212
- NSWindowStyleMaskMiniaturizable | NSWindowStyleMaskFullSizeContentView;
213
- style &= ~NSWindowStyleMaskFullScreen;
210
+ int c_style = NUM2INT(style);
214
211
  CocoaWebview *webview = [[CocoaWebview alloc] initWithFrame:NSMakeRect(100, 100, 400, 500) debug:flag style:c_style];
215
212
 
216
213
  [webview setReleasedWhenClosed:NO];
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cocoawebview
4
- VERSION = "0.2.1"
4
+ VERSION = "0.2.3"
5
5
  end
data/lib/cocoawebview.rb CHANGED
@@ -24,11 +24,11 @@ module CocoaWebview
24
24
  class CocoaWebview
25
25
  attr_accessor :callback
26
26
 
27
- def self.create(debug: false, min: true, max: true, close: true, &block)
27
+ def self.create(debug: false, min: true, resize: true, close: true, &block)
28
28
  style = NSWindowStyleMaskTitled | NSWindowStyleMaskFullSizeContentView
29
29
 
30
30
  style = style | NSWindowStyleMaskMiniaturizable if min
31
- style = style | NSWindowStyleMaskResizable if max
31
+ style = style | NSWindowStyleMaskResizable if resize
32
32
  style = style | NSWindowStyleMaskClosable if close
33
33
 
34
34
  style &= ~NSWindowStyleMaskFullScreen
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.1
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tommy Jeff