Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
2 votes
0 answers
52 views

Is loading structure.sql using rake an atomic transaction?

Is loading structure.sql via rake atomic? If I load structure.sql using this command and it fails because of an error within the structure.sql file: $ bundle exec rake db:schema:load RAILS_ENV=test ...
Jacob Miller's user avatar
0 votes
1 answer
406 views

How to run paths in specific file or run only specific path to test swagger with rswag

I have a project in which many API calls are defined with rswag to generate the open API documentation. In this project, I categorized my endpoint paths in separate ruby files. My question is, When I ...
nipuna's user avatar
  • 3,977
0 votes
0 answers
64 views

Capistrano task not released console after execution of cli commend

Rails 7. Ruby 3.1.0 App has Capistrano for deployment in deployment we have many rake taks when we run individual task all run fine but when I so full run with cap deploy after few task it get stuck ...
jayesh's user avatar
  • 2,472
0 votes
0 answers
46 views

Cannot run rake task in production, could not find stringio-3.0.9

I've got a sinatra app which I deploy using capistrano, there is a rake task which works on development but not on production. I get the following error when manually running rake in production; $ ...
map7's user avatar
  • 5,116
0 votes
1 answer
73 views

How do I spy on objects within the context of a rake task with rspec?

I have the following setup: class Simple def self.test; end end task a_simple_job: :environment do counter = 0 while counter < 2 Simple.test counter += 1 end end require "...
ohhh's user avatar
  • 697
0 votes
0 answers
49 views

Overwrite rake tasks in sinatra project and activerecord

I have a Sinatra fun project and I want to improve my rake tasks so that everytime I create a new migration and migrate it I don't have to manually run them with RACK_ENV=test bundle exec rake db:...
jedi's user avatar
  • 2,121
0 votes
1 answer
174 views

Run Ceedling from Rakefile

I am using ceedling to write unit tests. I also utilize a rakefile at the top level of my project to automate a variety of tasks. I would like to also use it to automate running ceedling. When I ...
user2899525's user avatar
0 votes
1 answer
77 views

How to run all the test files in a directory with Rake, from the command line?

I have some test folder: app/ test/ folder1/ test1.rb test2.rb folder2/ test2_1.rb test2_2.rb test2_3.rb I want to run only the tests from the 'folder2' ...
Philippe Perret's user avatar
2 votes
1 answer
46 views

How to disable "smart stuff" in Ruby plugin for intellij idea

I use Ruby and Rake for a number of things. I have tried using the Ruby plugin for intellij mainly for the block comment '#' insertion and syntax highlighting. But it does way TOO much "fancy ...
peterk's user avatar
  • 5,334
0 votes
1 answer
490 views

Rack::Chunked is deprecated and will be removed in Rack 3.1

When I start my rails app I get: /Users/dorianmariefr/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/rack-3.0.7/lib/rack/chunked.rb:6: warning: Rack::Chunked is deprecated and will be removed in ...
Dorian's user avatar
  • 8,962
0 votes
1 answer
199 views

After running $ rake, and avoid rake aborted! `block in <top (required)>'

Following exercise at https://gitimmersion.com/lab_21.html inside folder lib I created two files: a) hello.rb containing: # Default is "World" # Author: Jim Weirich ([email protected]) name =...
mairo's user avatar
  • 155
1 vote
1 answer
181 views

I'm start using Ruby Koans, but rake is aborting

I think I don't have something installed correctly, because I am getting to following errors: when I enter rake gen I get rake aborted! Don't know how to build task 'gen' (See the list of available ...
counterapparatus's user avatar
0 votes
0 answers
61 views

Undefined method 'rake' for rake task with Rufus Scheduler

having some trouble setting up Rufus Schedular to perform a rake task. Using Rufus-schedular rather then whenever gem as on windows. /lib/tasks/api.rake require 'rake' namespace :api do desc "...
ldthompson's user avatar
0 votes
2 answers
620 views

Rails Runner or Rake task can't trigger Active Job job

I have setup a Rails 7 project running in Docker. Using the whenever gem (using cron) I tried to execute either a rails runner task a rake task Both shall do the same thing: call a class method ...
derhottevomdorf's user avatar
0 votes
0 answers
300 views

Rails 6: Getting warning: previous definition of Socket was here rails aborted! NameError: uninitialized constant Rack::Cors

When I try rails db:create I get warning: previous definition of Socket was here rails aborted! NameError: uninitialized constant Rack::Cors I am trying to create db . I am new to rails so am not sure ...
hey_aash's user avatar

15 30 50 per page
1
2 3 4 5
142