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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 130e42b6ea51f45c286e7c21fe8aae49014eef81
4
- data.tar.gz: 1563ac90134f3837f0c705a6cce802c6b854c478
3
+ metadata.gz: ad8d2efea74ca87caf2a2f0bb2da74a97e9ac976
4
+ data.tar.gz: 994aacf92f66196dc1291aac1fb2fa4bf6579b7e
5
5
  SHA512:
6
- metadata.gz: 8cccda69622490863225f289edb743f1182ded6beb1e32cad0b2aaefe0b3dd7ea65070254496c78b9a71eccc8bb6e3191be9f356af68393c2594fe44ba7bcc00
7
- data.tar.gz: bde828da11f815a64fed9de13cfee92cdd9a5b6c0357d905caafe01140ff7f441ca133f417d4b6f3ff6576ae53a058a532749735cb15312188fd4bf59736346f
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
- Process.daemon
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
@@ -1,5 +1,5 @@
1
1
  module RRRSpec
2
2
  module Server
3
- VERSION = "0.2.2"
3
+ VERSION = "0.2.3"
4
4
  end
5
5
  end
@@ -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", "~> 4.0.2"
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.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: 2014-07-11 00:00:00.000000000 Z
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.0.2
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.0.2
116
+ version: '4.2'
111
117
  - !ruby/object:Gem::Dependency
112
118
  name: activerecord-import
113
119
  requirement: !ruby/object:Gem::Requirement