[#92891] Question: ruby 2.7.0-preview1 also upgrades bundler to 2.1.0.pre.1? — Al Snow <jasnow@...>
Tried the new 2.7.0-preview1 upgrade to Ruby and see that bundler is also upgraded (to 2.1.0.pre.1).
5 messages
2019/05/30
[#92892] Re: Question: ruby 2.7.0-preview1 also upgrades bundler to 2.1.0.pre.1?
— SHIBATA Hiroshi <hsbt@...>
2019/05/30
Bundler 2.1.0.pree.1 is the expected version.
[ruby-core:92619] [Ruby trunk Feature#15840] configuration path search
From:
shevegen@...
Date:
2019-05-10 21:31:01 UTC
List:
ruby-core #92619
Issue #15840 has been updated by shevegen (Robert A. Heiler).
I can't say much about the API/name but the functionality looks useful/good in my opinion.
----------------------------------------
Feature #15840: configuration path search
https://bugs.ruby-lang.org/issues/15840#change-77978
* Author: nobu (Nobuyoshi Nakada)
* Status: Open
* Priority: Normal
* Assignee:
* Target version:
----------------------------------------
Related to #15828, a standard method to search configuration files would be nice.
We (naruse and nobu) talked about it and agreed on `Etc.config_file`
To load a config file as Ruby script:
```ruby
Etc.config_file(basename) {|path| load(path) rescue nil}
```
or just search the file:
```ruby
file = Etc.config_file
```
`basename` will be defaulted to the base name of the program name,`$0`.
A flag to write new file:
```ruby
Etc.config_file(create: true) {|f| FileUtils.mdir_p(File.basename(f)); File.write(f, content)}
```
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>