hanami-db 2.2.0.beta2 → 2.2.0.rc1

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: 91437538dc18e50114b6faed23f08a6bf998a42233a77d12fc1758951cb7b723
4
+ data.tar.gz: 10ce47de9e32b3f28fc367452d64b2e737caeeaad820f7f5e9a7145e54427926
5
5
  SHA512:
6
- metadata.gz: 3b0e8606aeda0b5861775c699c0c647ab9f38fd8cbeb6b7ec3f0016b29efe12e59f3259f7e6ff3e40d5f765fcb319372caa4bc3922de70f95e1565d253c7a35d
7
- data.tar.gz: 9a7063e16586c2570b7e1190c98dcab9479ff393b2a512a0c6463f91a2d7f1a4d89dbc7c63d597730c1c163abaca33108bdca5a58a985596985fb34e60ae356a
6
+ metadata.gz: fd07a1773fea5cdd62c1919fd3fd51e5c88dc9adf514d938d5452f5e92e12b33130967d75e9ddd102895c03625a77ca6f5be7e4101b49fb14bafd4676575a83b
7
+ data.tar.gz: 86be3348b465a0cd86edc9869fd0c916e6b5c13682a6d698027323e5e424fd4dae797505f0ca365fa3fc425f8048a58251d77caf0025f720fc1177d793fd2b58
@@ -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.rc1"
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.rc1
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-10-29 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