rodauth-tools 0.3.0 → 0.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: 49ed411752d1850001a89d8be7260feef6e8b4dae04547100d75bde5c80d1afd
4
- data.tar.gz: ce7e4e431d01a64f4e6a8f1847795a1df7caa529895b0aa12568543668aaca71
3
+ metadata.gz: d6b7dce9af93d884748ed19771aff8061295da616488cde6b1d8cd22025f2165
4
+ data.tar.gz: b57d1b4d34dc706eb55e2184fee7fced8e7f789037527a5952ce22bfffc3b1ab
5
5
  SHA512:
6
- metadata.gz: 76cec388e98fb42c5413d25ac99ee8db3351db79f6c68c57abee7049286738b7242b0afa0527bc3c1df2066d002c667687d6089fc54a20a1a3df5553d52ffee8
7
- data.tar.gz: 3eface17b5e1d077bb93498c793af35d9554d9e42bf72511eb7c9569ad84fd5a2cfaf7eee84c9c91b9af5d9672ef111bee01e1bd5dbe65c4434b76df3e10c845
6
+ metadata.gz: 9988d318c4ef84a8f350e81ab831ebbeac83072e15a3f76d4bd63a0a297e37ca45af73bfcb65efaab5a1220b719e9fc52e03ca27df4d92f32ede407a87a7c023
7
+ data.tar.gz: 45c670a15937b958cdb4c39b50672f6b5de179405777a288fb4893f1f987ad8baee54f88e5ef833541b11d83139bf6230a39aaa2a1afffe951fb29512e311020
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rodauth-tools (0.3.0)
4
+ rodauth-tools (0.3.1)
5
5
  dry-inflector (~> 1.1)
6
6
  rodauth (~> 2.41)
7
7
  sequel (~> 5.0)
@@ -155,12 +155,20 @@ module Rodauth
155
155
  end
156
156
 
157
157
  # Helper method for JSON column type based on database type
158
+ #
159
+ # PostgreSQL: Use native jsonb type for efficient JSON storage and querying
160
+ # MySQL: Use native json type (supported since MySQL 5.7.8)
161
+ # SQLite: Use String type - SQLite stores JSON as text, but has JSON1 extension
162
+ # for querying. Sequel doesn't have a :json type for SQLite.
163
+ # Other: Fall back to String for maximum compatibility
158
164
  def json_type
159
165
  case db.database_type
160
166
  when :postgres
161
- :jsonb
162
- when :sqlite, :mysql
163
- :json
167
+ ':jsonb'
168
+ when :mysql
169
+ ':json'
170
+ when :sqlite
171
+ String
164
172
  else
165
173
  String
166
174
  end
@@ -4,6 +4,6 @@
4
4
 
5
5
  module Rodauth
6
6
  module Tools
7
- VERSION = '0.3.0'
7
+ VERSION = '0.3.1'
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rodauth-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - delano