glimmer 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -6
- data/VERSION +1 -1
- data/lib/glimmer/swt/shell_proxy.rb +15 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c6aff23e9890326138ca130e2e7bb80d2ff62d9586d3ff9e62cfcb97dab0c18
|
4
|
+
data.tar.gz: '038211b85b37a102b05006b5961ec60ad20c62eca31bd15f833065170d9b6b20'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fea559224aa5069c03dfebdcbd4981ed7c6296d171098077164019e9c3fa8fd053fcfe0fcaf7161b03d0ad3a1dbda0af4c719629fd55a9af9868760a9b398e4
|
7
|
+
data.tar.gz: 2abec0e6d750fc5ed6417ea79c18aa102c8d2d75ee3c253a2ecec1f0e01c22793e03dc7ff25b10a99c4b81d1a907712e7f558e85158ffa675bcfe24928ec7ff7
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Glimmer 0.8.
|
1
|
+
# Glimmer 0.8.1 Beta (Ruby Desktop Development GUI Library)
|
2
2
|
[![Gem Version](https://badge.fury.io/rb/glimmer.svg)](http://badge.fury.io/rb/glimmer)
|
3
3
|
[![Travis CI](https://travis-ci.com/AndyObtiva/glimmer.svg?branch=master)](https://travis-ci.com/github/AndyObtiva/glimmer)
|
4
4
|
[![Test Coverage](https://api.codeclimate.com/v1/badges/38fbc278022862794414/test_coverage)](https://codeclimate.com/github/AndyObtiva/glimmer/test_coverage)
|
@@ -73,9 +73,9 @@ Glimmer app:
|
|
73
73
|
|
74
74
|
NOTE: Glimmer is in beta mode. Please help make better by adopting for small or low risk projects and providing feedback.
|
75
75
|
|
76
|
-
## Table of
|
76
|
+
## Table of contents
|
77
77
|
|
78
|
-
- [Glimmer 0.8.
|
78
|
+
- [Glimmer 0.8.1 Beta (Ruby Desktop Development GUI Library)](#glimmer-081-beta-ruby-desktop-development-gui-library)
|
79
79
|
- [Examples](#examples)
|
80
80
|
- [Hello, World!](#hello-world)
|
81
81
|
- [Tic Tac Toe](#tic-tac-toe)
|
@@ -150,7 +150,6 @@ More info about the SWT GUI on various platforms can be found on the Eclipse WIK
|
|
150
150
|
https://wiki.eclipse.org/SWT/Devel/Gtk/Dev_guide#Win32.2FCocoa.2FGTK
|
151
151
|
https://www.eclipse.org/swt/faq.php
|
152
152
|
|
153
|
-
|
154
153
|
## Pre-requisites
|
155
154
|
|
156
155
|
- SWT 4.15 (comes included in Glimmer gem)
|
@@ -174,7 +173,7 @@ Please follow these instructions to make the `glimmer` command available on your
|
|
174
173
|
|
175
174
|
Run this command to install directly:
|
176
175
|
```
|
177
|
-
jgem install glimmer -v 0.8.
|
176
|
+
jgem install glimmer -v 0.8.1
|
178
177
|
```
|
179
178
|
|
180
179
|
`jgem` is JRuby's version of `gem` command.
|
@@ -185,7 +184,7 @@ Otherwise, you may also run `jruby -S gem install ...`
|
|
185
184
|
|
186
185
|
Add the following to `Gemfile`:
|
187
186
|
```
|
188
|
-
gem 'glimmer', '~> 0.8.
|
187
|
+
gem 'glimmer', '~> 0.8.1'
|
189
188
|
```
|
190
189
|
|
191
190
|
And, then run:
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.8.
|
1
|
+
0.8.1
|
@@ -106,9 +106,21 @@ module Glimmer
|
|
106
106
|
height = @swt_widget.getBounds.height
|
107
107
|
x = @swt_widget.getBounds.x
|
108
108
|
y = @swt_widget.getBounds.y
|
109
|
-
|
110
|
-
|
111
|
-
|
109
|
+
if OS.windows?
|
110
|
+
minimum_size = @swt_widget.getMinimumSize
|
111
|
+
@swt_widget.setMinimumSize(bounds.width, bounds.height)
|
112
|
+
listener = on_control_resized {
|
113
|
+
@swt_widget.setSize(bounds.width, bounds.height)
|
114
|
+
@swt_widget.setLocation(bounds.x, bounds.y)
|
115
|
+
}
|
116
|
+
@swt_widget.pack
|
117
|
+
@swt_widget.removeControlListener(listener.swt_listener)
|
118
|
+
@swt_widget.setMinimumSize(minimum_size)
|
119
|
+
else
|
120
|
+
@swt_widget.pack
|
121
|
+
@swt_widget.setSize(width, height)
|
122
|
+
@swt_widget.setLocation(x, y)
|
123
|
+
end
|
112
124
|
end
|
113
125
|
|
114
126
|
def content(&block)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glimmer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- AndyMaleh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-06-
|
11
|
+
date: 2020-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|