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 +4 -4
- data/README.md +1 -2
- data/lib/kaal/hanami/version.rb +1 -1
- data/lib/kaal/hanami.rb +4 -4
- metadata +5 -19
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f72adeafc30c87703580f5744c6d090aa4a5fb8633277dabea83e295ca117f22
|
|
4
|
+
data.tar.gz: 54a1ddd24d49a8b8239088e54797f0df918b9680aff2b7e03c84a6a24fb51300
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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`
|
data/lib/kaal/hanami/version.rb
CHANGED
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
|
|
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::
|
|
114
|
+
Kaal::Backend::SQLite.new(database:)
|
|
115
115
|
when 'postgres'
|
|
116
|
-
Kaal::Backend::
|
|
116
|
+
Kaal::Backend::Postgres.new(database:)
|
|
117
117
|
when 'mysql'
|
|
118
|
-
Kaal::Backend::
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
|
76
|
-
|
|
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
|