combustion 0.5.2 → 0.5.3

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
  SHA1:
3
- metadata.gz: d6f95f799f2c9e43729681f667300ba717cd7bc3
4
- data.tar.gz: fb6937839d622b2598efee6145b84467b1fb92f6
3
+ metadata.gz: 6eb9dd7c152b1c4ef543f6db332e2cc852d8c574
4
+ data.tar.gz: 8169e2922fd87f725ee476eb2baaea449b3ef066
5
5
  SHA512:
6
- metadata.gz: 7c47d2876b0e59fd71ecae9da6f395b82d0e1f723a316942c55d15c2bbce8ec76f202b579c665b29aac2cdff0ba02dd9ddd8190a83262a05147c4a94855b82ee
7
- data.tar.gz: 9826eeb8a072e75bd175682ac024ceaa819cec191fdaa8b338ecfc9aef95bc7c52791d1a0f379afca7759c31b0de877d0cbdef69c703cf0b020884ce482a7e8c
6
+ metadata.gz: 63d7dfdd2ee1341c9311360f3d694238530e595c68ffc65ff554a733a4b1d1f3a518144bab5f27b6551ef499fb4544ae18cb92ab0e3812f1b7cfb6da3a05c79b
7
+ data.tar.gz: f0ca0720b2a0654e0205c43d1e1d1ebfe83e615b0016f4c9341dd86c9976a7780bec4ee9699d7acac891a78374a10b8b4739e47ec25b5563240c2b9a6ad295d0
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.5.2'
13
+ gem.add_development_dependency 'combustion', '~> 0.5.3'
14
14
 
15
15
  # Gemfile
16
- gem 'combustion', '~> 0.5.2', :group => :test
16
+ gem 'combustion', '~> 0.5.3', :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:
@@ -172,7 +172,9 @@ end
172
172
 
173
173
  ## Compatibility
174
174
 
175
- Developed for Rails 3.1 and Ruby 1.9. It should work on any other Ruby, and possibly Rails 3.0, but will not work neatly with earlier versions of Rails.
175
+ Developed for Rails 3.1 or better (including Rails 4) and Ruby 1.9 or better. It should work on any other Ruby, and possibly Rails 3.0, but will not work neatly with earlier versions of Rails.
176
+
177
+ You can also use Combustion with multiple versions of Rails to test compatibility across them. [Appraisal](https://github.com/thoughtbot/appraisal) is a gem that can help with this, and a good starting reference is the [Thinking Sphinx](https://github.com/pat/thinking-sphinx) test suite, which runs against [multiple versions](https://github.com/pat/thinking-sphinx/blob/master/Appraisals) of Rails.
176
178
 
177
179
  ## Limitations and Known Issues
178
180
 
@@ -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.5.2'
4
+ s.version = '0.5.3'
5
5
  s.authors = ['Pat Allan']
6
6
  s.email = ['pat@freelancing-gods.com']
7
7
  s.homepage = 'https://github.com/pat/combustion'
@@ -26,7 +26,9 @@ module Combustion
26
26
  Combustion::Application.configure_for_combustion
27
27
 
28
28
  if modules.map(&:to_s).include? 'active_record'
29
- Combustion::Database.setup
29
+ Combustion::Application.config.to_prepare do
30
+ Combustion::Database.setup
31
+ end
30
32
  end
31
33
 
32
34
  Combustion::Application.initialize!
@@ -57,11 +57,16 @@ module Combustion
57
57
 
58
58
  def self.migrate
59
59
  migrator = ActiveRecord::Migrator
60
- paths = Array('db/migrate/')
61
60
 
62
61
  if migrator.respond_to?(:migrations_paths)
63
62
  paths = migrator.migrations_paths
63
+ else
64
+ paths = Array('db/migrate/')
64
65
  end
66
+
67
+ paths += Rails.application.paths['db/migrate'].to_a
68
+ paths.uniq!
69
+
65
70
  # Append the migrations inside the internal app's db/migrate directory
66
71
  paths << File.join(Rails.root, 'db/migrate')
67
72
 
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.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pat Allan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-17 00:00:00.000000000 Z
11
+ date: 2015-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -96,9 +96,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  version: '0'
97
97
  requirements: []
98
98
  rubyforge_project: combustion
99
- rubygems_version: 2.3.0
99
+ rubygems_version: 2.2.2
100
100
  signing_key:
101
101
  specification_version: 4
102
102
  summary: Elegant Rails Engine Testing
103
103
  test_files: []
104
- has_rdoc: