mysqlnoio 0.1.1 → 0.1.2

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: 3c4fed9513c96b2048bbee86f1d16c94a92e24fc
4
- data.tar.gz: 25bc6a6d50f78c862d9e25c5a8cd62a1bc2cc13c
3
+ metadata.gz: 77fa41493d824527413edbf2284bc477175549f9
4
+ data.tar.gz: dfb83b472857a389adee5d5b42be3f97ef08bc29
5
5
  SHA512:
6
- metadata.gz: 7eea546f20b7443101413fb6a23e1f9085bd7057a75730ace22814f1e1fc33f559b2863f1dbe1185cc7a4d62ff3ba6c45fb7204c586af6510fd9edc4f8073e47
7
- data.tar.gz: c6a91b69bf9d33d3ac2c814b6d69098ed5cb733ec4435f07788c993f1938c56ebd64493da70ee532ee99bb424f1e80f4e0f557b7deb06a67ad8ac6a597289781
6
+ metadata.gz: 7b87c8f4a9b6f8756da06deadeeb657781eb6d536f36cd50cb5c455e1f14fd32252e07ad70225a820373d36abd5314ecc18da7976edde2c017d2dcd78b948342
7
+ data.tar.gz: 55b019e873ec4db344101dbd98b18dcd807d40e4d64dd86bf4c6eb79da2252a8b8e3467c70f5e31055095f3c067a1a4e4dafcee5176951ec290d7e4acbd0b0f1
data/README.md CHANGED
@@ -53,6 +53,8 @@ gem install mysqlnoio
53
53
  - 2013-04-23 - Created more extensive integration tests asserting the slave
54
54
  stop feature works as intended.
55
55
  - 2013-04-23 - Release: 0.1.1
56
+ - 2013-04-25 - Client now pings the server every one second to prevent client
57
+ timeouts during long-running subprocesses.
56
58
 
57
59
  ## Copyright
58
60
 
@@ -8,7 +8,7 @@ curl -L https://get.rvm.io | bash -s --autolibs=3 --ruby
8
8
  SCRIPT
9
9
 
10
10
  Vagrant.configure("2") do |config|
11
- config.vm.box = "ubuntu-12.04.2-server-adm54-vmware-fusion"
11
+ config.vm.box = "ubuntu-12.04.2-server-amd64-vmware-fusion"
12
12
  config.vm.box_url = "https://s3.amazonaws.com/gsc-vagrant-boxes/ubuntu-12.04.2-server-amd64.box"
13
13
 
14
14
  config.vm.provision :shell do |shell|
@@ -48,8 +48,12 @@ if ARGV.size == 0
48
48
  else
49
49
 
50
50
  stack.execute do
51
- spawn *ARGV
52
- Process.wait
51
+ pid = spawn *ARGV
52
+
53
+ while not Process.waitpid(pid, Process::WNOHANG) do
54
+ client.query("SELECT 1")
55
+ sleep(1)
56
+ end
53
57
  end
54
58
 
55
59
  exit $?.to_i
@@ -4,7 +4,7 @@ module MySQLNoIo
4
4
  NAME = 'mysqlnoio'
5
5
 
6
6
  # Used in Gemspec and Commander
7
- VERSION = '0.1.1'
7
+ VERSION = '0.1.2'
8
8
 
9
9
  # Used in Gemspec and Commander
10
10
  DESCRIPTION = 'mysqlnoio allows you to execute commands while MySQL is locked.'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mysqlnoio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ZippyKid
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-23 00:00:00.000000000 Z
12
+ date: 2013-04-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mysql2