Git Product home page Git Product logo

Comments (4)

bobbywilson0 avatar bobbywilson0 commented on August 25, 2024

Hey Gerry, I threw in the rake task originally. I will admit that I didn't test it within the context of a Rails 3 app, I was also using Rake 0.8.x when I implemented it.

from queue_classic.

ryandotsmith avatar ryandotsmith commented on August 25, 2024

@Bobbyw, I think @gerry3 is talking about lib/queue_classic/tasks.rb and not the Rakefile in the project's root dir.

@gerry, I just tested my example rails app and didn't run into this issue. Does your setup look like this: https://github.com/ryandotsmith/queue_classic_example/blob/master/Rakefile ?

from queue_classic.

gerry3 avatar gerry3 commented on August 25, 2024

Ok, that works! The key is to require 'queue_classic/tasks' in the Rakefile which makes sense. I think I have seen that before, but our Rakefile doesn't have any other examples of it, so I didn't think to try it. I studied the example Rails app a lot, but must've missed that part of the Rakefile.

Any thoughts on why these tasks don't show up in the list when I run rake -T ? Is that expected? I can see the RSpec tasks, but that gem might be installed as a plugin or be special is some other way...

from queue_classic.

ryandotsmith avatar ryandotsmith commented on August 25, 2024

Not sure about rake -T I would love to see QC related tasks show up there. Feel free to submit a feature ;)

Also, I added Rakefile to the list of important files to look at in the readme of the rails example:
ryandotsmith/queue_classic_example@8abf651

from queue_classic.

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.