* [gentoo-commits] gentoo-x86 commit in dev-ruby/shotgun/files: shotgun-0.5-optional-launchy.patch
@ 2010-01-25 18:55 Diego Petteno (flameeyes)
0 siblings, 0 replies; 2+ messages in thread
From: Diego Petteno (flameeyes) @ 2010-01-25 18:55 UTC (permalink / raw
To: gentoo-commits
flameeyes 10/01/25 18:55:57
Added: shotgun-0.5-optional-launchy.patch
Log:
Initial import of shotgun, a way to auto-relaod rackup servers.
(Portage version: 2.2_rc61/cvs/Linux x86_64)
Revision Changes Path
1.1 dev-ruby/shotgun/files/shotgun-0.5-optional-launchy.patch
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/shotgun/files/shotgun-0.5-optional-launchy.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/shotgun/files/shotgun-0.5-optional-launchy.patch?rev=1.1&content-type=text/plain
Index: shotgun-0.5-optional-launchy.patch
===================================================================
From 7d571983f5794f88c92560f1fc5061aa4ac12bac Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Diego=20Elio=20'Flameeyes'=20Petten=C3=B2?= <flameeyes@gmail.com>
Date: Mon, 25 Jan 2010 19:09:53 +0100
Subject: [PATCH] Don't fail away if launchy could not be loaded.
Since it's just a minor feature, make launchy optional this way.
---
bin/shotgun | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/bin/shotgun b/bin/shotgun
index d618d29..e12c4d8 100755
--- a/bin/shotgun
+++ b/bin/shotgun
@@ -137,7 +137,11 @@ server.run app, options do |inst|
puts "== Shotgun starting #{server.to_s} on http://#{options[:Host]}:#{options[:Port]}"
if browse
- require 'launchy'
- Launchy.open("http://#{options[:Host]}:#{options[:Port]}#{options[:Path]}")
+ begin
+ require 'launchy'
+ Launchy.open("http://#{options[:Host]}:#{options[:Port]}#{options[:Path]}")
+ rescue LoadError
+ $stderr.puts "Unable to load 'launchy', the browser won't be launched."
+ end
end
end
--
1.6.6.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] gentoo-x86 commit in dev-ruby/shotgun/files: shotgun-0.5-optional-launchy.patch
@ 2010-01-28 16:27 Diego Petteno (flameeyes)
0 siblings, 0 replies; 2+ messages in thread
From: Diego Petteno (flameeyes) @ 2010-01-28 16:27 UTC (permalink / raw
To: gentoo-commits
flameeyes 10/01/28 16:27:46
Removed: shotgun-0.5-optional-launchy.patch
Log:
Version bump, remove now-obsoleted patch. Now use gem for packaging. Add ~x86 as it's tested in a development guest.
(Portage version: 2.2_rc61/cvs/Linux x86_64)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-01-28 16:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-25 18:55 [gentoo-commits] gentoo-x86 commit in dev-ruby/shotgun/files: shotgun-0.5-optional-launchy.patch Diego Petteno (flameeyes)
-- strict thread matches above, loose matches on Subject: below --
2010-01-28 16:27 Diego Petteno (flameeyes)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox