glimmer-dsl-libui 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c6c85518c66987d793c3e2883d3053f0361a1b21f0f572961d4f92b5e99f8e21
4
- data.tar.gz: f69cc3e77d0f95ea5f0e9261588cbc4039bcaafae7b9460ff0890f2210477f00
3
+ metadata.gz: 8b428873ab2c165da4aa71fb0f0b22496f02c6dc88a94e22368e398d7f5482b7
4
+ data.tar.gz: 8f4e813a4a99a91434ff0ae9fa72db2b7cbacf9df77ba195bb21dedd5f3a7536
5
5
  SHA512:
6
- metadata.gz: db79e052ef21f04e89d0afaa7672b49329370ce7ce4c908885d6eb19f3b715f1ab3c3a6f926d1b0ce3e12ae69a7d7202ba68609ddc1d3bc45cc27d38f5605272
7
- data.tar.gz: '088b796cf6521383d92cdc37225e00cc4ef8c4528d0b24f9f92ad4bb552245616090d35f3ee3339d6ddf216f78dbcaa710ec823a040bd1fbf78dbbab853ccd97'
6
+ metadata.gz: 6b164fe869a9668d90820d3a47d998ef3e212339346bf7ec4c830b8ebbf9a4ce791b8e7ab2f353bcffc58a65ac1f62f20a762d1b75b414167ea780aa7fb7566f
7
+ data.tar.gz: 0fffb26e375d7b7cbdf683ae1a844ac67df154ef3626ab407a1af198658d9e0448674d21c517045e5f045cd4983d193d04a32ff2146958d4d1598cb6c899620a
data/CHANGELOG.md CHANGED
@@ -1,14 +1,18 @@
1
1
  # Change Log
2
2
 
3
+ ## 0.6.2
4
+
5
+ - Fix issue with `examples/lazy_table.rb` not working in Windows due to error: block in `apply_windows_fix`: undefined method `<<` for `#:each`> (`NoMethodError`) `@cell_rows << new_row`
6
+
3
7
  ## 0.6.1
4
8
 
5
- - `examples/lazy_table.rb` (and `examples/lazy_table2.rb` variation)
9
+ - `examples/lazy_table.rb` (4 versions) table lazy loading with a million rows via `Enumerator` or `Enumerator::Lazy` to enable instant app startup time
6
10
  - Support `table` `cell_rows` implicit data-binding to a collection of models (only supported an array of arrays before in implicit data-binding)
7
11
 
8
12
  ## 0.6.0
9
13
 
10
14
  - Upgrade to `libui` Ruby gem version 0.1.0.pre.0, which includes a newer C libui alpha release (libui-ng Nov 13, 2022)
11
- - Support table `cell_rows` `Enumerator` value to do lazy loading of data upon display of rows instead of immediate loading of all table data, thus improving performance of table initial render for very large datasets
15
+ - Support table `cell_rows` `Enumerator` or `Enumerator::Lazy` value to do lazy loading of data upon display of rows instead of immediate loading of all table data, thus improving performance of table initial render for very large datasets
12
16
  - Fix issue with `table` `progress_bar_column` not getting updated successfully on Windows if there were dual or triple columns before it.
13
17
  - Fix issue with `table` `progress_bar_column` not getting updated successfully on Windows if data-binding table to an array of models instead of an array of arrays
14
18
  - Fix issue with `table` `checkbox_column` checkbox editing not working in Mac by including a new C libui-ng release
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.6.1
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.6.2
2
2
  ## Prerequisite-Free Ruby Desktop Development GUI Library
3
3
  ### The Quickest Way From Zero To GUI
4
4
  [![Gem Version](https://badge.fury.io/rb/glimmer-dsl-libui.svg)](http://badge.fury.io/rb/glimmer-dsl-libui)
@@ -542,7 +542,7 @@ gem install glimmer-dsl-libui
542
542
  Or install via Bundler `Gemfile`:
543
543
 
544
544
  ```ruby
545
- gem 'glimmer-dsl-libui', '~> 0.6.1'
545
+ gem 'glimmer-dsl-libui', '~> 0.6.2'
546
546
  ```
547
547
 
548
548
  Test that installation worked by running the [Meta-Example](#examples):
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.1
1
+ 0.6.2
@@ -357,26 +357,22 @@ ruby -r './lib/glimmer-dsl-libui' examples/lazy_table.rb
357
357
  Run with this command if you installed the [Ruby gem](https://rubygems.org/gems/glimmer-dsl-libui):
358
358
 
359
359
  ```
360
- ruby -r glimmer-dsl-libui -e "require 'examples/paginated_refined_table'"
360
+ ruby -r glimmer-dsl-libui -e "require 'examples/lazy_table'"
361
361
  ```
362
362
 
363
- Mac | Windows | Linux
364
- ----|---------|------
365
- ![glimmer-dsl-libui-mac-paginated-refined-table.png](/images/glimmer-dsl-libui-mac-paginated-refined-table.png)| ![glimmer-dsl-libui-windows-paginated-refined-table.png](/images/glimmer-dsl-libui-windows-paginated-refined-table.png)| ![glimmer-dsl-libui-linux-paginated-refined-table.png](/images/glimmer-dsl-libui-linux-paginated-refined-table.png)
366
-
367
- `Enumerator` Subclass [Glimmer DSL for LibUI](https://rubygems.org/gems/glimmer-dsl-libui) Version:
363
+ [Glimmer DSL for LibUI](https://rubygems.org/gems/glimmer-dsl-libui) Version (using a well encapsulated `Enumerator` Subclass):
368
364
 
369
365
  [examples/lazy_table.rb](/examples/lazy_table.rb)
370
366
 
371
- `Enumerator` [Glimmer DSL for LibUI](https://rubygems.org/gems/glimmer-dsl-libui) Version 2:
367
+ [Glimmer DSL for LibUI](https://rubygems.org/gems/glimmer-dsl-libui) Version 2 (using `Enumerator` directly):
372
368
 
373
369
  [examples/lazy_table2.rb](/examples/lazy_table2.rb)
374
370
 
375
- `Enumerator::Lazy` Subclass [Glimmer DSL for LibUI](https://rubygems.org/gems/glimmer-dsl-libui) Version 3:
371
+ [Glimmer DSL for LibUI](https://rubygems.org/gems/glimmer-dsl-libui) Version 3 (using a well encapsulated `Enumerator::Lazy` Subclass):
376
372
 
377
373
  [examples/lazy_table3.rb](/examples/lazy_table3.rb)
378
374
 
379
- `Enumerator::Lazy` [Glimmer DSL for LibUI](https://rubygems.org/gems/glimmer-dsl-libui) Version 4:
375
+ [Glimmer DSL for LibUI](https://rubygems.org/gems/glimmer-dsl-libui) Version 4 (using `Enumerator::Lazy` directly):
380
376
 
381
377
  [examples/lazy_table4.rb](/examples/lazy_table4.rb)
382
378
 
Binary file
@@ -511,7 +511,7 @@ module Glimmer
511
511
  # TODO will this require that @cell_rows_observer is called with queue_main too to avoid issue with multiple immediate model updates breaking this?
512
512
  Glimmer::LibUI.queue_main do
513
513
  new_row = @columns&.select {|column| column.is_a?(Column)}&.map {|column| column.class.default_value}
514
- if new_row
514
+ if new_row && !@cell_rows.is_a?(Enumerator)
515
515
  @cell_rows << new_row
516
516
  @cell_rows.pop
517
517
  end
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.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Maleh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-11 00:00:00.000000000 Z
11
+ date: 2023-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: glimmer
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.0.5
33
+ version: 1.0.7
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.0.5
40
+ version: 1.0.7
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: super_module
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -168,6 +168,48 @@ dependencies:
168
168
  - - "<"
169
169
  - !ruby/object:Gem::Version
170
170
  version: 3.0.0
171
+ - !ruby/object:Gem::Dependency
172
+ name: stringio
173
+ requirement: !ruby/object:Gem::Requirement
174
+ requirements:
175
+ - - '='
176
+ - !ruby/object:Gem::Version
177
+ version: 3.0.1
178
+ type: :development
179
+ prerelease: false
180
+ version_requirements: !ruby/object:Gem::Requirement
181
+ requirements:
182
+ - - '='
183
+ - !ruby/object:Gem::Version
184
+ version: 3.0.1
185
+ - !ruby/object:Gem::Dependency
186
+ name: psych
187
+ requirement: !ruby/object:Gem::Requirement
188
+ requirements:
189
+ - - '='
190
+ - !ruby/object:Gem::Version
191
+ version: 4.0.3
192
+ type: :development
193
+ prerelease: false
194
+ version_requirements: !ruby/object:Gem::Requirement
195
+ requirements:
196
+ - - '='
197
+ - !ruby/object:Gem::Version
198
+ version: 4.0.3
199
+ - !ruby/object:Gem::Dependency
200
+ name: json
201
+ requirement: !ruby/object:Gem::Requirement
202
+ requirements:
203
+ - - '='
204
+ - !ruby/object:Gem::Version
205
+ version: 2.6.1
206
+ type: :development
207
+ prerelease: false
208
+ version_requirements: !ruby/object:Gem::Requirement
209
+ requirements:
210
+ - - '='
211
+ - !ruby/object:Gem::Version
212
+ version: 2.6.1
171
213
  - !ruby/object:Gem::Dependency
172
214
  name: rspec
173
215
  requirement: !ruby/object:Gem::Requirement