Unity Keeps Running iOS Resolver Trying to Install Cocao Pods
Unity keeps trying to run the iOS resolver to install Cocoapods.In the terminal, I have checked the following. I've reinstalled the following as well.Ruby version: ruby 3.2.2 (2023-03-30 revision...
View ArticleGetting Unauthorized while connecting to Azure Cognitive Search using Managed...
I am trying to access Azure Cognitive Search (ACS) using Managed Identity in Ruby On Rails application.Following is the script been usedCOGNITIVE_SEARCH_BASE_URL =...
View ArticleRansack: return nothing when form submitted and no search values entered
I have the search form and the results of the search posted on the same page.As I understand it: the default for ransack is that if a form is submitted with no values inputted into the search fields,...
View ArticleHow can I change the text color in the windows command prompt
I have a command line program, which outputs logging to the screen.I want error lines to show up in red. Is there some special character codes I can output to switch the text color to red, then switch...
View ArticleShrine - How to prevent Shrine from auto uploading files prior to validation...
This question is for anyone who has experience with the Ruby Gem Shrine for File Uploads.I am trying to scan file uploads for viruses using ClamAV. The scan works well however the file is already auto...
View Articlehow to concat string to array element in rails
I have an array as["first_name"]and I want to convert it to["user.first_name"]I cannot figure out how I can do this in rails.
View ArticleRuby: Convert to newline URI encode
I want to share sometext on whatsapp so I'm converting html to text otherwise it displays all the tags.Currently I'm using strip_tags to remove tags but that also removes breaks from the text. How do I...
View ArticleExport ipa file fails
Using Xcode v11.3 I try to export my .IPA file and get this error.An error occurred during export. The data couldn’t be read because of it isn’t in the correct formatThis is shown in...
View ArticleConvert links from a string to clickable links using Ruby/Rails
Using Ruby/Rails does anyone know how to take a large string that may contain some HTML elements and make them into links?This is an example:"Check out my video on you tube...
View ArticleIs it possible to navigate from feature file to step definition in VSCode
I am primarily using RubyMine for Cucumber/Ruby, and now, I'm getting my hands on VSCode, with which I'm able to run and debug test cases. I can't find a way to navigate from feature to step...
View ArticleRubocop, how to Disable/Enable cops on blocks of code
I will like to disable a cop for a specific block or method.I know it is possible to disable a cop for the whole project using .rubocop.yml, but I just want to deactivate the cop temporarily for a...
View ArticleHash "has_key" complexity in Ruby
I have a hash vars = {"a" => "Name", "b" => "Address" , "c" => "Phone"}. I want to check the performance of this line :vars.has_key(:b)?Is it O(1) or O(size of hash) ?
View ArticleERROR: While executing gem ... (Gem::Exception) OpenSSL is not available
I get this openssl error when trying to install/update any gem, although I have openSSL installed through brew install openssl.This can be frustrating but there is a way to address this problem.
View ArticleRuby: add_reference in migration throws error: Table has no foreign key for
I have this migration:class AddNotificationSettingToHistoricals < ActiveRecord::Migration[6.1] def change unless foreign_key_exists?(:sms_historicals, column: :notification_setting_id) add_reference...
View ArticleCan't install RMagick 2.16.0. Can't find MagickWand.h Mac OS Sonoma
I'm using Mac OS Sonoma 14.2.1ruby 2.6.5imagemagick@6: stable 6.9.13-4I'm trying to dogem install rmagick -v 2.16.0 catching itBuilding native extensions. This could take a while...ERROR: Error...
View Articlewhile running rake db:create
I am using ruby-3.1.0 and in mac this error is comingrake aborted!Aborting startup since the following application dependencies are not installed: identify this error is comingtherestill this error is...
View ArticleRspec - how to test retries when raising error without using additional gem?
My codedef make_error raise StandardError, 'err'endclass Bob def bar(thing) puts thing endenddef foo ['a', 'b'].each do |x| retry_counter = 5 begin bar(x) make_error rescue StandardError => e if...
View ArticleAdd custom attribute to SAML request to get it back on response
Is it possible with Ruby SAML (version 1.16.0) to send a custom attribute (such as the current URL) to the IdP to get in back as part of the response?Something likeresponse =...
View ArticleNo such file or directory @ rb_sysopen - tmp/pids/puma.pid
I'm trying to start puma, but at the last step it fails like this:16:38:09 web.1 | /home/ramonpm/.rvm/gems/ruby-2.2.7/gems/puma-3.9.1/lib/puma/launcher.rb:130:in `initialize': No such file or directory...
View ArticleTalking to a Ruby class’ instance of another class
This has probably been answered before, but I lack the proper vocabulary to find the solution using the board search.What I want to achieve is to calling methods of a class’ instance of another class.I...
View Article