On Wed, Oct 29, 2014 at 5:56 PM, Allan Odgaard mailinglist@textmate.org wrote:
On 29 Oct 2014, at 17:03, Stefan Daschek wrote:
Can we identify Rails projects (for the project scope)?
Maybe by checking if there's a toplevel `Gemfile` with a line matching `gem\s+'rails'`?
Most newer Rails projects use binstubs, so checking for the existence of `bin/rails` would also be possible. (But there are still many Rails projects without binstubs.)
The current system (to identify projects) looks for a file (glob) in a file’s current or ancestor directory. It can’t check the content of other files or similar.
The RSpec bundle decides if the current project is a Rails project by looking for a ./config/boot.rb file.
-- :: dip --