combustion 1.1.0 → 1.3.1

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.
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "bundler/setup"
4
3
  require "combustion"
5
4
 
6
5
  if Rails::VERSION::STRING.to_f < 4.1
@@ -13,3 +12,7 @@ if Rails::VERSION::STRING.to_f < 4.1
13
12
  end
14
13
 
15
14
  require File.expand_path("dummy/lib/engine.rb", __dir__)
15
+
16
+ Dir.chdir(File.expand_path("dummy", __dir__)) do
17
+ Combustion.initialize! :all
18
+ end
@@ -0,0 +1,3 @@
1
+ test:
2
+ service: Disk
3
+ root: <%= Rails.root.join("tmp/storage") %>
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.1.0
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: 2019-02-13 00:00:00.000000000 Z
11
+ date: 2020-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -128,14 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 0.54.0
131
+ version: '0.81'
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: 0.54.0
138
+ version: '0.81'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: sqlite3
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -158,32 +158,19 @@ 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
- - gemfiles/rails_3.1.gemfile
174
- - gemfiles/rails_3.2.gemfile
175
- - gemfiles/rails_4.0.gemfile
176
- - gemfiles/rails_4.1.gemfile
177
- - gemfiles/rails_4.2.gemfile
178
- - gemfiles/rails_5.0.gemfile
179
- - gemfiles/rails_5.1.gemfile
180
- - gemfiles/rails_5.2.gemfile
181
- - gemfiles/rails_5_0.gemfile
182
168
  - lib/combustion.rb
183
169
  - lib/combustion/application.rb
184
170
  - lib/combustion/configurations/action_controller.rb
185
171
  - lib/combustion/configurations/action_mailer.rb
186
172
  - lib/combustion/configurations/active_record.rb
173
+ - lib/combustion/configurations/active_storage.rb
187
174
  - lib/combustion/database.rb
188
175
  - lib/combustion/database/load_schema.rb
189
176
  - lib/combustion/database/migrate.rb
@@ -200,17 +187,22 @@ files:
200
187
  - spec/dummy/db/migrate/20150717075542_create_dummy_test_table.rb
201
188
  - spec/dummy/db/migrate/20150717075543_create_dummy_test_table_in_another_db.rb
202
189
  - spec/dummy/lib/engine.rb
190
+ - spec/dummy/spec/internal/app/assets/config/manifest.js
203
191
  - spec/dummy/spec/internal/app/models/model.rb
204
192
  - spec/dummy/spec/internal/app/models/model_in_another_db.rb
205
193
  - spec/dummy/spec/internal/config/database.yml
206
194
  - spec/dummy/spec/internal/config/routes.rb
207
195
  - spec/dummy/spec/internal/db/schema.rb
208
- - spec/dummy/spec/internal/log/.gitignore
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
209
200
  - spec/spec_helper.rb
210
201
  - templates/config.ru
211
202
  - templates/database.yml
212
203
  - templates/routes.rb
213
204
  - templates/schema.rb
205
+ - templates/storage.yml
214
206
  homepage: https://github.com/pat/combustion
215
207
  licenses:
216
208
  - MIT
@@ -230,19 +222,27 @@ required_rubygems_version: !ruby/object:Gem::Requirement
230
222
  - !ruby/object:Gem::Version
231
223
  version: '0'
232
224
  requirements: []
233
- rubygems_version: 3.0.1
225
+ rubygems_version: 3.0.3
234
226
  signing_key:
235
227
  specification_version: 4
236
228
  summary: Elegant Rails Engine Testing
237
229
  test_files:
238
- - spec/database_spec.rb
239
- - spec/dummy/db/migrate/20150717075542_create_dummy_test_table.rb
240
- - spec/dummy/db/migrate/20150717075543_create_dummy_test_table_in_another_db.rb
241
- - spec/dummy/lib/engine.rb
230
+ - spec/spec_helper.rb
242
231
  - spec/dummy/spec/internal/app/models/model.rb
243
232
  - spec/dummy/spec/internal/app/models/model_in_another_db.rb
244
- - spec/dummy/spec/internal/config/database.yml
233
+ - spec/dummy/spec/internal/app/assets/config/manifest.js
234
+ - spec/dummy/spec/internal/test
245
235
  - spec/dummy/spec/internal/config/routes.rb
236
+ - spec/dummy/spec/internal/config/database.yml
246
237
  - spec/dummy/spec/internal/db/schema.rb
247
- - spec/dummy/spec/internal/log/.gitignore
248
- - spec/spec_helper.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
+ - 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
@@ -1,11 +0,0 @@
1
- *.gem
2
- .bundle
3
- Gemfile.lock
4
- gemfiles/*.lock
5
- pkg/*
6
- .rubocop-*-yml
7
- .ruby-version
8
- .rvmrc
9
- spec/dummy/spec/internal/db/*.sqlite
10
- spec/dummy/spec/internal/test
11
- spec/dummy/spec/internal/test_another
@@ -1,39 +0,0 @@
1
- inherit_from:
2
- - https://gist.githubusercontent.com/pat/ba3b8ffb1901bfe5439b460943b6b019/raw/.rubocop.yml
3
-
4
- AllCops:
5
- TargetRubyVersion: 2.2
6
-
7
- Bundler/OrderedGems:
8
- Exclude:
9
- - 'gemfiles/*'
10
-
11
- Layout/DotPosition:
12
- EnforcedStyle: trailing
13
-
14
- Layout/CaseIndentation:
15
- EnforcedStyle: end
16
-
17
- Layout/EndAlignment:
18
- EnforcedStyleAlignWith: variable
19
-
20
- Layout/IndentHeredoc:
21
- Enabled: false
22
-
23
- Metrics/BlockLength:
24
- Exclude:
25
- - 'combustion.gemspec'
26
-
27
- Style/ClassAndModuleChildren:
28
- Enabled: false
29
-
30
- Style/Documentation:
31
- Enabled: false
32
-
33
- Style/FrozenStringLiteralComment:
34
- Exclude:
35
- - 'gemfiles/*'
36
-
37
- Style/MultilineTernaryOperator:
38
- Exclude:
39
- - 'spec/dummy/db/migrate/*.rb'
@@ -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.2.10
10
- - 2.3.8
11
- - 2.4.5
12
- - 2.5.3
13
- - 2.6.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,99 +0,0 @@
1
- 1.1.0 - February 13th 2019
2
- * Rails 6.0 support.
3
-
4
- 1.0.0 - October 3rd 2018
5
- * No functional changes.
6
- * Added documentation about database preparation options.
7
-
8
- 0.9.1 - April 25th 2018
9
- * Fix Rails 5.2 compatibility by not setting the deprecated secret_token configuration option.
10
-
11
- 0.9.0 - March 26th 2018
12
- * Only reset databases that are either custom or the current one (Moritz Winter).
13
- * More consistency around environment handling (rather than presuming it's always the test environment).
14
-
15
- 0.8.0 - February 1st 2018
16
- * Rails 5.2.0 support.
17
- * Requiring digest from std-lib directly.
18
- * Refactoring for cleaner code.
19
-
20
- 0.7.0 - June 20th 2017
21
- * Confirm support for MRI frozen string literals.
22
- * Hide migration output (Michael Grosser).
23
-
24
- 0.6.0 - March 28th 2017
25
- * Optionally disable database reset, schema loading, migrations (Sergey Kucher).
26
- * Allow for multiple test databases (Semyon Pupkov).
27
-
28
- 0.5.5 - July 23rd 2016
29
- * Add PostGIS support (Roland Koch).
30
- * MySQL parameter fix (Mathieu Leduc-Hamel).
31
-
32
- 0.5.4 - January 12th 2016
33
- * Remove silent_stream call for Rails 5.0 compatability (Bryan Ricker).
34
- * Fix duplicate migrations error (Semyon Pupkov).
35
-
36
- 0.5.3 - March 1st 2015
37
- * Use migrations from dependent gems (Korotaev Danil, Меркушин Михаил).
38
-
39
- 0.5.2 - July 18th 2014
40
- * Note MIT licence in gemspec (@ktdreyer).
41
- * Use local create/drop methods when resetting database (Bryan Ricker).
42
- * ERB is now supported in config/database.yml, matching Rails (@patorash).
43
- * The database now is configured before the application is loaded (@patorash).
44
- * Documentation and generated config.ru now specify explicly loading all Rails libraries by default (Pat Allan).
45
-
46
- 0.5.1 - July 25th 2013
47
- * Mass assignment errors raise exceptions instead of just being logged (Pat Allan).
48
- * whilelist_attributes is only set for Rails 3.2 apps (Philip Arndt).
49
- * Support ActiveRecord 3.0.x (Philip Arndt).
50
- * Allow custom application configuration (Pablo Herrero).
51
-
52
- 0.5.0 - May 1st 2013
53
- * whitelist_attributes is now set within configure_for_combustion, as it depends on which Railties are loaded.
54
- * Make sure Rails gems are loaded before the engine's gem (Pablo Herrero).
55
- * Fixed Rails version comparison (Josh Adam).
56
-
57
- 0.4.0 - March 16th 2013
58
- * Don't delete the SQLite test database if it doesn't exist (Michael Gee, Alexander Rozumiy).
59
- * Support for secret_key_base for Rails 4 apps (Philip Arndt).
60
- * eager_load is set to true when using the production environment (Philip Arndt).
61
- * whiny_nils is not set if using Rails 4 (Philip Arndt).
62
- * Mysql2 can raise Mysql::Error with JRuby (Philip Arndt).
63
- * Whitelist attributes typo is fixed (Geoff Hodgson).
64
- * Mass assignment checks are now turned on, so errors are raised. This matches Rails' defaults for test environments (Josh Adams).
65
- * 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).
66
- * Combustion classes now all define the outer module, so each can be required by themselves, should you desire (Philip Arndt).
67
-
68
- 0.3.3 - December 23rd 2012
69
- * Removing version file - version number can just live in the gemspec.
70
- * Load ActionController and ActionMailer via their Railties, not non-existent Engines (Chris Beer).
71
- * SQL Schema support (Geoff Hodgson).
72
- * Documentation fixes (Philip Arndt, Inge Jørgensen, Erkan Yilmaz).
73
- * Include migrations from the internal app when migrating the database (Warren Seen).
74
- * Correctly drop the test database when using SQLite (Warren Seen).
75
- * Don't attempt to load sprockets for Rails 3.0.x (Alex Rozumey).
76
-
77
- 0.3.2 - March 3rd 2012
78
- * Tentative Rails 3.0 and migrations support.
79
- * Allow for different internal app directory.
80
-
81
- 0.3.1 - September 12th 2011
82
- * Allow for different versions of Capybara (Leo Liang).
83
- * Including Capybara::DSL instead of Capybara.
84
- * Require 3.1.0 or better.
85
- * Allow for JRuby in the database.yml template (Philip Arndt).
86
-
87
- 0.3.0 - September 2nd 2011
88
- * Simple generator to create a pretty minimal internal Rails app.
89
-
90
- 0.2.0 - August 30th 2011
91
- * Documentation.
92
- * Allow developers to choose which Rails modules they wish to be loaded.
93
- * Load Rails routes and Capybara helpers into RSpec examples when appropriate.
94
-
95
- 0.1.1 - August 24th 2011
96
- * Support assets properly by loading ActionView and Sprockets railties.
97
-
98
- 0.1.0 - August 19th 2011
99
- * First release, extracted from Dobro for HyperTiny.
@@ -1,34 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- Gem::Specification.new do |s|
4
- s.name = "combustion"
5
- s.version = "1.1.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.rubyforge_project = "combustion"
14
-
15
- s.files = `git ls-files`.split("\n")
16
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
17
- s.executables = `git ls-files -- exe/*`.split("\n").map do |file|
18
- File.basename(file)
19
- end
20
- s.bindir = "exe"
21
- s.require_paths = ["lib"]
22
-
23
- s.add_runtime_dependency "activesupport", ">= 3.0.0"
24
- s.add_runtime_dependency "railties", ">= 3.0.0"
25
- s.add_runtime_dependency "thor", ">= 0.14.6"
26
-
27
- s.add_development_dependency "appraisal", "~> 2.1.0"
28
- s.add_development_dependency "mysql2"
29
- s.add_development_dependency "pg"
30
- s.add_development_dependency "rails"
31
- s.add_development_dependency "rspec"
32
- s.add_development_dependency "rubocop", "~> 0.54.0"
33
- s.add_development_dependency "sqlite3"
34
- end
@@ -1,9 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "http://rubygems.org"
4
-
5
- gem "rails", "~> 3.1.12"
6
- gem "mysql2", "~> 0.3.10"
7
- gem "pg", "< 1.0"
8
-
9
- gemspec :path => "../"
@@ -1,9 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "http://rubygems.org"
4
-
5
- gem "rails", "~> 3.2.22.5"
6
- gem "mysql2", "~> 0.3.10"
7
- gem "pg", "< 1.0"
8
-
9
- gemspec :path => "../"
@@ -1,9 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "http://rubygems.org"
4
-
5
- gem "rails", "~> 4.0.13"
6
- gem "mysql2", "~> 0.3.10"
7
- gem "pg", "< 1.0"
8
-
9
- gemspec :path => "../"
@@ -1,9 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "http://rubygems.org"
4
-
5
- gem "rails", "~> 4.1.16"
6
- gem "mysql2", "~> 0.3.13"
7
- gem "pg", "< 1.0"
8
-
9
- gemspec :path => "../"
@@ -1,9 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "http://rubygems.org"
4
-
5
- gem "rails", "~> 4.2.8"
6
- gem "mysql2", "~> 0.4.4"
7
- gem "pg", "< 1.0"
8
-
9
- gemspec :path => "../"
@@ -1,9 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "http://rubygems.org"
4
-
5
- gem "rails", "~> 5.0.2"
6
- gem "mysql2", "~> 0.4.4"
7
- gem "pg", "< 1.0"
8
-
9
- gemspec :path => "../"
@@ -1,9 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "http://rubygems.org"
4
-
5
- gem "rails", "~> 5.1.0"
6
- gem "mysql2", "~> 0.4.4"
7
- gem "pg", "< 1.0"
8
-
9
- gemspec :path => "../"
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "http://rubygems.org"
4
-
5
- gem "rails", "~> 5.2.0"
6
- gem "mysql2", "~> 0.5.0"
7
-
8
- gemspec :path => "../"