combustion 1.4.0 → 1.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: 751fe69f70a0ef16b4517a408b1b1d76b5dcd2aff3c39571c0d3698f05855f25
4
- data.tar.gz: e0e7e95955dca33363d5b202516890e48df82b48867a54fdf1e86e7ed5c76653
3
+ metadata.gz: 022c30e0d3b5dd020d5765951897e91fd4d33725c87b54ce0370e2fdcaea67c8
4
+ data.tar.gz: 5f53fd6cef1a7c7c92f9618d37b852d446d565edc3019a2cd0a96f244c08c2e2
5
5
  SHA512:
6
- metadata.gz: d6829ad1bf0d7056a6f88d0dd4370f5c0fd1cfe17598506170ec119c9018c409945746cccd64073f6590a367682f278158a72b3da63f017f12e0b5d1620b2677
7
- data.tar.gz: 0b1742af4205b797c8fa67c04a942e8f04e9de58e80297bbd1b81aaa6f943b0e29228320ae108e5f256c733f7577ae5aa2d3c9451931075b872c6efb5cec0b7a
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.0
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-01-14 00:00:00.000000000 Z
11
+ date: 2024-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport