tranzito_utils 1.3.0 → 1.3.1
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2e21a51b8176d00af57ccad00580020c4734331290167b89151126a9a5f86ff9
|
|
4
|
+
data.tar.gz: b9ac19e2a024ff05c5bc9e4fb4e4840553238b5255aee85ef88b820031072f79
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c2977b2f4c56eeb4449d01e9911bbe70907e0a58071973e610826be3fa233a751ebdc4b37193f4301ee95bc2a73c17c87b219bf6c13c0dff49b749ff8d4d9cca
|
|
7
|
+
data.tar.gz: baffd85526162bfd191afc173aa62f128adbcc854f814abe51482b5b77eed02615cdb7ead17d07d127c49f66e233b37354af7733d7729b7a3cd01d02fdbe68af
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
- count ||= defined?(collection.total_count) ? collection.total_count : collection.count
|
|
4
4
|
- skip_total ||= false
|
|
5
5
|
- skip_pagination ||= false
|
|
6
|
+
- paginate_params ||= {}
|
|
6
7
|
-# override added to convert Created to Imported - for clarity in payroll_times
|
|
7
8
|
- humanized_time_range_column_override ||= nil
|
|
8
9
|
|
|
@@ -25,7 +26,7 @@
|
|
|
25
26
|
= humanized_time_range(@time_range)
|
|
26
27
|
- unless skip_pagination
|
|
27
28
|
.pagination-flex.justify-content-md-end{class: (skip_total ? "col-12" : "col-md-7")}
|
|
28
|
-
= paginate collection, outer_window: 1
|
|
29
|
+
= paginate collection, outer_window: 1, params: paginate_params
|
|
29
30
|
- if count > @per_page.to_i
|
|
30
31
|
- per_pages = [10, 25, 50, 100, @per_page.to_i].uniq.sort
|
|
31
32
|
= select_tag :per_page_select, options_for_select(per_pages.map { |i| ["#{i} / page", i] }, selected: @per_page), { class: "form-control per-page-select" }
|
|
@@ -29,7 +29,7 @@ module TranzitoUtils
|
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
def sortable_search_params
|
|
32
|
-
search_param_keys = params.keys.select { |k| k.to_s.start_with?(
|
|
32
|
+
search_param_keys = params.keys.select { |k| k.to_s.start_with?("search_") }
|
|
33
33
|
params.permit(*(DEFAULT_SEARCH_KEYS | TranzitoUtils::DEFAULT[:additional_search_keys] | search_param_keys))
|
|
34
34
|
end
|
|
35
35
|
|
metadata
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tranzito_utils
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- willbarrettdev
|
|
8
8
|
- sethherr
|
|
9
9
|
- hafiz-ahmed
|
|
10
|
-
autorequire:
|
|
10
|
+
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date:
|
|
13
|
+
date: 2024-03-01 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: rails
|
|
@@ -121,7 +121,7 @@ licenses:
|
|
|
121
121
|
metadata:
|
|
122
122
|
homepage_uri: https://github.com/Tranzito/tranzito_utils
|
|
123
123
|
source_code_uri: https://github.com/Tranzito/tranzito_utils
|
|
124
|
-
post_install_message:
|
|
124
|
+
post_install_message:
|
|
125
125
|
rdoc_options: []
|
|
126
126
|
require_paths:
|
|
127
127
|
- lib
|
|
@@ -136,8 +136,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
136
136
|
- !ruby/object:Gem::Version
|
|
137
137
|
version: '0'
|
|
138
138
|
requirements: []
|
|
139
|
-
rubygems_version: 3.
|
|
140
|
-
signing_key:
|
|
139
|
+
rubygems_version: 3.3.26
|
|
140
|
+
signing_key:
|
|
141
141
|
specification_version: 4
|
|
142
142
|
summary: Ruby gem contain several modules mainly containing the helpers, concerns
|
|
143
143
|
and services for personal use by Tranzito
|