how i resolve cocoaPods installing isssue
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/yaml.rb:3: warning: It seems your ruby installation is missing psych (for YAML output).To eliminate this warning, please...
View ArticleTesting the contents of an array inside a hash
In Rspec I am testing a hash that contains an array like this:subject { described_class.call(build: build_one, user:)it 'returns the correct data' do response = subject expected_response = { id:...
View ArticleHow do I run Ruby for MacOS in Visual Studio Code (possible compiler errors)?
I got a little problem to run Ruby in vscode.I already made sure everything is correctly installed,(ruby -v gave: ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin20]konan@*******s-Air...
View ArticleHow to access class attribute, which was set by class_exec()
This is what I'm trying to do:class Foo; endFoo.class_exec do class_variable_set(:@@x, 42) def get @@x # runtime error here! endendputs Foo.new.getI'm getting (Ruby 3.2.1):$ ruby a.rba.rb:6:in `get':...
View ArticleCan't Install latest version of Cocoapods
I'm not sure how, but I managed to install version 1.8.4 of cocoapods. However, I can't update it. I need to update it because the pods for the firebase google sign in require FirebaseAnalytics, and...
View Articlecannot load such file -- ffi (LoadError) : but its not "ffi_c"
I have seen all kind of fix on the internet and stackover flow, those are c executable one with file error for "ffi_c" I'm getting error for ffi only. I'm getting this error previously too, and after...
View ArticleWhen I run Bundle Install in my github project I get an error: Installing wdm...
I'm making a portfolio site in githubs-pages. This project requires to install a couple of packages. I'm using a Windows machines with Windows 10 installed. I'm following the instructions on the github...
View ArticlePaste multi lines in Rails console with pry
Problem: I cannot paste multi-line code as pry tries to execute every line.Expected behavior:[1] pry(main)> %w[a b c].map(&:to_sym)=> [:a, :b, :c][2] pry(main)>Actual behavior:[1]...
View ArticleInstallation of mysql2 0.5.6 ruby gem in Windows 10 fails
an attempt to install 'mysql2' gem in Windows 10 fails. I did some search on internet and tried multiple suggestions without success.As suggested in mysql2 gem documentation the MySQL Connector/C...
View ArticleCould not find 'bundler' (2.5.7)
MacOS user here. I am trying to build a website hosted on github. Followed the instructions from this website but used a different jekyll theme. When I try to preview my website locally viabundle exec...
View ArticleIssue with config template in BOSH release
I need some help with my first Bosh release, please? I am learning Bosh currently. Following is the spec file inside a job called 'rubyweb':---name: rubywebtemplates: ctl.erb: bin/ctl config.erb:...
View ArticleHow could I install library libssl on 64bit Amazon Linux 2023/4.0.8 through a...
Wicked_pdf pdf generator needs libssl and is not finding it on production and I can't find how to install the library.I am using Ruby 3.2.2 and rails 6.0.0 on a Amazon Centos server, wicked_pdf says it...
View ArticleNew ruby file can't load any outside classes
I have a project where I created a new file in an existing directory. This new file is unable to load any classes from outside directories even though an existing file in the same directory is able to...
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 ArticleError with ruby version on termux when I try to install metasploit
I was installing metasploit with termux and it said:termux output~ $ ls <br>metasploit-framework storage wiki-termux<br>~ $ cd metasploit-framework<br>~/metasploit-framework $ ruby...
View ArticleHow to create a file in Ruby
I'm trying to create a new file and things don't seem to be working as I expect them too. Here's what I've tried:File.new "out.txt"File.open "out.txt"File.new "out.txt","w"File.open...
View ArticleHow can I quote strings in SASS?
I'm using SASS to generate a @font-face mixin, however this:=remotefont(!name, !url) @font-face font-family = !name src = url(!url +".eot") src = local(!name), url(!url +".ttf")...
View ArticleParsing with Ruby, Nokogiri & Mechanize java cookies links in a webpage
everyone.I need to parse a webpage which has java cookies set for every link. I can parse the normal search and every product is shown and imported to a mysql database.I was able to scrape from a...
View ArticleOptimize query in Rails
I have the following code:results = Report.where(:car => 'xxxx').group(:date, :name, :car).select('date, name ,car, info, MAX(price) AS max_price')for customer in customers result =...
View ArticleWin32OLE compatibility with 64bit
I've have number of automation scripts (written in Ruby but I think this question could apply to other languages) that use Win32OLE interface to connect to MS Office, BlueZone (Mainframe emulator)...
View Article