combustion 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +5 -0
- data/README.md +1 -1
- data/lib/combustion/database/reset.rb +35 -7
- data/lib/combustion/databases/mysql.rb +15 -15
- data/lib/combustion/databases/postgresql.rb +7 -7
- data/lib/combustion/databases/sql_server.rb +2 -2
- data/lib/combustion/databases/sqlite.rb +2 -2
- data/spec/database_spec.rb +12 -3
- data/spec/dummy/spec/internal/log/development.log +52 -0
- data/spec/dummy/spec/internal/log/test.log +4840 -0
- data/spec/dummy/spec/internal/test +0 -0
- data/spec/dummy/spec/internal/test_another +0 -0
- data/spec/spec_helper.rb +0 -1
- metadata +21 -16
- data/.gitignore +0 -12
- data/.rubocop.yml +0 -36
- data/.travis.yml +0 -23
- data/HISTORY +0 -112
- data/combustion.gemspec +0 -32
- data/spec/dummy/spec/internal/log/.gitignore +0 -1
Binary file
|
Binary file
|
data/spec/spec_helper.rb
CHANGED
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pat Allan
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -158,17 +158,12 @@ executables:
|
|
158
158
|
extensions: []
|
159
159
|
extra_rdoc_files: []
|
160
160
|
files:
|
161
|
-
- ".gitignore"
|
162
161
|
- ".rspec"
|
163
|
-
- ".rubocop.yml"
|
164
|
-
- ".travis.yml"
|
165
162
|
- Appraisals
|
166
163
|
- Gemfile
|
167
|
-
- HISTORY
|
168
164
|
- LICENCE
|
169
165
|
- README.md
|
170
166
|
- Rakefile
|
171
|
-
- combustion.gemspec
|
172
167
|
- exe/combust
|
173
168
|
- lib/combustion.rb
|
174
169
|
- lib/combustion/application.rb
|
@@ -198,7 +193,10 @@ files:
|
|
198
193
|
- spec/dummy/spec/internal/config/database.yml
|
199
194
|
- spec/dummy/spec/internal/config/routes.rb
|
200
195
|
- spec/dummy/spec/internal/db/schema.rb
|
201
|
-
- spec/dummy/spec/internal/log
|
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
|
202
200
|
- spec/spec_helper.rb
|
203
201
|
- templates/config.ru
|
204
202
|
- templates/database.yml
|
@@ -229,15 +227,22 @@ signing_key:
|
|
229
227
|
specification_version: 4
|
230
228
|
summary: Elegant Rails Engine Testing
|
231
229
|
test_files:
|
232
|
-
- spec/
|
233
|
-
- spec/dummy/db/migrate/20150717075542_create_dummy_test_table.rb
|
234
|
-
- spec/dummy/db/migrate/20150717075543_create_dummy_test_table_in_another_db.rb
|
235
|
-
- spec/dummy/lib/engine.rb
|
236
|
-
- spec/dummy/spec/internal/app/assets/config/manifest.js
|
230
|
+
- spec/spec_helper.rb
|
237
231
|
- spec/dummy/spec/internal/app/models/model.rb
|
238
232
|
- spec/dummy/spec/internal/app/models/model_in_another_db.rb
|
239
|
-
- spec/dummy/spec/internal/config/
|
233
|
+
- spec/dummy/spec/internal/app/assets/config/manifest.js
|
234
|
+
- spec/dummy/spec/internal/test
|
240
235
|
- spec/dummy/spec/internal/config/routes.rb
|
236
|
+
- spec/dummy/spec/internal/config/database.yml
|
241
237
|
- spec/dummy/spec/internal/db/schema.rb
|
242
|
-
- spec/dummy/spec/internal/log
|
243
|
-
- spec/
|
238
|
+
- spec/dummy/spec/internal/log/test.log
|
239
|
+
- spec/dummy/spec/internal/log/development.log
|
240
|
+
- spec/dummy/spec/internal/test_another
|
241
|
+
- spec/dummy/lib/engine.rb
|
242
|
+
- spec/dummy/db/migrate/20150717075542_create_dummy_test_table.rb
|
243
|
+
- spec/dummy/db/migrate/20150717075543_create_dummy_test_table_in_another_db.rb
|
244
|
+
- spec/database_spec.rb
|
245
|
+
- ".rspec"
|
246
|
+
- Appraisals
|
247
|
+
- Gemfile
|
248
|
+
- Rakefile
|
data/.gitignore
DELETED
data/.rubocop.yml
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
inherit_from:
|
2
|
-
- https://gist.githubusercontent.com/pat/ba3b8ffb1901bfe5439b460943b6b019/raw/.rubocop.yml
|
3
|
-
|
4
|
-
Bundler/OrderedGems:
|
5
|
-
Exclude:
|
6
|
-
- 'gemfiles/*'
|
7
|
-
|
8
|
-
Layout/DotPosition:
|
9
|
-
EnforcedStyle: trailing
|
10
|
-
|
11
|
-
Layout/CaseIndentation:
|
12
|
-
EnforcedStyle: end
|
13
|
-
|
14
|
-
Layout/EndAlignment:
|
15
|
-
EnforcedStyleAlignWith: variable
|
16
|
-
|
17
|
-
Layout/HeredocIndentation:
|
18
|
-
Enabled: false
|
19
|
-
|
20
|
-
Metrics/BlockLength:
|
21
|
-
Exclude:
|
22
|
-
- 'combustion.gemspec'
|
23
|
-
|
24
|
-
Style/ClassAndModuleChildren:
|
25
|
-
Enabled: false
|
26
|
-
|
27
|
-
Style/Documentation:
|
28
|
-
Enabled: false
|
29
|
-
|
30
|
-
Style/FrozenStringLiteralComment:
|
31
|
-
Exclude:
|
32
|
-
- 'gemfiles/*'
|
33
|
-
|
34
|
-
Style/MultilineTernaryOperator:
|
35
|
-
Exclude:
|
36
|
-
- 'spec/dummy/db/migrate/*.rb'
|
data/.travis.yml
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
dist: xenial
|
3
|
-
env:
|
4
|
-
matrix:
|
5
|
-
- "DB_ADAPTER=sqlite3"
|
6
|
-
- "DB_ADAPTER=postgresql"
|
7
|
-
- "DB_ADAPTER=mysql2"
|
8
|
-
rvm:
|
9
|
-
- 2.3.8
|
10
|
-
- 2.4.10
|
11
|
-
- 2.5.8
|
12
|
-
- 2.6.6
|
13
|
-
- 2.7.1
|
14
|
-
before_install:
|
15
|
-
- gem install bundler --version "~> 1.17"
|
16
|
-
install:
|
17
|
-
- bundle _1.17.3_ install --jobs=3 --retry=3
|
18
|
-
before_script:
|
19
|
-
- bundle exec appraisal install
|
20
|
-
script: bundle exec appraisal rake
|
21
|
-
services:
|
22
|
-
- mysql
|
23
|
-
- postgresql
|
data/HISTORY
DELETED
@@ -1,112 +0,0 @@
|
|
1
|
-
1.3.0 - April 20th 2020
|
2
|
-
* Support ActiveJob, ActionCable, ActionText, ActionMailbox.
|
3
|
-
|
4
|
-
1.2.0 - April 18th 2020
|
5
|
-
* Support ActiveStorage (Mikko Kokkonen).
|
6
|
-
|
7
|
-
1.1.2 - November 4th 2019
|
8
|
-
* Generate an empty asset manifest file for Rails 6.
|
9
|
-
|
10
|
-
1.1.1 - August 3rd 2019
|
11
|
-
* Fix for latest Rails 6.0 release candidate.
|
12
|
-
* Test suite updates (Rails edge, sqlite3, Rubocop)
|
13
|
-
|
14
|
-
1.1.0 - February 13th 2019
|
15
|
-
* Rails 6.0 support.
|
16
|
-
|
17
|
-
1.0.0 - October 3rd 2018
|
18
|
-
* No functional changes.
|
19
|
-
* Added documentation about database preparation options.
|
20
|
-
|
21
|
-
0.9.1 - April 25th 2018
|
22
|
-
* Fix Rails 5.2 compatibility by not setting the deprecated secret_token configuration option.
|
23
|
-
|
24
|
-
0.9.0 - March 26th 2018
|
25
|
-
* Only reset databases that are either custom or the current one (Moritz Winter).
|
26
|
-
* More consistency around environment handling (rather than presuming it's always the test environment).
|
27
|
-
|
28
|
-
0.8.0 - February 1st 2018
|
29
|
-
* Rails 5.2.0 support.
|
30
|
-
* Requiring digest from std-lib directly.
|
31
|
-
* Refactoring for cleaner code.
|
32
|
-
|
33
|
-
0.7.0 - June 20th 2017
|
34
|
-
* Confirm support for MRI frozen string literals.
|
35
|
-
* Hide migration output (Michael Grosser).
|
36
|
-
|
37
|
-
0.6.0 - March 28th 2017
|
38
|
-
* Optionally disable database reset, schema loading, migrations (Sergey Kucher).
|
39
|
-
* Allow for multiple test databases (Semyon Pupkov).
|
40
|
-
|
41
|
-
0.5.5 - July 23rd 2016
|
42
|
-
* Add PostGIS support (Roland Koch).
|
43
|
-
* MySQL parameter fix (Mathieu Leduc-Hamel).
|
44
|
-
|
45
|
-
0.5.4 - January 12th 2016
|
46
|
-
* Remove silent_stream call for Rails 5.0 compatability (Bryan Ricker).
|
47
|
-
* Fix duplicate migrations error (Semyon Pupkov).
|
48
|
-
|
49
|
-
0.5.3 - March 1st 2015
|
50
|
-
* Use migrations from dependent gems (Korotaev Danil, Меркушин Михаил).
|
51
|
-
|
52
|
-
0.5.2 - July 18th 2014
|
53
|
-
* Note MIT licence in gemspec (@ktdreyer).
|
54
|
-
* Use local create/drop methods when resetting database (Bryan Ricker).
|
55
|
-
* ERB is now supported in config/database.yml, matching Rails (@patorash).
|
56
|
-
* The database now is configured before the application is loaded (@patorash).
|
57
|
-
* Documentation and generated config.ru now specify explicly loading all Rails libraries by default (Pat Allan).
|
58
|
-
|
59
|
-
0.5.1 - July 25th 2013
|
60
|
-
* Mass assignment errors raise exceptions instead of just being logged (Pat Allan).
|
61
|
-
* whilelist_attributes is only set for Rails 3.2 apps (Philip Arndt).
|
62
|
-
* Support ActiveRecord 3.0.x (Philip Arndt).
|
63
|
-
* Allow custom application configuration (Pablo Herrero).
|
64
|
-
|
65
|
-
0.5.0 - May 1st 2013
|
66
|
-
* whitelist_attributes is now set within configure_for_combustion, as it depends on which Railties are loaded.
|
67
|
-
* Make sure Rails gems are loaded before the engine's gem (Pablo Herrero).
|
68
|
-
* Fixed Rails version comparison (Josh Adam).
|
69
|
-
|
70
|
-
0.4.0 - March 16th 2013
|
71
|
-
* Don't delete the SQLite test database if it doesn't exist (Michael Gee, Alexander Rozumiy).
|
72
|
-
* Support for secret_key_base for Rails 4 apps (Philip Arndt).
|
73
|
-
* eager_load is set to true when using the production environment (Philip Arndt).
|
74
|
-
* whiny_nils is not set if using Rails 4 (Philip Arndt).
|
75
|
-
* Mysql2 can raise Mysql::Error with JRuby (Philip Arndt).
|
76
|
-
* Whitelist attributes typo is fixed (Geoff Hodgson).
|
77
|
-
* Mass assignment checks are now turned on, so errors are raised. This matches Rails' defaults for test environments (Josh Adams).
|
78
|
-
* Combustion no longer loads all of the Rails stack by default, just Railties and ActiveSupport. A combustion-rails gem will be created that uses all of Rails by default (Philip Arndt).
|
79
|
-
* Combustion classes now all define the outer module, so each can be required by themselves, should you desire (Philip Arndt).
|
80
|
-
|
81
|
-
0.3.3 - December 23rd 2012
|
82
|
-
* Removing version file - version number can just live in the gemspec.
|
83
|
-
* Load ActionController and ActionMailer via their Railties, not non-existent Engines (Chris Beer).
|
84
|
-
* SQL Schema support (Geoff Hodgson).
|
85
|
-
* Documentation fixes (Philip Arndt, Inge Jørgensen, Erkan Yilmaz).
|
86
|
-
* Include migrations from the internal app when migrating the database (Warren Seen).
|
87
|
-
* Correctly drop the test database when using SQLite (Warren Seen).
|
88
|
-
* Don't attempt to load sprockets for Rails 3.0.x (Alex Rozumey).
|
89
|
-
|
90
|
-
0.3.2 - March 3rd 2012
|
91
|
-
* Tentative Rails 3.0 and migrations support.
|
92
|
-
* Allow for different internal app directory.
|
93
|
-
|
94
|
-
0.3.1 - September 12th 2011
|
95
|
-
* Allow for different versions of Capybara (Leo Liang).
|
96
|
-
* Including Capybara::DSL instead of Capybara.
|
97
|
-
* Require 3.1.0 or better.
|
98
|
-
* Allow for JRuby in the database.yml template (Philip Arndt).
|
99
|
-
|
100
|
-
0.3.0 - September 2nd 2011
|
101
|
-
* Simple generator to create a pretty minimal internal Rails app.
|
102
|
-
|
103
|
-
0.2.0 - August 30th 2011
|
104
|
-
* Documentation.
|
105
|
-
* Allow developers to choose which Rails modules they wish to be loaded.
|
106
|
-
* Load Rails routes and Capybara helpers into RSpec examples when appropriate.
|
107
|
-
|
108
|
-
0.1.1 - August 24th 2011
|
109
|
-
* Support assets properly by loading ActionView and Sprockets railties.
|
110
|
-
|
111
|
-
0.1.0 - August 19th 2011
|
112
|
-
* First release, extracted from Dobro for HyperTiny.
|
data/combustion.gemspec
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
Gem::Specification.new do |s|
|
4
|
-
s.name = "combustion"
|
5
|
-
s.version = "1.3.0"
|
6
|
-
s.authors = ["Pat Allan"]
|
7
|
-
s.email = ["pat@freelancing-gods.com"]
|
8
|
-
s.homepage = "https://github.com/pat/combustion"
|
9
|
-
s.summary = "Elegant Rails Engine Testing"
|
10
|
-
s.description = "Test your Rails Engines without needing a full Rails app"
|
11
|
-
s.license = "MIT"
|
12
|
-
|
13
|
-
s.files = `git ls-files`.split("\n")
|
14
|
-
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
15
|
-
s.executables = `git ls-files -- exe/*`.split("\n").map do |file|
|
16
|
-
File.basename(file)
|
17
|
-
end
|
18
|
-
s.bindir = "exe"
|
19
|
-
s.require_paths = ["lib"]
|
20
|
-
|
21
|
-
s.add_runtime_dependency "activesupport", ">= 3.0.0"
|
22
|
-
s.add_runtime_dependency "railties", ">= 3.0.0"
|
23
|
-
s.add_runtime_dependency "thor", ">= 0.14.6"
|
24
|
-
|
25
|
-
s.add_development_dependency "appraisal", "~> 2.1.0"
|
26
|
-
s.add_development_dependency "mysql2"
|
27
|
-
s.add_development_dependency "pg"
|
28
|
-
s.add_development_dependency "rails"
|
29
|
-
s.add_development_dependency "rspec"
|
30
|
-
s.add_development_dependency "rubocop", "~> 0.81"
|
31
|
-
s.add_development_dependency "sqlite3"
|
32
|
-
end
|
@@ -1 +0,0 @@
|
|
1
|
-
*.log
|