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 +4 -4
- data/lib/hanami/db/struct.rb +8 -0
- data/lib/hanami/db/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6bd4fe8f48e54d38cc08e2883e8d311608c723b364b3aa88949098a4b63b289
|
4
|
+
data.tar.gz: d792cbdc43cf8d4525ac50e46fed03e446808c10edf007a26a7ecde7ad5f5706
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4571709e63a5fb02751bc177f33d0257b353faff04af4967f51c75be01cb09c689e867f5e5d6b5b9952fbfc656ac5ac45a211737a18db485888a631e8bb48011
|
7
|
+
data.tar.gz: 3703057d4fdeef828f6fd8193622002496afbe2d47c927bfcbb4997860990f19ac00f08b3a632252cc258d86c9ada964fb2854890d7bfe6dcc5bce94c0d92ef3
|
data/lib/hanami/db/struct.rb
CHANGED
@@ -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
|
data/lib/hanami/db/version.rb
CHANGED
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
|
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-
|
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.
|
106
|
+
rubygems_version: 3.5.22
|
107
107
|
signing_key:
|
108
108
|
specification_version: 4
|
109
109
|
summary: The database layer for Hanami apps
|