Skip to content
Sign UpLog In
Profile icon

Timothy Fong

@realquadrant
Repls
Community
realquadrant
realquadrant
shared a Post
2 years ago
I cannot seem to list any of the keys in my database
When I try to list using curl (via ruby), I get a response value OK, but nothing else. I check for body and msg and still empty: pry(main)> response
Replit Ruby SDK
Ruby
realquadrant
realquadrant
shared a Post
2 years ago
I have the following error: from /usr/lib/ruby/2.5.0/net/http/request.rb:15:in `initialize' /usr/lib/ruby/2.5.0/net/http/genericrequest.rb:20:in init
Replit Ruby SDK
Ruby
SixBeeps
SixBeeps
Nix has a variety of Ruby packages across various versions if you're willing to take a few minutes to learn it. Just set up a Nix Repl, install the Ruby compiler you want to use, then run a Ruby script through the console. Quick video walkthrough: https://www.youtube.com/watch?v=gItKAtedmq42 years ago
realquadrant
realquadrant
shared a Post
2 years ago
I am trying to use "curl" from within ruby scripts. I tried to install the curl library because I am getting an error. However, I am hitting errors
Replit Ruby SDK
Ruby
realquadrant
realquadrant
shared a Post
2 years ago
I deleted main.rb But now I get errors when I press the run button. I just want to run a specific ruby script. Why does this happen? Thanks
Replit Ruby SDK
Ruby
CodingCactus
CodingCactus
If you want to run a file other than main.rb, you should look into using a .replit file https://docs.replit.com/repls/dot-replit basically make a file called .replit and write: run="ruby filename.rb" language="ruby" `2 years ago
Wumi4
Wumi4
The reason is because by default, Ruby Repls always runs main.rb. The file is basically an entry point. If you want to run it, then go to Shell tab, then type: ruby `2 years ago
realquadrant
realquadrant
shared a Post
2 years ago
I installed via the package function some Ruby Gems. I also used Bundler which created a Gemfile. Within my script, I used "require_relative" and th
Replit Ruby SDK
Ruby