combustion 1.3.7 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Appraisals +10 -39
- data/Gemfile +2 -10
- data/lib/combustion/application.rb +4 -1
- data/lib/combustion/databases/postgresql.rb +6 -1
- data/lib/combustion.rb +1 -1
- 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: 751fe69f70a0ef16b4517a408b1b1d76b5dcd2aff3c39571c0d3698f05855f25
|
4
|
+
data.tar.gz: e0e7e95955dca33363d5b202516890e48df82b48867a54fdf1e86e7ed5c76653
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6829ad1bf0d7056a6f88d0dd4370f5c0fd1cfe17598506170ec119c9018c409945746cccd64073f6590a367682f278158a72b3da63f017f12e0b5d1620b2677
|
7
|
+
data.tar.gz: 0b1742af4205b797c8fa67c04a942e8f04e9de58e80297bbd1b81aaa6f943b0e29228320ae108e5f256c733f7577ae5aa2d3c9451931075b872c6efb5cec0b7a
|
data/Appraisals
CHANGED
@@ -1,42 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
if RUBY_VERSION.to_f <= 2.3
|
4
|
-
appraise "rails-3.1" do
|
5
|
-
gem "rails", "~> 3.1.12"
|
6
|
-
gem "mysql2", "~> 0.3.10"
|
7
|
-
gem "pg", "< 1.0"
|
8
|
-
gem "bundler", "~> 1.17"
|
9
|
-
end
|
10
|
-
|
11
|
-
appraise "rails-3.2" do
|
12
|
-
gem "rails", "~> 3.2.22.5"
|
13
|
-
gem "mysql2", "~> 0.3.10"
|
14
|
-
gem "pg", "< 1.0"
|
15
|
-
gem "bundler", "~> 1.17"
|
16
|
-
end
|
17
|
-
|
18
|
-
appraise "rails-4.0" do
|
19
|
-
gem "rails", "~> 4.0.13"
|
20
|
-
gem "mysql2", "~> 0.3.10"
|
21
|
-
gem "pg", "< 1.0"
|
22
|
-
gem "bundler", "~> 1.17"
|
23
|
-
end
|
24
|
-
|
25
|
-
appraise "rails-4.1" do
|
26
|
-
gem "rails", "~> 4.1.16"
|
27
|
-
gem "mysql2", "~> 0.3.13"
|
28
|
-
gem "pg", "< 1.0"
|
29
|
-
gem "bundler", "~> 1.17"
|
30
|
-
end
|
31
|
-
|
32
|
-
appraise "rails-4.2" do
|
33
|
-
gem "rails", "~> 4.2.8"
|
34
|
-
gem "mysql2", "~> 0.4.4"
|
35
|
-
gem "pg", "< 1.0"
|
36
|
-
gem "bundler", "~> 1.17"
|
37
|
-
end
|
38
|
-
end
|
39
|
-
|
40
3
|
if RUBY_VERSION.to_f < 3.0
|
41
4
|
appraise "rails-5.0" do
|
42
5
|
gem "rails", "~> 5.0.2"
|
@@ -60,7 +23,7 @@ if RUBY_VERSION.to_f >= 2.5 && RUBY_VERSION.to_f < 3.1
|
|
60
23
|
appraise "rails-6.0" do
|
61
24
|
gem "rails", "~> 6.0.0"
|
62
25
|
gem "mysql2", "~> 0.5.0"
|
63
|
-
gem "sqlite3", "~> 1.4"
|
26
|
+
gem "sqlite3", "~> 1.4", "< 1.5.0"
|
64
27
|
end
|
65
28
|
end
|
66
29
|
|
@@ -68,7 +31,7 @@ if RUBY_VERSION.to_f >= 2.5
|
|
68
31
|
appraise "rails-6.1" do
|
69
32
|
gem "rails", "~> 6.1.0"
|
70
33
|
gem "mysql2", "~> 0.5.0"
|
71
|
-
gem "sqlite3", "~> 1.4"
|
34
|
+
gem "sqlite3", "~> 1.4", "< 1.6.0"
|
72
35
|
end
|
73
36
|
end
|
74
37
|
|
@@ -79,6 +42,14 @@ if RUBY_VERSION.to_f >= 2.7
|
|
79
42
|
gem "sqlite3", "~> 1.4"
|
80
43
|
end
|
81
44
|
|
45
|
+
appraise "rails-7.1" do
|
46
|
+
gem "rails", "~> 7.1.2"
|
47
|
+
gem "mysql2", "~> 0.5.0"
|
48
|
+
gem "sqlite3", "~> 1.4"
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
if RUBY_VERSION.to_f >= 3.1
|
82
53
|
appraise "rails-edge" do
|
83
54
|
gem "rails", :git => "https://github.com/rails/rails.git", :branch => "main"
|
84
55
|
gem "mysql2", "~> 0.5.0"
|
data/Gemfile
CHANGED
@@ -10,16 +10,8 @@ else
|
|
10
10
|
gem "sqlite3", "~> 1.4"
|
11
11
|
end
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
gem "nio4r", "< 2.4"
|
16
|
-
gem "nokogiri", "< 1.10.3"
|
17
|
-
end
|
18
|
-
|
19
|
-
if RUBY_VERSION.to_f > 2.4
|
20
|
-
gem "rubocop", "~> 0.92"
|
21
|
-
gem "rubocop-packaging", "~> 0.5"
|
22
|
-
end
|
13
|
+
gem "rubocop", "~> 0.92"
|
14
|
+
gem "rubocop-packaging", "~> 0.5"
|
23
15
|
|
24
16
|
# Required for testing Rails 6.1 on MRI 3.1+
|
25
17
|
gem "net-smtp" if RUBY_VERSION.to_f > 3.0
|
@@ -13,7 +13,7 @@ module Combustion
|
|
13
13
|
Combustion::Configurations::ActiveStorage
|
14
14
|
].freeze
|
15
15
|
|
16
|
-
rails_gate = VersionGate.new("
|
16
|
+
rails_gate = VersionGate.new("railties")
|
17
17
|
|
18
18
|
# Core Settings
|
19
19
|
config.cache_classes = true
|
@@ -25,6 +25,9 @@ module Combustion
|
|
25
25
|
if rails_gate.call("< 5.2")
|
26
26
|
config.secret_token = Digest::SHA1.hexdigest Time.now.to_s
|
27
27
|
end
|
28
|
+
if rails_gate.call("~> 7.1.0.alpha")
|
29
|
+
config.active_support.cache_format_version = 7.1
|
30
|
+
end
|
28
31
|
|
29
32
|
# ActiveSupport Settings
|
30
33
|
config.active_support.deprecation = :stderr
|
@@ -2,7 +2,12 @@
|
|
2
2
|
|
3
3
|
class Combustion::Databases::PostgreSQL < Combustion::Databases::Base
|
4
4
|
def reset
|
5
|
-
|
5
|
+
if Combustion::VersionGate.call("activerecord", ">= 7.1.0.alpha")
|
6
|
+
base.connection_handler.clear_active_connections!
|
7
|
+
else
|
8
|
+
base.clear_active_connections!
|
9
|
+
end
|
10
|
+
|
6
11
|
establish_connection(postgres_configuration)
|
7
12
|
|
8
13
|
super
|
data/lib/combustion.rb
CHANGED
@@ -30,7 +30,7 @@ module Combustion
|
|
30
30
|
|
31
31
|
AVAILABLE_MODULES = begin
|
32
32
|
keys = MODULES.keys
|
33
|
-
rails_gate = VersionGate.new("
|
33
|
+
rails_gate = VersionGate.new("railties")
|
34
34
|
|
35
35
|
keys.delete(:sprockets) unless rails_gate.call(">= 3.1", "< 7.0")
|
36
36
|
keys.delete(:active_job) unless rails_gate.call(">= 4.2")
|
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.4.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:
|
11
|
+
date: 2024-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|