hanami-db 2.3.0.beta2 → 3.0.0.rc1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 806c43a9b9633bee030681f3e665a0c0d80a2b721954635a0f060292ac326790
4
- data.tar.gz: e7783e6a3acd4cb6b48c333a1c835f572c7ab9321761a227aa9df617fa7454a5
3
+ metadata.gz: ab8475649322bd849fdb85b5265fddcdd4581f9e997ddb00b2a8313d42e259d4
4
+ data.tar.gz: 0e457008732ad74dfcab7b2f8267aca3692dd902674fce1c3cd3116480c35caf
5
5
  SHA512:
6
- metadata.gz: 36c0345847d3bd60a220a5e2cb27afcbeaeb106dcf2319aa45dbb1a4a2850f3d471b07de090d80edf0d0950bc4eb3cf509c439a048e8ac47f198f6d05e95ed39
7
- data.tar.gz: f16d5991fc13701ef0be6226ade2e3a755ba8f7fc2cfbb25a4e311a637e6d996013eb5039e6d1f91ea8c7e72519c714dc1319cf9444ea6208b2eac226e184fa8
6
+ metadata.gz: 12caf9b5bc5188ad8bc67d3077ee6e0b94727ca3901d185927bc2235fd0a5eb9ba5227a45ecc6b250ccd5290f7b4938dfd3ddeda52f498fbcc4d496ccd8793cf
7
+ data.tar.gz: c65d64e91db9cc26f118f603b05a9db65883c3f2ee1d89513c9ec93f7e3e9ba11132a932a4d98cbe2dc94cd57cb4f05588063e0e02a65346195c7ab486d6b685
data/CHANGELOG.md ADDED
@@ -0,0 +1,82 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Break Versioning](https://www.taoensso.com/break-versioning).
7
+
8
+ ## [Unreleased]
9
+
10
+ ### Added
11
+
12
+ ### Changed
13
+
14
+ ### Deprecated
15
+
16
+ ### Removed
17
+
18
+ ### Fixed
19
+
20
+ ### Security
21
+
22
+ [Unreleased]: https://github.com/hanami/hanami-db/compare/v3.0.0.rc1...main
23
+
24
+ ## [3.0.0.rc1] - 2026-06-16
25
+
26
+ ### Changed
27
+
28
+ - Require Ruby 3.3 or newer.
29
+
30
+ [3.0.0.rc1]: https://github.com/hanami/hanami-db/compare/v2.3.0...3.0.0.rc1
31
+
32
+ ## [2.3.0] - 2025-11-12
33
+
34
+ ### Changed
35
+
36
+ - Drop support for Ruby 3.1
37
+
38
+ [2.3.0]: https://github.com/hanami/hanami-db/compare/v2.3.0.beta2...v2.3.0
39
+
40
+ ## [2.3.0.beta2] - 2025-10-17
41
+
42
+ ### Changed
43
+
44
+ - Drop support for Ruby 3.1
45
+
46
+ [2.3.0.beta2]: https://github.com/hanami/db/compare/v2.3.0.beta1...v2.3.0.beta2
47
+
48
+ ## [2.3.0.beta1] - 2025-10-03
49
+
50
+ [2.3.0.beta1]: https://github.com/hanami/db/compare/v2.2.1...v2.3.0.beta1
51
+
52
+ ## [2.2.1] - 2025-01-10
53
+
54
+ ### Fixed
55
+
56
+ - Update for compatibility with latest rom and rom-sql releases. (@flash-gordon in #16)
57
+
58
+ [2.2.1]: https://github.com/hanami/db/compare/v2.2.0...v2.2.1
59
+
60
+ ## [2.2.0] - 2024-10-29
61
+
62
+ [2.2.0]: https://github.com/hanami/db/compare/v2.2.0.rc1...v2.2.0
63
+
64
+ ## [2.2.0.rc1] - 2024-10-29
65
+
66
+ ### Added
67
+
68
+ - Add `Hanami::DB::Struct#to_json`. (@krzykamil in #13)
69
+
70
+ [2.2.0.rc1]: https://github.com/hanami/db/compare/v2.2.0.beta2...v2.2.0.rc1
71
+
72
+ ## [2.2.0.beta2] - 2024-09-25
73
+
74
+ [2.2.0.beta2]: https://github.com/hanami/db/compare/v2.2.0.beta1...v2.2.0.beta2
75
+
76
+ ## [2.2.0.beta1] - 2024-07-16
77
+
78
+ ### Added
79
+
80
+ - Initial release.
81
+
82
+ [2.2.0.beta1]: https://github.com/hanami/db/releases/tag/v2.2.0.beta1
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015-2026 Hanakai team
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -1,28 +1,17 @@
1
- # Hanami::DB
1
+ <!--- This file is synced from hanakai-rb/repo-sync -->
2
2
 
3
- The database layer for [full-stack Hanami 2.2 applications](hanami/hanami).
4
- It's a thin layer on top of [ROM](https://rom-rb.org/) 5.
3
+ [actions]: https://github.com/hanami/hanami-db/actions
4
+ [chat]: https://discord.gg/naQApPAsZB
5
+ [forum]: https://discourse.hanamirb.org
6
+ [rubygem]: https://rubygems.org/gems/hanami-db
5
7
 
6
- ## Status
7
-
8
- [![Gem Version](https://badge.fury.io/rb/hanami-db.svg)](https://badge.fury.io/rb/db)
9
- [![CI](https://github.com/hanami/db/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/hanami/db/actions?query=workflow%3Aci+branch%3Amain)
10
- [![Depfu](https://badges.depfu.com/badges/7cd17419fba78b726be1353118fb01de/overview.svg)](https://depfu.com/github/hanami/controller?project=Bundler)
11
-
12
- ## Contact
13
-
14
- * Home page: http://hanamirb.org
15
- * Community: http://hanamirb.org/community
16
- * Guides: https://guides.hanamirb.org
17
- * Mailing List: http://hanamirb.org/mailing-list
18
- * API Doc: http://rubydoc.info/gems/hanami-db
19
- * Chat: http://chat.hanamirb.org
8
+ # Hanami DB [![Gem Version](https://badge.fury.io/rb/hanami-db.svg)][rubygem] [![CI Status](https://github.com/hanami/hanami-db/workflows/CI/badge.svg)][actions]
20
9
 
10
+ [![Forum](https://img.shields.io/badge/Forum-dc360f?logo=discourse&logoColor=white)][forum]
11
+ [![Chat](https://img.shields.io/badge/Chat-717cf8?logo=discord&logoColor=white)][chat]
21
12
 
22
13
  ## Installation
23
14
 
24
- __Hanami::DB__ supports Ruby (MRI) 3.1+
25
-
26
15
  Add this line to your Hanami application's Gemfile:
27
16
 
28
17
  ```ruby
@@ -35,10 +24,6 @@ And then execute:
35
24
  $ bundle
36
25
  ```
37
26
 
38
- ## Versioning
39
-
40
- __Hanami::DB__ uses [Semantic Versioning 2.0.0](http://semver.org)
41
-
42
27
  ## Contributing
43
28
 
44
29
  1. Fork it
@@ -47,6 +32,13 @@ __Hanami::DB__ uses [Semantic Versioning 2.0.0](http://semver.org)
47
32
  4. Push to the branch (`git push origin my-new-feature`)
48
33
  5. Create new Pull Request
49
34
 
50
- ## Copyright
35
+ ## Links
36
+
37
+ - [User documentation](https://hanamirb.org)
38
+ - [API documentation](http://rubydoc.info/gems/hanami-db)
39
+
40
+
41
+ ## License
42
+
43
+ See `LICENSE` file.
51
44
 
52
- Copyright © 2024 Hanami Team – Released under MIT License
data/hanami-db.gemspec CHANGED
@@ -1,30 +1,37 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "lib/hanami/db/version"
3
+ # This file is synced from hanakai-rb/repo-sync. To update it, edit repo-sync.yml.
4
+
5
+ lib = File.expand_path("lib", __dir__)
6
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
7
+ require "hanami/db/version"
4
8
 
5
9
  Gem::Specification.new do |spec|
6
- spec.name = "hanami-db"
7
- spec.version = Hanami::DB::VERSION
8
- spec.authors = ["Hanami team"]
9
- spec.email = ["admin@hanamirb.org"]
10
- spec.summary = "The database layer for Hanami apps"
11
- spec.homepage = "https://hanamirb.org"
12
- spec.license = "MIT"
13
-
14
- spec.metadata = {
15
- "bug_tracker_uri" => "https://github.com/hanami/db/issues",
16
- "changelog_uri" => "https://github.com/hanami/db/blob/main/CHANGELOG.md",
17
- "documentation_uri" => "https://guides.hanamirb.org",
18
- "funding_uri" => "https://github.com/sponsors/hanami",
19
- "source_code_uri" => "https://github.com/hanami/db",
20
- "rubygems_mfa_required" => "true"
21
- }
22
-
23
- spec.required_ruby_version = ">= 3.2"
24
- spec.add_dependency "rom", "~> 5.4", ">= 5.4.1"
25
- spec.add_dependency "rom-sql", "~> 3.7"
26
- spec.add_dependency "zeitwerk", "~> 2.6"
27
-
28
- spec.extra_rdoc_files = Dir["README*", "LICENSE*"]
29
- spec.files = Dir["*.gemspec", "lib/**/*"]
10
+ spec.name = "hanami-db"
11
+ spec.authors = ["Hanakai team"]
12
+ spec.email = ["info@hanakai.org"]
13
+ spec.license = "MIT"
14
+ spec.version = Hanami::DB::VERSION.dup
15
+
16
+ spec.summary = "The database layer for Hanami apps"
17
+ spec.description = spec.summary
18
+ spec.homepage = "https://hanamirb.org"
19
+ spec.files = Dir["CHANGELOG.md", "LICENSE", "README.md", "hanami-db.gemspec", "lib/**/*"]
20
+ spec.bindir = "exe"
21
+ spec.executables = Dir["exe/*"].map { |f| File.basename(f) }
22
+ spec.require_paths = ["lib"]
23
+
24
+ spec.extra_rdoc_files = ["README.md", "CHANGELOG.md", "LICENSE"]
25
+
26
+ spec.metadata["changelog_uri"] = "https://github.com/hanami/hanami-db/blob/main/CHANGELOG.md"
27
+ spec.metadata["source_code_uri"] = "https://github.com/hanami/hanami-db"
28
+ spec.metadata["bug_tracker_uri"] = "https://github.com/hanami/hanami-db/issues"
29
+ spec.metadata["funding_uri"] = "https://github.com/sponsors/hanami"
30
+
31
+ spec.required_ruby_version = ">= 3.3"
32
+
33
+ spec.add_runtime_dependency "rom", "~> 5.4", ">= 5.4.1"
34
+ spec.add_runtime_dependency "rom-sql", "~> 3.7"
35
+ spec.add_runtime_dependency "zeitwerk", "~> 2.6"
30
36
  end
37
+
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Hanami
4
4
  module DB
5
- VERSION = "2.3.0.beta2"
5
+ VERSION = "3.0.0.rc1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hanami-db
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0.beta2
4
+ version: 3.0.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
- - Hanami team
8
- bindir: bin
7
+ - Hanakai team
8
+ bindir: exe
9
9
  cert_chain: []
10
10
  date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
@@ -57,15 +57,18 @@ dependencies:
57
57
  - - "~>"
58
58
  - !ruby/object:Gem::Version
59
59
  version: '2.6'
60
+ description: The database layer for Hanami apps
60
61
  email:
61
- - admin@hanamirb.org
62
+ - info@hanakai.org
62
63
  executables: []
63
64
  extensions: []
64
65
  extra_rdoc_files:
65
- - LICENSE.md
66
+ - CHANGELOG.md
67
+ - LICENSE
66
68
  - README.md
67
69
  files:
68
- - LICENSE.md
70
+ - CHANGELOG.md
71
+ - LICENSE
69
72
  - README.md
70
73
  - hanami-db.gemspec
71
74
  - lib/hanami-db.rb
@@ -80,12 +83,10 @@ homepage: https://hanamirb.org
80
83
  licenses:
81
84
  - MIT
82
85
  metadata:
83
- bug_tracker_uri: https://github.com/hanami/db/issues
84
- changelog_uri: https://github.com/hanami/db/blob/main/CHANGELOG.md
85
- documentation_uri: https://guides.hanamirb.org
86
+ changelog_uri: https://github.com/hanami/hanami-db/blob/main/CHANGELOG.md
87
+ source_code_uri: https://github.com/hanami/hanami-db
88
+ bug_tracker_uri: https://github.com/hanami/hanami-db/issues
86
89
  funding_uri: https://github.com/sponsors/hanami
87
- source_code_uri: https://github.com/hanami/db
88
- rubygems_mfa_required: 'true'
89
90
  rdoc_options: []
90
91
  require_paths:
91
92
  - lib
@@ -93,7 +94,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
93
94
  requirements:
94
95
  - - ">="
95
96
  - !ruby/object:Gem::Version
96
- version: '3.2'
97
+ version: '3.3'
97
98
  required_rubygems_version: !ruby/object:Gem::Requirement
98
99
  requirements:
99
100
  - - ">="
data/LICENSE.md DELETED
@@ -1,22 +0,0 @@
1
- Copyright © 2024 Tim Riley
2
-
3
- MIT License
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.