isaacseymour / activejob-retry

Automatic retries for ActiveJob
MIT License
138 stars 14 forks source link

Rails 5.1 support #44

Closed Throne3d closed 7 years ago

Throne3d commented 7 years ago

Hi there! I haven't actually tested this gem, but as Rails doesn't seem to support retry functionality like this, I plan to use it.

I'm also planning on upgrading to Rails 5.1 shortly, though, and as it (Rails 5.1) was released back in April I was wondering if this gem supported it? It doesn't mention that it does on the README (whereas it does mention Rails 4.2 and 5.0, suggesting it doesn't), but it looks like this was last updated in February.

I suppose if it doesn't work on Rails 5.1, this is a request to add that, and if it does, this is a request to update the documentation to reflect that?

Thanks!

isaacseymour commented 7 years ago

Hey, I've been using this in production at work with rails 5.1 pretty much since rails 5.1 was released, and it's been working fine. I'll update the docs this weekend. Thanks for raising this!

On Fri, 22 Sep 2017, 19:58 Edward Jones notifications@github.com wrote:

Hi there! I haven't actually tested this gem, but as Rails doesn't seem to support retry functionality like this, I plan to use it.

I'm also planning on upgrading to Rails 5.1 shortly, though, and as it (Rails 5.1) was released back in April I was wondering if this gem supported it? It doesn't mention that it does on the README (whereas it does mention Rails 4.2 and 5.0, suggesting it doesn't), but it looks like this was last updated in February.

I suppose if it doesn't work on Rails 5.1, this is a request to add that, and if it does, this is a request to update the documentation to reflect that?

Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/isaacseymour/activejob-retry/issues/44, or mute the thread https://github.com/notifications/unsubscribe-auth/ABv8QdweRyXiSOzVFaZw72KOO96HZTrjks5slANQgaJpZM4PhG1o .

Throne3d commented 7 years ago

Hm. I attempted to do it myself (and also revert 668076d4c4961d118ad817a25bb0c34caca05733 as it's no longer applicable), but:

  1. The gemspec file complains about the use of Date (I fixed this by manually requiring it up the top)
  2. Rubocop seems to be failing on files that previously passed; perhaps they added new cops since it was last run?
  3. bundle exec rake test appears to be exiting with code 1 on some tests (for me, locally, there are two failures and two errors, as here)

Here's the relevant Travis: https://travis-ci.org/Throne3d/activejob-retry/builds/278751637

I think I'll just leave it up to you, since I'm not sure which of the cops you want to fix and which you want to ignore, nor how to go about fixing the tests. It might also be worth testing against Ruby 2.4.1 instead of 2.4.0 (and there might be more recent versions of the other Ruby minor versions).

Thanks for the quick response, though!

isaacseymour commented 7 years ago

Okay, I've removed the integration specs (they were originally copy-pasted from the ActiveJob tests but haven't been updated in ages so probably aren't valuable anymore), and updated all the patch versions in the Travis spec. Now testing against Rails 4.2, 5.0, 5.1. Thanks for raising this :)

Throne3d commented 7 years ago

Thanks!