ar_mysql_flexmaster 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2b32c2b9162fc4959df4858f60552cbfd4fbfdff
4
- data.tar.gz: 1e5f07d3984485add95bb95af4b8e690660746c5
3
+ metadata.gz: 77cfc799d59c000c54c7ddae2505565002d695b5
4
+ data.tar.gz: 73480f07ab2ceb7fc75f44b0f448f94cc36e3e36
5
5
  SHA512:
6
- metadata.gz: fc8509dfa2ab7a83421f483a68c533e41804519ad93f4e07dd89f98a0b5e4d5f4958faae57f159235c3c4201dc4f542bfd58d6411894b3522e4108124d48f4a8
7
- data.tar.gz: 1f4328dec6136634e150ed7fdc47e907fc91a7b463d1ab42a568aee67ec1644cc844fdc7f6ae83c912052a364d90b63313e6913303a9ff799cfe561f9cdf404b
6
+ metadata.gz: bcd283f4718fe50635938876f0651a272f2cbbd8448f44ad9f992cd71f38aef56a26320c3067a92b351ee19b543b319181b6e08531db66a4565cb5d1779763c5
7
+ data.tar.gz: 677fb4d74ed45325af85ec6cbd6c09f55cc0c6e48973d575ab03868d170411b043030542820aece6b1c418e48b46f60d51590224b179b56a6e70dd3838b0797a
data/.travis.yml CHANGED
@@ -1,17 +1,16 @@
1
1
  language: ruby
2
2
 
3
3
  rvm:
4
- - 1.9.3
5
- - 2.0
6
- - 2.1
4
+ - 2.0.0
5
+ - 2.1.8
6
+ - 2.2.4
7
7
 
8
8
  gemfile:
9
- - gemfiles/rails2.3.gemfile
10
- - gemfiles/rails3.0.gemfile
11
9
  - gemfiles/rails3.2.gemfile
12
10
  - gemfiles/rails4.0.gemfile
13
11
  - gemfiles/rails4.1.gemfile
14
12
  - gemfiles/rails4.2.gemfile
13
+ - gemfiles/rails5.0.gemfile
15
14
 
16
15
  sudo: false
17
16
 
@@ -21,11 +20,7 @@ script: bundle exec rake test
21
20
 
22
21
  matrix:
23
22
  exclude:
24
- - rvm: 2.0
25
- gemfile: gemfiles/rails2.3.gemfile
26
- - rvm: 2.0
27
- gemfile: gemfiles/rails3.0.gemfile
28
- - rvm: 2.1
29
- gemfile: gemfiles/rails2.3.gemfile
30
- - rvm: 2.1
31
- gemfile: gemfiles/rails3.0.gemfile
23
+ - rvm: 2.0.0
24
+ gemfile: gemfiles/rails5.0.gemfile
25
+ - rvm: 2.1.8
26
+ gemfile: gemfiles/rails5.0.gemfile
data/Gemfile CHANGED
@@ -1,5 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
-
5
- gem "rake"
@@ -12,11 +12,12 @@ Gem::Specification.new do |gem|
12
12
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
13
13
  gem.name = "ar_mysql_flexmaster"
14
14
  gem.require_paths = ["lib"]
15
- gem.version = "1.0.0"
15
+ gem.version = "1.0.1"
16
16
 
17
17
  gem.add_runtime_dependency("mysql2")
18
18
  gem.add_runtime_dependency("activerecord")
19
19
  gem.add_runtime_dependency("activesupport")
20
+ gem.add_development_dependency("rake")
20
21
  gem.add_development_dependency("wwtd")
21
22
  gem.add_development_dependency("minitest")
22
23
  gem.add_development_dependency("mocha", "~> 1.1.0")
data/bin/master_cut CHANGED
@@ -120,6 +120,14 @@ def process_kill_thread
120
120
  end
121
121
  end
122
122
 
123
+ def wait_for_slave_catchup(master, slave)
124
+ while true
125
+ master_info = master.query("show master status").first
126
+ slave_info = slave.query("show slave status").first
127
+ break if master_info['Position'] <= slave_info['Exec_Master_Log_Pos']
128
+ end
129
+ end
130
+
123
131
  def kill_query!(cx, id)
124
132
  begin
125
133
  cx.query("kill #{id}")
@@ -133,6 +141,10 @@ def swap_thread
133
141
  master = open_cx($old_master)
134
142
  slave = open_cx($new_master)
135
143
  set_ro(master)
144
+ # wait for catchup
145
+
146
+ wait_for_slave_catchup(master, slave)
147
+
136
148
  slave.query("STOP SLAVE")
137
149
  new_master_info = slave.query("show master status").first
138
150
  set_rw(slave)
@@ -2,6 +2,5 @@ source "https://rubygems.org"
2
2
 
3
3
  gemspec :path => "../"
4
4
 
5
- gem "rake"
6
5
  gem "rails", "~> 3.2.0"
7
- gem "mysql2", "~> 0.3.0", "<= 0.3.11"
6
+ gem "mysql2", "~> 0.3.0"
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- ar_mysql_flexmaster (0.4.4)
4
+ ar_mysql_flexmaster (0.6.0)
5
5
  activerecord
6
6
  activesupport
7
7
  mysql2
@@ -9,12 +9,12 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- actionmailer (3.2.21)
13
- actionpack (= 3.2.21)
12
+ actionmailer (3.2.22)
13
+ actionpack (= 3.2.22)
14
14
  mail (~> 2.5.4)
15
- actionpack (3.2.21)
16
- activemodel (= 3.2.21)
17
- activesupport (= 3.2.21)
15
+ actionpack (3.2.22)
16
+ activemodel (= 3.2.22)
17
+ activesupport (= 3.2.22)
18
18
  builder (~> 3.0.0)
19
19
  erubis (~> 2.7.0)
20
20
  journey (~> 1.0.4)
@@ -22,55 +22,64 @@ GEM
22
22
  rack-cache (~> 1.2)
23
23
  rack-test (~> 0.6.1)
24
24
  sprockets (~> 2.2.1)
25
- activemodel (3.2.21)
26
- activesupport (= 3.2.21)
25
+ activemodel (3.2.22)
26
+ activesupport (= 3.2.22)
27
27
  builder (~> 3.0.0)
28
- activerecord (3.2.21)
29
- activemodel (= 3.2.21)
30
- activesupport (= 3.2.21)
28
+ activerecord (3.2.22)
29
+ activemodel (= 3.2.22)
30
+ activesupport (= 3.2.22)
31
31
  arel (~> 3.0.2)
32
32
  tzinfo (~> 0.3.29)
33
- activeresource (3.2.21)
34
- activemodel (= 3.2.21)
35
- activesupport (= 3.2.21)
36
- activesupport (3.2.21)
33
+ activeresource (3.2.22)
34
+ activemodel (= 3.2.22)
35
+ activesupport (= 3.2.22)
36
+ activesupport (3.2.22)
37
37
  i18n (~> 0.6, >= 0.6.4)
38
38
  multi_json (~> 1.0)
39
39
  arel (3.0.3)
40
40
  builder (3.0.4)
41
- bump (0.5.1)
41
+ bump (0.5.3)
42
+ coderay (1.1.0)
42
43
  erubis (2.7.0)
43
44
  hike (1.2.3)
44
- i18n (0.6.11)
45
+ i18n (0.7.0)
45
46
  journey (1.0.4)
46
- json (1.8.1)
47
+ json (1.8.3)
47
48
  mail (2.5.4)
48
49
  mime-types (~> 1.16)
49
50
  treetop (~> 1.4.8)
51
+ metaclass (0.0.4)
52
+ method_source (0.8.2)
50
53
  mime-types (1.25.1)
51
- minitest (5.4.3)
52
- multi_json (1.10.1)
53
- mysql2 (0.3.11)
54
+ minitest (5.8.3)
55
+ mocha (1.1.0)
56
+ metaclass (~> 0.0.1)
57
+ multi_json (1.11.2)
58
+ mysql2 (0.3.20)
54
59
  mysql_isolated_server (0.5.3)
55
60
  polyglot (0.3.5)
56
- rack (1.4.5)
57
- rack-cache (1.2)
61
+ pry (0.10.3)
62
+ coderay (~> 1.1.0)
63
+ method_source (~> 0.8.1)
64
+ slop (~> 3.4)
65
+ rack (1.4.7)
66
+ rack-cache (1.5.1)
58
67
  rack (>= 0.4)
59
68
  rack-ssl (1.3.4)
60
69
  rack
61
- rack-test (0.6.2)
70
+ rack-test (0.6.3)
62
71
  rack (>= 1.0)
63
- rails (3.2.21)
64
- actionmailer (= 3.2.21)
65
- actionpack (= 3.2.21)
66
- activerecord (= 3.2.21)
67
- activeresource (= 3.2.21)
68
- activesupport (= 3.2.21)
72
+ rails (3.2.22)
73
+ actionmailer (= 3.2.22)
74
+ actionpack (= 3.2.22)
75
+ activerecord (= 3.2.22)
76
+ activeresource (= 3.2.22)
77
+ activesupport (= 3.2.22)
69
78
  bundler (~> 1.0)
70
- railties (= 3.2.21)
71
- railties (3.2.21)
72
- actionpack (= 3.2.21)
73
- activesupport (= 3.2.21)
79
+ railties (= 3.2.22)
80
+ railties (3.2.22)
81
+ actionpack (= 3.2.22)
82
+ activesupport (= 3.2.22)
74
83
  rack-ssl (~> 1.3.2)
75
84
  rake (>= 0.8.7)
76
85
  rdoc (~> 3.4)
@@ -78,6 +87,7 @@ GEM
78
87
  rake (10.4.2)
79
88
  rdoc (3.12.2)
80
89
  json (~> 1.4)
90
+ slop (3.6.0)
81
91
  sprockets (2.2.3)
82
92
  hike (~> 1.2)
83
93
  multi_json (~> 1.0)
@@ -88,8 +98,8 @@ GEM
88
98
  treetop (1.4.15)
89
99
  polyglot
90
100
  polyglot (>= 0.3.1)
91
- tzinfo (0.3.42)
92
- wwtd (0.5.5)
101
+ tzinfo (0.3.46)
102
+ wwtd (1.3.0)
93
103
 
94
104
  PLATFORMS
95
105
  ruby
@@ -98,8 +108,13 @@ DEPENDENCIES
98
108
  ar_mysql_flexmaster!
99
109
  bump
100
110
  minitest
101
- mysql2 (~> 0.3.0, <= 0.3.11)
111
+ mocha (~> 1.1.0)
112
+ mysql2 (~> 0.3.0)
102
113
  mysql_isolated_server (~> 0.5)
114
+ pry
103
115
  rails (~> 3.2.0)
104
116
  rake
105
117
  wwtd
118
+
119
+ BUNDLED WITH
120
+ 1.11.2
@@ -2,6 +2,5 @@ source "https://rubygems.org"
2
2
 
3
3
  gemspec :path => "../"
4
4
 
5
- gem "rake"
6
5
  gem "rails", "~> 4.0.0"
7
- gem "mysql2", "~> 0.3.0", "<= 0.3.11"
6
+ gem "mysql2", "~> 0.3.0"
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- ar_mysql_flexmaster (0.4.4)
4
+ ar_mysql_flexmaster (0.6.0)
5
5
  activerecord
6
6
  activesupport
7
7
  mysql2
@@ -9,25 +9,25 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- actionmailer (4.0.12)
13
- actionpack (= 4.0.12)
12
+ actionmailer (4.0.13)
13
+ actionpack (= 4.0.13)
14
14
  mail (~> 2.5, >= 2.5.4)
15
- actionpack (4.0.12)
16
- activesupport (= 4.0.12)
15
+ actionpack (4.0.13)
16
+ activesupport (= 4.0.13)
17
17
  builder (~> 3.1.0)
18
18
  erubis (~> 2.7.0)
19
19
  rack (~> 1.5.2)
20
20
  rack-test (~> 0.6.2)
21
- activemodel (4.0.12)
22
- activesupport (= 4.0.12)
21
+ activemodel (4.0.13)
22
+ activesupport (= 4.0.13)
23
23
  builder (~> 3.1.0)
24
- activerecord (4.0.12)
25
- activemodel (= 4.0.12)
24
+ activerecord (4.0.13)
25
+ activemodel (= 4.0.13)
26
26
  activerecord-deprecated_finders (~> 1.0.2)
27
- activesupport (= 4.0.12)
27
+ activesupport (= 4.0.13)
28
28
  arel (~> 4.0.0)
29
- activerecord-deprecated_finders (1.0.3)
30
- activesupport (4.0.12)
29
+ activerecord-deprecated_finders (1.0.4)
30
+ activesupport (4.0.13)
31
31
  i18n (~> 0.6, >= 0.6.9)
32
32
  minitest (~> 4.2)
33
33
  multi_json (~> 1.3)
@@ -35,48 +35,55 @@ GEM
35
35
  tzinfo (~> 0.3.37)
36
36
  arel (4.0.2)
37
37
  builder (3.1.4)
38
- bump (0.5.1)
38
+ bump (0.5.3)
39
+ coderay (1.1.0)
40
+ concurrent-ruby (1.0.0)
39
41
  erubis (2.7.0)
40
- hike (1.2.3)
41
- i18n (0.6.11)
42
+ i18n (0.7.0)
42
43
  mail (2.6.3)
43
44
  mime-types (>= 1.16, < 3)
44
- mime-types (2.4.3)
45
+ metaclass (0.0.4)
46
+ method_source (0.8.2)
47
+ mime-types (2.99)
45
48
  minitest (4.7.5)
46
- multi_json (1.10.1)
47
- mysql2 (0.3.11)
49
+ mocha (1.1.0)
50
+ metaclass (~> 0.0.1)
51
+ multi_json (1.11.2)
52
+ mysql2 (0.3.20)
48
53
  mysql_isolated_server (0.5.3)
49
- rack (1.5.2)
50
- rack-test (0.6.2)
54
+ pry (0.10.3)
55
+ coderay (~> 1.1.0)
56
+ method_source (~> 0.8.1)
57
+ slop (~> 3.4)
58
+ rack (1.5.5)
59
+ rack-test (0.6.3)
51
60
  rack (>= 1.0)
52
- rails (4.0.12)
53
- actionmailer (= 4.0.12)
54
- actionpack (= 4.0.12)
55
- activerecord (= 4.0.12)
56
- activesupport (= 4.0.12)
61
+ rails (4.0.13)
62
+ actionmailer (= 4.0.13)
63
+ actionpack (= 4.0.13)
64
+ activerecord (= 4.0.13)
65
+ activesupport (= 4.0.13)
57
66
  bundler (>= 1.3.0, < 2.0)
58
- railties (= 4.0.12)
67
+ railties (= 4.0.13)
59
68
  sprockets-rails (~> 2.0)
60
- railties (4.0.12)
61
- actionpack (= 4.0.12)
62
- activesupport (= 4.0.12)
69
+ railties (4.0.13)
70
+ actionpack (= 4.0.13)
71
+ activesupport (= 4.0.13)
63
72
  rake (>= 0.8.7)
64
73
  thor (>= 0.18.1, < 2.0)
65
74
  rake (10.4.2)
66
- sprockets (2.12.3)
67
- hike (~> 1.2)
68
- multi_json (~> 1.0)
69
- rack (~> 1.0)
70
- tilt (~> 1.1, != 1.3.0)
71
- sprockets-rails (2.2.2)
75
+ slop (3.6.0)
76
+ sprockets (3.5.2)
77
+ concurrent-ruby (~> 1.0)
78
+ rack (> 1, < 3)
79
+ sprockets-rails (2.3.3)
72
80
  actionpack (>= 3.0)
73
81
  activesupport (>= 3.0)
74
82
  sprockets (>= 2.8, < 4.0)
75
83
  thor (0.19.1)
76
- thread_safe (0.3.4)
77
- tilt (1.4.1)
78
- tzinfo (0.3.42)
79
- wwtd (0.5.5)
84
+ thread_safe (0.3.5)
85
+ tzinfo (0.3.46)
86
+ wwtd (1.3.0)
80
87
 
81
88
  PLATFORMS
82
89
  ruby
@@ -85,8 +92,13 @@ DEPENDENCIES
85
92
  ar_mysql_flexmaster!
86
93
  bump
87
94
  minitest
88
- mysql2 (~> 0.3.0, <= 0.3.11)
95
+ mocha (~> 1.1.0)
96
+ mysql2 (~> 0.3.0)
89
97
  mysql_isolated_server (~> 0.5)
98
+ pry
90
99
  rails (~> 4.0.0)
91
100
  rake
92
101
  wwtd
102
+
103
+ BUNDLED WITH
104
+ 1.11.2
@@ -2,6 +2,5 @@ source "https://rubygems.org"
2
2
 
3
3
  gemspec :path => "../"
4
4
 
5
- gem "rake"
6
5
  gem "rails", "~> 4.1.8"
7
6
  gem "mysql2", "~> 0.3.0"
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- ar_mysql_flexmaster (0.4.4)
4
+ ar_mysql_flexmaster (0.6.0)
5
5
  activerecord
6
6
  activesupport
7
7
  mysql2
@@ -9,27 +9,27 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- actionmailer (4.1.8)
13
- actionpack (= 4.1.8)
14
- actionview (= 4.1.8)
12
+ actionmailer (4.1.14)
13
+ actionpack (= 4.1.14)
14
+ actionview (= 4.1.14)
15
15
  mail (~> 2.5, >= 2.5.4)
16
- actionpack (4.1.8)
17
- actionview (= 4.1.8)
18
- activesupport (= 4.1.8)
16
+ actionpack (4.1.14)
17
+ actionview (= 4.1.14)
18
+ activesupport (= 4.1.14)
19
19
  rack (~> 1.5.2)
20
20
  rack-test (~> 0.6.2)
21
- actionview (4.1.8)
22
- activesupport (= 4.1.8)
21
+ actionview (4.1.14)
22
+ activesupport (= 4.1.14)
23
23
  builder (~> 3.1)
24
24
  erubis (~> 2.7.0)
25
- activemodel (4.1.8)
26
- activesupport (= 4.1.8)
25
+ activemodel (4.1.14)
26
+ activesupport (= 4.1.14)
27
27
  builder (~> 3.1)
28
- activerecord (4.1.8)
29
- activemodel (= 4.1.8)
30
- activesupport (= 4.1.8)
28
+ activerecord (4.1.14)
29
+ activemodel (= 4.1.14)
30
+ activesupport (= 4.1.14)
31
31
  arel (~> 5.0.0)
32
- activesupport (4.1.8)
32
+ activesupport (4.1.14)
33
33
  i18n (~> 0.6, >= 0.6.9)
34
34
  json (~> 1.7, >= 1.7.7)
35
35
  minitest (~> 5.1)
@@ -37,52 +37,58 @@ GEM
37
37
  tzinfo (~> 1.1)
38
38
  arel (5.0.1.20140414130214)
39
39
  builder (3.2.2)
40
- bump (0.5.1)
40
+ bump (0.5.3)
41
+ coderay (1.1.0)
42
+ concurrent-ruby (1.0.0)
41
43
  erubis (2.7.0)
42
- hike (1.2.3)
43
- i18n (0.6.11)
44
- json (1.8.1)
44
+ i18n (0.7.0)
45
+ json (1.8.3)
45
46
  mail (2.6.3)
46
47
  mime-types (>= 1.16, < 3)
47
- mime-types (2.4.3)
48
- minitest (5.4.3)
49
- multi_json (1.10.1)
50
- mysql2 (0.3.17)
48
+ metaclass (0.0.4)
49
+ method_source (0.8.2)
50
+ mime-types (2.99)
51
+ minitest (5.8.3)
52
+ mocha (1.1.0)
53
+ metaclass (~> 0.0.1)
54
+ mysql2 (0.3.20)
51
55
  mysql_isolated_server (0.5.3)
52
- rack (1.5.2)
53
- rack-test (0.6.2)
56
+ pry (0.10.3)
57
+ coderay (~> 1.1.0)
58
+ method_source (~> 0.8.1)
59
+ slop (~> 3.4)
60
+ rack (1.5.5)
61
+ rack-test (0.6.3)
54
62
  rack (>= 1.0)
55
- rails (4.1.8)
56
- actionmailer (= 4.1.8)
57
- actionpack (= 4.1.8)
58
- actionview (= 4.1.8)
59
- activemodel (= 4.1.8)
60
- activerecord (= 4.1.8)
61
- activesupport (= 4.1.8)
63
+ rails (4.1.14)
64
+ actionmailer (= 4.1.14)
65
+ actionpack (= 4.1.14)
66
+ actionview (= 4.1.14)
67
+ activemodel (= 4.1.14)
68
+ activerecord (= 4.1.14)
69
+ activesupport (= 4.1.14)
62
70
  bundler (>= 1.3.0, < 2.0)
63
- railties (= 4.1.8)
71
+ railties (= 4.1.14)
64
72
  sprockets-rails (~> 2.0)
65
- railties (4.1.8)
66
- actionpack (= 4.1.8)
67
- activesupport (= 4.1.8)
73
+ railties (4.1.14)
74
+ actionpack (= 4.1.14)
75
+ activesupport (= 4.1.14)
68
76
  rake (>= 0.8.7)
69
77
  thor (>= 0.18.1, < 2.0)
70
78
  rake (10.4.2)
71
- sprockets (2.12.3)
72
- hike (~> 1.2)
73
- multi_json (~> 1.0)
74
- rack (~> 1.0)
75
- tilt (~> 1.1, != 1.3.0)
76
- sprockets-rails (2.2.2)
79
+ slop (3.6.0)
80
+ sprockets (3.5.2)
81
+ concurrent-ruby (~> 1.0)
82
+ rack (> 1, < 3)
83
+ sprockets-rails (2.3.3)
77
84
  actionpack (>= 3.0)
78
85
  activesupport (>= 3.0)
79
86
  sprockets (>= 2.8, < 4.0)
80
87
  thor (0.19.1)
81
- thread_safe (0.3.4)
82
- tilt (1.4.1)
88
+ thread_safe (0.3.5)
83
89
  tzinfo (1.2.2)
84
90
  thread_safe (~> 0.1)
85
- wwtd (0.5.5)
91
+ wwtd (1.3.0)
86
92
 
87
93
  PLATFORMS
88
94
  ruby
@@ -91,8 +97,13 @@ DEPENDENCIES
91
97
  ar_mysql_flexmaster!
92
98
  bump
93
99
  minitest
100
+ mocha (~> 1.1.0)
94
101
  mysql2 (~> 0.3.0)
95
102
  mysql_isolated_server (~> 0.5)
103
+ pry
96
104
  rails (~> 4.1.8)
97
105
  rake
98
106
  wwtd
107
+
108
+ BUNDLED WITH
109
+ 1.11.2
@@ -2,6 +2,5 @@ source "https://rubygems.org"
2
2
 
3
3
  gemspec :path => "../"
4
4
 
5
- gem "rake"
6
- gem "rails", "~> 4.2.0.rc2"
7
- gem "mysql2", "~> 0.3.0"
5
+ gem "rails", "~> 4.2.0"
6
+ gem "mysql2"
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- ar_mysql_flexmaster (0.4.4)
4
+ ar_mysql_flexmaster (0.6.0)
5
5
  activerecord
6
6
  activesupport
7
7
  mysql2
@@ -9,105 +9,111 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- actionmailer (4.2.0.rc2)
13
- actionpack (= 4.2.0.rc2)
14
- actionview (= 4.2.0.rc2)
15
- activejob (= 4.2.0.rc2)
12
+ actionmailer (4.2.5)
13
+ actionpack (= 4.2.5)
14
+ actionview (= 4.2.5)
15
+ activejob (= 4.2.5)
16
16
  mail (~> 2.5, >= 2.5.4)
17
17
  rails-dom-testing (~> 1.0, >= 1.0.5)
18
- actionpack (4.2.0.rc2)
19
- actionview (= 4.2.0.rc2)
20
- activesupport (= 4.2.0.rc2)
21
- rack (~> 1.6.0.beta2)
18
+ actionpack (4.2.5)
19
+ actionview (= 4.2.5)
20
+ activesupport (= 4.2.5)
21
+ rack (~> 1.6)
22
22
  rack-test (~> 0.6.2)
23
23
  rails-dom-testing (~> 1.0, >= 1.0.5)
24
- rails-html-sanitizer (~> 1.0, >= 1.0.1)
25
- actionview (4.2.0.rc2)
26
- activesupport (= 4.2.0.rc2)
24
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
25
+ actionview (4.2.5)
26
+ activesupport (= 4.2.5)
27
27
  builder (~> 3.1)
28
28
  erubis (~> 2.7.0)
29
29
  rails-dom-testing (~> 1.0, >= 1.0.5)
30
- rails-html-sanitizer (~> 1.0, >= 1.0.1)
31
- activejob (4.2.0.rc2)
32
- activesupport (= 4.2.0.rc2)
30
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
31
+ activejob (4.2.5)
32
+ activesupport (= 4.2.5)
33
33
  globalid (>= 0.3.0)
34
- activemodel (4.2.0.rc2)
35
- activesupport (= 4.2.0.rc2)
34
+ activemodel (4.2.5)
35
+ activesupport (= 4.2.5)
36
36
  builder (~> 3.1)
37
- activerecord (4.2.0.rc2)
38
- activemodel (= 4.2.0.rc2)
39
- activesupport (= 4.2.0.rc2)
37
+ activerecord (4.2.5)
38
+ activemodel (= 4.2.5)
39
+ activesupport (= 4.2.5)
40
40
  arel (~> 6.0)
41
- activesupport (4.2.0.rc2)
42
- i18n (>= 0.7.0.beta1, < 0.8)
41
+ activesupport (4.2.5)
42
+ i18n (~> 0.7)
43
43
  json (~> 1.7, >= 1.7.7)
44
44
  minitest (~> 5.1)
45
- thread_safe (~> 0.1)
45
+ thread_safe (~> 0.3, >= 0.3.4)
46
46
  tzinfo (~> 1.1)
47
- arel (6.0.0)
47
+ arel (6.0.3)
48
48
  builder (3.2.2)
49
- bump (0.5.1)
49
+ bump (0.5.3)
50
+ coderay (1.1.0)
51
+ concurrent-ruby (1.0.0)
50
52
  erubis (2.7.0)
51
- globalid (0.3.0)
53
+ globalid (0.3.6)
52
54
  activesupport (>= 4.1.0)
53
- hike (1.2.3)
54
- i18n (0.7.0.beta1)
55
- json (1.8.1)
56
- loofah (2.0.1)
55
+ i18n (0.7.0)
56
+ json (1.8.3)
57
+ loofah (2.0.3)
57
58
  nokogiri (>= 1.5.9)
58
59
  mail (2.6.3)
59
60
  mime-types (>= 1.16, < 3)
60
- mime-types (2.4.3)
61
- mini_portile (0.6.1)
62
- minitest (5.4.3)
63
- multi_json (1.10.1)
64
- mysql2 (0.3.17)
61
+ metaclass (0.0.4)
62
+ method_source (0.8.2)
63
+ mime-types (2.99)
64
+ mini_portile2 (2.0.0)
65
+ minitest (5.8.3)
66
+ mocha (1.1.0)
67
+ metaclass (~> 0.0.1)
68
+ mysql2 (0.4.2)
65
69
  mysql_isolated_server (0.5.3)
66
- nokogiri (1.6.5)
67
- mini_portile (~> 0.6.0)
68
- rack (1.6.0.beta2)
69
- rack-test (0.6.2)
70
+ nokogiri (1.6.7.1)
71
+ mini_portile2 (~> 2.0.0.rc2)
72
+ pry (0.10.3)
73
+ coderay (~> 1.1.0)
74
+ method_source (~> 0.8.1)
75
+ slop (~> 3.4)
76
+ rack (1.6.4)
77
+ rack-test (0.6.3)
70
78
  rack (>= 1.0)
71
- rails (4.2.0.rc2)
72
- actionmailer (= 4.2.0.rc2)
73
- actionpack (= 4.2.0.rc2)
74
- actionview (= 4.2.0.rc2)
75
- activejob (= 4.2.0.rc2)
76
- activemodel (= 4.2.0.rc2)
77
- activerecord (= 4.2.0.rc2)
78
- activesupport (= 4.2.0.rc2)
79
+ rails (4.2.5)
80
+ actionmailer (= 4.2.5)
81
+ actionpack (= 4.2.5)
82
+ actionview (= 4.2.5)
83
+ activejob (= 4.2.5)
84
+ activemodel (= 4.2.5)
85
+ activerecord (= 4.2.5)
86
+ activesupport (= 4.2.5)
79
87
  bundler (>= 1.3.0, < 2.0)
80
- railties (= 4.2.0.rc2)
88
+ railties (= 4.2.5)
81
89
  sprockets-rails
82
90
  rails-deprecated_sanitizer (1.0.3)
83
91
  activesupport (>= 4.2.0.alpha)
84
- rails-dom-testing (1.0.5)
92
+ rails-dom-testing (1.0.7)
85
93
  activesupport (>= 4.2.0.beta, < 5.0)
86
94
  nokogiri (~> 1.6.0)
87
95
  rails-deprecated_sanitizer (>= 1.0.1)
88
- rails-html-sanitizer (1.0.1)
96
+ rails-html-sanitizer (1.0.2)
89
97
  loofah (~> 2.0)
90
- railties (4.2.0.rc2)
91
- actionpack (= 4.2.0.rc2)
92
- activesupport (= 4.2.0.rc2)
98
+ railties (4.2.5)
99
+ actionpack (= 4.2.5)
100
+ activesupport (= 4.2.5)
93
101
  rake (>= 0.8.7)
94
102
  thor (>= 0.18.1, < 2.0)
95
103
  rake (10.4.2)
96
- sprockets (2.12.3)
97
- hike (~> 1.2)
98
- multi_json (~> 1.0)
99
- rack (~> 1.0)
100
- tilt (~> 1.1, != 1.3.0)
101
- sprockets-rails (2.2.2)
102
- actionpack (>= 3.0)
103
- activesupport (>= 3.0)
104
- sprockets (>= 2.8, < 4.0)
104
+ slop (3.6.0)
105
+ sprockets (3.5.2)
106
+ concurrent-ruby (~> 1.0)
107
+ rack (> 1, < 3)
108
+ sprockets-rails (3.0.0)
109
+ actionpack (>= 4.0)
110
+ activesupport (>= 4.0)
111
+ sprockets (>= 3.0.0)
105
112
  thor (0.19.1)
106
- thread_safe (0.3.4)
107
- tilt (1.4.1)
113
+ thread_safe (0.3.5)
108
114
  tzinfo (1.2.2)
109
115
  thread_safe (~> 0.1)
110
- wwtd (0.5.5)
116
+ wwtd (1.3.0)
111
117
 
112
118
  PLATFORMS
113
119
  ruby
@@ -116,8 +122,13 @@ DEPENDENCIES
116
122
  ar_mysql_flexmaster!
117
123
  bump
118
124
  minitest
119
- mysql2 (~> 0.3.0)
125
+ mocha (~> 1.1.0)
126
+ mysql2
120
127
  mysql_isolated_server (~> 0.5)
121
- rails (~> 4.2.0.rc2)
128
+ pry
129
+ rails (~> 4.2.0)
122
130
  rake
123
131
  wwtd
132
+
133
+ BUNDLED WITH
134
+ 1.11.2
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec :path => "../"
4
+
5
+ gem "rails", "~> 5.0.0.beta1"
6
+ gem "mysql2"
@@ -0,0 +1,186 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ ar_mysql_flexmaster (0.6.0)
5
+ activerecord
6
+ activesupport
7
+ mysql2
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ actioncable (5.0.0.beta1)
13
+ actionpack (= 5.0.0.beta1)
14
+ celluloid (~> 0.17.2)
15
+ coffee-rails (~> 4.1.0)
16
+ em-hiredis (~> 0.3.0)
17
+ faye-websocket (~> 0.10.0)
18
+ redis (~> 3.0)
19
+ websocket-driver (~> 0.6.1)
20
+ actionmailer (5.0.0.beta1)
21
+ actionpack (= 5.0.0.beta1)
22
+ actionview (= 5.0.0.beta1)
23
+ activejob (= 5.0.0.beta1)
24
+ mail (~> 2.5, >= 2.5.4)
25
+ rails-dom-testing (~> 1.0, >= 1.0.5)
26
+ actionpack (5.0.0.beta1)
27
+ actionview (= 5.0.0.beta1)
28
+ activesupport (= 5.0.0.beta1)
29
+ rack (~> 2.x)
30
+ rack-test (~> 0.6.3)
31
+ rails-dom-testing (~> 1.0, >= 1.0.5)
32
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
33
+ actionview (5.0.0.beta1)
34
+ activesupport (= 5.0.0.beta1)
35
+ builder (~> 3.1)
36
+ erubis (~> 2.7.0)
37
+ rails-dom-testing (~> 1.0, >= 1.0.5)
38
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
39
+ activejob (5.0.0.beta1)
40
+ activesupport (= 5.0.0.beta1)
41
+ globalid (>= 0.3.6)
42
+ activemodel (5.0.0.beta1)
43
+ activesupport (= 5.0.0.beta1)
44
+ builder (~> 3.1)
45
+ activerecord (5.0.0.beta1)
46
+ activemodel (= 5.0.0.beta1)
47
+ activesupport (= 5.0.0.beta1)
48
+ arel (~> 7.0)
49
+ activesupport (5.0.0.beta1)
50
+ concurrent-ruby (~> 1.0)
51
+ i18n (~> 0.7)
52
+ json (~> 1.7, >= 1.7.7)
53
+ method_source
54
+ minitest (~> 5.1)
55
+ tzinfo (~> 1.1)
56
+ arel (7.0.0)
57
+ builder (3.2.2)
58
+ bump (0.5.3)
59
+ celluloid (0.17.2)
60
+ celluloid-essentials
61
+ celluloid-extras
62
+ celluloid-fsm
63
+ celluloid-pool
64
+ celluloid-supervision
65
+ timers (>= 4.1.1)
66
+ celluloid-essentials (0.20.5)
67
+ timers (>= 4.1.1)
68
+ celluloid-extras (0.20.5)
69
+ timers (>= 4.1.1)
70
+ celluloid-fsm (0.20.5)
71
+ timers (>= 4.1.1)
72
+ celluloid-pool (0.20.5)
73
+ timers (>= 4.1.1)
74
+ celluloid-supervision (0.20.5)
75
+ timers (>= 4.1.1)
76
+ coderay (1.1.0)
77
+ coffee-rails (4.1.1)
78
+ coffee-script (>= 2.2.0)
79
+ railties (>= 4.0.0, < 5.1.x)
80
+ coffee-script (2.4.1)
81
+ coffee-script-source
82
+ execjs
83
+ coffee-script-source (1.10.0)
84
+ concurrent-ruby (1.0.0)
85
+ em-hiredis (0.3.0)
86
+ eventmachine (~> 1.0)
87
+ hiredis (~> 0.5.0)
88
+ erubis (2.7.0)
89
+ eventmachine (1.0.8)
90
+ execjs (2.6.0)
91
+ faye-websocket (0.10.2)
92
+ eventmachine (>= 0.12.0)
93
+ websocket-driver (>= 0.5.1)
94
+ globalid (0.3.6)
95
+ activesupport (>= 4.1.0)
96
+ hiredis (0.5.2)
97
+ hitimes (1.2.3)
98
+ i18n (0.7.0)
99
+ json (1.8.3)
100
+ loofah (2.0.3)
101
+ nokogiri (>= 1.5.9)
102
+ mail (2.6.3)
103
+ mime-types (>= 1.16, < 3)
104
+ metaclass (0.0.4)
105
+ method_source (0.8.2)
106
+ mime-types (2.99)
107
+ mini_portile2 (2.0.0)
108
+ minitest (5.8.3)
109
+ mocha (1.1.0)
110
+ metaclass (~> 0.0.1)
111
+ mysql2 (0.4.2)
112
+ mysql_isolated_server (0.5.3)
113
+ nokogiri (1.6.7.1)
114
+ mini_portile2 (~> 2.0.0.rc2)
115
+ pry (0.10.3)
116
+ coderay (~> 1.1.0)
117
+ method_source (~> 0.8.1)
118
+ slop (~> 3.4)
119
+ rack (2.0.0.alpha)
120
+ json
121
+ rack-test (0.6.3)
122
+ rack (>= 1.0)
123
+ rails (5.0.0.beta1)
124
+ actioncable (= 5.0.0.beta1)
125
+ actionmailer (= 5.0.0.beta1)
126
+ actionpack (= 5.0.0.beta1)
127
+ actionview (= 5.0.0.beta1)
128
+ activejob (= 5.0.0.beta1)
129
+ activemodel (= 5.0.0.beta1)
130
+ activerecord (= 5.0.0.beta1)
131
+ activesupport (= 5.0.0.beta1)
132
+ bundler (>= 1.3.0, < 2.0)
133
+ railties (= 5.0.0.beta1)
134
+ sprockets-rails (>= 2.0.0)
135
+ rails-deprecated_sanitizer (1.0.3)
136
+ activesupport (>= 4.2.0.alpha)
137
+ rails-dom-testing (1.0.7)
138
+ activesupport (>= 4.2.0.beta, < 5.0)
139
+ nokogiri (~> 1.6.0)
140
+ rails-deprecated_sanitizer (>= 1.0.1)
141
+ rails-html-sanitizer (1.0.2)
142
+ loofah (~> 2.0)
143
+ railties (5.0.0.beta1)
144
+ actionpack (= 5.0.0.beta1)
145
+ activesupport (= 5.0.0.beta1)
146
+ method_source
147
+ rake (>= 0.8.7)
148
+ thor (>= 0.18.1, < 2.0)
149
+ rake (10.4.2)
150
+ redis (3.2.2)
151
+ slop (3.6.0)
152
+ sprockets (3.5.2)
153
+ concurrent-ruby (~> 1.0)
154
+ rack (> 1, < 3)
155
+ sprockets-rails (3.0.0)
156
+ actionpack (>= 4.0)
157
+ activesupport (>= 4.0)
158
+ sprockets (>= 3.0.0)
159
+ thor (0.19.1)
160
+ thread_safe (0.3.5)
161
+ timers (4.1.1)
162
+ hitimes
163
+ tzinfo (1.2.2)
164
+ thread_safe (~> 0.1)
165
+ websocket-driver (0.6.3)
166
+ websocket-extensions (>= 0.1.0)
167
+ websocket-extensions (0.1.2)
168
+ wwtd (1.3.0)
169
+
170
+ PLATFORMS
171
+ ruby
172
+
173
+ DEPENDENCIES
174
+ ar_mysql_flexmaster!
175
+ bump
176
+ minitest
177
+ mocha (~> 1.1.0)
178
+ mysql2
179
+ mysql_isolated_server (~> 0.5)
180
+ pry
181
+ rails (~> 5.0.0.beta1)
182
+ rake
183
+ wwtd
184
+
185
+ BUNDLED WITH
186
+ 1.11.2
@@ -3,6 +3,7 @@ require 'ar_mysql_flexmaster'
3
3
  require 'active_record'
4
4
  require 'minitest/autorun'
5
5
  require 'mocha/mini_test'
6
+ require 'logger'
6
7
 
7
8
  if !defined?(Minitest::Test)
8
9
  Minitest::Test = MiniTest::Unit::TestCase
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ar_mysql_flexmaster
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Osheroff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-15 00:00:00.000000000 Z
11
+ date: 2016-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mysql2
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: wwtd
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -153,10 +167,6 @@ files:
153
167
  - Rakefile
154
168
  - ar_mysql_flexmaster.gemspec
155
169
  - bin/master_cut
156
- - gemfiles/rails2.3.gemfile
157
- - gemfiles/rails2.3.gemfile.lock
158
- - gemfiles/rails3.0.gemfile
159
- - gemfiles/rails3.0.gemfile.lock
160
170
  - gemfiles/rails3.2.gemfile
161
171
  - gemfiles/rails3.2.gemfile.lock
162
172
  - gemfiles/rails4.0.gemfile
@@ -165,6 +175,8 @@ files:
165
175
  - gemfiles/rails4.1.gemfile.lock
166
176
  - gemfiles/rails4.2.gemfile
167
177
  - gemfiles/rails4.2.gemfile.lock
178
+ - gemfiles/rails5.0.gemfile
179
+ - gemfiles/rails5.0.gemfile.lock
168
180
  - lib/active_record/connection_adapters/mysql_flexmaster_adapter.rb
169
181
  - lib/ar_mysql_flexmaster.rb
170
182
  - test/ar_flexmaster_test.rb
@@ -1,7 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec :path => "../"
4
-
5
- gem "rake"
6
- gem "rails", "~> 2.3.15"
7
- gem "mysql2", "~> 0.2.0", "<= 0.2.18"
@@ -1,48 +0,0 @@
1
- PATH
2
- remote: ../
3
- specs:
4
- ar_mysql_flexmaster (0.4.4)
5
- activerecord
6
- activesupport
7
- mysql2
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- actionmailer (2.3.18)
13
- actionpack (= 2.3.18)
14
- actionpack (2.3.18)
15
- activesupport (= 2.3.18)
16
- rack (~> 1.1.0)
17
- activerecord (2.3.18)
18
- activesupport (= 2.3.18)
19
- activeresource (2.3.18)
20
- activesupport (= 2.3.18)
21
- activesupport (2.3.18)
22
- bump (0.5.1)
23
- minitest (5.4.3)
24
- mysql2 (0.2.18)
25
- mysql_isolated_server (0.5.3)
26
- rack (1.1.6)
27
- rails (2.3.18)
28
- actionmailer (= 2.3.18)
29
- actionpack (= 2.3.18)
30
- activerecord (= 2.3.18)
31
- activeresource (= 2.3.18)
32
- activesupport (= 2.3.18)
33
- rake (>= 0.8.3)
34
- rake (10.4.2)
35
- wwtd (0.5.5)
36
-
37
- PLATFORMS
38
- ruby
39
-
40
- DEPENDENCIES
41
- ar_mysql_flexmaster!
42
- bump
43
- minitest
44
- mysql2 (~> 0.2.0, <= 0.2.18)
45
- mysql_isolated_server (~> 0.5)
46
- rails (~> 2.3.15)
47
- rake
48
- wwtd
@@ -1,7 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec :path => "../"
4
-
5
- gem "rake"
6
- gem "rails", "~> 3.0.0"
7
- gem "mysql2", "~> 0.2.0", "<= 0.2.18"
@@ -1,96 +0,0 @@
1
- PATH
2
- remote: ../
3
- specs:
4
- ar_mysql_flexmaster (0.4.4)
5
- activerecord
6
- activesupport
7
- mysql2
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- abstract (1.0.0)
13
- actionmailer (3.0.20)
14
- actionpack (= 3.0.20)
15
- mail (~> 2.2.19)
16
- actionpack (3.0.20)
17
- activemodel (= 3.0.20)
18
- activesupport (= 3.0.20)
19
- builder (~> 2.1.2)
20
- erubis (~> 2.6.6)
21
- i18n (~> 0.5.0)
22
- rack (~> 1.2.5)
23
- rack-mount (~> 0.6.14)
24
- rack-test (~> 0.5.7)
25
- tzinfo (~> 0.3.23)
26
- activemodel (3.0.20)
27
- activesupport (= 3.0.20)
28
- builder (~> 2.1.2)
29
- i18n (~> 0.5.0)
30
- activerecord (3.0.20)
31
- activemodel (= 3.0.20)
32
- activesupport (= 3.0.20)
33
- arel (~> 2.0.10)
34
- tzinfo (~> 0.3.23)
35
- activeresource (3.0.20)
36
- activemodel (= 3.0.20)
37
- activesupport (= 3.0.20)
38
- activesupport (3.0.20)
39
- arel (2.0.10)
40
- builder (2.1.2)
41
- bump (0.5.1)
42
- erubis (2.6.6)
43
- abstract (>= 1.0.0)
44
- i18n (0.5.4)
45
- json (1.8.1)
46
- mail (2.2.20)
47
- activesupport (>= 2.3.6)
48
- i18n (>= 0.4.0)
49
- mime-types (~> 1.16)
50
- treetop (~> 1.4.8)
51
- mime-types (1.25.1)
52
- minitest (5.4.3)
53
- mysql2 (0.2.18)
54
- mysql_isolated_server (0.5.3)
55
- polyglot (0.3.5)
56
- rack (1.2.8)
57
- rack-mount (0.6.14)
58
- rack (>= 1.0.0)
59
- rack-test (0.5.7)
60
- rack (>= 1.0)
61
- rails (3.0.20)
62
- actionmailer (= 3.0.20)
63
- actionpack (= 3.0.20)
64
- activerecord (= 3.0.20)
65
- activeresource (= 3.0.20)
66
- activesupport (= 3.0.20)
67
- bundler (~> 1.0)
68
- railties (= 3.0.20)
69
- railties (3.0.20)
70
- actionpack (= 3.0.20)
71
- activesupport (= 3.0.20)
72
- rake (>= 0.8.7)
73
- rdoc (~> 3.4)
74
- thor (~> 0.14.4)
75
- rake (10.4.2)
76
- rdoc (3.12.2)
77
- json (~> 1.4)
78
- thor (0.14.6)
79
- treetop (1.4.15)
80
- polyglot
81
- polyglot (>= 0.3.1)
82
- tzinfo (0.3.42)
83
- wwtd (0.5.5)
84
-
85
- PLATFORMS
86
- ruby
87
-
88
- DEPENDENCIES
89
- ar_mysql_flexmaster!
90
- bump
91
- minitest
92
- mysql2 (~> 0.2.0, <= 0.2.18)
93
- mysql_isolated_server (~> 0.5)
94
- rails (~> 3.0.0)
95
- rake
96
- wwtd