integration_test_redis 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -37,9 +37,10 @@ class IntegrationTestRedis
37
37
 
38
38
  def stop
39
39
  pid = File.read(PIDFILE).to_i
40
+ return false unless pid > 0
41
+
40
42
  begin
41
- Process.getpgid(pid)
42
- system("kill -QUIT #{pid}")
43
+ !! Process.kill("QUIT", pid)
43
44
  rescue Errno::ESRCH
44
45
  false
45
46
  end
@@ -1,3 +1,3 @@
1
1
  module IntegrationTestRedis
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: integration_test_redis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: redis
17
- requirement: &2156189320 !ruby/object:Gem::Requirement
17
+ requirement: &2152831840 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '0'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2156189320
25
+ version_requirements: *2152831840
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: rspec
28
- requirement: &2156188900 !ruby/object:Gem::Requirement
28
+ requirement: &2152831420 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,7 +33,7 @@ dependencies:
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
- version_requirements: *2156188900
36
+ version_requirements: *2152831420
37
37
  description: Control a non-persistent Redis server for use in integration tests.
38
38
  email:
39
39
  - xternal1+github@gmail.com