activerecord-sqlserver-adapter-mirroring 0.1.0 → 0.1.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/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
@@ -52,11 +52,14 @@ module ActiveRecord
|
|
52
52
|
end
|
53
53
|
|
54
54
|
def switch_to_mirror
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
55
|
+
#make deep copy, so we don't change orignal config
|
56
|
+
@connection_options = Marshal.load(Marshal.dump(@connection_options))
|
57
|
+
@connection_options.symbolize_keys!
|
58
|
+
@connection_options[:mirror].symbolize_keys!
|
59
|
+
|
60
|
+
@connection_options[:mirror].each_key do |key|
|
61
|
+
tmp = @connection_options[:mirror][key]
|
62
|
+
@connection_options[:mirror][key] = @connection_options[key]
|
60
63
|
@connection_options[key] = tmp
|
61
64
|
end
|
62
65
|
end
|
data/test/test_mirroring.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-sqlserver-adapter-mirroring
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-04-30 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord-sqlserver-adapter
|
16
|
-
requirement: &
|
16
|
+
requirement: &70354223588080 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: 3.2.3
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70354223588080
|
25
25
|
description: Database mirroring support for Rails activerecord-sqlserver-adapter
|
26
26
|
email:
|
27
27
|
- ianic@minus5.hr
|