gemstack-db 0.2.3 → 0.2.5
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/CHANGELOG.md +8 -0
- data/lib/gemstack/db/configuration.rb +1 -1
- data/lib/gemstack/db/json_compat.rb +1 -1
- data/lib/gemstack/db/model.rb +1 -1
- data/lib/gemstack/db/schema_types.rb +1 -1
- data/lib/gemstack/db.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 21dec8b41b0440c61fedf33b9d516672a31000feede8bb3a51c04bf6b635df69
|
|
4
|
+
data.tar.gz: 837a7cb9b46567af652473bbcf6370e72a0497d9b86152eab4bc7a58f7895acb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6f67b3804ec3a0e0d8866b834f98f823770b49cfd1ba24a73d2e39036116ae07eab309e3151f7d5232fc76472115357a1a4222e8633f6a68f4100760813841c1
|
|
7
|
+
data.tar.gz: 9e13d2708d4467477cf2e189f86d355fa1d2dafab6fb7b431a6d1c86b8c746fcf98c2db01e3459f9cfcd4ba0a1adf7e65be720ba8643ba777c875f644c5ccde6
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.5
|
|
4
|
+
|
|
5
|
+
See the [GemStack changelog](https://github.com/gemstack-rb/gemstack/blob/main/CHANGELOG.md).
|
|
6
|
+
|
|
7
|
+
## 0.2.4
|
|
8
|
+
|
|
9
|
+
See the [GemStack changelog](https://github.com/gemstack-rb/gemstack/blob/main/CHANGELOG.md).
|
|
10
|
+
|
|
3
11
|
## 0.2.3
|
|
4
12
|
|
|
5
13
|
See the [GemStack changelog](https://github.com/gemstack-rb/gemstack/blob/main/CHANGELOG.md).
|
|
@@ -6,7 +6,7 @@ require "yaml"
|
|
|
6
6
|
|
|
7
7
|
module GemStack
|
|
8
8
|
module DB
|
|
9
|
-
# Where the connection settings come from, first match wins
|
|
9
|
+
# Where the connection settings come from, first match wins:
|
|
10
10
|
#
|
|
11
11
|
# 1. config.db.url, set in config/app.rb or config/environments/*.rb
|
|
12
12
|
# 2. DATABASE_URL (TEST_DATABASE_URL in the test environment)
|
|
@@ -5,7 +5,7 @@ module GemStack
|
|
|
5
5
|
# Sequel (5.108 and earlier) parses JSON/JSONB columns with
|
|
6
6
|
# JSON.parse(json, create_additions: false), an option json 3.0 removed, so
|
|
7
7
|
# every jsonb read raises ArgumentError. JSON.parse never creates additions,
|
|
8
|
-
# so dropping the option keeps Sequel's behaviour
|
|
8
|
+
# so dropping the option keeps Sequel's behaviour.
|
|
9
9
|
module JSONCompat
|
|
10
10
|
def parse_json(json) = JSON.parse(json)
|
|
11
11
|
|
data/lib/gemstack/db/model.rb
CHANGED
|
@@ -33,7 +33,7 @@ module GemStack
|
|
|
33
33
|
|
|
34
34
|
# A model may load before its migration has run (e.g. while generating the
|
|
35
35
|
# API contract right after `generate resource`); queries still fail
|
|
36
|
-
# clearly with "relation does not exist"
|
|
36
|
+
# clearly with "relation does not exist".
|
|
37
37
|
self.require_valid_table = false
|
|
38
38
|
|
|
39
39
|
class << self
|
|
@@ -4,7 +4,7 @@ module GemStack
|
|
|
4
4
|
module DB
|
|
5
5
|
# Migrations may use PostgreSQL's type names — the generators write
|
|
6
6
|
# `column :created_at, :timestamptz` — and still run on MySQL and SQLite,
|
|
7
|
-
# where each maps to the closest native type
|
|
7
|
+
# where each maps to the closest native type. Everything
|
|
8
8
|
# else in the Sequel schema DSL is untouched.
|
|
9
9
|
module SchemaTypes
|
|
10
10
|
MAPPINGS = {
|
data/lib/gemstack/db.rb
CHANGED
|
@@ -10,7 +10,7 @@ require_relative "db/configuration"
|
|
|
10
10
|
require_relative "db/schema_types"
|
|
11
11
|
|
|
12
12
|
module GemStack
|
|
13
|
-
# SQL databases through Sequel
|
|
13
|
+
# SQL databases through Sequel: PostgreSQL, MySQL
|
|
14
14
|
# (mysql2 or trilogy) and SQLite, configured by config/database.yml or
|
|
15
15
|
# DATABASE_URL. Optional: add `gem "gemstack-db"` and the driver gem
|
|
16
16
|
# (pg, mysql2, trilogy or sqlite3) to the Gemfile — `gemstack new` does.
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gemstack-db
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Adware Technologies
|
|
@@ -16,28 +16,28 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - '='
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 0.2.
|
|
19
|
+
version: 0.2.5
|
|
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.2.
|
|
26
|
+
version: 0.2.5
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: gemstack-schema
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
31
|
- - '='
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: 0.2.
|
|
33
|
+
version: 0.2.5
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - '='
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: 0.2.
|
|
40
|
+
version: 0.2.5
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: sequel
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|