4,370 questions
0 votes
2 answers
58 views
Directory file task with rake
I have a rake task that require_relatives a ruby file and then calls a method defined in that file. That method fills a directory with new files, creating the directory if necessary. If I make my rake ...
0 votes
2 answers
115 views
Calling OptionParser inside a Rake Task
Given the dummy rake task below require "optparse" namespace :a do namespace :b do task c: :environment do options = {} OptionParser.new do |parser| parser.banner ...
1 vote
1 answer
58 views
Wrong number of arguments in add_column() of sqlite3_adapter.rb
After an upgrade to RoR 3.4.2/8.0.2, migrating the db hits the following problem. When running rake db:migrate, I see the following error: ... == 20151121064619 AddUploadToEntries: migrating ==========...
0 votes
1 answer
55 views
Ruby: flip between require and require_relative in minitests
I'm working on a Ruby gem. I'm writing unit tests for it in minitest. Currently I'm using require_relative 'lib/my_gem' to load the gem scripts for test purposes. Eventually I'll be publishing the gem ...
0 votes
0 answers
102 views
ruby minitest puts() sometimes works, sometimes doesn't
I have a series of minitests that work just fine Ubuntu 22.04.2 Ruby ruby 3.2.3 minitest:4.25.4 rake:13.2.1 These are being kicked off with rake: bundle exec rake test $@ # rakefile: require 'rake/...
0 votes
0 answers
60 views
Redmine-Installation, "bundle exec rake generate_secret_token" ends in "cannot load such file -- manpages (LoadError)"
I set up a brand new Ubuntu 24.04.1 LTS (several times now) There is my root-user and there is a lower privileged redmine-user. All basics. I went straight forward to following the Redmine-...
0 votes
1 answer
50 views
What does the "Rake::Task["db:reset"].invoke" command do?
I'm trying to find the script called by this Ruby/Rake command to find out exactly what is does ? Rake::Task["db:reset"].invoke I trying to find the script defining this command : $ find /...
0 votes
1 answer
778 views
gitlab-backup create faile -> Backup::Error: gitaly-backup exit status 1
When I am using command "gitlab-backup create --trace" to backup my gitlab data, the errors as follows: {"level":"error","msg":"create: pipeline: 3 ...
1 vote
2 answers
121 views
How to see output of rake tasks after closing the terminal window?
I have a rake task that requires several hours to run. I logged into my server, ran there the rake task and watched the outputs generated inside the terminal window. Then my internet connection broke. ...
0 votes
2 answers
426 views
Extracting only technical keywords from a text using RAKE library in Python
I want to use rake to extract technical keywords from a job description that I've found on Linkedin, which looks like this: input = "In-depth understanding of the Python software development ...
0 votes
1 answer
393 views
How to verify a pact?
I have a pact published on a pact broker, and I need now to verify it with the provider. I started by using the pact-cli on a docker image, and using pact-provider-verifier I can connect to the ...
2 votes
0 answers
106 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 ...
0 votes
1 answer
863 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 ...
-2 votes
1 answer
70 views
How to resolve stopwords error in Rake along with many more?
"D:\Python files\venv\Scripts\python.exe" "D:/Python files/main.py" Traceback (most recent call last): File "D:\Python files\venv\lib\site-packages\nltk\corpus\util.py", ...
0 votes
1 answer
178 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 "...