combustion 1.4.0 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Appraisals +5 -0
- data/lib/combustion/application.rb +4 -0
- data/lib/combustion/database/reset.rb +1 -1
- data/lib/combustion/databases/mysql.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 022c30e0d3b5dd020d5765951897e91fd4d33725c87b54ce0370e2fdcaea67c8
|
4
|
+
data.tar.gz: 5f53fd6cef1a7c7c92f9618d37b852d446d565edc3019a2cd0a96f244c08c2e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bacc58fd39c3708d26623631bb021f0a8c912e64ea9733cc6426dddeba9861e0a1af8fa75f7de18ebd6b3d567a873460d633976e263ce7f500c2224831546eb
|
7
|
+
data.tar.gz: de2cfdd55a3169eb14c89f3db2090f12b6df84dbeed539b13627c20eb7b696ff1ebef2be6b76c7bdbe2b4e609d2c6a727eabec142e9e9020859e34a91dd979d6
|
data/Appraisals
CHANGED
@@ -24,6 +24,7 @@ if RUBY_VERSION.to_f >= 2.5 && RUBY_VERSION.to_f < 3.1
|
|
24
24
|
gem "rails", "~> 6.0.0"
|
25
25
|
gem "mysql2", "~> 0.5.0"
|
26
26
|
gem "sqlite3", "~> 1.4", "< 1.5.0"
|
27
|
+
gem "activerecord-trilogy-adapter", "~> 3.1"
|
27
28
|
end
|
28
29
|
end
|
29
30
|
|
@@ -32,6 +33,7 @@ if RUBY_VERSION.to_f >= 2.5
|
|
32
33
|
gem "rails", "~> 6.1.0"
|
33
34
|
gem "mysql2", "~> 0.5.0"
|
34
35
|
gem "sqlite3", "~> 1.4", "< 1.6.0"
|
36
|
+
gem "activerecord-trilogy-adapter", "~> 3.1"
|
35
37
|
end
|
36
38
|
end
|
37
39
|
|
@@ -40,12 +42,14 @@ if RUBY_VERSION.to_f >= 2.7
|
|
40
42
|
gem "rails", "~> 7.0.1"
|
41
43
|
gem "mysql2", "~> 0.5.0"
|
42
44
|
gem "sqlite3", "~> 1.4"
|
45
|
+
gem "activerecord-trilogy-adapter", "~> 3.1"
|
43
46
|
end
|
44
47
|
|
45
48
|
appraise "rails-7.1" do
|
46
49
|
gem "rails", "~> 7.1.2"
|
47
50
|
gem "mysql2", "~> 0.5.0"
|
48
51
|
gem "sqlite3", "~> 1.4"
|
52
|
+
gem "trilogy", "~> 2.7"
|
49
53
|
end
|
50
54
|
end
|
51
55
|
|
@@ -54,5 +58,6 @@ if RUBY_VERSION.to_f >= 3.1
|
|
54
58
|
gem "rails", :git => "https://github.com/rails/rails.git", :branch => "main"
|
55
59
|
gem "mysql2", "~> 0.5.0"
|
56
60
|
gem "sqlite3", "~> 1.4"
|
61
|
+
gem "trilogy", "~> 2.7"
|
57
62
|
end
|
58
63
|
end
|
@@ -15,6 +15,10 @@ module Combustion
|
|
15
15
|
|
16
16
|
rails_gate = VersionGate.new("railties")
|
17
17
|
|
18
|
+
if rails_gate.call(">= 7.2.0.alpha")
|
19
|
+
config.load_defaults Rails::VERSION::STRING.to_f
|
20
|
+
end
|
21
|
+
|
18
22
|
# Core Settings
|
19
23
|
config.cache_classes = true
|
20
24
|
config.consider_all_requests_local = true
|
@@ -7,7 +7,7 @@ class Combustion::Database::Reset
|
|
7
7
|
UnsupportedDatabase = Class.new StandardError
|
8
8
|
|
9
9
|
OPERATOR_PATTERNS = {
|
10
|
-
Combustion::Databases::MySQL => [/mysql/],
|
10
|
+
Combustion::Databases::MySQL => [/mysql/, /trilogy/],
|
11
11
|
Combustion::Databases::PostgreSQL => [/postgres/, /postgis/],
|
12
12
|
Combustion::Databases::SQLite => [/sqlite/],
|
13
13
|
Combustion::Databases::SQLServer => [/sqlserver/],
|
@@ -60,6 +60,8 @@ class Combustion::Databases::MySQL < Combustion::Databases::Base
|
|
60
60
|
ArJdbcMySQL::Error
|
61
61
|
elsif configuration[:adapter][/mysql2/] && defined?(Mysql2)
|
62
62
|
Mysql2::Error
|
63
|
+
elsif configuration[:adapter][/trilogy/] && defined?(Trilogy)
|
64
|
+
Trilogy::Error
|
63
65
|
else
|
64
66
|
Mysql::Error
|
65
67
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: combustion
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pat Allan
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|