Skip to content

Gem is not autoloadable (misnamed) #550

@jasonkarns

Description

@jasonkarns

Describe the bug:

The gem name google-ads-googleads makes ruby (bundler) autoloading expect google/ads/googleads.rb to exist. It does not, so Bundler's autorequire is broken.

Steps to Reproduce:

  1. add: gem "google-ads-googleads" to gemfile
  2. start console
  3. Bundle.require
  4. Google::Ads::GoogleAds::Config.new

Get error:

/Users/jasonkarns/Projects/sundaysfordogs/sundays/config/initializers/google.rb:1:in '<main>': uninitialized constant Google::Ads (NameError)

Expected behavior:

I would expect the gem to adhere to ruby gem naming conventions, and support autoloading. Bundler.require should require: Google::Ads::GoogleAds and the namespace would then be initialized.

Client library version and API version:
Client library version: 36.1.0
Google Ads API version: n/a

Request/Response Logs:
n/a

Anything else we should know about your project / environment:
Ruby 3.4
Rails 7.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageNew issues that need to be sorted into other labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions