Note that there are some explanatory texts on larger screens.

plurals
  1. PORails 3.2: Trying to use 'Whenever' gem but log file keeps giving: Could not find multi_json-1.1.0 in any of the sources (Bundler::GemNotFound) error
    primarykey
    data
    text
    <p>I am trying to use the Whenever gem to schedule a weekly task for sending out an email. I first tested to make the email would actually be sent by making a method call every time a User was updated. So now, I'm trying to have the email sent weekly instead of with every update, however I keep getting the following error in my cron.log file:</p> <pre><code>Could not find multi_json-1.1.0 in any of the sources (Bundler::GemNotFound) </code></pre> <p>I've done quite a bit of research and haven't found anything yet, any help would be great. I'll post the relevant code below:</p> <p><strong>app/mailers/weekly_digest_test_mailer.rb</strong></p> <pre><code>class WeeklyDigestTestMailer &lt; ActionMailer::Base default from: "from@example.com" def send_email(user) @user = user @last_question = @user.questions.last.description mail to: @user.email, subject: "This is a test email" end end </code></pre> <p><strong>app/models/user.rb</strong></p> <pre><code>def self.send_email_to_user WeeklyDigestTestMailer.send_email(self).deliver end </code></pre> <p><strong>config/schedule.rb</strong></p> <pre><code>every 1.minute do runner "User.send_email_to_user", :environment =&gt; 'development', :output =&gt; 'log/cron.log' end </code></pre> <p><strong>Gemfile</strong></p> <pre><code>source 'https://rubygems.org' gem 'rails', '3.2.0' gem "bootstrap-tooltip-rails", "~&gt; 0.1" gem 'whenever', :require =&gt; false group :production do gem "exception_notification", "~&gt; 2.5.2", :require =&gt; 'exception_notifier' gem "mysql", "~&gt; 2.8.1" end group :assets do gem 'sass-rails', '~&gt; 3.2.3' gem 'coffee-rails', '~&gt; 3.2.1' gem 'uglifier', '&gt;= 1.0.3' end gem "jquery-rails" gem "devise", "~&gt; 2.0.4" gem 'gauge', git: 'git@github.com:AgilionApps/gauges.git' gem "capistrano" gem "capistrano-ext" group :development do gem "awesome_print", "~&gt; 1.0.2" gem "mail", "2.4.1" end group :test do gem "minitest", "~&gt; 2.11.2" gem "turn", "~&gt; 0.9.3" gem "mocha", "~&gt; 0.10.4" end group :test, :development do gem "sqlite3", "~&gt; 1.3.5" end group :staging do # gem "pg", "~&gt; 0.13.1" end </code></pre> <p><strong>Bundle install output:</strong></p> <pre><code>Using rake (0.9.2.2) Using i18n (0.6.0) Using multi_json (1.1.0) Using activesupport (3.2.0) Using builder (3.0.0) Using activemodel (3.2.0) Using erubis (2.7.0) Using journey (1.0.3) Using rack (1.4.1) Using rack-cache (1.1) Using rack-test (0.6.1) Using hike (1.2.1) Using tilt (1.3.3) Using sprockets (2.1.2) Using actionpack (3.2.0) Using mime-types (1.17.2) Using polyglot (0.3.3) Using treetop (1.4.10) Using mail (2.4.1) Using actionmailer (3.2.0) Using arel (3.0.2) Using tzinfo (0.3.31) Using activerecord (3.2.0) Using activeresource (3.2.0) Using ansi (1.4.2) Using awesome_print (1.0.2) Using bcrypt-ruby (3.0.1) Using bundler (1.1.4) Using rack-ssl (1.3.2) Using json (1.6.5) Using rdoc (3.12) Using thor (0.14.6) Using railties (3.2.0) Using rails (3.2.0) Using bootstrap-tooltip-rails (0.1) Using highline (1.6.11) Using net-ssh (2.3.0) Using net-scp (1.0.4) Using net-sftp (2.0.5) Using net-ssh-gateway (1.1.0) Using capistrano (2.11.2) Using capistrano-ext (1.2.1) Using chronic (0.6.7) Using coffee-script-source (1.2.0) Using execjs (1.3.0) Using coffee-script (2.2.0) Using coffee-rails (3.2.2) Using orm_adapter (0.0.6) Using warden (1.1.1) Using devise (2.0.4) Using exception_notification (2.5.2) Using gauge (0.0.2) from git@github.com:AgilionApps/gauges.git (at master) Using jquery-rails (2.0.0) Using metaclass (0.0.1) Using minitest (2.11.2) Using mocha (0.10.4) Using mysql (2.8.1) Using sass (3.1.15) Using sass-rails (3.2.4) Using sqlite3 (1.3.5) Using turn (0.9.3) Using uglifier (1.2.3) Using whenever (0.7.3) Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed. </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload