ar-multidb 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -84,7 +84,7 @@ module Multidb
84
84
  end
85
85
 
86
86
  def current_connection
87
- Thread.current[:multidb_connection] ||= @default_candidate.connection
87
+ Thread.current[:multidb_connection] || @default_candidate.connection
88
88
  end
89
89
 
90
90
  class << self
@@ -1,3 +1,3 @@
1
1
  module Multidb
2
- VERSION = '0.1.5'
2
+ VERSION = '0.1.6'
3
3
  end
metadata CHANGED
@@ -1,62 +1,56 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: ar-multidb
3
- version: !ruby/object:Gem::Version
4
- hash: 17
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.6
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 1
9
- - 5
10
- version: 0.1.5
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Alexander Staubo
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-02-07 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-10-03 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: activesupport
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 5
29
- segments:
30
- - 2
31
- - 3
32
- version: "2.3"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '2.3'
33
22
  type: :runtime
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: activerecord
37
23
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '2.3'
30
+ - !ruby/object:Gem::Dependency
31
+ name: activerecord
32
+ requirement: !ruby/object:Gem::Requirement
39
33
  none: false
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- hash: 5
44
- segments:
45
- - 2
46
- - 3
47
- version: "2.3"
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '2.3'
48
38
  type: :runtime
49
- version_requirements: *id002
50
- description: Multidb is an ActiveRecord extension for switching between multiple database connections, such as master/slave setups.
51
- email:
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '2.3'
46
+ description: Multidb is an ActiveRecord extension for switching between multiple database
47
+ connections, such as master/slave setups.
48
+ email:
52
49
  - alex@origo.no
53
50
  executables: []
54
-
55
51
  extensions: []
56
-
57
52
  extra_rdoc_files: []
58
-
59
- files:
53
+ files:
60
54
  - .gitignore
61
55
  - Gemfile
62
56
  - LICENSE
@@ -70,38 +64,30 @@ files:
70
64
  - lib/multidb/configuration.rb
71
65
  - lib/multidb/model_extensions.rb
72
66
  - lib/multidb/version.rb
73
- homepage: ""
67
+ homepage: ''
74
68
  licenses: []
75
-
76
69
  post_install_message:
77
70
  rdoc_options: []
78
-
79
- require_paths:
71
+ require_paths:
80
72
  - lib
81
- required_ruby_version: !ruby/object:Gem::Requirement
73
+ required_ruby_version: !ruby/object:Gem::Requirement
82
74
  none: false
83
- requirements:
84
- - - ">="
85
- - !ruby/object:Gem::Version
86
- hash: 3
87
- segments:
88
- - 0
89
- version: "0"
90
- required_rubygems_version: !ruby/object:Gem::Requirement
75
+ requirements:
76
+ - - ! '>='
77
+ - !ruby/object:Gem::Version
78
+ version: '0'
79
+ required_rubygems_version: !ruby/object:Gem::Requirement
91
80
  none: false
92
- requirements:
93
- - - ">="
94
- - !ruby/object:Gem::Version
95
- hash: 3
96
- segments:
97
- - 0
98
- version: "0"
81
+ requirements:
82
+ - - ! '>='
83
+ - !ruby/object:Gem::Version
84
+ version: '0'
99
85
  requirements: []
100
-
101
86
  rubyforge_project: ar-multidb
102
- rubygems_version: 1.8.6
87
+ rubygems_version: 1.8.24
103
88
  signing_key:
104
89
  specification_version: 3
105
- summary: Multidb is an ActiveRecord extension for switching between multiple database connections, such as master/slave setups.
90
+ summary: Multidb is an ActiveRecord extension for switching between multiple database
91
+ connections, such as master/slave setups.
106
92
  test_files: []
107
-
93
+ has_rdoc: