Skip to content

Empty string added to Gem.path when running rails server #310

@noniq

Description

@noniq

In a vanilla Rails 4.1 application, an emtpy string is added to Gem.path when running the rails server.

To reproduce: Add p Gem.path at the end of config/application.rb and then start the server with bin/rails s.

The emtpy string is not present when inspecting Gem.path in the Rails console. The empty string also disappears if the spring gem is commented out in the Gemfile.

I’m not sure if an emtpy string is a valid gem path; but I noticed that it causes problems with the better_errors gem: BetterErrors/better_errors#252

The application's Gemfile.lock looks like this: https://gist.github.com/noniq/a0f7e5f19cb544c88065

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions