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 +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: 91437538dc18e50114b6faed23f08a6bf998a42233a77d12fc1758951cb7b723
|
4
|
+
data.tar.gz: 10ce47de9e32b3f28fc367452d64b2e737caeeaad820f7f5e9a7145e54427926
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd07a1773fea5cdd62c1919fd3fd51e5c88dc9adf514d938d5452f5e92e12b33130967d75e9ddd102895c03625a77ca6f5be7e4101b49fb14bafd4676575a83b
|
7
|
+
data.tar.gz: 86be3348b465a0cd86edc9869fd0c916e6b5c13682a6d698027323e5e424fd4dae797505f0ca365fa3fc425f8048a58251d77caf0025f720fc1177d793fd2b58
|
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.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-
|
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.
|
106
|
+
rubygems_version: 3.5.22
|
107
107
|
signing_key:
|
108
108
|
specification_version: 4
|
109
109
|
summary: The database layer for Hanami apps
|