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 +4 -4
- data/README.md +1 -2
- data/lib/kaal/sinatra/version.rb +1 -1
- data/lib/kaal/sinatra.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: a345b6806f6359b4f308f70bc9dd0c211ce035c5378b35ec4a3686d4a58ba87e
|
|
4
|
+
data.tar.gz: 1522d0326fbffc4b648307555680a4792bb0b12c4b0d59b65954b7f0211eee5c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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/sinatra/version.rb
CHANGED
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
|
|
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::
|
|
103
|
+
Kaal::Backend::SQLite.new(database:)
|
|
104
104
|
when 'postgres'
|
|
105
|
-
Kaal::Backend::
|
|
105
|
+
Kaal::Backend::Postgres.new(database:)
|
|
106
106
|
when 'mysql'
|
|
107
|
-
Kaal::Backend::
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
|
76
|
-
|
|
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
|