Your error is in this line:
require 'log4r', :version=>'=1.1.10'
I'm not sure what you tried to do, but require
receives a single argument. The error wrong number of arguments
means that you are trying to call a method with an unexpected number of arguments. (2 for 1)
means you are trying to call a method with one argument with two.
The only method call in initialize
you are calling with two arguments is require
- so this is the method in question.
require
usage is in most cases at the top of ruby files, telling the ruby interpreter which other ruby files should be loaded before loading this file.
require
does not declare gem dependencies, so gem versions are irrelevant here. You can put these in the Gemfile
file.