[#104004] [Ruby master Feature#17883] Load bundler/setup earlier to make `bundle exec ruby -r` respect Gemfile — mame@...
Issue #17883 has been reported by mame (Yusuke Endoh).
21 messages
2021/05/24
[ruby-core:103699] [Ruby master Feature#17847] `ruby -run -e httpd` displays URL
From:
mame@...
Date:
2021-05-03 13:29:38 UTC
List:
ruby-core #103699
Issue #17847 has been updated by mame (Yusuke Endoh). +1 ---------------------------------------- Feature #17847: `ruby -run -e httpd` displays URL https://bugs.ruby-lang.org/issues/17847#change-91790 * Author: gotoken (Kentaro Goto) * Status: Open * Priority: Normal ---------------------------------------- The current version of un.rb `httpd` shows port number only: ``` $ ruby -run -e httpd [2021-05-03 21:55:09] INFO WEBrick 1.7.0 [2021-05-03 21:55:09] INFO ruby 3.1.0 (2021-05-03) [x86_64-linux] [2021-05-03 21:55:09] INFO WEBrick::HTTPServer#start: pid=32129 port=8080 ``` To access this server, we have to type `http://127.0.0.1:8080` in the address bar of browser. This feature request appends URLs as follows: ``` [2021-05-03 21:55:15] INFO WEBrick 1.7.0 [2021-05-03 21:55:15] INFO ruby 3.1.0 (2021-05-03) [x86_64-linux] [2021-05-03 21:55:15] INFO WEBrick::HTTPServer#start: pid=32182 port=8080 [2021-05-03 21:55:15] INFO To access this server, open this file in a browser: [2021-05-03 21:55:15] INFO http://127.0.0.1:8080 [2021-05-03 21:55:15] INFO http://[::1]:8080 ``` This is often useful. Some terminals also make URLs clickable. Pull request: https://github.com/ruby/ruby/pull/4415 -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:[email protected]?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>