0

我正在使用 Rails 5.0.1。我想运行一个独立于我的 Rails 服务器的后台进程。我认为工作插件会帮助我 - https://github.com/ascarter/workling。但是,将这个 Gem 添加到我的 Gemfile

gem 'workling'

并重新启动我的服务器,我收到此错误

Gem Load Error is: uninitialized constant ActiveSupport::CoreExtensions
Backtrace for gem load error is:
/Users/davea/.rvm/gems/ruby-2.4.0/gems/workling-0.4.9.9/lib/workling.rb:16:in `<class:Hash>'
/Users/davea/.rvm/gems/ruby-2.4.0/gems/workling-0.4.9.9/lib/workling.rb:15:in `<top (required)>'
/Users/davea/.rvm/gems/ruby-2.4.0@global/gems/bundler-1.13.7/lib/bundler/runtime.rb:91:in `require'
/Users/davea/.rvm/gems/ruby-2.4.0@global/gems/bundler-1.13.7/lib/bundler/runtime.rb:91:in `block (2 levels) in require'
/Users/davea/.rvm/gems/ruby-2.4.0@global/gems/bundler-1.13.7/lib/bundler/runtime.rb:86:in `each'
/Users/davea/.rvm/gems/ruby-2.4.0@global/gems/bundler-1.13.7/lib/bundler/runtime.rb:86:in `block in require'
/Users/davea/.rvm/gems/ruby-2.4.0@global/gems/bundler-1.13.7/lib/bundler/runtime.rb:75:in `each'
/Users/davea/.rvm/gems/ruby-2.4.0@global/gems/bundler-1.13.7/lib/bundler/runtime.rb:75:in `require'
/Users/davea/.rvm/gems/ruby-2.4.0@global/gems/bundler-1.13.7/lib/bundler.rb:106:in `require'
/Users/davea/Documents/workspace/myproject/config/application.rb:7:in `<top (required)>'
/Users/davea/.rvm/gems/ruby-2.4.0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:156:in `require'
/Users/davea/.rvm/gems/ruby-2.4.0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:156:in `require_application_and_environment!'
/Users/davea/.rvm/gems/ruby-2.4.0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:77:in `console'
/Users/davea/.rvm/gems/ruby-2.4.0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
/Users/davea/.rvm/gems/ruby-2.4.0/gems/railties-5.0.2/lib/rails/commands.rb:18:in `<top (required)>'
bin/rails:4:in `require'
bin/rails:4:in `<main>'
4

1 回答 1

0

workling您发布的最后一次提交是在 2008 年 6 月。RubyGems使用的是从2009 年 2 月开始的。无论哪种方式,RIP 并且尝试使其与 Rails 5 应用程序一起工作是没有意义的 :( 我强烈建议检查年轻且积极维护的 gem,例如sidekiqresquedelayed_job或许多其他。

于 2017-05-26T14:21:23.240 回答