monetdb 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODM3YzUyZmYzNDNlNDUzNTI2ODgzNzU1NTEyMjM5MDM0M2NlYzM0YQ==
4
+ MGVmNTMzOThkNzdlNzc3ZmIzN2ZkODUwMDVkYzZiNWYzMWMzMDdjYw==
5
5
  data.tar.gz: !binary |-
6
- NDU5OWZhZTdhZmM5M2NjYmU1NmExNzdjNzQyZDdmZTc1ZThjNzM3YQ==
6
+ ZWUxNTFmYTZkMjUwYWZiZjRlY2YyYjkwMjlkOWY4ZDdkNzA4MjlmOQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MmJjMjBmNjg4ZWQzZmI0YzM0YjEwNGNhMzNjMjcwMmFiMDBiZjIxNTQwZWU1
10
- OGQzOGE3OTVkMWZhZTA4MzY2YjExZTgzODY5NWY4YjdmZTBlN2VkYzI4YTM5
11
- MDcxOTAxYTljOGFkNDVkNDg2ZTg2Y2YxZGE5MTE3YjJhMzhmZWY=
9
+ ODE5Nzk4ODY4NWVhMWU2MTA5ZmQzNTVkZDllOTJjNGY1NzJlZmZlMjIxOGMz
10
+ MjFiMmM0ZTU4ZWE5MmUyYTM5YWEzZWExMWEzNDRlMmMxOGU3NmJhNTk4ZGVh
11
+ ZTNmNTc1YTdjZGEyMTAzMzAyOWRmZjczYjgxNmQ0MzEyYWRkN2U=
12
12
  data.tar.gz: !binary |-
13
- MTU2YjhmZDEyZmE2ZTZlNzQyNGE0ZTQ3Y2VmMzg3YzQyZDFjOTFjOTlmNTJm
14
- ZWFhZDgxMDJhMjUxZDExMDA1YjEzMzU5OWFjY2FjMGIzNTFiNTJhOGUzNjAx
15
- MDcyZWNiMDAwMDI4OTcxZWI2NDZiY2UwNjlhYzliYWIwMDZlZmQ=
13
+ MGQxNGI2M2Q0NjNkYjk1N2UyNjliZDBiM2UyZmI1MmY2MGRhZjQ4Mjg3NmI2
14
+ MDJhNTY5Y2FkMzdlYmNlNmNhZjUzNTg3YWNkYmY2OGM0MGFkZWVkYjQ1Y2Uw
15
+ NDE5YzU1YzZkZjUyNTZmNDk0NzgyZTkzZTQ4OTdkOGI3NzBjNDU=
data/CHANGELOG.rdoc CHANGED
@@ -1,5 +1,9 @@
1
1
  = MonetDB CHANGELOG
2
2
 
3
+ == Version 0.2.6 (October 30, 2014)
4
+
5
+ * Keeping TCP socket with MonetDB alive
6
+
3
7
  == Version 0.2.5 (October 29, 2014)
4
8
 
5
9
  * Corrected disconnecting after getting invalid query header error
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.5
1
+ 0.2.6
@@ -59,6 +59,7 @@ module MonetDB
59
59
  def connect
60
60
  disconnect if connected?
61
61
  @socket = TCPSocket.new config[:host], config[:port].to_i
62
+ socket.setsockopt Socket::SOL_SOCKET, Socket::SO_KEEPALIVE, true
62
63
  setup
63
64
  true
64
65
  end
@@ -1,7 +1,7 @@
1
1
  module MonetDB
2
2
  MAJOR = 0
3
3
  MINOR = 2
4
- TINY = 5
4
+ TINY = 6
5
5
 
6
6
  VERSION = [MAJOR, MINOR, TINY].join(".")
7
7
  end
@@ -36,6 +36,7 @@ module Unit
36
36
  describe "#connect" do
37
37
  it "defines an active socket" do
38
38
  TCPSocket.expects(:new).returns(socket = mock)
39
+ socket.expects(:setsockopt).with(Socket::SOL_SOCKET, Socket::SO_KEEPALIVE, true)
39
40
 
40
41
  assert_nil @connection.instance_variable_get(:@socket)
41
42
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: monetdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Engel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-29 00:00:00.000000000 Z
11
+ date: 2014-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake