combustion 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +9 -6
- data/Appraisals +12 -0
- data/Gemfile +2 -0
- data/HISTORY +3 -0
- data/README.md +2 -2
- data/combustion.gemspec +1 -1
- data/lib/combustion/database/reset.rb +4 -6
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67e781b7922d6b720d76b442ca930f1e8341e297afd9d677656b24e7a4265e85
|
4
|
+
data.tar.gz: 1b21ce6080deed68c828303b92b1131d822714f1e905c29d97be76753bf82843
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2edf04f8a1f865ad131bfe324d8258824f03e415fdfef986d310d6e47663f6055cf182d5aa757cefd7563261ada0d70c64c45dff70caba90999fbcb1cababbf9
|
7
|
+
data.tar.gz: b140df7dddbb1960f3a567a1d2987bca21826efeb7be031d612d742888fb67e9c2f50068278925e8a80150e1c1b509cc1412df604c042f6537846003e46daee8
|
data/.travis.yml
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
language: ruby
|
2
|
+
dist: xenial
|
2
3
|
env:
|
3
4
|
matrix:
|
4
5
|
- "DB_ADAPTER=sqlite3"
|
@@ -6,15 +7,17 @@ env:
|
|
6
7
|
- "DB_ADAPTER=mysql2"
|
7
8
|
rvm:
|
8
9
|
- 2.2.10
|
9
|
-
- 2.3.
|
10
|
-
- 2.4.
|
11
|
-
- 2.5.
|
10
|
+
- 2.3.8
|
11
|
+
- 2.4.5
|
12
|
+
- 2.5.3
|
13
|
+
- 2.6.1
|
12
14
|
before_install:
|
13
|
-
- gem
|
14
|
-
|
15
|
+
- gem install bundler --version "~> 1.17"
|
16
|
+
install:
|
17
|
+
- bundle _1.17.3_ install --jobs=3 --retry=3
|
15
18
|
before_script:
|
16
19
|
- bundle exec appraisal install
|
17
|
-
script:
|
20
|
+
script: bundle exec appraisal rake
|
18
21
|
services:
|
19
22
|
- mysql
|
20
23
|
- postgresql
|
data/Appraisals
CHANGED
@@ -5,30 +5,35 @@ if RUBY_VERSION.to_f <= 2.3
|
|
5
5
|
gem "rails", "~> 3.1.12"
|
6
6
|
gem "mysql2", "~> 0.3.10"
|
7
7
|
gem "pg", "< 1.0"
|
8
|
+
gem "bundler", "~> 1.17"
|
8
9
|
end
|
9
10
|
|
10
11
|
appraise "rails-3.2" do
|
11
12
|
gem "rails", "~> 3.2.22.5"
|
12
13
|
gem "mysql2", "~> 0.3.10"
|
13
14
|
gem "pg", "< 1.0"
|
15
|
+
gem "bundler", "~> 1.17"
|
14
16
|
end
|
15
17
|
|
16
18
|
appraise "rails-4.0" do
|
17
19
|
gem "rails", "~> 4.0.13"
|
18
20
|
gem "mysql2", "~> 0.3.10"
|
19
21
|
gem "pg", "< 1.0"
|
22
|
+
gem "bundler", "~> 1.17"
|
20
23
|
end
|
21
24
|
|
22
25
|
appraise "rails-4.1" do
|
23
26
|
gem "rails", "~> 4.1.16"
|
24
27
|
gem "mysql2", "~> 0.3.13"
|
25
28
|
gem "pg", "< 1.0"
|
29
|
+
gem "bundler", "~> 1.17"
|
26
30
|
end
|
27
31
|
|
28
32
|
appraise "rails-4.2" do
|
29
33
|
gem "rails", "~> 4.2.8"
|
30
34
|
gem "mysql2", "~> 0.4.4"
|
31
35
|
gem "pg", "< 1.0"
|
36
|
+
gem "bundler", "~> 1.17"
|
32
37
|
end
|
33
38
|
end
|
34
39
|
|
@@ -48,3 +53,10 @@ appraise "rails-5.2" do
|
|
48
53
|
gem "rails", "~> 5.2.0"
|
49
54
|
gem "mysql2", "~> 0.5.0"
|
50
55
|
end
|
56
|
+
|
57
|
+
if RUBY_VERSION.to_f >= 2.5
|
58
|
+
appraise "rails-6.0" do
|
59
|
+
gem "rails", "~> 6.0.0.beta1"
|
60
|
+
gem "mysql2", "~> 0.5.0"
|
61
|
+
end
|
62
|
+
end
|
data/Gemfile
CHANGED
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', '~> 1.
|
13
|
+
gem.add_development_dependency 'combustion', '~> 1.1'
|
14
14
|
|
15
15
|
# Gemfile
|
16
|
-
gem 'combustion', '~> 1.
|
16
|
+
gem 'combustion', '~> 1.1'
|
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:
|
data/combustion.gemspec
CHANGED
@@ -52,12 +52,10 @@ class Combustion::Database::Reset
|
|
52
52
|
# All database configs except Rails default environments
|
53
53
|
# that are not currently in use
|
54
54
|
def resettable_db_configs
|
55
|
-
|
56
|
-
|
57
|
-
|
55
|
+
all_configurations = ActiveRecord::Base.configurations.to_h
|
56
|
+
unused_environments = RAILS_DEFAULT_ENVIRONMENTS - [Rails.env.to_s]
|
57
|
+
resettable_environments = all_configurations.keys - unused_environments
|
58
58
|
|
59
|
-
|
60
|
-
resettable_environments.include?(name)
|
61
|
-
end
|
59
|
+
all_configurations.select { |name| resettable_environments.include?(name) }
|
62
60
|
end
|
63
61
|
end
|
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.1.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: 2019-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -230,8 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
230
230
|
- !ruby/object:Gem::Version
|
231
231
|
version: '0'
|
232
232
|
requirements: []
|
233
|
-
|
234
|
-
rubygems_version: 2.7.6
|
233
|
+
rubygems_version: 3.0.1
|
235
234
|
signing_key:
|
236
235
|
specification_version: 4
|
237
236
|
summary: Elegant Rails Engine Testing
|