combustion 0.6.0 → 0.7.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 370934f0403896862f880b43c60514bdc55b7d74
4
- data.tar.gz: f2aa52b1378141afc13f172bd1fc6176d7ac893d
3
+ metadata.gz: 4eecc61f64900b28416b12bdf1a10732233c945a
4
+ data.tar.gz: c273b82455f6e3c05d08de860ecdaa32d4302990
5
5
  SHA512:
6
- metadata.gz: 3e1a3c1385e5187986589547b9104787e3cc2766dba79e3baba3f1ca0d6fa958ee916e44c47ae9d989d8604108bd965b0c9edc1124b5a1fb7a705366dbe01328
7
- data.tar.gz: 8373fdee44ece6491d8391199873eeb516585a210210b1f5eb54ad657cb24443d09a6a841226666bc6c177bdaff327b15f8c8f36d33ccbf881941331e51ff573
6
+ metadata.gz: f2ba1f8bcd5c49c1f3424fa8107b27df888c681e13e155b16ec5b8a918752cd0da972ea9f86e960a86efff4fe67d36c2dd333f89a77a5424c98457c1e4f25327
7
+ data.tar.gz: 63145f149be8fae43c84fd0c6af4f706e07a74bf8dae2e76e0cc813eaa6bfa16a479093caef8fbf58fa57f6607b42edbfa1fbfd9f024e29d0a380c007c46f30c
@@ -6,12 +6,13 @@ env:
6
6
  - "DB_ADAPTER=mysql2"
7
7
  rvm:
8
8
  - 2.2.6
9
- - 2.3.3
10
- - 2.4.0
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
@@ -27,3 +27,7 @@ end
27
27
  appraise "rails-5.0" do
28
28
  gem "rails", "~> 5.0.2"
29
29
  end
30
+
31
+ appraise "rails-5.1" do
32
+ gem "rails", "~> 5.1.0"
33
+ end
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.6.0'
13
+ gem.add_development_dependency 'combustion', '~> 0.7.0'
14
14
 
15
15
  # Gemfile
16
- gem 'combustion', '~> 0.6.0', :group => :test
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:
@@ -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
@@ -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.6.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 -- bin/*`.split("\n").map{ |f| File.basename(f) }
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'
File without changes
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "rails", "~> 5.1.0"
6
+
7
+ gemspec :path => "../"
@@ -6,6 +6,8 @@ class Combustion::Database::LoadSchema
6
6
  end
7
7
 
8
8
  def call
9
+ ActiveRecord::Schema.verbose = false
10
+
9
11
  case schema_format
10
12
  when :ruby
11
13
  load Rails.root.join('db', 'schema.rb')
@@ -12,8 +12,11 @@ class Combustion::Database::Reset
12
12
  end
13
13
 
14
14
  def call
15
- ActiveRecord::Base.configurations.values.each do |conf|
16
- operator_class(conf['adapter']).new(conf).reset
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 /postgresql/, /postgis/
29
+ when /postgres/, /postgis/
27
30
  Combustion::Databases::PostgreSQL
28
31
  when /sqlite/
29
32
  Combustion::Databases::SQLite
@@ -1,4 +1,6 @@
1
- class CreateDummyTestTable < ActiveRecord::Migration
1
+ superclass = ActiveRecord::VERSION::MAJOR < 5 ?
2
+ ActiveRecord::Migration : ActiveRecord::Migration[4.2]
3
+ class CreateDummyTestTable < superclass
2
4
  def change
3
5
  create_table 'dummy_table'
4
6
  end
@@ -1,4 +1,6 @@
1
- class CreateDummyTestTableInAnotherDb < ActiveRecord::Migration
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.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pat Allan
8
8
  autorequire:
9
- bindir: bin
9
+ bindir: exe
10
10
  cert_chain: []
11
- date: 2017-03-28 00:00:00.000000000 Z
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/combust
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.5.2
216
+ rubygems_version: 2.6.11
215
217
  signing_key:
216
218
  specification_version: 4
217
219
  summary: Elegant Rails Engine Testing