datagrid 2.0.3 → 2.0.5

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: 6cc15c9ea72791b889df3bb2d63e91ce7a169edc0b59696088814ab0073dec90
4
- data.tar.gz: d26164cc067285f8458adda642f6533203d9e7874b8581ee9c62a3fd5aeeed83
3
+ metadata.gz: c86512c8f1419a81e769bc5341867e20071dcf1424ce55200a496e529a3b275c
4
+ data.tar.gz: b192c0bd6a90ce4085255de178ef732cbef691c7e529905138b47b6edd122fa1
5
5
  SHA512:
6
- metadata.gz: 316d4add546ac0b9d8b446dda966af1b7facf76fdbfd19cb25d9fa160e6b33c1d241ef7a6278308c28bce66d899b065b7c6e584145d611d000ceba056b9add0d
7
- data.tar.gz: 2c254dcc6786227571346daf07c2a38896d886bc1ccf15d61b8f9df6dca9080072b0fa9b544157fecd5c7e3bde62d7a1840bf546d691686e5dbd5101877c83f7
6
+ metadata.gz: da1baacc64d7e8502ce8738ff4de3c6346f2e1b486a49337c7194a64fcabbf9c38ba8839e1cd1f1be181419b185b79b41147cc0536581846625ca6386c21e1fd
7
+ data.tar.gz: af4ababb2213b465ef1fbac48a406166d336d917becbde4cb58ad0643aa78032f0f23fcf4461c730582cf5a162edfec5817f794bea54d9b3310d9801ba5aca63
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.0.5]
4
+
5
+ * Add support for timestamptz ActiveRecord column type
6
+
7
+ ## [2.0.4]
8
+
9
+ * Support Rails 8.1 [#342](https://github.com/bogdan/datagrid/issues/342)
10
+ * Support Ruby 3.4 [#342](https://github.com/bogdan/datagrid/issues/342)
11
+
3
12
  ## [2.0.3]
4
13
 
5
14
  * Fix `default_column_options` bug [#338](https://github.com/bogdan/datagrid/issues/338) by @pokonski.
data/README.md CHANGED
@@ -33,7 +33,7 @@ including admin panels, analytics and data browsers:
33
33
 
34
34
  * [Rdoc](https://rubydoc.info/gems/datagrid) - full API reference
35
35
  * [Scope](https://rubydoc.info/gems/datagrid/Datagrid/Core) - working with datagrid scope
36
- * [Columns](https://rubydoc.info/gems/datagrid/Datagrid/Columns) - definging datagrid columns
36
+ * [Columns](https://rubydoc.info/gems/datagrid/Datagrid/Columns) - defining datagrid columns
37
37
  * [Filters](https://rubydoc.info/gems/datagrid/Datagrid/Filters) - defining datagrid filters
38
38
  * [Frontend](https://rubydoc.info/gems/datagrid/Datagrid/Helper) - building a frontend
39
39
  * [Configuration](https://rubydoc.info/gems/datagrid/Datagrid/Configuration) - configuring the gem
@@ -168,7 +168,14 @@ module Datagrid
168
168
 
169
169
  # @return [String] column console inspection
170
170
  def inspect
171
- "#<#{self.class} #{grid_class}##{name} #{options.inspect}>"
171
+ options_inspection = if RUBY_VERSION >= "3.4"
172
+ # Ruby 3.4+ changed Hash#inspect format for symbol keys from {:key=>"value"} to {key: "value"}
173
+ options.inspect
174
+ else
175
+ "{#{options.map { |key, value| "#{key}: #{value.inspect}" }.join(", ")}}"
176
+ end
177
+
178
+ "#<#{self.class} #{grid_class}##{name} #{options_inspection}>"
172
179
  end
173
180
 
174
181
  # @return [String] column header
@@ -97,7 +97,7 @@ module Datagrid
97
97
  %i[integer primary_key] => :integer,
98
98
  %i[float decimal] => :float,
99
99
  [:date] => :date,
100
- %i[datetime timestamp] => :timestamp,
100
+ %i[datetime timestamp timestamptz] => :timestamp,
101
101
  [:boolean] => :boolean,
102
102
  }.each do |keys, value|
103
103
  return value if keys.include?(builtin_type)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Datagrid
4
- VERSION = "2.0.3"
4
+ VERSION = "2.0.5"
5
5
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datagrid
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bogdan Gusiev
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2025-07-07 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: railties
@@ -98,7 +97,6 @@ metadata:
98
97
  changelog_uri: https://github.com/bogdan/datagrid/blob/main/CHANGELOG.md
99
98
  source_code_uri: https://github.com/bogdan/datagrid
100
99
  rubygems_mfa_required: 'true'
101
- post_install_message:
102
100
  rdoc_options: []
103
101
  require_paths:
104
102
  - lib
@@ -113,8 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
111
  - !ruby/object:Gem::Version
114
112
  version: '0'
115
113
  requirements: []
116
- rubygems_version: 3.5.11
117
- signing_key:
114
+ rubygems_version: 3.6.7
118
115
  specification_version: 4
119
116
  summary: Library that provides DSL to present table like data
120
117
  test_files: []