vegas 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +9 -0
- data/README.rdoc +3 -1
- data/lib/vegas.rb +1 -1
- data/lib/vegas/runner.rb +9 -5
- data/vegas.gemspec +2 -2
- metadata +3 -3
data/History.txt
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
== 0.1.7
|
2
|
+
|
3
|
+
* Exit with specific exit status (for monitoring/good unix citizen).
|
4
|
+
* Kill only after all options have been parsed.
|
5
|
+
|
6
|
+
== 0.1.6
|
7
|
+
|
8
|
+
* Fixed: FileUtils no longer loaded by default
|
9
|
+
|
1
10
|
== 0.1.5 2010-03-09
|
2
11
|
|
3
12
|
* Fixed: Gracefully catch error when thin isnt available (nevans)
|
data/README.rdoc
CHANGED
@@ -26,7 +26,9 @@ See the website: http://code.quirkey.com/vegas for full usage/options.
|
|
26
26
|
=== WINDOWS:
|
27
27
|
|
28
28
|
Using vegas (and gems that depend on it) on Windows works but isn't 100% the same.
|
29
|
-
Daemon-ization and browser launching work, but you will see duplicate messages.
|
29
|
+
Daemon-ization and browser launching work, but you will see duplicate messages.
|
30
|
+
Some options might also be lost in the process. I suggest running Vegas apps
|
31
|
+
in windows with the -F (foreground) flag.
|
30
32
|
|
31
33
|
If you see a warning like:
|
32
34
|
|
data/lib/vegas.rb
CHANGED
data/lib/vegas/runner.rb
CHANGED
@@ -43,6 +43,11 @@ module Vegas
|
|
43
43
|
yield(self, opts, app)
|
44
44
|
end
|
45
45
|
end
|
46
|
+
|
47
|
+
if @should_kill
|
48
|
+
kill!
|
49
|
+
exit!(0)
|
50
|
+
end
|
46
51
|
|
47
52
|
# Handle :before_run hook
|
48
53
|
if (before_run = options.delete(:before_run)).respond_to?(:call)
|
@@ -150,7 +155,7 @@ module Vegas
|
|
150
155
|
if !port_open?(running_url)
|
151
156
|
logger.warn "#{quoted_app_name} is already running at #{running_url}"
|
152
157
|
launch!(running_url, path)
|
153
|
-
exit!
|
158
|
+
exit!(1)
|
154
159
|
end
|
155
160
|
end
|
156
161
|
end
|
@@ -172,7 +177,7 @@ module Vegas
|
|
172
177
|
def daemonize!
|
173
178
|
if RUBY_VERSION < "1.9"
|
174
179
|
logger.debug "Parent Process: #{Process.pid}"
|
175
|
-
exit! if fork
|
180
|
+
exit!(0) if fork
|
176
181
|
logger.debug "Child Process: #{Process.pid}"
|
177
182
|
else
|
178
183
|
Process.daemon(true, true)
|
@@ -284,13 +289,12 @@ module Vegas
|
|
284
289
|
opts.separator "Vegas options:"
|
285
290
|
|
286
291
|
opts.on('-K', "--kill", "kill the running process and exit") {|k|
|
287
|
-
|
288
|
-
exit
|
292
|
+
@should_kill = true
|
289
293
|
}
|
290
294
|
|
291
295
|
opts.on('-S', "--status", "display the current running PID and URL then quit") {|s|
|
292
296
|
status
|
293
|
-
exit!
|
297
|
+
exit!(0)
|
294
298
|
}
|
295
299
|
|
296
300
|
opts.on("-s", "--server SERVER", "serve using SERVER (thin/mongrel/webrick)") { |s|
|
data/vegas.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{vegas}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.7"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Aaron Quint"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-05-24}
|
13
13
|
s.description = %q{Vegas aims to solve the simple problem of creating executable versions of Sinatra/Rack apps. It includes a class Vegas::Runner that wraps Rack/Sinatra applications and provides a simple command line interface and launching mechanism.}
|
14
14
|
s.email = ["aaron@quirkey.com"]
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 7
|
9
|
+
version: 0.1.7
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Aaron Quint
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-05-24 00:00:00 -04:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|