Project

General

Profile

Actions

Defect #14119

closed

Conflict between mocha 0.10.5 and 0.13.3

Added by Yannick Recht almost 11 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

Hi everybody,

I'm trying to upgrade from Redmine 2.2.2 to 2.3.1 and when I try to generate the secret token I get the following error message:

Bundler could not find compatible versions for gem "mocha":
  In Gemfile:
    shoulda (~> 3.3.2) ruby depends on
      mocha (= 0.10.5) ruby

    mocha (0.13.3)

I have already read the following topics, but without succes:

I'm running with:

Ruby version              1.9.3 (i686-linux)
RubyGems version          1.8.23
Rails                     3.2.13
Database adapter          Mysql2

No Redmine plugin installed.

Does somebody have any clue about what went wrong?

Actions #1

Updated by Etienne Massip almost 11 years ago

  • Status changed from New to Closed
  • Resolution set to Invalid

You forgot to add --without test development arguments when running bundle install.

Actions #2

Updated by Yannick Recht almost 11 years ago

Thank you very much, I got further with that clue.

I've just forgotten to tell that problem happens while running:

rake generate_secret_token

At the present time I "removed" the test and development section from the Gemfile. It seems to work.

So I have one last question, do I have to modify application.rb to run bundle install with "--without test development" ?

Actions #3

Updated by Etienne Massip almost 11 years ago

Yannick Recht wrote:

So I have one last question, do I have to modify application.rb to run bundle install with "--without test development" ?

Absolutely not and you should never have to modify this file, it's part of the application code.

If you already installed your bundle without specifying the "--without" argument, you can edit your <redmine_installation_directory>/.bundle/config file and add the following line:

BUNDLE_WITHOUT: test:development

Then run bundle install again.

Actions #4

Updated by Yannick Recht almost 11 years ago

Thank you for your help.

Actions

Also available in: Atom PDF