base_editing_bootstrap 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/base_editing_bootstrap/VERSION +1 -1
- data/lib/base_editing_bootstrap/searches/field.rb +9 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8975be7d400651326b997d9d7650bd12c9145233c753e326ddb945c8a84816a
|
4
|
+
data.tar.gz: 97a6eaaa243d8d3320c3093fdc5a650c6d9cc5b20641680cb91f7985bf50f8fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48733c1f94d354afb34528998fce967e9b22d1bdf2b418eb8fb4444fea4bac157d4a0a79168c365675e3ca864d23eba0b046b54bbc8babb397f42e449e69f736
|
7
|
+
data.tar.gz: 5de0164ea3ae7de687816ec721117b66bde4c309ac3806ce1e812e266eb847a61c859dd185bf0755a496bf42e76b5b820c936e76b39849321b75481d8009e3f5
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,14 @@
|
|
2
2
|
All notable changes to this project will be documented in this file. See [conventional commits](https://www.conventionalcommits.org/) for commit guidelines.
|
3
3
|
|
4
4
|
- - -
|
5
|
+
## 1.2.0 - 2025-01-09
|
6
|
+
#### Features
|
7
|
+
- Add new method to get label from search field - (ace5fa0) - Marino Bonetti
|
8
|
+
#### Tests
|
9
|
+
- Add Menu for navigation in dummy - (2b2a9a6) - Marino Bonetti
|
10
|
+
|
11
|
+
- - -
|
12
|
+
|
5
13
|
## 1.1.0 - 2025-01-03
|
6
14
|
#### Continuous Integration
|
7
15
|
- Add ruby 3.4 - (5658bb0) - Marino Bonetti
|
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.2.0
|
@@ -6,6 +6,8 @@ module BaseEditingBootstrap::Searches
|
|
6
6
|
class Field
|
7
7
|
attr_reader :search_base, :name
|
8
8
|
|
9
|
+
# @param [BaseEditingBootstrap::Searches::Base] search_base
|
10
|
+
# @param [Symbol] name
|
9
11
|
def initialize(search_base, name)
|
10
12
|
@search_base = search_base
|
11
13
|
@name = name
|
@@ -14,5 +16,12 @@ module BaseEditingBootstrap::Searches
|
|
14
16
|
def to_partial_path
|
15
17
|
"search_field"
|
16
18
|
end
|
19
|
+
|
20
|
+
##
|
21
|
+
# Helper per estrapolare la label del campo
|
22
|
+
# @return [String]
|
23
|
+
def label
|
24
|
+
@search_base.ransack_query.translate(name)
|
25
|
+
end
|
17
26
|
end
|
18
27
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: base_editing_bootstrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marino Bonetti
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-01-
|
11
|
+
date: 2025-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|