tranzito_utils 1.3.0 → 1.3.1

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: f9200b266283acc5bca16516873cfa19fd2df8f3da6ebdf3c00678224f797ff5
4
- data.tar.gz: 3bb4b8c641003c58dbca7925b82fce1e9e9d536a8127bf545587de01a11611a8
3
+ metadata.gz: 2e21a51b8176d00af57ccad00580020c4734331290167b89151126a9a5f86ff9
4
+ data.tar.gz: b9ac19e2a024ff05c5bc9e4fb4e4840553238b5255aee85ef88b820031072f79
5
5
  SHA512:
6
- metadata.gz: a3bab2fe8fa1c67a8fe1aaee70d8ff6737ab22429cd9392012cf403ee7f519ac8ec18569e54ee335a4a7a16d1976fcebe7e1d733cbb0098e66b5085aa29b4bc9
7
- data.tar.gz: 6586213cd8e7dabfcf5eb483c41ec57167eacca52e51d5d5de1d54d4b3b5730eb2908e64f54b5dee68e80c1ff3f593c2564fe56159f23afe2be5436c7559298e
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?(/search_/) }
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TranzitoUtils
4
- VERSION = "1.3.0"
4
+ VERSION = "1.3.1"
5
5
  end
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.0
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: 2023-06-13 00:00:00.000000000 Z
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.1.2
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