kaal-sinatra 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: '056818dc738336966c9f49347c9d5c848b8a326491e54d7eeb92f98846f745a2'
4
- data.tar.gz: c6f2b304ec788996da55d66c9e0239aeac58e45853f9a7a9fe205fe3a2217b07
3
+ metadata.gz: a345b6806f6359b4f308f70bc9dd0c211ce035c5378b35ec4a3686d4a58ba87e
4
+ data.tar.gz: 1522d0326fbffc4b648307555680a4792bb0b12c4b0d59b65954b7f0211eee5c
5
5
  SHA512:
6
- metadata.gz: 81b6f5416d682df2d9e3b4e16fa88c7a35deb41c2bbd2c11a558c3a7d9190043cf59ba5a877eafca5a3897203ad10b73ba0b352ddd8730d48d3fab0ab2214946
7
- data.tar.gz: 14c4d191e3a7b813c5753f4ff70e391a1fd8fa2786eb2a65cda56f74ee327a692de9baac67f0e4f7ef4ea4223e3ed2f177c2a98b84d613cb7ca9e112be65bbcd
6
+ metadata.gz: 97e641dc529820a000807fc99461c5b845d352be2d86184ccbe9fa2ab6b081875f6210d9e800c476a99e62a059a1f6437979f301dadffa49122a34d19bb22ea8
7
+ data.tar.gz: 07532fc1ec06532864e8f1d1c8c3131b931579f909b5e9bc510ddc63ac410e3a349aad790923b10bad58640a9ffe473b6fecd78785c983d7bd89880837b6c903
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,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 Sinatra
9
- VERSION = '0.3.0'
9
+ VERSION = '0.4.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.4.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.4.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.4.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