redis_test 0.0.6 → 0.0.7

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: 55ab6f31db17b027ebc1a37bc89197fd0a011a6e
4
- data.tar.gz: a2ca84286badc1a3f94b3126fc24045914b82d63
3
+ metadata.gz: e8368903fa52ac4f275e7c86e6924b3a952d4a63
4
+ data.tar.gz: 6a190474427b22f830ac8cac194d8ff2649b7c94
5
5
  SHA512:
6
- metadata.gz: 0fccb7e8a95651a16dbb71540c73854a493abc8d4767edaa61d9c7a6e2a74d0a2017fb63753ad79a083700e0ee3deb2905d61763598d5d793ead61f93c2735d5
7
- data.tar.gz: d2ae3ef7109de80e154979e89a97751895f3c10b336ae44c8f80279906c95f6b936a2bd7c7843682f0e623233e899fe501149c7e29e82b27136ab74b48831a52
6
+ metadata.gz: 70fd6880d2beee167d05f663de97b3e8d4ea47158d8d3628c91c2a31e7107473cfea789925a647abea6a57810c13fb34c789dd8e5e505a46cbbd255baef6062f
7
+ data.tar.gz: cc2733d098ef59abf05d3aafe0a98a7609b61cdd46f292f6a661df5e9916163fe2fc52a9cb2550389b2bcf172f93f4c72ec27cef4786b11d399c44bb192651cf
data/lib/redis_test.rb CHANGED
@@ -11,11 +11,15 @@ module RedisTest
11
11
  end
12
12
 
13
13
  def cache_path
14
- "#{Rails.root}/tmp/cache/#{port}/"
14
+ "#{Dir.pwd}/tmp/cache/#{port}/"
15
15
  end
16
16
 
17
17
  def pids_path
18
- "#{Rails.root}/tmp/pids"
18
+ "#{Dir.pwd}/tmp/pids"
19
+ end
20
+
21
+ def logs_path
22
+ "#{Dir.pwd}/log"
19
23
  end
20
24
 
21
25
  def pidfile
@@ -23,7 +27,7 @@ module RedisTest
23
27
  end
24
28
 
25
29
  def logfile
26
- "#{Rails.root}/log/redis.#{port}.log"
30
+ "#{logs_path}/redis.#{port}.log"
27
31
  end
28
32
 
29
33
  def loglevel
@@ -37,6 +41,7 @@ module RedisTest
37
41
  def start
38
42
  FileUtils.mkdir_p cache_path
39
43
  FileUtils.mkdir_p pids_path
44
+ FileUtils.mkdir_p logs_path
40
45
 
41
46
  redis_options = {
42
47
  "daemonize" => 'yes',
@@ -1,3 +1,3 @@
1
1
  module RedisTest
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis_test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phuong Nguyen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-28 00:00:00.000000000 Z
11
+ date: 2014-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler