hanami-db 2.2.0.beta2 → 2.2.0

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: 6f4f5aae70382c8c45e909ba604a4464f2740492ec9e936be6b341e3352f7c7c
4
- data.tar.gz: b692a643b0a86fe9fbe3a3bc6dc8b99ca332702210faa60a6164792ebbd69806
3
+ metadata.gz: e6bd4fe8f48e54d38cc08e2883e8d311608c723b364b3aa88949098a4b63b289
4
+ data.tar.gz: d792cbdc43cf8d4525ac50e46fed03e446808c10edf007a26a7ecde7ad5f5706
5
5
  SHA512:
6
- metadata.gz: 3b0e8606aeda0b5861775c699c0c647ab9f38fd8cbeb6b7ec3f0016b29efe12e59f3259f7e6ff3e40d5f765fcb319372caa4bc3922de70f95e1565d253c7a35d
7
- data.tar.gz: 9a7063e16586c2570b7e1190c98dcab9479ff393b2a512a0c6463f91a2d7f1a4d89dbc7c63d597730c1c163abaca33108bdca5a58a985596985fb34e60ae356a
6
+ metadata.gz: 4571709e63a5fb02751bc177f33d0257b353faff04af4967f51c75be01cb09c689e867f5e5d6b5b9952fbfc656ac5ac45a211737a18db485888a631e8bb48011
7
+ data.tar.gz: 3703057d4fdeef828f6fd8193622002496afbe2d47c927bfcbb4997860990f19ac00f08b3a632252cc258d86c9ada964fb2854890d7bfe6dcc5bce94c0d92ef3
@@ -5,6 +5,14 @@ module Hanami
5
5
  # @api public
6
6
  # @since 2.2.0
7
7
  class Struct < ROM::Struct
8
+ # @api public
9
+ # @since 2.2.0
10
+ #
11
+ # Simple conversion of attributes to JSON format, without this method, the instance of the struct gets converted
12
+ # to a string
13
+ def to_json(*args)
14
+ to_h.to_json(*args)
15
+ end
8
16
  end
9
17
  end
10
18
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Hanami
4
4
  module DB
5
- VERSION = "2.2.0.beta2"
5
+ VERSION = "2.2.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hanami-db
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0.beta2
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hanami team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-25 00:00:00.000000000 Z
11
+ date: 2024-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rom
@@ -103,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  - !ruby/object:Gem::Version
104
104
  version: '0'
105
105
  requirements: []
106
- rubygems_version: 3.5.16
106
+ rubygems_version: 3.5.22
107
107
  signing_key:
108
108
  specification_version: 4
109
109
  summary: The database layer for Hanami apps