db-charmer 1.6.3 → 1.6.4

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES CHANGED
@@ -1,3 +1,9 @@
1
+ 1.6.4 (2010-04-05):
2
+
3
+ Default behaviour changed: DbCharmer.connections_should_exist is true in all environments
4
+ by default. Old default behaviour was too misleading for many developers.
5
+
6
+ ----------------------------------------------------------------------------------------
1
7
  1.6.3 (2010-04-03):
2
8
 
3
9
  Bugfix release: Modified stub connection initialization code to set default connections
@@ -127,10 +127,10 @@ Migration class example (global connection rewrite, multiple connections with th
127
127
  end
128
128
  end
129
129
 
130
- By default in development and test environments you could skip this <tt>:second_db</tt>
131
- connection from your database.yml files and rails would create the tables in your single database,
132
- but in production you'd specify it and get the table created on a separate server and/or in a
133
- separate database.
130
+ By default in all environments <tt>on_db</tt> and <tt>db_magic</tt> statments would fail if
131
+ specified connection does not exist in database.yml. It is possible to make +DbCharmer+
132
+ ignore such situations in non-production environments so that rails would create the tables
133
+ in your single database (especially useful in test databases).
134
134
 
135
135
  This behaviour is controlled by the <tt>DbCharmer.connections_should_exist</tt>
136
136
  configuration attribute which could be set from a rails initializer.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.6.3
1
+ 1.6.4
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{db-charmer}
8
- s.version = "1.6.3"
8
+ s.version = "1.6.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Alexey Kovyrin"]
12
- s.date = %q{2010-04-03}
12
+ s.date = %q{2010-04-05}
13
13
  s.description = %q{ActiveRecord Connections Magic (slaves, multiple connections, etc)}
14
14
  s.email = %q{alexey@kovyrin.net}
15
15
  s.extra_rdoc_files = [
@@ -1,5 +1,5 @@
1
1
  module DbCharmer
2
- @@connections_should_exist = Rails.env.production?
2
+ @@connections_should_exist = true
3
3
  mattr_accessor :connections_should_exist
4
4
 
5
5
  def self.connections_should_exist?
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 6
8
- - 3
9
- version: 1.6.3
8
+ - 4
9
+ version: 1.6.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Alexey Kovyrin
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-03 00:00:00 -04:00
17
+ date: 2010-04-05 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency