glimmer-dsl-libui 0.12.0 → 0.12.1
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +13 -3
- data/VERSION +1 -1
- data/glimmer-dsl-libui.gemspec +0 -0
- data/lib/glimmer-dsl-libui.rb +10 -1
- 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: 9dc091cfefc95ef7b7f93457fc609a3ee852912d5c72fb79a363c9dd96787865
|
4
|
+
data.tar.gz: d6547ce1dae1fa9abb73bdcf7b441b087f0bc7ab66dd0d8eedeed724e82c810f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 352489b82a6706cbc9232f21be57a1e236efc4b08d76653b4b2fce73b0e931c6d3c7e10207f14f2f2417336f6f54bcdb03b52aa84ec55e8c9849be2bf2bfb361
|
7
|
+
data.tar.gz: 23587a71abcecc6d95bdc471b3fb907928abb028f439aaf22542fc2c19bf26916944e35770e36f1600765e04c767c0a512d5626cfbf2a0ebe007286a5516b733
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 0.12.1
|
4
|
+
|
5
|
+
- Fix issue with getting error "superclass mismatch for class Array" when `concurrent-ruby` is included in a desktop applications as it is required to load `concurrent-ruby` before `glimmer`, so now `glimmer-dsl-libui` will attempt loading `concurrent-ruby` if available or default to old behavior otherwise.
|
6
|
+
|
3
7
|
## 0.12.0
|
4
8
|
|
5
9
|
- Custom Control Component Slots (containers that could accept content within different parts of a Custom Component)
|
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 LibUI 0.12.
|
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 LibUI 0.12.1
|
2
2
|
## Prerequisite-Free Ruby Desktop Development Cross-Platform Native GUI Library ([Fukuoka Award Winning](http://www.digitalfukuoka.jp/topics/187?locale=ja))
|
3
3
|
### The Quickest Way From Zero To GUI
|
4
4
|
[](http://badge.fury.io/rb/glimmer-dsl-libui)
|
@@ -456,7 +456,7 @@ gem install glimmer-dsl-libui
|
|
456
456
|
Or install via Bundler `Gemfile`:
|
457
457
|
|
458
458
|
```ruby
|
459
|
-
gem 'glimmer-dsl-libui', '~> 0.12.
|
459
|
+
gem 'glimmer-dsl-libui', '~> 0.12.1'
|
460
460
|
```
|
461
461
|
|
462
462
|
Test that installation worked by running the [Glimmer Meta-Example](#examples):
|
@@ -492,6 +492,8 @@ If you are new to [Glimmer DSL for LibUI](https://rubygems.org/gems/glimmer-dsl-
|
|
492
492
|
|
493
493
|
If you encounter any issues with the documentation, get stuck with code you do not understand, or notice some out-of-date information, you may contact the project maintainers on the [Glimmer Gitter Chat](https://app.gitter.im/#/room/#AndyObtiva_glimmer:gitter.im). Also, this could be your opportunity to be a good steward of Open-Source Software by contributing a documentation fix in a GitHub Pull Request or reporting a GitHub Issue at least.
|
494
494
|
|
495
|
+
For integration with a Relational Database (SQL) via ActiveRecord, you may refer to the blog post that was written about [using ActiveRecord with SQLite DB and Glimmer DSL for SWT](https://andymaleh.blogspot.com/2022/06/using-activerecord-with-sqlite-db-in.html) (altering to fit CRuby and Glimmer DSL for LibUI). Also, [@chip](https://github.com/chip) created a prototype Git repo for starting a Glimmer DSL for LibUI project with SQLite DB and ActiveRecord: https://github.com/chip/glimmer_dsl_with_active_record
|
496
|
+
|
495
497
|
### Experimentation Usage
|
496
498
|
|
497
499
|
For experimenting and learning, add `include Glimmer` into the top-level main object and start using the Glimmer GUI DSL directly.
|
@@ -3320,7 +3322,7 @@ ClassBasedCustomControls.launch
|
|
3320
3322
|
|
3321
3323
|
Component can have Component Slots inside layout container controls: `vertical_box`, `horizontal_box`, `form`, and `grid`.
|
3322
3324
|
|
3323
|
-
Simply
|
3325
|
+
Simply designate a layout container control as a Component Slot inside a Custom Control class body block by passing it a `slot: slot_name` option (in the example below, we have a `:header` slot and a `:footer` slot):
|
3324
3326
|
|
3325
3327
|
```ruby
|
3326
3328
|
body {
|
@@ -4499,6 +4501,14 @@ https://rubygems.org/gems/adamantite
|
|
4499
4501
|
|
4500
4502
|

|
4501
4503
|
|
4504
|
+
### Ruby Go
|
4505
|
+
|
4506
|
+
A simple app for playing Go games with a friend, built by [Tim Standen](https://github.com/timbot1789).
|
4507
|
+
|
4508
|
+
https://github.com/timbot1789/rubygo
|
4509
|
+
|
4510
|
+

|
4511
|
+
|
4502
4512
|
## Design Principles
|
4503
4513
|
|
4504
4514
|
- The Ruby Way (including TIMTOWTDI: There Is More Than One Way To Do It)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.12.
|
1
|
+
0.12.1
|
data/glimmer-dsl-libui.gemspec
CHANGED
Binary file
|
data/lib/glimmer-dsl-libui.rb
CHANGED
@@ -21,8 +21,17 @@
|
|
21
21
|
|
22
22
|
$LOAD_PATH.unshift(File.expand_path('..', __FILE__))
|
23
23
|
|
24
|
-
#
|
24
|
+
# concurrent-ruby gem ensures glimmer relies on Concurrent data-structure classes
|
25
|
+
# Load if available only to ensure loading at the right time before loading glimmer
|
26
|
+
begin
|
27
|
+
require 'concurrent/array'
|
28
|
+
require 'concurrent/hash'
|
29
|
+
require 'concurrent/set'
|
30
|
+
rescue LoadError
|
31
|
+
# No Op
|
32
|
+
end
|
25
33
|
require 'glimmer'
|
34
|
+
# External requires
|
26
35
|
# require 'logging'
|
27
36
|
require 'puts_debuggerer' if (ENV['PD'] || ENV['pd']).to_s.downcase == 'true'
|
28
37
|
# require 'super_module'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glimmer-dsl-libui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Maleh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: glimmer
|