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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 00e770c8fcc3c15a6918486de7f5dbb93091bb457f28df2cb0123f0d0853f44c
4
- data.tar.gz: 4efd8db0a68d99e752f431b0f6d2da7fbc34092c11db254af93b038480811a34
3
+ metadata.gz: 67e781b7922d6b720d76b442ca930f1e8341e297afd9d677656b24e7a4265e85
4
+ data.tar.gz: 1b21ce6080deed68c828303b92b1131d822714f1e905c29d97be76753bf82843
5
5
  SHA512:
6
- metadata.gz: d089a752fd8bc317d4add3cc6da88b648b4bb13feb25b7dabaea4f0a6e31bc042198c3aa7d52fb8206091f2db337ee75f9303fce7fc284cd7aea316727075a2d
7
- data.tar.gz: 0c6c9b3e94d5ec4f376f8d2b784b00dcb3e2f247e8b27ed175dbebf88c373141f6dee0b128f4520c2dce5f90841dbaee2dd5ceb903900204a1f6441c1a5a388e
6
+ metadata.gz: 2edf04f8a1f865ad131bfe324d8258824f03e415fdfef986d310d6e47663f6055cf182d5aa757cefd7563261ada0d70c64c45dff70caba90999fbcb1cababbf9
7
+ data.tar.gz: b140df7dddbb1960f3a567a1d2987bca21826efeb7be031d612d742888fb67e9c2f50068278925e8a80150e1c1b509cc1412df604c042f6537846003e46daee8
@@ -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.7
10
- - 2.4.4
11
- - 2.5.1
10
+ - 2.3.8
11
+ - 2.4.5
12
+ - 2.5.3
13
+ - 2.6.1
12
14
  before_install:
13
- - gem update --system
14
- - gem install bundler
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: 'bundle exec appraisal rake'
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
@@ -3,3 +3,5 @@
3
3
  source "http://rubygems.org"
4
4
 
5
5
  gemspec
6
+
7
+ gem "sqlite3", "~> 1.3.13", :platform => :ruby
data/HISTORY CHANGED
@@ -1,3 +1,6 @@
1
+ 1.1.0 - February 13th 2019
2
+ * Rails 6.0 support.
3
+
1
4
  1.0.0 - October 3rd 2018
2
5
  * No functional changes.
3
6
  * Added documentation about database preparation options.
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.0'
13
+ gem.add_development_dependency 'combustion', '~> 1.1'
14
14
 
15
15
  # Gemfile
16
- gem 'combustion', '~> 1.0'
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:
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "combustion"
5
- s.version = "1.0.0"
5
+ s.version = "1.1.0"
6
6
  s.authors = ["Pat Allan"]
7
7
  s.email = ["pat@freelancing-gods.com"]
8
8
  s.homepage = "https://github.com/pat/combustion"
@@ -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
- unused_environments = RAILS_DEFAULT_ENVIRONMENTS - [Rails.env.to_s]
56
- resettable_environments = ActiveRecord::Base.configurations.keys -
57
- unused_environments
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
- ActiveRecord::Base.configurations.select do |name|
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.0.0
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: 2018-10-03 00:00:00.000000000 Z
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
- rubyforge_project: combustion
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