kaal-hanami 0.3.0 → 0.4.0

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: a23772c397096d568be16ed50e2b9ddfb7f26d6935756a9e2338c18eec699055
4
- data.tar.gz: 44a53add8dc6b3f8d67d025196025f212985acfd672645d437e9114560e90e64
3
+ metadata.gz: f72adeafc30c87703580f5744c6d090aa4a5fb8633277dabea83e295ca117f22
4
+ data.tar.gz: 54a1ddd24d49a8b8239088e54797f0df918b9680aff2b7e03c84a6a24fb51300
5
5
  SHA512:
6
- metadata.gz: 0c4ba8e7331404d75190dae4e72034967d3997adb328e353e9f0efac91b06ecc082522bb7efcd8fffd4cdb41d88f1331f6f3b4409c145dd0e5cfb5fb3c9f3bdf
7
- data.tar.gz: 1dea739720d9b1797732d75294adf8af1f15b253930a1d00e86cbb3b258959bd3c5a50acd24386f37c671abb04ccfdb07b367ceb8f1a571a5dd9575a393101ac
6
+ metadata.gz: f935388e233e1dcad6684d8a9060caff92d32de32260349cc89f5aa26de3121ccdf429cd63cf00cc86730650e7f5713a4a46e3ada3fe171a81f284e4653d1754
7
+ data.tar.gz: aa16c8310368d584ffbdb24fc02a43163dde73d489e88d381af3451fc4c7cab780934fd81eab977942ff9c17aaf2110e73f7f43dfe8cae1c60f2dbc7643a567f
data/README.md CHANGED
@@ -5,7 +5,6 @@ Hanami integration gem for Kaal.
5
5
  `kaal-hanami` depends on:
6
6
 
7
7
  - `kaal`
8
- - `kaal-sequel`
9
8
  - `hanami`
10
9
 
11
10
  It owns the Hanami integration surface:
@@ -24,7 +23,7 @@ gem 'redis' # for redis
24
23
  gem 'sqlite3' # or pg / mysql2 for SQL
25
24
  ```
26
25
 
27
- If you use SQL persistence, create the Kaal tables using Sequel migrations. `kaal-sequel` exposes templates for:
26
+ If you use SQL persistence, create the Kaal tables using Sequel migrations. `kaal` exposes the Sequel migration templates for:
28
27
 
29
28
  - SQLite: `kaal_dispatches`, `kaal_locks`, `kaal_definitions`
30
29
  - PostgreSQL: `kaal_dispatches`, `kaal_definitions`
@@ -6,6 +6,6 @@
6
6
  # LICENSE file in the root directory of this source tree.
7
7
  module Kaal
8
8
  module Hanami
9
- VERSION = '0.3.0'
9
+ VERSION = '0.4.0'
10
10
  end
11
11
  end
data/lib/kaal/hanami.rb CHANGED
@@ -5,7 +5,7 @@
5
5
  # This source code is licensed under the MIT license found in the
6
6
  # LICENSE file in the root directory of this source tree.
7
7
  require 'pathname'
8
- require 'kaal/sequel'
8
+ require 'kaal'
9
9
  require 'hanami'
10
10
  require 'kaal/hanami/version'
11
11
  require 'kaal/hanami/middleware'
@@ -111,11 +111,11 @@ module Kaal
111
111
  def build_backend(backend_name, database)
112
112
  case backend_name
113
113
  when 'sqlite'
114
- Kaal::Backend::DatabaseAdapter.new(database)
114
+ Kaal::Backend::SQLite.new(database:)
115
115
  when 'postgres'
116
- Kaal::Backend::PostgresAdapter.new(database)
116
+ Kaal::Backend::Postgres.new(database:)
117
117
  when 'mysql'
118
- Kaal::Backend::MySQLAdapter.new(database)
118
+ Kaal::Backend::MySQL.new(database:)
119
119
  end
120
120
  end
121
121
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kaal-hanami
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nitesh Purohit
@@ -36,28 +36,14 @@ dependencies:
36
36
  requirements:
37
37
  - - '='
38
38
  - !ruby/object:Gem::Version
39
- version: 0.3.0
39
+ version: 0.4.0
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - '='
45
45
  - !ruby/object:Gem::Version
46
- version: 0.3.0
47
- - !ruby/object:Gem::Dependency
48
- name: kaal-sequel
49
- requirement: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - '='
52
- - !ruby/object:Gem::Version
53
- version: 0.3.0
54
- type: :runtime
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- requirements:
58
- - - '='
59
- - !ruby/object:Gem::Version
60
- version: 0.3.0
46
+ version: 0.4.0
61
47
  - !ruby/object:Gem::Dependency
62
48
  name: rack
63
49
  requirement: !ruby/object:Gem::Requirement
@@ -72,8 +58,8 @@ dependencies:
72
58
  - - ">="
73
59
  - !ruby/object:Gem::Version
74
60
  version: '2.2'
75
- description: " Kaal-Hanami provides a thin integration layer that wires Kaal and
76
- Kaal-Sequel into Hanami applications with explicit lifecycle control.\n"
61
+ description: " Kaal-Hanami provides a thin integration layer that wires Kaal into
62
+ Hanami applications with explicit lifecycle control.\n"
77
63
  email:
78
64
  - nitesh.purohit.it@gmail.com
79
65
  - team@codevedas.com