combustion 0.6.0 → 0.7.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 +3 -2
- data/Appraisals +4 -0
- data/HISTORY +12 -0
- data/README.md +2 -2
- data/bin/literals +9 -0
- data/combustion.gemspec +3 -2
- data/{bin → exe}/combust +0 -0
- data/gemfiles/rails_5.1.gemfile +7 -0
- data/lib/combustion/database/load_schema.rb +2 -0
- data/lib/combustion/database/reset.rb +6 -3
- data/spec/dummy/db/migrate/20150717075542_create_dummy_test_table.rb +3 -1
- data/spec/dummy/db/migrate/20150717075543_create_dummy_test_table_in_another_db.rb +3 -1
- metadata +7 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4eecc61f64900b28416b12bdf1a10732233c945a
|
4
|
+
data.tar.gz: c273b82455f6e3c05d08de860ecdaa32d4302990
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2ba1f8bcd5c49c1f3424fa8107b27df888c681e13e155b16ec5b8a918752cd0da972ea9f86e960a86efff4fe67d36c2dd333f89a77a5424c98457c1e4f25327
|
7
|
+
data.tar.gz: 63145f149be8fae43c84fd0c6af4f706e07a74bf8dae2e76e0cc813eaa6bfa16a479093caef8fbf58fa57f6607b42edbfa1fbfd9f024e29d0a380c007c46f30c
|
data/.travis.yml
CHANGED
@@ -6,12 +6,13 @@ env:
|
|
6
6
|
- "DB_ADAPTER=mysql2"
|
7
7
|
rvm:
|
8
8
|
- 2.2.6
|
9
|
-
- 2.3.
|
10
|
-
- 2.4.
|
9
|
+
- 2.3.4
|
10
|
+
- 2.4.1
|
11
11
|
before_install:
|
12
12
|
- gem update --system
|
13
13
|
- gem install bundler
|
14
14
|
before_script:
|
15
|
+
- ./bin/literals
|
15
16
|
- bundle exec appraisal install
|
16
17
|
script: 'bundle exec appraisal rspec'
|
17
18
|
services:
|
data/Appraisals
CHANGED
data/HISTORY
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
0.7.0 - June 20th 2017
|
2
|
+
* Confirm support for MRI frozen string literals.
|
3
|
+
* Hide migration output (Michael Grosser).
|
4
|
+
|
5
|
+
0.6.0 - March 28th 2017
|
6
|
+
* Optionally disable database reset, schema loading, migrations (Sergey Kucher).
|
7
|
+
* Allow for multiple test databases (Semyon Pupkov).
|
8
|
+
|
9
|
+
0.5.5 - July 23rd 2016
|
10
|
+
* Add PostGIS support (Roland Koch).
|
11
|
+
* MySQL parameter fix (Mathieu Leduc-Hamel).
|
12
|
+
|
1
13
|
0.5.4 - January 12th 2016
|
2
14
|
* Remove silent_stream call for Rails 5.0 compatability (Bryan Ricker).
|
3
15
|
* Fix duplicate migrations error (Semyon Pupkov).
|
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', '~> 0.7.0'
|
14
14
|
|
15
15
|
# Gemfile
|
16
|
-
gem 'combustion', '~> 0.
|
16
|
+
gem 'combustion', '~> 0.7.0', :group => :test
|
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/bin/literals
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
if (ruby -e "exit RUBY_VERSION.to_f >= 2.4")
|
2
|
+
then
|
3
|
+
echo "Automatic frozen string literals are supported"
|
4
|
+
gem install pragmater -v 4.0.0
|
5
|
+
pragmater --add lib --comments "# frozen_string_literal: true" --whitelist "**/*.rb"
|
6
|
+
pragmater --add spec --comments "# frozen_string_literal: true" --whitelist "**/*.rb"
|
7
|
+
else
|
8
|
+
echo "Automatic frozen string literals are not supported."
|
9
|
+
fi
|
data/combustion.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
Gem::Specification.new do |s|
|
3
3
|
s.name = 'combustion'
|
4
|
-
s.version = '0.
|
4
|
+
s.version = '0.7.0'
|
5
5
|
s.authors = ['Pat Allan']
|
6
6
|
s.email = ['pat@freelancing-gods.com']
|
7
7
|
s.homepage = 'https://github.com/pat/combustion'
|
@@ -13,7 +13,8 @@ Gem::Specification.new do |s|
|
|
13
13
|
|
14
14
|
s.files = `git ls-files`.split("\n")
|
15
15
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
16
|
-
s.executables = `git ls-files --
|
16
|
+
s.executables = `git ls-files -- exe/*`.split("\n").map{ |f| File.basename(f) }
|
17
|
+
s.bindir = 'exe'
|
17
18
|
s.require_paths = ['lib']
|
18
19
|
|
19
20
|
s.add_runtime_dependency 'activesupport', '>= 3.0.0'
|
data/{bin → exe}/combust
RENAMED
File without changes
|
@@ -12,8 +12,11 @@ class Combustion::Database::Reset
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def call
|
15
|
-
ActiveRecord::Base.configurations.values.each do |
|
16
|
-
|
15
|
+
ActiveRecord::Base.configurations.values.each do |configuration|
|
16
|
+
adapter = configuration['adapter'] ||
|
17
|
+
configuration['url'].split('://').first
|
18
|
+
|
19
|
+
operator_class(adapter).new(configuration).reset
|
17
20
|
end
|
18
21
|
end
|
19
22
|
|
@@ -23,7 +26,7 @@ class Combustion::Database::Reset
|
|
23
26
|
@operator ||= case adapter
|
24
27
|
when /mysql/
|
25
28
|
Combustion::Databases::MySQL
|
26
|
-
when /
|
29
|
+
when /postgres/, /postgis/
|
27
30
|
Combustion::Databases::PostgreSQL
|
28
31
|
when /sqlite/
|
29
32
|
Combustion::Databases::SQLite
|
@@ -1,4 +1,6 @@
|
|
1
|
-
|
1
|
+
superclass = ActiveRecord::VERSION::MAJOR < 5 ?
|
2
|
+
ActiveRecord::Migration : ActiveRecord::Migration[4.2]
|
3
|
+
class CreateDummyTestTableInAnotherDb < superclass
|
2
4
|
def change
|
3
5
|
create_table 'dummy_in_another_db'
|
4
6
|
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: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pat Allan
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -153,14 +153,16 @@ files:
|
|
153
153
|
- LICENCE
|
154
154
|
- README.md
|
155
155
|
- Rakefile
|
156
|
-
- bin/
|
156
|
+
- bin/literals
|
157
157
|
- combustion.gemspec
|
158
|
+
- exe/combust
|
158
159
|
- gemfiles/rails_3.1.gemfile
|
159
160
|
- gemfiles/rails_3.2.gemfile
|
160
161
|
- gemfiles/rails_4.0.gemfile
|
161
162
|
- gemfiles/rails_4.1.gemfile
|
162
163
|
- gemfiles/rails_4.2.gemfile
|
163
164
|
- gemfiles/rails_5.0.gemfile
|
165
|
+
- gemfiles/rails_5.1.gemfile
|
164
166
|
- gemfiles/rails_5_0.gemfile
|
165
167
|
- lib/combustion.rb
|
166
168
|
- lib/combustion/application.rb
|
@@ -211,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
211
213
|
version: '0'
|
212
214
|
requirements: []
|
213
215
|
rubyforge_project: combustion
|
214
|
-
rubygems_version: 2.
|
216
|
+
rubygems_version: 2.6.11
|
215
217
|
signing_key:
|
216
218
|
specification_version: 4
|
217
219
|
summary: Elegant Rails Engine Testing
|