vegas 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/vegas.rb +1 -3
- data/lib/vegas/runner.rb +4 -7
- data/vegas.gemspec +1 -1
- metadata +9 -9
data/lib/vegas.rb
CHANGED
@@ -6,10 +6,8 @@ rescue LoadError
|
|
6
6
|
require 'rack'
|
7
7
|
end
|
8
8
|
|
9
|
-
$LOAD_PATH.unshift File.dirname(__FILE__)
|
10
|
-
|
11
9
|
module Vegas
|
12
|
-
VERSION = "0.1.
|
10
|
+
VERSION = "0.1.10"
|
13
11
|
WINDOWS = !!(RUBY_PLATFORM =~ /(mingw|bccwin|wince|mswin32)/i)
|
14
12
|
JRUBY = !!(RbConfig::CONFIG["RUBY_INSTALL_NAME"] =~ /^jruby/i)
|
15
13
|
|
data/lib/vegas/runner.rb
CHANGED
@@ -145,10 +145,7 @@ module Vegas
|
|
145
145
|
check_url ||= url
|
146
146
|
options[:no_proxy] ? open(check_url, :proxy => nil) : open(check_url)
|
147
147
|
false
|
148
|
-
rescue Errno::ECONNREFUSED
|
149
|
-
true
|
150
|
-
rescue Errno::EPERM => e
|
151
|
-
# catches the "Operation not permitted" under Cygwin
|
148
|
+
rescue Errno::ECONNREFUSED, Errno::EPERM, Errno::ETIMEDOUT
|
152
149
|
true
|
153
150
|
end
|
154
151
|
end
|
@@ -189,19 +186,19 @@ module Vegas
|
|
189
186
|
# It's not a true daemon but when executed with & works like one
|
190
187
|
thread = Thread.new {daemon_execute}
|
191
188
|
thread.join
|
192
|
-
|
189
|
+
|
193
190
|
elsif RUBY_VERSION < "1.9"
|
194
191
|
logger.debug "Parent Process: #{Process.pid}"
|
195
192
|
exit!(0) if fork
|
196
193
|
logger.debug "Child Process: #{Process.pid}"
|
197
194
|
daemon_execute
|
198
|
-
|
195
|
+
|
199
196
|
else
|
200
197
|
Process.daemon(true, true)
|
201
198
|
daemon_execute
|
202
199
|
end
|
203
200
|
end
|
204
|
-
|
201
|
+
|
205
202
|
def daemon_execute
|
206
203
|
File.umask 0000
|
207
204
|
FileUtils.touch log_file
|
data/vegas.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vegas
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2009-08-30 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rack
|
16
|
-
requirement: &
|
16
|
+
requirement: &70352802385900 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 1.0.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70352802385900
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: mocha
|
27
|
-
requirement: &
|
27
|
+
requirement: &70352802385020 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 0.9.8
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70352802385020
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: bacon
|
38
|
-
requirement: &
|
38
|
+
requirement: &70352802384100 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 1.1.0
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70352802384100
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: sinatra
|
49
|
-
requirement: &
|
49
|
+
requirement: &70352802383200 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: 0.9.4
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70352802383200
|
58
58
|
description: Vegas aims to solve the simple problem of creating executable versions
|
59
59
|
of Sinatra/Rack apps. It includes a class Vegas::Runner that wraps Rack/Sinatra
|
60
60
|
applications and provides a simple command line interface and launching mechanism.
|