Skip to content

Loosen dependency on retriable gem#54

Merged
bbuchalter merged 1 commit into
masterfrom
loosen_retriable_version_dep
Sep 4, 2018
Merged

Loosen dependency on retriable gem#54
bbuchalter merged 1 commit into
masterfrom
loosen_retriable_version_dep

Conversation

@bbuchalter

@bbuchalter bbuchalter commented Aug 31, 2018

Copy link
Copy Markdown

Given:

When:

Then:

  • You get this PR!

The primary feature that we care about from the pre-3.0 release is kamui/retriable#24
which targets subclasses of exceptions. Since we're loosing that, we'll just duplicate the error classes from which we might expect the errors we want to retry.

Given:
* retries are not configurable from outside the library yet (#53)
* Shopify is the primary consumer of this library

When:
* Shopify cannot currently use retriable >=3 (https://github.com/Shopify/shopify/pull/167954)

Then:
* You get this PR!

The primary feature that we care about from the pre-3.0 release is kamui/retriable#24
which targets subclasses of exceptions. Since we're loosing that, we'll just duplicate the error classes from
which we might expect the errors we want to retry.
@bbuchalter bbuchalter force-pushed the loosen_retriable_version_dep branch from c909037 to 2c707c3 Compare August 31, 2018 19:56
Comment thread lhm.gemspec
s.required_ruby_version = '>= 2.3.0'

s.add_dependency 'retriable', '>= 3.0.0'
s.add_dependency 'retriable'

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This seems a tiny bit dangerous, but I suspect if someone is running a ridiculously old retriable they will come to us with errors anyway.

@bbuchalter bbuchalter merged commit 10246a1 into master Sep 4, 2018
@bbuchalter bbuchalter deleted the loosen_retriable_version_dep branch September 4, 2018 21:29
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.

4 participants