havenwood changed the topic of #ruby to: Ruby 3.2.2, 3.1.4, 3.3.0-preview1: https://www.ruby-lang.org | Rules: https://ruby-community.com | Logs: https://libera.irclog.whitequark.org/ruby
Na_Klar has left #ruby [https://quassel-irc.org - Komfortabler Chat. Überall. ]
buckwheatsuperpo has joined #ruby
gcd has quit [Remote host closed the connection]
buckwheat has quit [Ping timeout: 250 seconds]
reset has quit [Ping timeout: 246 seconds]
gcd has joined #ruby
CrazyEddy has joined #ruby
fcser has quit [Server closed connection]
fcser has joined #ruby
buckwheatsuperpo has quit [Ping timeout: 245 seconds]
reset has joined #ruby
brokkoli_origin has quit [Ping timeout: 245 seconds]
desnudopenguino has quit [Remote host closed the connection]
desnudopenguino has joined #ruby
brokkoli_origin has joined #ruby
keypresser86 has joined #ruby
roadie has joined #ruby
roadie has quit [Ping timeout: 255 seconds]
reset has quit [Quit: reset]
markong has quit [Ping timeout: 245 seconds]
buckwheatsuperpo has joined #ruby
buckwheatsuperpo has quit [Ping timeout: 245 seconds]
roadie has joined #ruby
roadie has quit [Ping timeout: 255 seconds]
roadie has joined #ruby
roadie has quit [Ping timeout: 255 seconds]
finsternis has quit [Read error: Connection reset by peer]
caedmon has joined #ruby
Sankalp has quit [Ping timeout: 246 seconds]
Sankalp has joined #ruby
caedmon has quit [Ping timeout: 245 seconds]
c10l has quit [Quit: Ping timeout (120 seconds)]
c10l has joined #ruby
caedmon has joined #ruby
<KOTP> oxleef, of course, since that is what gets does, but to_i or Float or Integer will naturally remove that since a number will not, by its very property, have it. So no reason to remove it with an explicit call of chomp.
<KOTP> Though `gets` is "get string" so it will not get a pure number, it will get a string.
cognemo has quit [Server closed connection]
cognemo has joined #ruby
<ox1eef_> Yeah, I would still use gets.chomp rather than rely on that. It is much more clear to the reader.
roadie has joined #ruby
goldfish has quit [Ping timeout: 260 seconds]
roadie has quit [Ping timeout: 255 seconds]
roadie has joined #ruby
caedmon has quit [Ping timeout: 252 seconds]
caedmon has joined #ruby
roadie` has joined #ruby
roadie has quit [Ping timeout: 255 seconds]
grenierm has joined #ruby
caedmon has quit [Ping timeout: 246 seconds]
fcser has quit [Quit: zzzzz]
fcser has joined #ruby
graaff has quit [Quit: Leaving]
graaff has joined #ruby
fcser has quit [Quit: zzzzz]
fcser has joined #ruby
fcser has quit [Quit: zzzzz]
fcser has joined #ruby
keypresser86 has quit []
roadie` has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.0.92)]
smp has quit [Server closed connection]
smp has joined #ruby
clampd81 has joined #ruby
grenierm has quit [Quit: Client closed]
reset has joined #ruby
infinityfye has joined #ruby
tomtmym has joined #ruby
tomtmym has joined #ruby
roadie has joined #ruby
Sampersand has joined #ruby
_ht has joined #ruby
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
jvalleroy has joined #ruby
kokoro has quit [Server closed connection]
kokoro has joined #ruby
Sampersand has quit [Ping timeout: 246 seconds]
weaksauce has quit [Server closed connection]
weaksauce has joined #ruby
patrick has quit [Remote host closed the connection]
patrick_ is now known as patrick
patrick- has joined #ruby
Linux_Kerio has joined #ruby
hightower3 has quit [Ping timeout: 245 seconds]
tockitj has quit [Ping timeout: 250 seconds]
roadie has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.0.92)]
clampd81 has quit [Remote host closed the connection]
clampd81 has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
buckwheatsuperpo has joined #ruby
tockitj has joined #ruby
tockitj has quit [Changing host]
tockitj has joined #ruby
markong has joined #ruby
clampd81 has quit [Remote host closed the connection]
clampd81 has joined #ruby
octobear has joined #ruby
Linux_Kerio has quit [Ping timeout: 245 seconds]
Linux_Kerio has joined #ruby
patrick is now known as Guest8549
Guest8549 has quit [Killed (lithium.libera.chat (Nickname regained by services))]
patrick- is now known as patrick
patrick_ has joined #ruby
MalusVulgaris has joined #ruby
MalusVulgaris1 has joined #ruby
MalusVulgaris has quit [Ping timeout: 252 seconds]
MalusVulgaris1 is now known as MalusVulgaris
octobear has quit [Read error: Connection reset by peer]
octobear has joined #ruby
caedmon has joined #ruby
caedmon has quit [Ping timeout: 246 seconds]
markong has quit [Ping timeout: 246 seconds]
markong has joined #ruby
roadie has joined #ruby
MalusVulgaris has quit [Quit: MalusVulgaris]
fowl has quit [Quit: The Lounge - https://thelounge.chat]
buckwheat has joined #ruby
buckwheat has quit [Ping timeout: 264 seconds]
buckwheat has joined #ruby
buckwheat has quit [Remote host closed the connection]
buckwheat has joined #ruby
buckwheat has quit [Remote host closed the connection]
fakenullie has joined #ruby
<libsys> debian 12 ships ruby 3.1, cool
<libsys> curiously, arch is still shipping ruby 3.0
gr33n7007h has joined #ruby
gr33n7007h has quit [Client Quit]
victori has quit [Quit: ZNC 1.8.2 - https://znc.in]
victori has joined #ruby
patrick has quit [Ping timeout: 260 seconds]
patrick_ is now known as patrick
patrick- has joined #ruby
buckwheat has joined #ruby
buckwheat has quit [Remote host closed the connection]
<ox1eef_> Arch was super cool at one point in time, but I don't thnk it is the same anymore.
___nick___ has joined #ruby
<mooff> ssh ftp.debian.org ln -s sid rolling
keypresser86 has joined #ruby
Vonter has quit [Quit: WeeChat 3.8]
Vonter has joined #ruby
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
___nick___ has joined #ruby
___nick___ has quit [Client Quit]
___nick___ has joined #ruby
<lester29> can you recommend a ruby code review sites?
markong has quit [Ping timeout: 245 seconds]
Linux_Kerio has quit [Ping timeout: 245 seconds]
finsternis has joined #ruby
duderonomy has joined #ruby
clampd81 has quit [Ping timeout: 240 seconds]
which has joined #ruby
which has quit [Ping timeout: 246 seconds]
crapes65 has joined #ruby
<ox1eef_> GitHub xD
<ox1eef_> Or OpenAI
<ox1eef_> Or here, IRC
<havenwood> lester29: +1 here or Ruby Discord
<havenwood> Or both.
<havenwood> Post a repo and we'll give feedback!
<havenwood> There's a #code-review channel there ^
<havenwood> (for Ruby)
___nick___ has quit [Ping timeout: 240 seconds]
crapes65 has quit [Remote host closed the connection]
crapes65 has joined #ruby
<desnudopenguino> anyone working with roda floating around? i'm working through the "mastering roda" book, and have hit a wall with the inject_erb example
_ht has quit [Quit: _ht]
eulogi has joined #ruby
infinityfye has quit [Quit: Leaving]
<desnudopenguino> the example shows using a method and calling it from an erb template file, but when i try that, i get a NoMethodError for the method. i tried moving the method definitial all over the place in the app file and template file with no luck
crapes65 has quit [Ping timeout: 260 seconds]
<havenwood> desnudopenguino: I think #inject_erb is meant to be called from your Roda routes. Make sure you enable the plugin.
<havenwood> Use #inject_erb from methods inside your routing tree, I believe. Then call those methods from your erb.
<adam12> desnudopenguino: I use Roda.
<adam12> desnudopenguino: I think it should work inside a template file too, but a stracktrace would be helpful.
<adam12> desnudopenguino: And this is assuming you loaded the plugin (which you did, right? :P )
<adam12> I normally use it inside a method and not inside a template, but because they share the same context when rendering a template, it should make no difference.
<adam12> Also make sure you've restarted your app.
<desnudopenguino> https://pastebin.com/vGPTj2kG is what i get
<ruby[bot]> desnudopenguino: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<desnudopenguino> sorry ruby[bot]
<desnudopenguino> i tried a plain <% inject_erb <somethnig> %> line in the erb file and that works
eulogi has quit [Quit: Best CPUs can count to infinity twice without being bugged out by zero division errors or whatnot.]
Linux_Kerio has joined #ruby
Fridtjof has quit [Quit: ZNC - http://znc.in]
roadie has quit [Ping timeout: 255 seconds]
roadie has joined #ruby
Fridtjof has joined #ruby
roadie has quit [Remote host closed the connection]
Linux_Kerio has quit [Ping timeout: 245 seconds]
Linux_Kerio has joined #ruby
<desnudopenguino> also just added the template/erb file to the gist
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
keypresser86 has quit [Ping timeout: 252 seconds]
keypresser86_ has joined #ruby
Linux_Kerio has quit [Ping timeout: 250 seconds]
havenwood has quit [Quit: The Lounge - https://thelounge.chat]
havenwood has joined #ruby
tomtmym has quit [Quit: Gone.]
havenwood has quit [Quit: The Lounge - https://thelounge.chat]
havenwood has joined #ruby
caedmon has joined #ruby
caedmon has quit [Ping timeout: 245 seconds]
<adam12> desnudopenguino: Oh. You'e defined try_it inside the template?
<adam12> desnudopenguino: The NoMethodError isn't from inject_erb but from try_it.
<adam12> desnudopenguino: You could try using define_method or define_singleton_method instead. IMHO, I'd extract this out to some other class and make it available to the view. If you need `inject_erb` in that class, pass in the roda instance.
<adam12> desnudopenguino: class TaskPage; def initialize(roda_instance); @roda_instance = roda_instance; end; def try_it(&block); @roda_instance.inject_erb(@roda_instance.cpature_erb...rest_of_bits); then in your route, task_page = TaskPage.new(self).
gr33n7007h has joined #ruby
dsc_ has joined #ruby
<dsc_> after `gem install bundler` I get `ERROR: While executing gem ... (Gem::Exception) OpenSSL is not available. Install OpenSSL and rebuild Ruby (preferred) or use non-HTTPS sources`
<dsc_> this happened after I did: rvm install ruby-3.0.6
<dsc_> (and using that version)
<dsc_> how to fix this openssl error?
<dsc_> since I am using `rvm` I would expect it to install a correct version