kaal-hanami 0.3.0 → 0.5.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: f5eb7f6bfd10c50d917f398cb8dc3bb86890287b089dd0acb5a2917057c734c9
4
+ data.tar.gz: cfa820d9b97bd7cc987886211cbb63fe95022072dc7c8f3f68288e98a645f859
5
5
  SHA512:
6
- metadata.gz: 0c4ba8e7331404d75190dae4e72034967d3997adb328e353e9f0efac91b06ecc082522bb7efcd8fffd4cdb41d88f1331f6f3b4409c145dd0e5cfb5fb3c9f3bdf
7
- data.tar.gz: 1dea739720d9b1797732d75294adf8af1f15b253930a1d00e86cbb3b258959bd3c5a50acd24386f37c671abb04ccfdb07b367ceb8f1a571a5dd9575a393101ac
6
+ metadata.gz: 5b150d1fac759cdc90be18ce0e5c3ff695ce3f1d356cc0bc76eb6c34f7081ed06d9e30fe443bad4c77f851845c35b2225f78b3263114c409713d409dd16393af
7
+ data.tar.gz: 0f18e4f660296296d41fb3829dc0ba8b928ee15410033789f2a46e3621c45390f5215fb2a6714b3821cc0f244edd6d91fcc5666149aafce510acf8b8b7634acf
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,11 +23,11 @@ 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
- - SQLite: `kaal_dispatches`, `kaal_locks`, `kaal_definitions`
30
- - PostgreSQL: `kaal_dispatches`, `kaal_definitions`
31
- - MySQL: `kaal_dispatches`, `kaal_definitions`
28
+ - SQLite: `kaal_dispatches`, `kaal_locks`, `kaal_definitions`, `kaal_delayed_jobs`
29
+ - PostgreSQL: `kaal_dispatches`, `kaal_definitions`, `kaal_delayed_jobs`
30
+ - MySQL: `kaal_dispatches`, `kaal_definitions`, `kaal_delayed_jobs`
32
31
 
33
32
  Your app should also provide `config/scheduler.yml`.
34
33
 
@@ -39,6 +38,7 @@ Your app should also provide `config/scheduler.yml`.
39
38
  - redis convenience wiring when the app passes a redis client
40
39
  - automatic SQL backend selection from the Sequel adapter unless the app passes `adapter:`
41
40
  - explicit lifecycle helpers so web processes do not implicitly start background scheduler threads
41
+ - the normal Kaal runtime API inside a Hanami app
42
42
 
43
43
  ## Minimal Hanami
44
44
 
@@ -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.5.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.5.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.5.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.5.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