Open archonwang opened 8 years ago
@nmikhno when I installed the plugin it occured an error
bundle exec rake redmine:plugins:migrate NAME=redmine_estimates RAILS_ENV=production
Support for calling #default_scope without a block is removed. For example instead of `default_scope where(color: 'red')`, please use `default_scope { where(color: 'red') }`. (Alternatively you can just redefine self.default_scope.)
/usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/activerecord-4.2.7.1/lib/active_record/scoping/default.rb:87:in `default_scope'
/opt/redmine-3.3/plugins/redmine_estimates/app/models/estimate_entry.rb:16:in `<class:EstimateEntry>'
/opt/redmine-3.3/plugins/redmine_estimates/app/models/estimate_entry.rb:1:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in `require'
/usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in `block in require'
/usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:240:in `load_dependency'
/usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in `require'
/usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:360:in `require_or_load'
/usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:494:in `load_missing_constant'
/usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:184:in `const_missing'
/usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:526:in `load_missing_constant'
/usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:184:in `const_missing'
/opt/redmine-3.3/plugins/redmine_estimates/lib/issue_query_patch.rb:13:in `block in included'
/opt/redmine-3.3/plugins/redmine_estimates/lib/issue_query_patch.rb:7:in `class_eval'
/opt/redmine-3.3/plugins/redmine_estimates/lib/issue_query_patch.rb:7:in `included'
/opt/redmine-3.3/plugins/redmine_estimates/init.rb:15:in `include'
/opt/redmine-3.3/plugins/redmine_estimates/init.rb:15:in `block in <top (required)>'
/usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:446:in `instance_exec'
/usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:446:in `block in make_lambda'
/usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:192:in `call'
/usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:192:in `block in simple'
/usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:504:in `call'
/usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:504:in `block in call'
/usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:504:in `each'
/usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:504:in `call'
/usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
/usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_prepare_callbacks'
/usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
/usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/reloader.rb:83:in `prepare!'
/usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/reloader.rb:55:in `prepare!'
/usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/railties-4.2.7.1/lib/rails/application/finisher.rb:50:in `block in <module:Finisher>'
/usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/railties-4.2.7.1/lib/rails/initializable.rb:30:in `instance_exec'
/usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/railties-4.2.7.1/lib/rails/initializable.rb:30:in `run'
/usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/railties-4.2.7.1/lib/rails/initializable.rb:55:in `block in run_initializers'
/usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/railties-4.2.7.1/lib/rails/initializable.rb:54:in `run_initializers'
/usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/railties-4.2.7.1/lib/rails/application.rb:352:in `initialize!'
/opt/redmine-3.3/config/environment.rb:14:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in `require'
/usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in `block in require'
/usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:240:in `load_dependency'
/usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in `require'
/usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/railties-4.2.7.1/lib/rails/application.rb:328:in `require_environment!'
/usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/railties-4.2.7.1/lib/rails/application.rb:457:in `block in run_tasks_blocks'
Tasks: TOP => redmine:plugins:migrate => environment
(See full trace by running task with --trace)
And I have similar problem. Redmine version 3.2.2.stable Ruby version 1.9.3-p484 (2013-11-22) [x86_64-linux] Rails version 4.2.5.2
Log: redmine@websecret:~/redmine/plugins$ bundle exec rake redmine:plugins:migrate RAILS_ENV=production (in /home/redmine/redmine) DEPRECATION WARNING: Sass 3.5 will no longer support Ruby 1.9.3. Please upgrade to Ruby 2.0.0 or greater as soon as possible.
rake aborted!
ArgumentError: Support for calling #default_scope without a block is removed. For example instead of default_scope where(color: 'red')
, please use default_scope { where(color: 'red') }
. (Alternatively you can just redefine self.default_scope.)
/var/lib/gems/1.9.1/gems/activerecord-4.2.5.2/lib/active_record/scoping/default.rb:87:in default_scope' /home/redmine/redmine/plugins/redmine_estimates/app/models/estimate_entry.rb:16:in
<top (required)>' /var/lib/gems/1.9.1/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:274:in
require'
/var/lib/gems/1.9.1/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:274:in block in require' /var/lib/gems/1.9.1/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:240:in
load_dependency'
/var/lib/gems/1.9.1/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:274:in require' /var/lib/gems/1.9.1/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:360:in
require_or_load'
/var/lib/gems/1.9.1/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:494:in load_missing_constant' /var/lib/gems/1.9.1/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:184:in
const_missing'
/var/lib/gems/1.9.1/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:526:in load_missing_constant' /var/lib/gems/1.9.1/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:184:in
const_missing'
/home/redmine/redmine/plugins/redmine_estimates/lib/issue_query_patch.rb:13:in block in included' /home/redmine/redmine/plugins/redmine_estimates/lib/issue_query_patch.rb:7:in
class_eval'
/home/redmine/redmine/plugins/redmine_estimates/lib/issue_query_patch.rb:7:in included' /home/redmine/redmine/plugins/redmine_estimates/init.rb:15:in
include'
/home/redmine/redmine/plugins/redmine_estimates/init.rb:15:in block in <top (required)>' /var/lib/gems/1.9.1/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:446:in
instance_exec'
/var/lib/gems/1.9.1/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:446:in block in make_lambda' /var/lib/gems/1.9.1/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:192:in
call'
/var/lib/gems/1.9.1/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:192:in block in simple' /var/lib/gems/1.9.1/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:504:in
call'
/var/lib/gems/1.9.1/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:504:in block in call' /var/lib/gems/1.9.1/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:504:in
each'
/var/lib/gems/1.9.1/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:504:in call' /var/lib/gems/1.9.1/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:92:in
__run_callbacks__'
/var/lib/gems/1.9.1/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:778:in _run_prepare_callbacks' /var/lib/gems/1.9.1/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:81:in
run_callbacks'
/var/lib/gems/1.9.1/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/reloader.rb:83:in prepare!' /var/lib/gems/1.9.1/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/reloader.rb:55:in
prepare!'
/var/lib/gems/1.9.1/gems/railties-4.2.5.2/lib/rails/application/finisher.rb:50:in block in <module:Finisher>' /var/lib/gems/1.9.1/gems/railties-4.2.5.2/lib/rails/initializable.rb:30:in
instance_exec'
/var/lib/gems/1.9.1/gems/railties-4.2.5.2/lib/rails/initializable.rb:30:in run' /var/lib/gems/1.9.1/gems/railties-4.2.5.2/lib/rails/initializable.rb:55:in
block in run_initializers'
/var/lib/gems/1.9.1/gems/railties-4.2.5.2/lib/rails/initializable.rb:54:in run_initializers' /var/lib/gems/1.9.1/gems/railties-4.2.5.2/lib/rails/application.rb:352:in
initialize!'
/home/redmine/redmine/config/environment.rb:14:in <top (required)>' /var/lib/gems/1.9.1/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:274:in
require'
/var/lib/gems/1.9.1/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:274:in block in require' /var/lib/gems/1.9.1/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:240:in
load_dependency'
/var/lib/gems/1.9.1/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:274:in require' /home/redmine/redmine/plugins/a_common_libs/lib/tasks/a_common_libs.rake:1:in
<top (required)>'
/var/lib/gems/1.9.1/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:268:in load' /var/lib/gems/1.9.1/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:268:in
block in load'
/var/lib/gems/1.9.1/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:240:in load_dependency' /var/lib/gems/1.9.1/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:268:in
load'
/home/redmine/redmine/lib/tasks/redmine.rake:186:in block in <top (required)>' /home/redmine/redmine/lib/tasks/redmine.rake:186:in
each'
/home/redmine/redmine/lib/tasks/redmine.rake:186:in <top (required)>' /var/lib/gems/1.9.1/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:268:in
load'
/var/lib/gems/1.9.1/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:268:in block in load' /var/lib/gems/1.9.1/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:240:in
load_dependency'
/var/lib/gems/1.9.1/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:268:in load' /var/lib/gems/1.9.1/gems/railties-4.2.5.2/lib/rails/engine.rb:658:in
block in run_tasks_blocks'
/var/lib/gems/1.9.1/gems/railties-4.2.5.2/lib/rails/engine.rb:658:in each' /var/lib/gems/1.9.1/gems/railties-4.2.5.2/lib/rails/engine.rb:658:in
run_tasks_blocks'
/var/lib/gems/1.9.1/gems/railties-4.2.5.2/lib/rails/application.rb:452:in run_tasks_blocks' /var/lib/gems/1.9.1/gems/railties-4.2.5.2/lib/rails/engine.rb:453:in
load_tasks'
/var/lib/gems/1.9.1/gems/railties-4.2.5.2/lib/rails/railtie.rb:194:in public_send' /var/lib/gems/1.9.1/gems/railties-4.2.5.2/lib/rails/railtie.rb:194:in
method_missing'
/home/redmine/redmine/Rakefile:7:in `<top (required)>'
I installed it on Redmine 3.3.X and found it conflict with other plugins the error log is