hanami-db 2.2.0.beta1 → 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: 3b8f0855774dd7a9d0edc7609c7a07b95080edb38a6d30cab7454c5eb61a3e67
4
- data.tar.gz: 1398ac362dcab2ac3f74cc59e328b5264c7326ddd6bec6502e3cd747bdceeedc
3
+ metadata.gz: 91437538dc18e50114b6faed23f08a6bf998a42233a77d12fc1758951cb7b723
4
+ data.tar.gz: 10ce47de9e32b3f28fc367452d64b2e737caeeaad820f7f5e9a7145e54427926
5
5
  SHA512:
6
- metadata.gz: bf77b5817253e28718b84495d45cc6fe1665718c1c008f70577615e1f4c259e39adbfac342112761b30cd699e1b249b88f05b0d839d8955a2201fa645cd84ac0
7
- data.tar.gz: b212e3a4b636b0d7bda6a31fad889105a47b9c26a4c094d0a16e1369c41ff01c0fa79a2eefebfa64bce84e3abf5cf6d926d29ec323d5955cc4d0702fcf7a3c5c
6
+ metadata.gz: fd07a1773fea5cdd62c1919fd3fd51e5c88dc9adf514d938d5452f5e92e12b33130967d75e9ddd102895c03625a77ca6f5be7e4101b49fb14bafd4676575a83b
7
+ data.tar.gz: 86be3348b465a0cd86edc9869fd0c916e6b5c13682a6d698027323e5e424fd4dae797505f0ca365fa3fc425f8048a58251d77caf0025f720fc1177d793fd2b58
@@ -45,7 +45,7 @@ module Hanami
45
45
 
46
46
  private
47
47
 
48
- def set_relation?(name) # rubocop:disable Naming/AccessorMethodName
48
+ def set_relation?(name)
49
49
  name && container.relations.key?(name)
50
50
  end
51
51
  end
@@ -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.beta1"
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.beta1
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-07-16 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.9
106
+ rubygems_version: 3.5.22
107
107
  signing_key:
108
108
  specification_version: 4
109
109
  summary: The database layer for Hanami apps