membase-dump 0.0.2 → 0.0.3
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.
- data/bin/tap_dump +16 -1
- data/lib/membase-dump/version.rb +1 -1
- metadata +4 -4
data/bin/tap_dump
CHANGED
@@ -1,3 +1,18 @@
|
|
1
1
|
#! /usr/bin/env ruby
|
2
2
|
|
3
|
-
|
3
|
+
require 'timeout'
|
4
|
+
|
5
|
+
def system_with_timeout (timeout, command)
|
6
|
+
pipe = IO.popen(command)
|
7
|
+
Timeout::timeout timeout do
|
8
|
+
while line = pipe.gets
|
9
|
+
puts line
|
10
|
+
end
|
11
|
+
end
|
12
|
+
true
|
13
|
+
rescue Timeout::Error
|
14
|
+
Process.kill("TERM", pipe.pid)
|
15
|
+
false
|
16
|
+
end
|
17
|
+
|
18
|
+
system_with_timeout 3000, "/usr/bin/env python #{File.dirname(__FILE__)}/../lib/tap_dump.py #{ARGV.first}"
|
data/lib/membase-dump/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: membase-dump
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jean-Louis Giordano
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-12-
|
18
|
+
date: 2011-12-05 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|