redis_test 0.0.9 → 0.0.10

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: 8d91cfaae2860c04da57ecbd687616e739b187e3
4
- data.tar.gz: 42fd0bee49b23b9cb688a85b6d8ca77d41c79c46
3
+ metadata.gz: 56a568c5f2562c7f6706b516ec168ad7c3558d61
4
+ data.tar.gz: 6005392133cddc42aaa211bf54aec8be7d8f97ad
5
5
  SHA512:
6
- metadata.gz: 7cf0acb5937d0b1069b6173557d3761147662e518ae570fa79cb06f12af837bc0cc13f97b90968b47d1d907064fe04f129e8962318d2dc006caf0d47f0deb829
7
- data.tar.gz: 0568b292dbf289edfd765a4c0e01d568a020096f50c590f42d88c55dc8e8f0f66865afa0655938903f9bd8b86d4abf239d24c28bde4448d50ddd8168db932751
6
+ metadata.gz: 07b5e0325a8a9bd78feed00de25aa146deb6706629ef9b072638a606cb2906cc95cc3f34fdb5bd55a47eaf756eedc8a2e1ecd5f211d7a3aae2331607c533d158
7
+ data.tar.gz: bd1cccbbfca84344933b4ddbc13bceaff4531888f760d42c9c384bd8da3d8cda5295852fdb4a3f7120455dafa442d77c425dd8903995dfa15ba59f0c0751e26c
data/.gitignore CHANGED
@@ -15,3 +15,6 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
+ vendor/
19
+ .idea/
20
+ binstubs/
@@ -1,3 +1,3 @@
1
1
  module RedisTest
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
data/lib/redis_test.rb CHANGED
@@ -74,10 +74,11 @@ module RedisTest
74
74
  end
75
75
 
76
76
  def stop
77
- %x{
78
- cat #{pidfile} | xargs kill -QUIT
79
- rm -f #{cache_path}#{db_filename}
80
- }
77
+ if File.file?(pidfile) && File.readable?(pidfile)
78
+ pid = File.read(pidfile).to_i
79
+ Process.kill("QUIT", pid) if pid > 0
80
+ end
81
+ FileUtils.rm_f("#{cache_path}#{db_filename}")
81
82
  end
82
83
 
83
84
  def server_url
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis_test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phuong Nguyen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-04 00:00:00.000000000 Z
11
+ date: 2015-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.3'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  description: A helper to launch redis server during test
@@ -45,7 +45,7 @@ executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
- - ".gitignore"
48
+ - .gitignore
49
49
  - Gemfile
50
50
  - LICENSE.txt
51
51
  - README.md
@@ -63,17 +63,17 @@ require_paths:
63
63
  - lib
64
64
  required_ruby_version: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  required_rubygems_version: !ruby/object:Gem::Requirement
70
70
  requirements:
71
- - - ">="
71
+ - - '>='
72
72
  - !ruby/object:Gem::Version
73
73
  version: '0'
74
74
  requirements: []
75
75
  rubyforge_project:
76
- rubygems_version: 2.2.2
76
+ rubygems_version: 2.0.14
77
77
  signing_key:
78
78
  specification_version: 4
79
79
  summary: A helper to launch redis server during test