glimmer-dsl-swt 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/VERSION +1 -1
- data/lib/glimmer/swt/widget_proxy.rb +30 -0
- 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: 7ce0b74d98304d4ef0a093bf6dcd2a05612f4e437a4468307bf04bb98751bd67
|
4
|
+
data.tar.gz: 16624ff216b60f6448d624a778e021115a9bd83c548a9dd9e637f40693d33641
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eec38142ade569bc1bcca40d075ef64f8be649df9b0322fedbcd1c0e9df4b1ee481b878489531ebbee74d6b8f23c160e64cbac732f15fb850365ce352ecdc45b
|
7
|
+
data.tar.gz: e24d03c58b50294cfef56300f7bcfb2371856be1ff22f4c81ffb6089455d8f99b2a3df7e4b0e0cc9628ffd0a241297167b3a4898a54014bb5fc894cce63a33a1
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# [<img src="https://raw.githubusercontent.com/AndyObtiva/glimmer/master/images/glimmer-logo-hi-res.png" height=85 />](https://github.com/AndyObtiva/glimmer) Glimmer DSL for SWT 0.5.
|
1
|
+
# [<img src="https://raw.githubusercontent.com/AndyObtiva/glimmer/master/images/glimmer-logo-hi-res.png" height=85 />](https://github.com/AndyObtiva/glimmer) Glimmer DSL for SWT 0.5.3 (Desktop GUI)
|
2
2
|
[![Gem Version](https://badge.fury.io/rb/glimmer-dsl-swt.svg)](http://badge.fury.io/rb/glimmer-dsl-swt)
|
3
3
|
[![Travis CI](https://travis-ci.com/AndyObtiva/glimmer-dsl-swt.svg?branch=master)](https://travis-ci.com/github/AndyObtiva/glimmer-dsl-swt)
|
4
4
|
[![Coverage Status](https://coveralls.io/repos/github/AndyObtiva/glimmer-dsl-swt/badge.svg?branch=master)](https://coveralls.io/github/AndyObtiva/glimmer-dsl-swt?branch=master)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.3
|
@@ -618,6 +618,36 @@ module Glimmer
|
|
618
618
|
value
|
619
619
|
end
|
620
620
|
end,
|
621
|
+
:image => lambda do |value|
|
622
|
+
if value.is_a?(String)
|
623
|
+
if value.start_with?('uri:classloader')
|
624
|
+
value = value.sub(/^uri\:classloader\:\//, '')
|
625
|
+
object = java.lang.Object.new
|
626
|
+
value = object.java_class.resource_as_stream(value)
|
627
|
+
value = java.io.BufferedInputStream.new(value)
|
628
|
+
end
|
629
|
+
image_data = ImageData.new(value)
|
630
|
+
Image.new(@swt_widget.getDisplay, image_data)
|
631
|
+
else
|
632
|
+
value
|
633
|
+
end
|
634
|
+
end,
|
635
|
+
:images => lambda do |array|
|
636
|
+
array.to_a.map do |value|
|
637
|
+
if value.is_a?(String)
|
638
|
+
if value.start_with?('uri:classloader')
|
639
|
+
value = value.sub(/^uri\:classloader\:\//, '')
|
640
|
+
object = java.lang.Object.new
|
641
|
+
value = object.java_class.resource_as_stream(value)
|
642
|
+
value = java.io.BufferedInputStream.new(value)
|
643
|
+
end
|
644
|
+
image_data = ImageData.new(value)
|
645
|
+
Image.new(@swt_widget.getDisplay, image_data)
|
646
|
+
else
|
647
|
+
value
|
648
|
+
end
|
649
|
+
end.to_java(Image)
|
650
|
+
end,
|
621
651
|
:items => lambda do |value|
|
622
652
|
value.to_java :string
|
623
653
|
end,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glimmer-dsl-swt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- AndyMaleh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-07-
|
11
|
+
date: 2020-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|