multi_config 0.0.1

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.
data/.gitignore ADDED
@@ -0,0 +1,20 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ .idea
7
+ Gemfile.lock
8
+ InstalledFiles
9
+ _yardoc
10
+ coverage
11
+ doc/
12
+ lib/bundler/man
13
+ pkg
14
+ rdoc
15
+ spec/reports
16
+ test/tmp
17
+ test/version_tmp
18
+ tmp
19
+ spec/support/*db*
20
+ .rbenv*
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --format progress
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.8.7
4
+ - 1.9.2
5
+ - 1.9.3
data/Gemfile ADDED
@@ -0,0 +1,14 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in multi_config.gemspec
4
+ gemspec
5
+
6
+ group :test do
7
+ gem 'rake'
8
+ gem 'rspec'
9
+ gem 'autotest'
10
+ gem 'simplecov', :platforms => :mri_19, :require => false
11
+ gem 'rcov', :platforms => :mri_18
12
+ gem 'rails', '~> 3.0'
13
+ gem 'sqlite3'
14
+ end
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2012 Shadab Ahmed
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,37 @@
1
+ # ActiveRecordMultiConfig
2
+
3
+ ## Build Status
4
+ [![Build Status](https://secure.travis-ci.org/shadabahmed/multi_config.png)](https://secure.travis-ci.org/shadabahmed/multi_config)
5
+
6
+ TODO: Write a gem description
7
+
8
+ ## Installation
9
+
10
+ Add this line to your application's Gemfile:
11
+
12
+ gem 'multi_config'
13
+
14
+ And then execute:
15
+
16
+ $ bundle
17
+
18
+ Or install it yourself as:
19
+
20
+ $ gem install multi_config
21
+
22
+ ## Usage
23
+
24
+ This gem will allow multiple db config files to be used in a Rails 3 project. All you have to do is
25
+ ```ruby
26
+ class MyTable < ActiveRecord::Base
27
+ self.config_file = 'my_config'
28
+ end
29
+ ```
30
+
31
+ ## Contributing
32
+
33
+ 1. Fork it
34
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
35
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
36
+ 4. Push to the branch (`git push origin my-new-feature`)
37
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,43 @@
1
+ require "bundler/gem_tasks"
2
+ require 'rspec/core/rake_task'
3
+ require 'fileutils'
4
+ desc 'Default: run specs.'
5
+ task :default => :spec
6
+
7
+ desc "Run specs"
8
+ RSpec::Core::RakeTask.new('spec') do |t|
9
+ t.pattern = "./spec/**/*_spec.rb" # don't need this, it's default.
10
+ end
11
+
12
+ # Run the rdoc task to generate rdocs for this gem
13
+ require 'rdoc/task'
14
+ RDoc::Task.new do |rdoc|
15
+ require "multi_config/version"
16
+ version = MultiConfig::VERSION
17
+
18
+ rdoc.rdoc_dir = 'rdoc'
19
+ rdoc.title = "multi_config #{version}"
20
+ rdoc.rdoc_files.include('README*')
21
+ rdoc.rdoc_files.include('lib/**/*.rb')
22
+ end
23
+
24
+ if RUBY_VERSION =~ /^1\.8/
25
+ RSpec::Core::RakeTask.new(:rcov) do |spec|
26
+ spec.pattern = 'spec/**/*_spec.rb'
27
+ spec.rcov = true
28
+ spec.rcov_opts = %w{--exclude pkg\/,spec\/,features\/}
29
+ end
30
+ else
31
+ desc "Code coverage detail"
32
+ task :simplecov do
33
+ ENV['COVERAGE'] = "true"
34
+ Rake::Task['spec'].execute
35
+ end
36
+ end
37
+
38
+
39
+ desc "Run all specs with rcov"
40
+ RSpec::Core::RakeTask.new(:rcov) do |t|
41
+ t.rcov = true
42
+ t.rcov_opts = %w{--exclude pkg\/,spec\/,features\/}
43
+ end
@@ -0,0 +1,49 @@
1
+ module MultiConfig
2
+ module ORMs
3
+ module ActiveRecord
4
+ def self.included(mod)
5
+ mod.extend ClassMethods
6
+ mod.send(:class_variable_set, :'@@db_configs', [])
7
+ end
8
+
9
+ module ClassMethods
10
+ def config_file=(file_name)
11
+ file_name += '.yml' unless File.extname(file_name).eql? '.yml'
12
+ unless file_name == 'database.yml'
13
+ namespace = File.basename(file_name, '.yml')
14
+ add_to_db_configs(file_name, namespace)
15
+ raise "Configuration for #{::Rails.env} environment not defined in #{config_path file_name}" unless
16
+ configurations.include? "#{namespace}_#{::Rails.env}"
17
+ establish_connection "#{namespace}_#{::Rails.env}"
18
+ end
19
+ end
20
+
21
+ private
22
+
23
+ def add_to_db_configs(file_name, namespace)
24
+ db_configs = class_variable_get(:'@@db_configs')
25
+ unless db_configs.include?(namespace)
26
+ configurations.merge!(config(file_name, namespace))
27
+ db_configs << namespace
28
+ end
29
+ end
30
+
31
+ def config_path(file_name)
32
+ File.join(Rails.root, 'config', file_name)
33
+ end
34
+
35
+ def config(file_name, namespace)
36
+ begin
37
+ YAML.load(ERB.new(File.read(config_path(file_name))).result).inject({}) do |hash,(k,v)|
38
+ hash["#{namespace}_#{k}"]=v
39
+ hash
40
+ end
41
+ rescue Exception => exc
42
+ raise "File #{config_path file_name} does not exist in config" unless File.exists?(config_path(file_name))
43
+ raise "Invalid config file #{config_path file_name}"
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,3 @@
1
+ module MultiConfig
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,23 @@
1
+ require "multi_config/version"
2
+
3
+ module MultiConfig
4
+ if defined? Rails::Railtie
5
+ require 'rails'
6
+ class Railtie < Rails::Railtie
7
+ initializer 'multi_config.active_record' do
8
+ ActiveSupport.on_load :active_record do
9
+ MultiConfig::Railtie.insert
10
+ end
11
+ end
12
+ end
13
+ end
14
+
15
+ class Railtie
16
+ def self.insert
17
+ if defined?(ActiveRecord)
18
+ require 'multi_config/orms/active_record'
19
+ ActiveRecord::Base.send(:include, MultiConfig::ORMs::ActiveRecord)
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,28 @@
1
+ # -*- encoding: utf-8 -*-
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'multi_config/version'
5
+
6
+ Gem::Specification.new do |gem|
7
+ gem.name = "multi_config"
8
+ gem.version = MultiConfig::VERSION
9
+ gem.authors = ["Shadab Ahmed"]
10
+ gem.email = [""]
11
+ gem.description = %q{This gem lets you specify different config file for an ActiveRecord Model}
12
+ gem.summary = %q{Use this gem to use multiple db config files}
13
+ gem.homepage = "https://github.com/shadabahmed/multi_config"
14
+
15
+ # Load Paths...
16
+ gem.files = `git ls-files`.split($/)
17
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
18
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
19
+ gem.require_paths = ["lib"]
20
+
21
+ # Dependencies (installed via 'bundle install')...
22
+ gem.add_development_dependency("bundler", [">= 1.0.0"])
23
+ gem.add_development_dependency("rails", [">= 3.0"])
24
+ gem.add_development_dependency("activerecord", [">= 3.0"])
25
+ gem.add_development_dependency("autotest", [">= 4.0"])
26
+ gem.add_development_dependency("rdoc")
27
+ gem.add_development_dependency("sqlite3")
28
+ end
@@ -0,0 +1,24 @@
1
+ require 'spec_helper'
2
+
3
+ describe ActiveRecord::Base, "methods" do
4
+ before do
5
+ ActiveRecord::Base.send(:include, MultiConfig::ORMs::ActiveRecord)
6
+ end
7
+
8
+ it "should have configurations" do
9
+ ActiveRecord::Base.configurations.should_not == {}
10
+ end
11
+
12
+ it "should have multi config methods" do
13
+ ActiveRecord::Base.singleton_methods.should include(RUBY_VERSION =~ /^1\.8/ ? 'config_file=' : :'config_file=')
14
+ end
15
+
16
+ it "should have @@db_config class variable set" do
17
+ ActiveRecord::Base.send(:class_variable_get, '@@db_configs').should == []
18
+ end
19
+
20
+ end
21
+
22
+
23
+
24
+
@@ -0,0 +1,12 @@
1
+ require "spec_helper"
2
+
3
+ describe UsesDatabaseYml do
4
+ before do
5
+ ActiveRecord::Base.send(:extend, MultiConfig::ORMs::ActiveRecord)
6
+ UsesDatabaseYml.establish_connection
7
+ end
8
+
9
+ it "should be connected to the alternate database" do
10
+ UsesDatabaseYml.connection.instance_variable_get(:@config)[:database].split('/').last.should == "db"
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ require "spec_helper"
2
+
3
+ describe UsesOtherYml do
4
+ before do
5
+ ActiveRecord::Base.send(:include, MultiConfig::ORMs::ActiveRecord)
6
+ UsesOtherYml.config_file = 'other'
7
+ end
8
+
9
+ it "should be connected to the default database" do
10
+ UsesOtherYml.connection.instance_variable_get(:@config)[:database].split('/').last.should == "other_db"
11
+ end
12
+ end
@@ -0,0 +1,102 @@
1
+ require 'spec_helper'
2
+
3
+ describe MultiConfig::ORMs::ActiveRecord do
4
+ let!(:db_config){ load_namespaced_config('database.yml') }
5
+ let!(:other_config){ load_namespaced_config('other.yml') }
6
+ before(:each) do
7
+ @test_class = Class.new
8
+ @test_class.stub(:configurations).and_return({})
9
+ @test_class.stub(:establish_connection)
10
+ @test_class.send(:include, MultiConfig::ORMs::ActiveRecord)
11
+ end
12
+ let(:test_class){@test_class}
13
+
14
+ describe "#config_file=" do
15
+
16
+ it "should raise an error if file is not in present" do
17
+ lambda{test_class.config_file = 'none'}.should raise_error
18
+ end
19
+
20
+ describe "should raise error in unspecified environment" do
21
+ before do
22
+ Rails.stub(:env).and_return('unknown')
23
+ end
24
+ it "should through error when I specify a config file with environment not defined" do
25
+ lambda{test_class.config_file = 'other'}.should raise_error
26
+ end
27
+ end
28
+
29
+ it "should through error when I specify invalid config file" do
30
+ lambda{test_class.config_file = 'invalid'}.should raise_error
31
+ end
32
+
33
+ describe "should modify class variable @@db_configs" do
34
+ before do
35
+ test_class.send(:class_variable_get, '@@db_configs').should == []
36
+ test_class.config_file = 'other'
37
+ end
38
+ subject {test_class.send(:class_variable_get, '@@db_configs')}
39
+ it{should == ['other']}
40
+ end
41
+
42
+ describe "should modify .configurations" do
43
+ before do
44
+ test_class.should_receive(:establish_connection).once.with('other_test')
45
+ expect {
46
+ test_class.config_file = 'other'
47
+ }.to change(test_class, :configurations).from({}).to(other_config)
48
+ end
49
+ subject {test_class.configurations}
50
+ it{should include 'other_development'}
51
+ it{should include 'other_test'}
52
+ end
53
+
54
+ describe "should work as expected when filename with extension .yml is specified" do
55
+ before do
56
+ test_class.should_receive(:establish_connection).once.with('other_test')
57
+ expect {
58
+ test_class.config_file = 'other.yml'
59
+ }.to change(test_class, :configurations).from({}).to(other_config)
60
+ end
61
+ subject {test_class.configurations.keys}
62
+ it{should include 'other_development'}
63
+ it{should include 'other_test'}
64
+ end
65
+
66
+ describe "multiple calls for config_file= in different models should modify configurations only once" do
67
+ let(:first_test_class) {Class.new(test_class)}
68
+ let(:second_test_class) {Class.new(test_class)}
69
+ before do
70
+ first_test_class.should_receive(:establish_connection).once.with('other_test')
71
+ expect {
72
+ first_test_class.config_file = 'other.yml'
73
+ }.to change(test_class, :configurations).from({}).to(other_config)
74
+
75
+ second_test_class.should_receive(:establish_connection).once.with('other_test')
76
+ expect {
77
+ second_test_class.config_file = 'other'
78
+ }.not_to change(test_class, :configurations)
79
+
80
+ end
81
+ subject {second_test_class.configurations.keys}
82
+ it{should include 'other_development'}
83
+ it{should include 'other_test'}
84
+ end
85
+
86
+ describe "should not do anything if database.yml specified" do
87
+ before do
88
+ test_class.should_not_receive(:establish_connection)
89
+ test_class.should_not_receive(:add_to_db_configs)
90
+ test_class.should_not_receive(:config_path)
91
+ test_class.should_not_receive(:config)
92
+ expect {
93
+ test_class.config_file = 'database'
94
+ }.not_to change(test_class, :configurations)
95
+ end
96
+ subject {test_class.configurations.keys}
97
+ it{should_not include 'database_development'}
98
+ it{should_not include 'database_test'}
99
+ end
100
+
101
+ end
102
+ end
@@ -0,0 +1,39 @@
1
+ if ENV['COVERAGE']
2
+ require 'simplecov'
3
+ SimpleCov.start do
4
+ add_filter File.expand_path('../../spec',__FILE__)
5
+ end
6
+ end
7
+ $LOAD_PATH.unshift(File.expand_path('../../lib',__FILE__))
8
+
9
+ require 'rubygems'
10
+ require 'bundler/setup'
11
+ Bundler.require(:default, :test)
12
+ require 'active_record'
13
+
14
+ require 'multi_config/orms/active_record'
15
+ require 'rspec/autorun'
16
+
17
+ # Requires supporting ruby files with custom matchers and macros, etc,
18
+ # in spec/support/ and its subdirectories.
19
+ Dir[File.join(File.dirname(__FILE__), "support/**/*.rb")].each {|f| require f}
20
+
21
+ # This file was generated by the `rspec --init` command. Conventionally, all
22
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
23
+ # Require this file using `require "spec_helper"` to ensure that it is only
24
+ # loaded once.
25
+ #
26
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
27
+ RSpec.configure do |config|
28
+ config.treat_symbols_as_metadata_keys_with_true_values = true
29
+ config.run_all_when_everything_filtered = true
30
+
31
+ # Run specs in random order to surface order dependencies. If you find an
32
+ # order dependency and want to debug it, you can fix the order by providing
33
+ # the seed, which is printed after each run.
34
+ # --seed 1234
35
+ config.order = 'random'
36
+ config.before(:each) do
37
+ set_rails_conf
38
+ end
39
+ end
@@ -0,0 +1,3 @@
1
+ ActiveRecord::Base.logger = Logger.new(StringIO.new)
2
+ ActiveRecord::Base.configurations = YAML.load_file(ERB.new(File.expand_path("../config/database.yml",__FILE__)).result)
3
+
@@ -0,0 +1,7 @@
1
+ development: &development
2
+ database: db
3
+ host: localhost
4
+ adapter: sqlite3
5
+
6
+ test:
7
+ <<: *development
File without changes
@@ -0,0 +1,3 @@
1
+ #Do not change this. It contains binary data
2
+ :
3
+ 
@@ -0,0 +1,8 @@
1
+ development: &development
2
+ database: other_db
3
+ host: localhost
4
+ adapter: sqlite3
5
+
6
+ test:
7
+ <<: *development
8
+
@@ -0,0 +1,5 @@
1
+ def load_namespaced_config(file)
2
+ namespace = File.basename(file, File.extname(file))
3
+ config = YAML.load(ERB.new(File.read(File.expand_path("../config/#{file}", __FILE__))).result)
4
+ config.inject({}){|h,(k,v)| h["#{namespace}_#{k}"]=v;h}
5
+ end
@@ -0,0 +1,2 @@
1
+ class UsesDatabaseYml < ActiveRecord::Base; end
2
+ class UsesOtherYml < ActiveRecord::Base; end
@@ -0,0 +1,4 @@
1
+ def set_rails_conf
2
+ Rails.stub(:env).and_return('test')
3
+ Rails.stub(:root).and_return(File.expand_path('../', __FILE__))
4
+ end
metadata ADDED
@@ -0,0 +1,189 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: multi_config
3
+ version: !ruby/object:Gem::Version
4
+ hash: 29
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 1
10
+ version: 0.0.1
11
+ platform: ruby
12
+ authors:
13
+ - Shadab Ahmed
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2012-09-08 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: bundler
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 23
29
+ segments:
30
+ - 1
31
+ - 0
32
+ - 0
33
+ version: 1.0.0
34
+ type: :development
35
+ version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
37
+ name: rails
38
+ prerelease: false
39
+ requirement: &id002 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ hash: 7
45
+ segments:
46
+ - 3
47
+ - 0
48
+ version: "3.0"
49
+ type: :development
50
+ version_requirements: *id002
51
+ - !ruby/object:Gem::Dependency
52
+ name: activerecord
53
+ prerelease: false
54
+ requirement: &id003 !ruby/object:Gem::Requirement
55
+ none: false
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ hash: 7
60
+ segments:
61
+ - 3
62
+ - 0
63
+ version: "3.0"
64
+ type: :development
65
+ version_requirements: *id003
66
+ - !ruby/object:Gem::Dependency
67
+ name: autotest
68
+ prerelease: false
69
+ requirement: &id004 !ruby/object:Gem::Requirement
70
+ none: false
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ hash: 27
75
+ segments:
76
+ - 4
77
+ - 0
78
+ version: "4.0"
79
+ type: :development
80
+ version_requirements: *id004
81
+ - !ruby/object:Gem::Dependency
82
+ name: rdoc
83
+ prerelease: false
84
+ requirement: &id005 !ruby/object:Gem::Requirement
85
+ none: false
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ hash: 3
90
+ segments:
91
+ - 0
92
+ version: "0"
93
+ type: :development
94
+ version_requirements: *id005
95
+ - !ruby/object:Gem::Dependency
96
+ name: sqlite3
97
+ prerelease: false
98
+ requirement: &id006 !ruby/object:Gem::Requirement
99
+ none: false
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ hash: 3
104
+ segments:
105
+ - 0
106
+ version: "0"
107
+ type: :development
108
+ version_requirements: *id006
109
+ description: This gem lets you specify different config file for an ActiveRecord Model
110
+ email:
111
+ - ""
112
+ executables: []
113
+
114
+ extensions: []
115
+
116
+ extra_rdoc_files: []
117
+
118
+ files:
119
+ - .gitignore
120
+ - .rspec
121
+ - .travis.yml
122
+ - Gemfile
123
+ - LICENSE.txt
124
+ - README.md
125
+ - Rakefile
126
+ - lib/multi_config.rb
127
+ - lib/multi_config/orms/active_record.rb
128
+ - lib/multi_config/version.rb
129
+ - multi_config.gemspec
130
+ - spec/active_record_spec.rb
131
+ - spec/models/uses_database_yml_spec.rb
132
+ - spec/models/uses_other_yml_spec.rb
133
+ - spec/multi_config_spec.rb
134
+ - spec/spec_helper.rb
135
+ - spec/support/active_record_config.rb
136
+ - spec/support/config/database.yml
137
+ - spec/support/config/db
138
+ - spec/support/config/invalid.yml
139
+ - spec/support/config/other.yml
140
+ - spec/support/config_helper.rb
141
+ - spec/support/models.rb
142
+ - spec/support/rails_config.rb
143
+ homepage: https://github.com/shadabahmed/multi_config
144
+ licenses: []
145
+
146
+ post_install_message:
147
+ rdoc_options: []
148
+
149
+ require_paths:
150
+ - lib
151
+ required_ruby_version: !ruby/object:Gem::Requirement
152
+ none: false
153
+ requirements:
154
+ - - ">="
155
+ - !ruby/object:Gem::Version
156
+ hash: 3
157
+ segments:
158
+ - 0
159
+ version: "0"
160
+ required_rubygems_version: !ruby/object:Gem::Requirement
161
+ none: false
162
+ requirements:
163
+ - - ">="
164
+ - !ruby/object:Gem::Version
165
+ hash: 3
166
+ segments:
167
+ - 0
168
+ version: "0"
169
+ requirements: []
170
+
171
+ rubyforge_project:
172
+ rubygems_version: 1.8.24
173
+ signing_key:
174
+ specification_version: 3
175
+ summary: Use this gem to use multiple db config files
176
+ test_files:
177
+ - spec/active_record_spec.rb
178
+ - spec/models/uses_database_yml_spec.rb
179
+ - spec/models/uses_other_yml_spec.rb
180
+ - spec/multi_config_spec.rb
181
+ - spec/spec_helper.rb
182
+ - spec/support/active_record_config.rb
183
+ - spec/support/config/database.yml
184
+ - spec/support/config/db
185
+ - spec/support/config/invalid.yml
186
+ - spec/support/config/other.yml
187
+ - spec/support/config_helper.rb
188
+ - spec/support/models.rb
189
+ - spec/support/rails_config.rb