combustion 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Appraisals +30 -15
- data/Gemfile +5 -1
- data/README.md +1 -1
- data/lib/combustion/configurations/active_record.rb +4 -0
- data/spec/dummy/spec/internal/config/database.yml +4 -0
- metadata +10 -18
- data/spec/dummy/spec/internal/log/development.log +0 -52
- data/spec/dummy/spec/internal/log/test.log +0 -4840
- data/spec/dummy/spec/internal/test +0 -0
- data/spec/dummy/spec/internal/test_another +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39f83842b1e3640bdda8adf04dbcafba5585f631c9cac38593bfa1cf6e2cfe9e
|
4
|
+
data.tar.gz: 27033c85fed3a308d3b948589c3b7718b3e519e1678fe1485c3602fd2fa2a3f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7946f7712e79c002ec2f96621668c8e28761bbfff99d5da9dd4f8adebeca0feae00b8ca97c4f317bd1c015f086b0c74622c7326c3e7dcc775c5b9e75b2672cb
|
7
|
+
data.tar.gz: 37f64f59e58314e2835b6ed840ece3fd7fcf95be92e5ce154346ae79c6efb51421063421113cbbc6ff9d5a526bf0fbf255b31232e02c92c0017efc850a81bb19
|
data/Appraisals
CHANGED
@@ -37,21 +37,23 @@ if RUBY_VERSION.to_f <= 2.3
|
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
40
|
+
if RUBY_VERSION.to_f < 3.0
|
41
|
+
appraise "rails-5.0" do
|
42
|
+
gem "rails", "~> 5.0.2"
|
43
|
+
gem "mysql2", "~> 0.4.4"
|
44
|
+
gem "pg", "< 1.0"
|
45
|
+
end
|
45
46
|
|
46
|
-
appraise "rails-5.1" do
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
end
|
47
|
+
appraise "rails-5.1" do
|
48
|
+
gem "rails", "~> 5.1.0"
|
49
|
+
gem "mysql2", "~> 0.4.4"
|
50
|
+
gem "pg", "< 1.0"
|
51
|
+
end
|
51
52
|
|
52
|
-
appraise "rails-5.2" do
|
53
|
-
|
54
|
-
|
53
|
+
appraise "rails-5.2" do
|
54
|
+
gem "rails", "~> 5.2.0"
|
55
|
+
gem "mysql2", "~> 0.5.0"
|
56
|
+
end
|
55
57
|
end
|
56
58
|
|
57
59
|
if RUBY_VERSION.to_f >= 2.5
|
@@ -61,9 +63,22 @@ if RUBY_VERSION.to_f >= 2.5
|
|
61
63
|
gem "sqlite3", "~> 1.4"
|
62
64
|
end
|
63
65
|
|
66
|
+
appraise "rails-6.1" do
|
67
|
+
gem "rails", "~> 6.1.0"
|
68
|
+
gem "mysql2", "~> 0.5.0"
|
69
|
+
gem "sqlite3", "~> 1.4"
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
if RUBY_VERSION.to_f >= 2.7
|
74
|
+
appraise "rails-7.0" do
|
75
|
+
gem "rails", "~> 7.0.0.alpha2"
|
76
|
+
gem "mysql2", "~> 0.5.0"
|
77
|
+
gem "sqlite3", "~> 1.4"
|
78
|
+
end
|
79
|
+
|
64
80
|
appraise "rails-edge" do
|
65
|
-
gem "rails", :git => "https://github.com/rails/rails.git"
|
66
|
-
gem "arel", :git => "https://github.com/rails/arel.git"
|
81
|
+
gem "rails", :git => "https://github.com/rails/rails.git", :branch => "main"
|
67
82
|
gem "mysql2", "~> 0.5.0"
|
68
83
|
gem "sqlite3", "~> 1.4"
|
69
84
|
end
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -208,4 +208,4 @@ The tests are extremely minimal, and patches to extend the suite are especially
|
|
208
208
|
|
209
209
|
## Credits
|
210
210
|
|
211
|
-
Copyright (c) 2011-
|
211
|
+
Copyright (c) 2011-2021, Combustion is developed and maintained by Pat Allan, and is released under the open MIT Licence. Many thanks to HyperTiny for encouraging its development, and [all who have contributed patches](https://github.com/pat/combustion/contributors).
|
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
class Combustion::Configurations::ActiveRecord
|
4
4
|
def self.call(config)
|
5
|
+
if ActiveRecord::VERSION::MAJOR >= 7
|
6
|
+
config.active_record.legacy_connection_handling = false
|
7
|
+
end
|
8
|
+
|
5
9
|
return unless defined?(ActiveRecord::Railtie)
|
6
10
|
return unless ::ActiveRecord.constants.include?(:MassAssignmentSecurity)
|
7
11
|
|
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.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pat Allan
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 2.
|
61
|
+
version: '2.3'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 2.
|
68
|
+
version: '2.3'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: mysql2
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -128,14 +128,14 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
131
|
+
version: 0.81.0
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
138
|
+
version: 0.81.0
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: sqlite3
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -193,10 +193,6 @@ files:
|
|
193
193
|
- spec/dummy/spec/internal/config/database.yml
|
194
194
|
- spec/dummy/spec/internal/config/routes.rb
|
195
195
|
- spec/dummy/spec/internal/db/schema.rb
|
196
|
-
- spec/dummy/spec/internal/log/development.log
|
197
|
-
- spec/dummy/spec/internal/log/test.log
|
198
|
-
- spec/dummy/spec/internal/test
|
199
|
-
- spec/dummy/spec/internal/test_another
|
200
196
|
- spec/spec_helper.rb
|
201
197
|
- templates/config.ru
|
202
198
|
- templates/database.yml
|
@@ -207,7 +203,7 @@ homepage: https://github.com/pat/combustion
|
|
207
203
|
licenses:
|
208
204
|
- MIT
|
209
205
|
metadata: {}
|
210
|
-
post_install_message:
|
206
|
+
post_install_message:
|
211
207
|
rdoc_options: []
|
212
208
|
require_paths:
|
213
209
|
- lib
|
@@ -222,8 +218,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
222
218
|
- !ruby/object:Gem::Version
|
223
219
|
version: '0'
|
224
220
|
requirements: []
|
225
|
-
rubygems_version: 3.
|
226
|
-
signing_key:
|
221
|
+
rubygems_version: 3.1.4
|
222
|
+
signing_key:
|
227
223
|
specification_version: 4
|
228
224
|
summary: Elegant Rails Engine Testing
|
229
225
|
test_files:
|
@@ -231,13 +227,9 @@ test_files:
|
|
231
227
|
- spec/dummy/spec/internal/app/models/model.rb
|
232
228
|
- spec/dummy/spec/internal/app/models/model_in_another_db.rb
|
233
229
|
- spec/dummy/spec/internal/app/assets/config/manifest.js
|
234
|
-
- spec/dummy/spec/internal/test
|
235
230
|
- spec/dummy/spec/internal/config/routes.rb
|
236
231
|
- spec/dummy/spec/internal/config/database.yml
|
237
232
|
- spec/dummy/spec/internal/db/schema.rb
|
238
|
-
- spec/dummy/spec/internal/log/test.log
|
239
|
-
- spec/dummy/spec/internal/log/development.log
|
240
|
-
- spec/dummy/spec/internal/test_another
|
241
233
|
- spec/dummy/lib/engine.rb
|
242
234
|
- spec/dummy/db/migrate/20150717075542_create_dummy_test_table.rb
|
243
235
|
- spec/dummy/db/migrate/20150717075543_create_dummy_test_table_in_another_db.rb
|
@@ -1,52 +0,0 @@
|
|
1
|
-
[1m[35m (215.8ms)[0m [1m[35mDROP DATABASE IF EXISTS "test"[0m
|
2
|
-
[1m[35m (481.0ms)[0m [1m[35mCREATE DATABASE "test" ENCODING = 'utf8'[0m
|
3
|
-
[1m[35m (214.9ms)[0m [1m[35mDROP DATABASE IF EXISTS "test_another"[0m
|
4
|
-
[1m[35m (487.9ms)[0m [1m[35mCREATE DATABASE "test_another" ENCODING = 'utf8'[0m
|
5
|
-
[1m[35m (6.6ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
6
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.8ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
7
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
8
|
-
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-02-10 01:18:56.230481"], ["updated_at", "2018-02-10 01:18:56.230481"]]
|
9
|
-
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
10
|
-
[1m[35m (4.1ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
11
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(7458657555131878620);[0m
|
12
|
-
[1m[35m (0.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
13
|
-
Migrating to CreateDummyTestTable (20150717075542)
|
14
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
15
|
-
[1m[35m (3.3ms)[0m [1m[35mCREATE TABLE "dummy_table" ("id" serial NOT NULL PRIMARY KEY)[0m
|
16
|
-
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20150717075542"]]
|
17
|
-
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
18
|
-
Migrating to CreateDummyTestTableInAnotherDb (20150717075543)
|
19
|
-
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
20
|
-
[1m[35m (8.3ms)[0m [1m[35mCREATE TABLE "dummy_in_another_db" ("id" serial NOT NULL PRIMARY KEY)[0m
|
21
|
-
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20150717075543"]]
|
22
|
-
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
23
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
24
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
25
|
-
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
26
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(7458657555131878620)[0m
|
27
|
-
[1m[35m (212.2ms)[0m [1m[35mDROP DATABASE IF EXISTS "test"[0m
|
28
|
-
[1m[35m (456.5ms)[0m [1m[35mCREATE DATABASE "test" ENCODING = 'utf8'[0m
|
29
|
-
[1m[35m (195.0ms)[0m [1m[35mDROP DATABASE IF EXISTS "test_another"[0m
|
30
|
-
[1m[35m (476.9ms)[0m [1m[35mCREATE DATABASE "test_another" ENCODING = 'utf8'[0m
|
31
|
-
[1m[35m (6.7ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
32
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
33
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
34
|
-
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-02-10 01:20:13.372972"], ["updated_at", "2018-02-10 01:20:13.372972"]]
|
35
|
-
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
36
|
-
[1m[35m (4.7ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
37
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(7458657555131878620);[0m
|
38
|
-
[1m[35m (0.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
39
|
-
Migrating to CreateDummyTestTable (20150717075542)
|
40
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
41
|
-
[1m[35m (3.2ms)[0m [1m[35mCREATE TABLE "dummy_table" ("id" serial NOT NULL PRIMARY KEY)[0m
|
42
|
-
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20150717075542"]]
|
43
|
-
[1m[35m (0.7ms)[0m [1m[35mCOMMIT[0m
|
44
|
-
Migrating to CreateDummyTestTableInAnotherDb (20150717075543)
|
45
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
46
|
-
[1m[35m (8.1ms)[0m [1m[35mCREATE TABLE "dummy_in_another_db" ("id" serial NOT NULL PRIMARY KEY)[0m
|
47
|
-
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20150717075543"]]
|
48
|
-
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
49
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
50
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
51
|
-
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
52
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(7458657555131878620)[0m
|