combustion 0.9.1 → 1.0.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 +4 -4
- data/HISTORY +4 -0
- data/README.md +12 -2
- data/combustion.gemspec +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: 00e770c8fcc3c15a6918486de7f5dbb93091bb457f28df2cb0123f0d0853f44c
|
|
4
|
+
data.tar.gz: 4efd8db0a68d99e752f431b0f6d2da7fbc34092c11db254af93b038480811a34
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d089a752fd8bc317d4add3cc6da88b648b4bb13feb25b7dabaea4f0a6e31bc042198c3aa7d52fb8206091f2db337ee75f9303fce7fc284cd7aea316727075a2d
|
|
7
|
+
data.tar.gz: 0c6c9b3e94d5ec4f376f8d2b784b00dcb3e2f247e8b27ed175dbebf88c373141f6dee0b128f4520c2dce5f90841dbaee2dd5ceb903900204a1f6441c1a5a388e
|
data/HISTORY
CHANGED
data/README.md
CHANGED
|
@@ -10,10 +10,10 @@ Get the gem into either your gemspec or your Gemfile, depending on how you manag
|
|
|
10
10
|
|
|
11
11
|
```ruby
|
|
12
12
|
# gemspec
|
|
13
|
-
gem.add_development_dependency 'combustion', '~> 0
|
|
13
|
+
gem.add_development_dependency 'combustion', '~> 1.0'
|
|
14
14
|
|
|
15
15
|
# Gemfile
|
|
16
|
-
gem 'combustion', '~> 0
|
|
16
|
+
gem 'combustion', '~> 1.0'
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
In your `spec_helper.rb`, get Combustion to set itself up - which has to happen before you introduce `rspec/rails` and - if being used - `capybara/rails`. Here's an example within context:
|
|
@@ -105,6 +105,16 @@ ActiveRecord::Schema.define do
|
|
|
105
105
|
end
|
|
106
106
|
```
|
|
107
107
|
|
|
108
|
+
#### Disabling Database Preparation
|
|
109
|
+
|
|
110
|
+
If you are preparing your own database manually or through different processes, you can disable different parts of the setup process by the following flags: `:database_reset`, `:load_schema`, and `:database_migrate`. All default to true.
|
|
111
|
+
|
|
112
|
+
```ruby
|
|
113
|
+
Combustion.initialize! :active_record,
|
|
114
|
+
:database_reset => false,
|
|
115
|
+
:load_schema => false
|
|
116
|
+
```
|
|
117
|
+
|
|
108
118
|
### Configuring Combustion to initialise the test db from a .sql file instead of schema.rb
|
|
109
119
|
|
|
110
120
|
Name the file structure.sql and configure Combustion to use it before initialising:
|
data/combustion.gemspec
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: 0.
|
|
4
|
+
version: 1.0.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: 2018-
|
|
11
|
+
date: 2018-10-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|