ar_mysql_flexmaster 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -105,3 +105,5 @@ number of queries.
105
105
  3. Commit your changes (`git commit -am 'Added some feature'`)
106
106
  4. Push to the branch (`git push origin my-new-feature`)
107
107
  5. Create new Pull Request
108
+
109
+
data/Rakefile CHANGED
@@ -12,3 +12,5 @@ Rake::TestTask.new(:test) do |test|
12
12
  #test.test_files = ['test/integration/run_integration_tests']
13
13
  test.verbose = true
14
14
  end
15
+
16
+ task :default => :test
@@ -12,7 +12,7 @@ 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 = "0.1.2"
15
+ gem.version = "0.1.3"
16
16
 
17
17
  gem.add_runtime_dependency("mysql2")
18
18
  gem.add_runtime_dependency("activerecord")
@@ -138,10 +138,11 @@ class TestArFlexmaster < Test::Unit::TestCase
138
138
  end
139
139
 
140
140
  def test_xxx_non_responsive_master
141
+ return if ENV['TRAVIS'] # something different about 127.0.0.2 in travis, I guess.
141
142
  ActiveRecord::Base.configurations["test"]["hosts"] << "127.0.0.2:1235"
142
143
  start_time = Time.now.to_i
143
144
  User.connection.reconnect!
144
- assert Time.now.to_i - start_time >= 5
145
+ assert Time.now.to_i - start_time >= 5, "only took #{Time.now.to_i - start_time} to timeout"
145
146
  ActiveRecord::Base.configurations["test"]["hosts"].pop
146
147
  end
147
148
 
@@ -49,7 +49,7 @@ class MysqlIsolatedServer
49
49
  else
50
50
  mysql_install_db = `which mysql_install_db`
51
51
  idb_path = File.dirname(mysql_install_db)
52
- system("(cd #{idb_path}/..; mysql_install_db --datadir=#{@mysql_data_dir}) >/dev/null 2>&1")
52
+ system("(cd #{idb_path}/..; mysql_install_db --datadir=#{@mysql_data_dir} --user=`whoami`) >/dev/null 2>&1")
53
53
  system("cp #{File.expand_path(File.dirname(__FILE__))}/user.* #{@mysql_data_dir}/mysql")
54
54
  end
55
55
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ar_mysql_flexmaster
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -141,7 +141,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
141
141
  version: '0'
142
142
  segments:
143
143
  - 0
144
- hash: -2651405727941520708
144
+ hash: 1413669962655768174
145
145
  required_rubygems_version: !ruby/object:Gem::Requirement
146
146
  none: false
147
147
  requirements:
@@ -150,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
150
150
  version: '0'
151
151
  segments:
152
152
  - 0
153
- hash: -2651405727941520708
153
+ hash: 1413669962655768174
154
154
  requirements: []
155
155
  rubyforge_project:
156
156
  rubygems_version: 1.8.24