glimmer-dsl-libui 0.5.21 → 0.5.22

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: 1d3ae4d7f5fd6c3c531509482ba3ef7711b91f8cf9ae2441b233d25bc9dc266e
4
- data.tar.gz: 9232fe8d0f5a792f2410b8c49f9c6ee0261487c3fd144dce76a7aa3ef83d5571
3
+ metadata.gz: a14fbff4892efccc783e692d7d8c4f374551a30032b031f9df47639b32b0db7d
4
+ data.tar.gz: 63270b4f614eaf7e655db45ef5e655049673d174b6c6a62e98ee3758b8a8d47c
5
5
  SHA512:
6
- metadata.gz: 79b089d01f618868dd6b18905564b03ccf883bbdbd577009b27a54cfb65ba23ef7de183890b63fe9eac6f2d837f8eae410d0e21d556cdf22e2b6175e32438724
7
- data.tar.gz: cf4632a603e050ea8f06fe5fa6c53da4e65ab0998a3335ce34b428eaab876ddb8b0e364e474cdc8e24473d4d9c171aa217dd8c86da8af79fd3977303e41638c3
6
+ metadata.gz: f85df30c814c1b05a57f8a031712359c914a3b326436ba4e0b3f11c5a6ff7406e32703dcf144778388756b9d943dcb91fec1b914dc3cb97e40826ff01b655743
7
+ data.tar.gz: efa00b67dff67a72ca5527795c995aa33f18b419d91ee350712eb245b7543820a3a525871c626ed1680a69a1c032c58547a4b5d9f2a54a740cea60e213805a0c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## 0.5.22
4
+
5
+ - Update support for `refined_table` column-specific term filtering to do an exact term filtering when entering a double-quoted column value (e.g. first_name:"John Doe")
6
+
3
7
  ## 0.5.21
4
8
 
5
9
  - Support `refined_table` AND-based filtering by treating multiple words as WORD1 AND WORD2, etc...
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.21
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.22
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)
@@ -538,7 +538,7 @@ gem install glimmer-dsl-libui
538
538
  Or install via Bundler `Gemfile`:
539
539
 
540
540
  ```ruby
541
- gem 'glimmer-dsl-libui', '~> 0.5.21'
541
+ gem 'glimmer-dsl-libui', '~> 0.5.22'
542
542
  ```
543
543
 
544
544
  Test that installation worked by running the [Meta-Example](#examples):
@@ -961,7 +961,7 @@ And, please keep in mind that the API might undergo big changes.
961
961
  Options (passed as kwargs hash):
962
962
 
963
963
  - `model_array` (`Array`): array of models for which attributes map to table columns
964
- - `filter_query` (`String`): query term to filter table by, matching against all columns
964
+ - `filter_query` (`String`): query term to filter table by; AND-matching multiple words against all columns (e.g. `John Illinois` returns John Doe from Illinois, USA), a double-quoted exact term match against all columns (e.g. `"Urbana Champaign"` returns only results from the town of "Urbana Champaign"), or a match against specific columns (e.g. `first_name:John`, `"first name":John`, `first_name:"John Doe"`, or `"first name":"john doe"`). You may mix and match different types of filter queries. All matches are case-insensitive. To customize filtering differently, you may set the `filter` option explained below.
965
965
  - `table_columns` (`Hash`): this maps column types to symbols (e.g. `text_column` becomes `:text`) with hash options per column
966
966
  - `table_editable` (Boolean) [default: `false`]: this indicates if all table columns are editable or not.
967
967
  - `per_page` (`Integer`)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.21
1
+ 0.5.22
Binary file
@@ -61,10 +61,7 @@ module Glimmer
61
61
  table_column_name.underscore.start_with?(column_name.underscore)
62
62
  end
63
63
  if column_human_name
64
- column_value_words = [column_value.downcase.split].flatten
65
- column_value_words.all? do |column_value_word|
66
- row_hash[column_human_name].downcase.include?(column_value_word)
67
- end
64
+ row_hash[column_human_name].downcase.include?(column_value.downcase)
68
65
  else
69
66
  text.downcase.include?(word.downcase)
70
67
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glimmer-dsl-libui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.21
4
+ version: 0.5.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Maleh