Skip to content

Issue with gem loading with rails/zeitwerk on linux #24

Closed
@cecilian

Description

@cecilian

Hello,

the fact that the gem name contains two uppercase characters makes it unavailable under case-sensitive OSs like linux because autoloading with zeitwerk doesn't manage to pick it up.

Manual require fails too:

irb(main):001:0> require 'IPinfo'
LoadError (cannot load such file -- IPinfo)

but it works using the file name in lowercase:

irb(main):002:0> require 'ipinfo'
=> true

In my case all was working in my development environment (OSX) but failed on circleCI.
At the moment the only workaround I've found is adding the following line to application.rb:

require 'ipinfo' unless defined?(IPinfo)

Would it be possible to address this issue so that the gem can be required automatically also under linux?
Thank you

gem version: 1.0.1
rails version: 6.0.3.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions