glimmer-dsl-swt 4.24.4.7 → 4.24.4.8

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: fa2c86f6cd6f3f38a1f5790a1b66b61fd90d354af69ef815be3330a272bd2e4f
4
- data.tar.gz: ed9d793052ab0f83533f517d90dd0419771a6b110ca642f70691f06eac3159c5
3
+ metadata.gz: 0fe762c944e91cd87d49690912e9bfe3513335ff8ac80d5248a485b597bc82fb
4
+ data.tar.gz: 0fc8caa7604fbc524020ab9b7c91f7cf5e1aa44055c116607a9103ef407b4b2e
5
5
  SHA512:
6
- metadata.gz: 250fe4baa75533f2a5c5fec95c26e750f517f6a969621f347ce56e5a1c4f8bb5c8dc8029824809f84b8b0cab3be512b359d45a200ccd7c4942d1bc8535fb04f7
7
- data.tar.gz: 863cccf44a913613b242dab209be6c1ce24daa974c458c2f4dced7440012573df1c324025eb91220afbf1571e3f57bc5628dd5397ddbb131535b0175394f827f
6
+ metadata.gz: e1e058691460ad791753d7040268e0ede146a075a32eb85b7c9b5bb12cc87316dfa90965b27f274741ac7c4c7c9fd7d03a5196dcffc5c5156918251c2cf41196
7
+ data.tar.gz: 3ed723eb74b7b225d7a082732cfbb0c50350221ab532576f6da14000cad1c8149bb0a5becd6db78f33b318b1e09ab8e12ff0bae9069578ce379428ff98250661
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Change Log
2
2
 
3
+ ## 4.24.4.8
4
+
5
+ - Optimize `refined_table` sorting to avoid re-running upon navigating pages
6
+ - Fix issue with `refined_table` sorting breaking page remembering behavior upon entering a filter query
7
+
3
8
  ## 4.24.4.7
4
9
 
5
10
  - Optimize performance of `refined_table` in filtering (it now caches results and replays them) and pagination (it now remembers last query page and avoids refiltering when paginating on the same query value)
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 4.24.4.7
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 4.24.4.8
2
2
  ## JRuby Desktop Development GUI Framework
3
3
  [![Gem Version](https://badge.fury.io/rb/glimmer-dsl-swt.svg)](http://badge.fury.io/rb/glimmer-dsl-swt)
4
4
  [![Travis CI](https://travis-ci.com/AndyObtiva/glimmer-dsl-swt.svg?branch=master)](https://travis-ci.com/github/AndyObtiva/glimmer-dsl-swt)
@@ -21,7 +21,7 @@ Featured in JRuby Cookbook](http://shop.oreilly.com/product/9780596519650.do) an
21
21
 
22
22
  ![Eclipse SWT RCP NASA Mars Rover](/images/glimmer-eclipse-swt-rcp-nasa-mars-rover.png)
23
23
 
24
- [Glimmer DSL for SWT](https://rubygems.org/gems/glimmer-dsl-swt) 4.24.4.7 includes [SWT 4.24](https://download.eclipse.org/eclipse/downloads/drops4/R-4.24-202206070700/), which was released on June 7, 2022. Gem version numbers are in sync with the SWT library versions. The first two digits represent the SWT version number. The last two digits represent the minor and patch versions of Glimmer DSL for SWT.
24
+ [Glimmer DSL for SWT](https://rubygems.org/gems/glimmer-dsl-swt) 4.24.4.8 includes [SWT 4.24](https://download.eclipse.org/eclipse/downloads/drops4/R-4.24-202206070700/), which was released on June 7, 2022. Gem version numbers are in sync with the SWT library versions. The first two digits represent the SWT version number. The last two digits represent the minor and patch versions of Glimmer DSL for SWT.
25
25
 
26
26
  **Starting in version 4.20.0.0, [Glimmer DSL for SWT](https://rubygems.org/gems/glimmer-dsl-swt) comes with the new [***Shine***](/docs/reference/GLIMMER_GUI_DSL_SYNTAX.md#shine) syntax** for highly intuitive and visually expressive View/Model Attribute Mapping, relying on `<=>` for bidirectional (two-way) data-binding and `<=` for unidirectional (one-way) data-binding, providing an alternative to the `bind` keyword. That was [originally conceived back in 2007](https://andymaleh.blogspot.com/2007/12/data-shining-in-glimmer.html).
27
27
 
@@ -338,7 +338,7 @@ jgem install glimmer-dsl-swt
338
338
 
339
339
  Or this command if you want a specific version:
340
340
  ```
341
- jgem install glimmer-dsl-swt -v 4.24.4.7
341
+ jgem install glimmer-dsl-swt -v 4.24.4.8
342
342
  ```
343
343
 
344
344
  `jgem` is JRuby's version of `gem` command.
@@ -366,7 +366,7 @@ Note: if you're using activerecord or activesupport, keep in mind that Glimmer u
366
366
 
367
367
  Add the following to `Gemfile`:
368
368
  ```
369
- gem 'glimmer-dsl-swt', '~> 4.24.4.7'
369
+ gem 'glimmer-dsl-swt', '~> 4.24.4.8'
370
370
  ```
371
371
 
372
372
  And, then run:
@@ -389,7 +389,7 @@ glimmer
389
389
  ```
390
390
 
391
391
  ```
392
- Glimmer (JRuby Desktop Development GUI Framework) - JRuby Gem: glimmer-dsl-swt v4.24.4.7
392
+ Glimmer (JRuby Desktop Development GUI Framework) - JRuby Gem: glimmer-dsl-swt v4.24.4.8
393
393
 
394
394
  Usage: glimmer [--bundler] [--pd] [--quiet] [--debug] [--log-level=VALUE] [[ENV_VAR=VALUE]...] [[-jruby-option]...] (application.rb or task[task_args]) [[application2.rb]...]
395
395
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.24.4.7
1
+ 4.24.4.8
Binary file
@@ -53,8 +53,7 @@ module Glimmer
53
53
  model_binding = new_widget_binding.model_binding
54
54
  configure_sorting
55
55
  observe(self, :model_array) do
56
- @query_to_filtered_model_array_hash = {}
57
- @query_to_page_hash = {}
56
+ clear_query_cache
58
57
  filter_and_paginate
59
58
  end
60
59
  @table_proxy.content {
@@ -241,6 +240,11 @@ module Glimmer
241
240
  end
242
241
  end
243
242
 
243
+ def clear_query_cache
244
+ @query_to_filtered_model_array_hash = {}
245
+ @query_to_page_hash = {}
246
+ end
247
+
244
248
  def query_to_filtered_model_array_hash
245
249
  @query_to_filtered_model_array_hash ||= {}
246
250
  end
@@ -253,6 +257,9 @@ module Glimmer
253
257
 
254
258
  def configure_sorting
255
259
  @table_proxy.sort_strategy = lambda do
260
+ new_sort = @table_proxy.sort_block || @table_proxy.sort_by_block || @table_proxy.sort_property
261
+ new_sort_direction = @table_proxy.sort_direction
262
+ return if new_sort == @last_sort && new_sort_direction == @last_sort_direction
256
263
  array = model_array.dup
257
264
  array = array.sort_by(&:hash) # this ensures consistent subsequent sorting in case there are equivalent sorts to avoid an infinite loop
258
265
  # Converting value to_s first to handle nil cases. Should work with numeric, boolean, and date fields
@@ -278,6 +285,8 @@ module Glimmer
278
285
  end
279
286
  sorted_array = sorted_array.reverse if @table_proxy.sort_direction == :descending
280
287
  self.model_array = sorted_array
288
+ @last_sort = new_sort
289
+ @last_sort_direction = new_sort_direction
281
290
  end
282
291
  end
283
292
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glimmer-dsl-swt
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.24.4.7
4
+ version: 4.24.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Maleh