mysql_isolated_server 0.5.1 → 0.5.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2f4c980f93819d3edfe4393fb32a0ebac2935609
4
- data.tar.gz: 35083603e61283d31355957c2cbc1a59bf752f09
3
+ metadata.gz: dd18cea0c11e60f42b273702e3a27fd1b3b52886
4
+ data.tar.gz: 7e5ebfd1cec4db21066f21fea9fc2fd943e78db6
5
5
  SHA512:
6
- metadata.gz: 869f40c68cdeac52271f62641ea8afde4718c118881118eb9df00ce0e02e8a7da28e31e154805d258f8913697f1709b98de616f8c54cef0b998a9d7b2aeb3068
7
- data.tar.gz: 291acc4178a54423ce493c66f41e67c5cbd4a3f4fb9a9b93058ff55ca64f235c522aab5597ab667057c4dcef1568f6cdb0e0608a1e67c9858238312a87aa7580
6
+ metadata.gz: 964d8792b8b9cd9b7516f4ba93880e7f7fe3ee4db5beab9ceeddc9e438ddf29fab50dddbe4b4ec165bd0a59f311ad719daf609eff5be7e38937ffae4d0034deb
7
+ data.tar.gz: 7122d5752c06ac0a613adf8a34c8f704a6e2070e43e0772460e16816a0d606f44c95caa21f494685779d914b7fb1a04f4bc0f6cb7588f653e5124472620041a6
@@ -44,7 +44,7 @@ class MysqlIsolatedServer
44
44
 
45
45
  module DBConnection
46
46
  def connection
47
- @connection ||= WrappedJDBCConnection.new(@port)
47
+ @cx ||= WrappedJDBCConnection.new(@port)
48
48
  end
49
49
  end
50
50
  end
@@ -1,3 +1,3 @@
1
1
  class MysqlIsolatedServer
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
@@ -243,4 +243,9 @@ class MysqlIsolatedServer
243
243
  return unless @pid
244
244
  system("kill -TERM #{@pid}")
245
245
  end
246
+
247
+ def reconnect!
248
+ @cx = nil
249
+ connection
250
+ end
246
251
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mysql_isolated_server
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Osheroff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-06 00:00:00.000000000 Z
11
+ date: 2014-12-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A small library that allows you to easily spin up new local mysql servers
14
14
  for testing purposes.