rrrspec-server 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rrrspec/server/configuration.rb +4 -0
- data/lib/rrrspec/server/daemonizer.rb +7 -1
- data/lib/rrrspec/server/version.rb +1 -1
- data/rrrspec-server.gemspec +1 -1
- metadata +12 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad8d2efea74ca87caf2a2f0bb2da74a97e9ac976
|
4
|
+
data.tar.gz: 994aacf92f66196dc1291aac1fb2fa4bf6579b7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3de61a73a340a9c33d4c9c75fb126787f7096124707f8dbc5b33a5f1e7ee87c05990758818b77908abc836f20d253c4fbac3902fe6f83d71f44171138bae79fd
|
7
|
+
data.tar.gz: 596b4c7c22829e36e7891584acdccf92c32132877cd219b5d35dd2b10c9a27d33e442ba2d2e79523a5ae071cb3088abaa7356b7f98a5536a2216726b8046d269
|
@@ -7,6 +7,8 @@ module RRRSpec
|
|
7
7
|
attr_accessor :execute_log_text_path
|
8
8
|
attr_accessor :json_cache_path
|
9
9
|
attr_accessor :daemonize, :pidfile, :user
|
10
|
+
attr_accessor :stdout_path, :stderr_path
|
11
|
+
attr_accessor :monitor
|
10
12
|
|
11
13
|
def initialize
|
12
14
|
super()
|
@@ -34,6 +36,8 @@ module RRRSpec
|
|
34
36
|
attr_accessor :rsync_remote_path, :rsync_options
|
35
37
|
attr_accessor :working_dir, :worker_type, :slave_processes
|
36
38
|
attr_accessor :daemonize, :pidfile, :user
|
39
|
+
attr_accessor :stdout_path, :stderr_path
|
40
|
+
attr_accessor :monitor
|
37
41
|
|
38
42
|
def initialize
|
39
43
|
super()
|
@@ -9,7 +9,13 @@ module RRRSpec
|
|
9
9
|
pidfile = File.absolute_path(RRRSpec.configuration.pidfile || File.join("/var/run", "#{process_name}.pid"))
|
10
10
|
check_pidfile(pidfile)
|
11
11
|
|
12
|
-
|
12
|
+
if stdout_path = RRRSpec.configuration.stdout_path
|
13
|
+
$stdout.reopen(stdout_path, 'a')
|
14
|
+
end
|
15
|
+
if stderr_path = RRRSpec.configuration.stderr_path
|
16
|
+
$stderr.reopen(stderr_path, 'a')
|
17
|
+
end
|
18
|
+
Process.daemon(false, true)
|
13
19
|
File.write(pidfile, Process.pid.to_s)
|
14
20
|
File.umask(0)
|
15
21
|
setup_signal_handlers
|
data/rrrspec-server.gemspec
CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.add_development_dependency "rspec"
|
30
30
|
spec.add_development_dependency "sqlite3"
|
31
31
|
spec.add_development_dependency "timecop"
|
32
|
-
spec.add_dependency "activerecord", "
|
32
|
+
spec.add_dependency "activerecord", ">= 4.0", "< 4.2"
|
33
33
|
spec.add_dependency "activerecord-import", "~> 0.4.1"
|
34
34
|
spec.add_dependency "activesupport"
|
35
35
|
spec.add_dependency "bundler"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rrrspec-server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masaya Suzuki
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: database_cleaner
|
@@ -98,16 +98,22 @@ dependencies:
|
|
98
98
|
name: activerecord
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '4.0'
|
104
|
+
- - "<"
|
102
105
|
- !ruby/object:Gem::Version
|
103
|
-
version: 4.
|
106
|
+
version: '4.2'
|
104
107
|
type: :runtime
|
105
108
|
prerelease: false
|
106
109
|
version_requirements: !ruby/object:Gem::Requirement
|
107
110
|
requirements:
|
108
|
-
- - "
|
111
|
+
- - ">="
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: '4.0'
|
114
|
+
- - "<"
|
109
115
|
- !ruby/object:Gem::Version
|
110
|
-
version: 4.
|
116
|
+
version: '4.2'
|
111
117
|
- !ruby/object:Gem::Dependency
|
112
118
|
name: activerecord-import
|
113
119
|
requirement: !ruby/object:Gem::Requirement
|