db-charmer 1.6.5 → 1.6.6

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.6.5
1
+ 1.6.6
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{db-charmer}
8
- s.version = "1.6.5"
8
+ s.version = "1.6.6"
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"]
@@ -37,13 +37,13 @@ module DbCharmer
37
37
  end
38
38
 
39
39
  #-----------------------------------------------------------------------------
40
- @@db_charmer_default_connection = nil
40
+ @@db_charmer_default_connections = {}
41
41
  def db_charmer_default_connection=(conn)
42
- @@db_charmer_default_connection = conn
42
+ @@db_charmer_default_connections[self.name] = conn
43
43
  end
44
44
 
45
45
  def db_charmer_default_connection
46
- @@db_charmer_default_connection
46
+ @@db_charmer_default_connections[self.name]
47
47
  end
48
48
 
49
49
  #-----------------------------------------------------------------------------
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 6
8
- - 5
9
- version: 1.6.5
8
+ - 6
9
+ version: 1.6.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Alexey Kovyrin