tabulatr2 0.9.48 → 0.10.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 +4 -4
- data/lib/tabulatr/data/data.rb +1 -1
- data/lib/tabulatr/renderer/column.rb +1 -1
- data/lib/tabulatr/renderer/renderer.rb +1 -1
- data/lib/tabulatr/version.rb +1 -1
- 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: bdb9fcdbe5c6ce53ebad493c01748cd8cf9e4ccda24489fe0099522f7c0882a2
|
4
|
+
data.tar.gz: 614fa1cb9a4ba65a6abdbea6dfa19da08ee7bf97df8876ca5acd6dacec7ac9db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97f0ebc6c22ae0e4662f8c911daca13d57cdc4790edf7632dedf85ac92de827f3ac1cbba9c3ee761c4b4a255ac1b6ab3878ec43a96f0fe30fda4de79b33fcff6
|
7
|
+
data.tar.gz: 5bee4b88ed47e477fbd50072a2835fcdce48d45c0f1e4a182179281967cc200e83a91dbac041adee928a78fec5837c8dc98d42eb66b129976e334166af3774da
|
data/lib/tabulatr/data/data.rb
CHANGED
@@ -59,7 +59,7 @@ class Tabulatr::Data
|
|
59
59
|
return batch_result if batch_result.is_a? Tabulatr::Responses::DirectResponse
|
60
60
|
|
61
61
|
pagination = compute_pagination(params[:page], params[:pagesize])
|
62
|
-
apply_pagination(pagination.slice(:offset, :pagesize))
|
62
|
+
apply_pagination(**pagination.slice(:offset, :pagesize))
|
63
63
|
|
64
64
|
# get the records
|
65
65
|
found = apply_formats(locals: locals, controller: controller)
|
@@ -101,7 +101,7 @@ class Tabulatr::Renderer::Column
|
|
101
101
|
when :enum then self.col_options.filter = :enum
|
102
102
|
when :float, :decimal then self.col_options.filter = :decimal
|
103
103
|
when :string, :text then self.col_options.filter = :like
|
104
|
-
when :date, :time, :datetime, :timestamp then self.col_options.filter = :date
|
104
|
+
when :date, :time, :datetime, :timestamp, :timestamptz then self.col_options.filter = :date
|
105
105
|
when :boolean then self.col_options.filter = :checkbox
|
106
106
|
when nil then self.col_options.filter = :exact
|
107
107
|
else raise "Unknown filter type for #{self.name}: »#{typ}«"
|
@@ -96,7 +96,7 @@ class Tabulatr::Renderer
|
|
96
96
|
end
|
97
97
|
|
98
98
|
def self.build_table(klass, view, toptions={}, columns, filters, tabulatr_data_class, &block)
|
99
|
-
new(klass, view, toptions).build_table(columns, filters, tabulatr_data_class, &block)
|
99
|
+
new(klass, view, **toptions).build_table(columns, filters, tabulatr_data_class, &block)
|
100
100
|
end
|
101
101
|
|
102
102
|
def columns_json(tabulatr_data_class_name=nil)
|
data/lib/tabulatr/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tabulatr2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Horn
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2024-04
|
13
|
+
date: 2024-06-04 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|