Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8195773
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:15:06+00:00 2026-06-07T05:15:06+00:00

My project depends on Sunspot , which in turn depends on progress_bar . progress_bar

  • 0

My project depends on Sunspot, which in turn depends on progress_bar. progress_bar defines a class (outside of any module/namespace) called ProgressBar.

My test code depends on minitest-reporters, which in turn depends on ruby-progressbar. ruby-progressbar defines a class (also outside of any module/namespace) called ProgressBar.

Being new to Ruby, it took me an embarassing amount of time to track down the fact that the two ProgressBar classes were conflicting. I know how to namespace my own code to prevent such problems, but is there any way to resolve such a collision in 3rd party code?

Update:

The owner of minitest-reporters very kindly replaced his usage of the (apparently abandoned) ProgressBar with yet another progress library, PowerBar. So this addressed my problem. But guess what- PowerBar also pollutes the global namespace! This just seems pathological in Ruby…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T05:15:08+00:00Added an answer on June 7, 2026 at 5:15 am
    • If it’s in your own code (not applicable in this particular case): namespace your friggin constants!
    • If it’s in someone else’s code: file a bug telling them to namespace their friggin constants! … and wait for them to release a new version …

    There’s really not more you can do.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a maven Java project (Project A) which depends on a second project
I've got a main project where module A depends on a a .jar file
My project P depends on dependency A which depends on dependency B. My project's
I have a project which depends on hadoop-core. hadoop-core has its own log4j configuration.
My Play project currently depends on Play's pdf module version 0.9 and JavaAPIforKml 2.2.0
I have an F# library project that depends on a C# class library project,
I have maven project X which depends on project Y. when I run the
My project depends on some 3rd-party JARs which are not available in Maven Central.
So my maven project depends on a jar that is NOT in any maven
I have a project which I try to compile with Eclipse-CDT. The project depends

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.