Git Product home page Git Product logo

Comments (10)

bmabey avatar bmabey commented on May 28, 2024

Minofare has submitted a pull request for this: http://github.com/minofare/email-spec/commits/e36cce7c2afd826c8888dbec82ffc3ee6a47a6de

from email-spec.

bmabey avatar bmabey commented on May 28, 2024

I'm going to merge this in but I want to tag the previous releases to the correct delayed_job version. What version of DJ introduced the breaking changes?

from email-spec.

bmabey avatar bmabey commented on May 28, 2024

I think the breaking version is 1.8.5. Please correct me if I'm wrong.

from email-spec.

minofare avatar minofare commented on May 28, 2024

I made the change when collectiveidea/delayed_job was 1.8.4, I did some research and the work_off method was implemented here:

collectiveidea/delayed_job@31cbb07

from email-spec.

bmabey avatar bmabey commented on May 28, 2024

After upgrading my delayed job I still get errors with your patch:

Feature: Delayed Job support
  In order for developers using delayed_job to test emails
  I want to be able to provide a compatibility layer, which
  should run all delayed jobs before checking email boxes
  In order to populate deliveries done via send_later

  Scenario: Newsletter                                       
    Given no emails have been sent                          
      undefined method `work_off' for class `Delayed::Worker' (NameError)
      /Users/bmabey/Programming/ruby/email-spec/lib/email_spec/background_processes.rb:19:in `public'
      /Users/bmabey/Programming/ruby/email-spec/lib/email_spec/background_processes.rb:19:in `send'
      /Users/bmabey/Programming/ruby/email-spec/lib/email_spec/background_processes.rb:19:in `reset_mailer'
      ./features/step_definitions/email_steps.rb:44:in `/^(?:a clear email queue|no emails have been sent)$/'
      features/delayed_job.feature:8:in `Given no emails have been sent'

I've merged in the changes but I don't want to make a release until this is passing. It is probably something I am doing wrong on my end. Would someone mind grabbing the code from github and running rake? To run just the delayed job feature you can say cd examples/rails_root/ && cucumber features/delayed_job.feature. (You will need to run rake from the root before you just run the delayed_job.feature.)

from email-spec.

KieranP avatar KieranP commented on May 28, 2024

I'm working through this and a few other issues now. Stay tuned.

from email-spec.

KieranP avatar KieranP commented on May 28, 2024

Fix available at http://github.com/KieranP/email-spec/commit/51c8c8e916c320064d4211740f426827ab31e6ed

from email-spec.

KieranP avatar KieranP commented on May 28, 2024

For the ticket record, the errors Ben was getting were because the delayed job with the changes isn't release yet. We really should support both versions. My patch does that.

from email-spec.

minofare avatar minofare commented on May 28, 2024

Thanks for the fix Kieran!

from email-spec.

bmabey avatar bmabey commented on May 28, 2024

Merged in Kieran's fixes and released 0.6.0.

from email-spec.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.