Skip to content

Fix gem requires#118

Open
zarmeza wants to merge 2 commits intomainfrom
fix-gem-requires
Open

Fix gem requires#118
zarmeza wants to merge 2 commits intomainfrom
fix-gem-requires

Conversation

@zarmeza
Copy link
Copy Markdown

@zarmeza zarmeza commented Nov 18, 2024

  • Add require_relative to expose bot and shared storage classes
  • Update README

@coveralls
Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 11902121813

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 11806695867: 0.0%
Covered Lines: 387
Relevant Lines: 387

💛 - Coveralls

For this, a bot could be defined as follow:

```ruby
require 'bas'
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use double quotes

Copy link
Copy Markdown
Collaborator

@FelipeGuzmanSierra FelipeGuzmanSierra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, just a few comments!

require_relative "bas/bot/base"
require_relative "bas/shared_storage/base"
require_relative "bas/shared_storage/default"
require_relative "bas/shared_storage/postgres"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don’t think this should be added by default when the gem is imported. Users should have the flexibility to import only the shared storage implementation required for their specific use case. Currently, postgres is the only option available, but in the future, we plan to add more implementations. For example, if a user wants to use shared storage with S3, importing the postgres module should not be enforced.

Let me know what you think! 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants