Delayed job in Rails 4

Hello People,

One of my application being developed in Rails 4 needs delayed job, but
for some reason when I add this gem
https://github.com/collectiveidea/delayed_job to my gemfile and run
bundle, it says dependencies are not satisfied.

Seeing their forums, it looks as though they have fixed it for Rails 4.
Does any one know how to get it work on Rails 4?

post bundler output.

Hi,

We have a strong team working with new technologies in order to create
rich web applications using ROR development platform. Please contact @
info@andolasoft.com

Thanks
Andolasoft.com
408) 625-7188

I gem file I added this:

gem 'delayed_job_active_record'

Then when I bundled, this happened:

$ bundle
Fetching gem metadata from https://rubygems.org/
Fetching gem metadata from https://rubygems.org/
Resolving dependencies…
Bundler could not find compatible versions for gem "activesupport":
  In Gemfile:
    delayed_job_active_record (>= 0) ruby depends on
      activesupport (~> 3.0) ruby

    sass-rails (~> 4.0.0) ruby depends on
      activesupport (4.0.0)

You may need to run bundle update, or do things like blow away your Gemfile.lock, or if using rvm, delete your projects's gemset and rerun bundle.

I gem file I added this:

gem 'delayed_job_active_record'

Then when I bundled, this happened:

$ bundle
Fetching gem metadata from https://rubygems.org/
Fetching gem metadata from https://rubygems.org/
Resolving dependencies…
Bundler could not find compatible versions for gem "activesupport":
In Gemfile:
   delayed_job_active_record (>= 0) ruby depends on
     activesupport (~> 3.0) ruby

You are aware that ~>3.0 is like ">=3.0 AND <4"

   sass-rails (~> 4.0.0) ruby depends on
     activesupport (4.0.0)

Similarly, ~>4.0.0 means ">=4.0.0 AND <4.1"

Your delayed_job_active_record gem doesn't yet say that it works with 4.x. It might, but the author was (correctly!) conservative and needs to update the gem's dependencies.

-Rob

Looks like still no update for delayed_job_active_record.

Does anyone have news on this?

Got this working by using the Git version of both, delayed_job and
delayed_job_active_record.

In your Gemfile:
  gem 'delayed_job',
    git: 'git://github.com/collectiveidea/delayed_job.git'
  gem 'delayed_job_active_record',
    git: 'git://github.com/collectiveidea/delayed_job_active_record.git'