kaal-sinatra 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: '056818dc738336966c9f49347c9d5c848b8a326491e54d7eeb92f98846f745a2'
4
- data.tar.gz: c6f2b304ec788996da55d66c9e0239aeac58e45853f9a7a9fe205fe3a2217b07
3
+ metadata.gz: 19141476c3f3148bc086b30a93d082055fae6979ef3f056c07b4138dfaf6e5f7
4
+ data.tar.gz: 7163dffe402884f69ce9dc5e1298a5cc78ff0ac2a23e289302d3479cb4191037
5
5
  SHA512:
6
- metadata.gz: 81b6f5416d682df2d9e3b4e16fa88c7a35deb41c2bbd2c11a558c3a7d9190043cf59ba5a877eafca5a3897203ad10b73ba0b352ddd8730d48d3fab0ab2214946
7
- data.tar.gz: 14c4d191e3a7b813c5753f4ff70e391a1fd8fa2786eb2a65cda56f74ee327a692de9baac67f0e4f7ef4ea4223e3ed2f177c2a98b84d613cb7ca9e112be65bbcd
6
+ metadata.gz: a6dc569656e122081796232fc97e6443f5ebe1d7bf8aa31d222dded02639bfb37c2bc4027c96b3034ce07c3130e0612ff10049e5839aa36b06a7d329a206c5f4
7
+ data.tar.gz: f6ee151ad1a2a2e2ddf0a2e3a6427006eb9c4503c6f08c6189d42dc512580b0ad9a0f8a5cf8519e697e2a6bcf3c6f2b37b6a36eb94584fcb08b23bc0770e4def
data/README.md CHANGED
@@ -5,7 +5,6 @@ Sinatra integration gem for Kaal.
5
5
  `kaal-sinatra` depends on:
6
6
 
7
7
  - `kaal`
8
- - `kaal-sequel`
9
8
  - `sinatra`
10
9
 
11
10
  It owns the Sinatra 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 Sinatra app
42
42
 
43
43
  ## Classic Sinatra
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 Sinatra
9
- VERSION = '0.3.0'
9
+ VERSION = '0.5.0'
10
10
  end
11
11
  end
data/lib/kaal/sinatra.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 'sinatra/base'
10
10
  require 'kaal/sinatra/version'
11
11
 
@@ -100,11 +100,11 @@ module Kaal
100
100
  def build_backend(backend_name, database)
101
101
  case backend_name
102
102
  when 'sqlite'
103
- Kaal::Backend::DatabaseAdapter.new(database)
103
+ Kaal::Backend::SQLite.new(database:)
104
104
  when 'postgres'
105
- Kaal::Backend::PostgresAdapter.new(database)
105
+ Kaal::Backend::Postgres.new(database:)
106
106
  when 'mysql'
107
- Kaal::Backend::MySQLAdapter.new(database)
107
+ Kaal::Backend::MySQL.new(database:)
108
108
  end
109
109
  end
110
110
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kaal-sinatra
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
@@ -16,28 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.3.0
19
+ version: 0.5.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.3.0
27
- - !ruby/object:Gem::Dependency
28
- name: kaal-sequel
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - '='
32
- - !ruby/object:Gem::Version
33
- version: 0.3.0
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - '='
39
- - !ruby/object:Gem::Version
40
- version: 0.3.0
26
+ version: 0.5.0
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: rack
43
29
  requirement: !ruby/object:Gem::Requirement
@@ -72,8 +58,8 @@ dependencies:
72
58
  - - "<"
73
59
  - !ruby/object:Gem::Version
74
60
  version: '5.0'
75
- description: " Kaal-Sinatra provides a thin integration layer that wires Kaal and
76
- Kaal-Sequel into Sinatra applications with explicit lifecycle control.\n"
61
+ description: " Kaal-Sinatra provides a thin integration layer that wires Kaal into
62
+ Sinatra applications with explicit lifecycle control.\n"
77
63
  email:
78
64
  - nitesh.purohit.it@gmail.com
79
65
  - team@codevedas.com