glimmer-dsl-libui 0.5.12 → 0.5.13

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: 4b379bb11d6c49f9b76fef9757561fea66425ada858b2d1cb04e51347ac0ba4f
4
- data.tar.gz: '079b574bdfea7868853403476093875d0cee538b742c9e0f19b4e9947516980e'
3
+ metadata.gz: 3ec966c5f1dcd6315fe94455e2a8257df7ed6274ada0d74419e53b9abeab99bb
4
+ data.tar.gz: 5f1f410e8a239735c1188d4a7bdad00f9fed6e34ba71ba5c2ac65f01b8f49037
5
5
  SHA512:
6
- metadata.gz: 8f1c8f35368f2438313c30533209cfb33e9e5fa34159b59ca6a2b557a7051fcb554a6eb96cc2ec10bf5afbd54b4acbba208e136ba62d579ab3e1d031cc6775e3
7
- data.tar.gz: 31c0dfcebb130b4913330aa75d53d01c2ec6711961cb032313149cf02465976de74890fd0e11f00d33160b785415bad5dd9a7b6c00cb02e3a69aa73773506e85
6
+ metadata.gz: 574718284c8933f27d088777e9ffd77a37922f3f51ec90e85026f1d86f572c84bea4d86141fc3b67bb5192769ac03e13dca791b3ce6b8d2ae88235008ba4cbcf
7
+ data.tar.gz: 87656800ed048be0ffc15520e5988b911fac60bcdb73db16fd962e5820d2d2c948a08a14c1c22aaef4543623d8f2c803c7d10e0c106bc40c13942bddaf83cfda
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## 0.5.13
4
+
5
+ - Fix issue with rendering table content changes when having many rows
6
+
3
7
  ## 0.5.12
4
8
 
5
9
  - Upgrade `perfect-shape` gem to 1.0.5 to address Ruby 3.1 issue with `matrix` gem getting extracted from Ruby into a bundled gem
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.5.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.5.13
2
2
  ## Prerequisite-Free Ruby Desktop Development GUI Library
3
3
  [![Gem Version](https://badge.fury.io/rb/glimmer-dsl-libui.svg)](http://badge.fury.io/rb/glimmer-dsl-libui)
4
4
  [![Join the chat at https://gitter.im/AndyObtiva/glimmer](https://badges.gitter.im/AndyObtiva/glimmer.svg)](https://gitter.im/AndyObtiva/glimmer?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
@@ -433,6 +433,8 @@ DSL | Platforms | Native? | Vector Graphics? | Pros | Cons | Prereqs
433
433
  - [Manga2PDF](#manga2pdf)
434
434
  - [Befunge98 GUI](#befunge98-gui)
435
435
  - [i3off Gtk Ruby](#i3off-gtk-ruby)
436
+ - [Chess](#chess)
437
+ - [RubyCrumbler](#rubycrumbler)
436
438
  - [Process](#process)
437
439
  - [Resources](#resources)
438
440
  - [Help](#help)
@@ -579,7 +581,7 @@ gem install glimmer-dsl-libui
579
581
  Or install via Bundler `Gemfile`:
580
582
 
581
583
  ```ruby
582
- gem 'glimmer-dsl-libui', '~> 0.5.12'
584
+ gem 'glimmer-dsl-libui', '~> 0.5.13'
583
585
  ```
584
586
 
585
587
  Test that installation worked by running the [Meta-Example](#examples):
@@ -11227,6 +11229,16 @@ https://github.com/iraamaro/i3off-gtk-ruby
11227
11229
 
11228
11230
  https://github.com/mikeweber/chess
11229
11231
 
11232
+ ### RubyCrumbler
11233
+
11234
+ NLP (Natural Language Processing) App
11235
+
11236
+ https://github.com/joh-ga/RubyCrumbler
11237
+
11238
+ MacOS | Windows | Linux
11239
+ | :---: | :---: | :---:
11240
+ ![mac_31](https://user-images.githubusercontent.com/72874215/159339948-b7ae1bf2-60c1-4dae-ac1a-4e13a6048ef0.gif)|![windows_4](https://user-images.githubusercontent.com/72874215/160242473-c38439be-0955-4e89-9f3f-b3d0567531fd.gif)|![rubycrumbler_linux](https://user-images.githubusercontent.com/72874215/160242460-99af1c8c-b43f-458d-bd69-1274a0bd9814.gif)
11241
+
11230
11242
  ## Process
11231
11243
 
11232
11244
  [Glimmer Process](https://github.com/AndyObtiva/glimmer/blob/master/PROCESS.md)
@@ -11260,6 +11272,8 @@ These features have been planned or suggested. You might see them in a future ve
11260
11272
 
11261
11273
  ## Contributing
11262
11274
 
11275
+ If you would like to contribute to the project, please adhere to the [Open-Source Etiquette](https://github.com/AndyObtiva/open-source-etiquette) to ensure the best results.
11276
+
11263
11277
  - Check out the latest master to make sure the feature hasn't been
11264
11278
  implemented or the bug hasn't been fixed yet.
11265
11279
  - Check out the issue tracker to make sure someone already hasn't
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.12
1
+ 0.5.13
Binary file
@@ -303,16 +303,30 @@ module Glimmer
303
303
  def register_cell_rows_observer
304
304
  @cell_rows_observer = Glimmer::DataBinding::Observer.proc do |new_cell_rows|
305
305
  if @cell_rows.size < @last_cell_rows.size && @last_cell_rows.include_all?(*@cell_rows)
306
- @last_cell_rows.array_diff_indexes(@cell_rows).reverse.each do |row|
306
+ @last_cell_rows.each_with_index do |old_row_data, row|
307
+ if old_row_data != @cell_rows[row]
308
+ ::LibUI.table_model_row_changed(model, row) if model && row
309
+ notify_custom_listeners('on_changed', row, :changed, @cell_rows[row])
310
+ end
311
+ end
312
+ (@last_cell_rows.size - @cell_rows.size).times do |n|
313
+ row = @last_cell_rows.size - n - 1
307
314
  ::LibUI.table_model_row_deleted(model, row) if model && row
308
315
  notify_custom_listeners('on_changed', row, :deleted, @last_cell_rows[row])
309
316
  end
310
317
  elsif @cell_rows.size > @last_cell_rows.size && @cell_rows.include_all?(*@last_cell_rows)
311
- @cell_rows.array_diff_indexes(@last_cell_rows).each do |row|
318
+ (@cell_rows.size - @last_cell_rows.size).times do |n|
319
+ row = @last_cell_rows.size + n
312
320
  ::LibUI.table_model_row_inserted(model, row) if model && row
313
321
  notify_custom_listeners('on_changed', row, :inserted, @cell_rows[row])
314
322
  end
315
- else
323
+ @cell_rows.each_with_index do |new_row_data, row|
324
+ if new_row_data != @last_cell_rows[row]
325
+ ::LibUI.table_model_row_changed(model, row) if model && row
326
+ notify_custom_listeners('on_changed', row, :changed, @cell_rows[row])
327
+ end
328
+ end
329
+ elsif @cell_rows != @last_cell_rows
316
330
  @cell_rows.each_with_index do |new_row_data, row|
317
331
  if new_row_data != @last_cell_rows[row]
318
332
  ::LibUI.table_model_row_changed(model, row) if model && row
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.5.12
4
+ version: 0.5.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Maleh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-03 00:00:00.000000000 Z
11
+ date: 2022-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: glimmer