Skip to content

Better Dependency checking#49

Merged
andreibondarev merged 2 commits into
patterns-ai-core:mainfrom
mission-met:better-gem-checking
May 24, 2023
Merged

Better Dependency checking#49
andreibondarev merged 2 commits into
patterns-ai-core:mainfrom
mission-met:better-gem-checking

Conversation

@rickychilcott
Copy link
Copy Markdown
Contributor

There appear to be some cases where our depends_on helper doesn't properly determine if a gem has been installed.

@andreibondarev andreibondarev self-requested a review May 23, 2023 23:11
@andreibondarev
Copy link
Copy Markdown
Collaborator

@rickychilcott Thanks Ricky! Any chance that we can add a spec?

@rickychilcott
Copy link
Copy Markdown
Contributor Author

Sure. There's a lot of stubbing, and I'm actually not sure why @tabs from discord is actually running into this situation, but I've added test coverage for most scenarios!

Comment thread lib/dependency_helper.rb
@@ -1,23 +1,27 @@
# frozen_string_literal: true

VersionError = Class.new(ScriptError)
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.

We should move this out to a separate errors.rb file soon.

Copy link
Copy Markdown
Collaborator

@andreibondarev andreibondarev left a comment

Choose a reason for hiding this comment

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

Thank you for the changes, this is excellent!

@andreibondarev andreibondarev merged commit f141ca3 into patterns-ai-core:main May 24, 2023
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.

2 participants