redis_test 0.1.4 → 0.2.0

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: 52cb243023a193b9d9db16eb99415aa932d50fd3
4
- data.tar.gz: 55b9ca8ae4308ab19beaf7dd74f4a97a8f336074
3
+ metadata.gz: 841053341b54ef4b39e1c083e84c381dd611c7f0
4
+ data.tar.gz: a4318f475dff064bcd25367b245a76c0ed46fcb5
5
5
  SHA512:
6
- metadata.gz: a961e22060cd7e6023311a299657c4e77a4a9342f23adc5838f7fb0bd7e51987523edffa72f75f1d7cfa0f7220b3d9be8b3a546a3e569c79a684f104115b5ed7
7
- data.tar.gz: 2007cb3b6437e67fa63b7ff710616b5602fd2eaae4ca54ae8d3a5b5260a8ad19faaecb0ca53a2327c26ed68c4942acf2c873b433ad6c9994a47674293b27d219
6
+ metadata.gz: 9b54682423119694e914a9657f1aea21d7a06dbb7579bed76b901f0897d986667c72ea64a8fe6a1c194e8f42b3861cd721e71ff52fc81d6e55a0a699d5270bcf
7
+ data.tar.gz: 78967833b090a5f9de1daba744acb1f591d5fa0cb1bc2d4f1fe795046c3b1a99be6a4298c98aac0be82ad1cff3be3356d29cd74f0dfe705f7b4b00fd58794cb9
@@ -1,3 +1,3 @@
1
1
  module RedisTest
2
- VERSION = "0.1.4"
2
+ VERSION = "0.2.0"
3
3
  end
data/lib/redis_test.rb CHANGED
@@ -45,7 +45,6 @@ module RedisTest
45
45
  FileUtils.mkdir_p logs_path
46
46
 
47
47
  redis_options = {
48
- "daemonize" => 'yes',
49
48
  "pidfile" => pidfile,
50
49
  "port" => port,
51
50
  "timeout" => 300,
@@ -62,7 +61,10 @@ module RedisTest
62
61
  end
63
62
 
64
63
  redis_options_str = redis_options.map { |k, v| "#{k} #{v}" }.join('\n')
65
- `echo '#{redis_options_str}' | redis-server -`
64
+
65
+ fork do
66
+ system "echo '#{redis_options_str}' | redis-server -"
67
+ end
66
68
 
67
69
  wait_time_remaining = 5
68
70
  begin
@@ -13,7 +13,7 @@ RSpec.describe RedisTest do
13
13
  describe '#start' do
14
14
  describe "log_to_stdout = true" do
15
15
  it "starts fine" do
16
- RedisTest.start(log_to_stdout: false)
16
+ RedisTest.start(log_to_stdout: true)
17
17
  RedisTest.stop
18
18
  end
19
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis_test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phuong Nguyen