我有一个 Rails 导入作业,它通过每当 gem 作为 cron 作业设置运行。它一直正常运行,直到我最近更新了该应用程序。现在,当 cron 作业尝试运行时,我们在日志中看到以下错误。如果我手动运行该任务,它将正确运行导入。
/usr/local/lib/ruby/2.6.0/bundler/spec_set.rb:91:in `block in materialize': Could not find rake-13.0.1 in any of the sources (Bundler::GemNotFound)
from /usr/local/lib/ruby/2.6.0/bundler/spec_set.rb:85:in `map!'
from /usr/local/lib/ruby/2.6.0/bundler/spec_set.rb:85:in `materialize'
from /usr/local/lib/ruby/2.6.0/bundler/definition.rb:170:in `specs'
from /usr/local/lib/ruby/2.6.0/bundler/definition.rb:237:in `specs_for'
from /usr/local/lib/ruby/2.6.0/bundler/definition.rb:226:in `requested_specs'
from /usr/local/lib/ruby/2.6.0/bundler/runtime.rb:108:in `block in definition_method'
from /usr/local/lib/ruby/2.6.0/bundler/runtime.rb:20:in `setup'
from /usr/local/lib/ruby/2.6.0/bundler.rb:107:in `setup'
from /usr/local/lib/ruby/2.6.0/bundler/setup.rb:20:in `<top (required)>'
from /usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:130:in `require'
from /usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:130:in `rescue in require'
from /usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:34:in `require'
from /usr/local/bundle/gems/spring-2.1.0/lib/spring/commands.rb:33:in `<module:Spring>'
from /usr/local/bundle/gems/spring-2.1.0/lib/spring/commands.rb:4:in `<top (required)>'
from /usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /usr/local/bundle/gems/spring-2.1.0/lib/spring/server.rb:9:in `<top …Run Code Online (Sandbox Code Playgroud) 我正在尝试将 Code Climate Test Reporter 添加到我们当前正在构建的 New Rails 应用程序中。
我在其他项目上设置了 Circleci,因此我修改了配置以适合该项目,但当 rspec 测试完成运行时,我继续收到以下错误。
69 file(s) with 100% coverage not shown
Traceback (most recent call last):
3: from /home/circleci/my-app/vendor/bundle/ruby/2.7.0/gems/simplecov-0.17.1/lib/simplecov/defaults.rb:29:in `block in <main>'
2: from /home/circleci/my-app/vendor/bundle/ruby/2.7.0/gems/simplecov-0.17.1/lib/simplecov.rb:205:in `run_exit_tasks!'
1: from /home/circleci/my-app/vendor/bundle/ruby/2.7.0/gems/simplecov-0.17.1/lib/simplecov.rb:224:in `process_result'
/home/circleci/my-app/vendor/bundle/ruby/2.7.0/gems/simplecov-0.17.1/lib/simplecov.rb:243:in `result_exit_status': undefined method `-' for nil:NilClass (NoMethodError)
Exited with code exit status 1
CircleCI received exit code 1
Run Code Online (Sandbox Code Playgroud)
有人见过这样的错误吗?如果是这样,对于让 Code Climate Test Reporter 与 CircleCI 正常工作有什么建议吗?
配置.yml
version: 2
jobs:
build:
parallelism: 1 # however many CPUs you need/pay for …Run Code Online (Sandbox Code Playgroud) 我是 Laravel 的新手,我们正在尝试将 ( https://github.com/TomLingham/Laravel-Searchy )添加到我们的项目 ( https://github.com/wvulibraries/rockefeller-css/tree/trying-searchy )允许搜索表中的多个字段。由于某种原因,我可以看到该软件包在供应商文件夹中作为 tom-lingham 我什至无法使用它。我在 DataViewController.php 第 79 行收到 FatalThrowableError: Class 'App\http\Controllers\Search' not Found。我按照github repo中的说明进行操作。任何建议,将不胜感激。
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
// Import the table and collection models
use App\Table;
use App\Collection;
use Illuminate\Support\Facades\Auth;
/**
* The controller is responsible for showing the cards data
*/
class DataViewController extends Controller {
/**
* Constructor that associates the middlewares
*
* @return void
*/
public function __construct(){
// Middleware to check for authenticated
$this->middleware('auth'); …Run Code Online (Sandbox Code Playgroud)