Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark ClimateControl as a dependency (rather than dev dependency) #37

Merged
merged 2 commits into from
Apr 7, 2021

Conversation

ChrisBAshton
Copy link
Contributor

A rake task was added in 501d7ad which relies on the ClimateControl gem. If downstream apps attempt to run the task and don't have ClimateControl installed to their own projects, it will fail:
#35 (comment)

It should be possible to remove the ClimateControl dependency altogether by refactoring the rake task, but that can be done in a later PR.

Trello: https://trello.com/c/rnfUFP5o/2453-experiment-with-common-configuration-for-pact-tests-timebox-2-days

Verified

This commit was signed with the committer’s verified signature. The key has expired.
ChrisBAshton Chris Ashton
A rake task was added in 501d7ad
which relies on the ClimateControl gem. If downstream apps attempt
to run the task and don't have ClimateControl installed to their
own projects, it will fail:
#35 (comment)

It should be possible to remove the ClimateControl dependency
altogether by refactoring the rake task, but that can be done in
a later PR.

Trello: https://trello.com/c/rnfUFP5o/2453-experiment-with-common-configuration-for-pact-tests-timebox-2-days

Verified

This commit was signed with the committer’s verified signature. The key has expired.
ChrisBAshton Chris Ashton
This fixes an issue whereby some apps may face broken builds when
trying to run the `pact:verify:branch` rake task.
@ChrisBAshton ChrisBAshton requested a review from brucebolt April 7, 2021 10:54
@ChrisBAshton ChrisBAshton merged commit 8dbbe81 into master Apr 7, 2021
@ChrisBAshton ChrisBAshton deleted the fix-pact-gemspec-again branch April 7, 2021 12:36
@kevindew
Copy link
Member

kevindew commented Apr 8, 2021

Thanks @ChrisBAshton. I wonder if, when we do the work to remove climate_control, that we can make this gem also not require pact and have a conditional where it only adds this task when pact is installed on a repo.

My rationale is: it seems weird for apps to have a pact task without having pact available and pact is a pretty heavy dependency adding about another 15 gems by including it (one of those being rspec which is itself quite a hefty dependency)

ChrisBAshton added a commit that referenced this pull request Apr 15, 2021

Verified

This commit was signed with the committer’s verified signature. The key has expired.
ChrisBAshton Chris Ashton
This removes a Pact test branch rake task that was never used.
See #34, #36 and #37 for the code that was added, which is now
removed in this commit.

Trello: https://trello.com/c/rnfUFP5o/2453-experiment-with-common-configuration-for-pact-tests-timebox-2-days
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.

None yet

3 participants