glimmer-dsl-libui 0.5.21 → 0.5.22
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 +3 -3
- data/VERSION +1 -1
- data/glimmer-dsl-libui.gemspec +0 -0
- data/lib/glimmer/libui/custom_control/refined_table.rb +1 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a14fbff4892efccc783e692d7d8c4f374551a30032b031f9df47639b32b0db7d
|
4
|
+
data.tar.gz: 63270b4f614eaf7e655db45ef5e655049673d174b6c6a62e98ee3758b8a8d47c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
[](http://badge.fury.io/rb/glimmer-dsl-libui)
|
4
4
|
[](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.
|
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
|
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.
|
1
|
+
0.5.22
|
data/glimmer-dsl-libui.gemspec
CHANGED
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
|
-
|
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
|