activerecord-sqlserver-adapter-mirroring 0.1.1 → 0.1.2

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.
@@ -0,0 +1,44 @@
1
+ # activerecord-sqlserver-adapter-mirroring
2
+
3
+ A simple plugin which adds database mirroring support for [Rails MS Sql
4
+ Server Adapter](https://github.com/rails-sqlserver/activerecord-sqlserver-adapter).
5
+
6
+ Targets Rails 3.2.x and activerecord-sqlserver-adapter 3.2.3.
7
+
8
+ ## Usage
9
+
10
+ Add to the Gemfile:
11
+
12
+ gem 'tiny_tds'
13
+ gem 'activerecord-sqlserver-adapter-mirroring'
14
+
15
+ Add mirroring section to the database.yml:
16
+
17
+ development:
18
+ adapter: sqlserver
19
+ host: primary
20
+ database: ...
21
+ username: ...
22
+ password: ...
23
+ mirror:
24
+ host: mirror
25
+
26
+ When the connection to the *primary* host fails, adapter will
27
+ reconnect to the *mirror* host.
28
+
29
+
30
+ ## Running tests
31
+
32
+ * Create database named *activerecord\_unittest\_mirroring*.
33
+ * Configure mirroring for that database.
34
+ * Create user *rails* withot password, with sysadmin role on both
35
+ servers. Sysadmin rights are needed because rails user will initate
36
+ mirroring failover.
37
+ * Ensure that one server reponds to the *primary* hostname, and another
38
+ to the *mirror* hostname.
39
+ * Run tests
40
+
41
+ rake test
42
+
43
+ You can an edit test/database.yml to define better suited parameters
44
+ for your system.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -4,7 +4,7 @@ $:.push File.expand_path("../lib", __FILE__)
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "activerecord-sqlserver-adapter-mirroring"
6
6
  s.version = File.read('VERSION').strip
7
- s.authors = ["Igor Anicaca"]
7
+ s.authors = ["Igor Anica"]
8
8
  s.email = ["ianic@minus5.hr"]
9
9
  s.homepage = "https://github.com/minus5/activerecord-sqlserver-adapter-mirroring"
10
10
  s.summary = "Database mirroring support for Rails activerecord-sqlserver-adapter"
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-sqlserver-adapter-mirroring
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
- - Igor Anicaca
8
+ - Igor Anica
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
@@ -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: &70354223588080 !ruby/object:Gem::Requirement
16
+ requirement: &70167694987800 !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: *70354223588080
24
+ version_requirements: *70167694987800
25
25
  description: Database mirroring support for Rails activerecord-sqlserver-adapter
26
26
  email:
27
27
  - ianic@minus5.hr
@@ -32,7 +32,7 @@ files:
32
32
  - .gitignore
33
33
  - Gemfile
34
34
  - Gemfile.lock
35
- - README
35
+ - README.md
36
36
  - Rakefile
37
37
  - VERSION
38
38
  - activerecord-sqlserver-adapter-mirroring.gemspec
data/README DELETED
File without changes