lunarkitty has quit [Quit: Konversation terminated!]
lunarkitty has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lunarkitty has quit [Client Quit]
lunarkitty7 has joined #ruby
pwnd_sfw1 has joined #ruby
pwnd_sfw has quit [Ping timeout: 265 seconds]
pwnd_sfw1 is now known as pwnd_sfw
Tuor has quit [Remote host closed the connection]
zacts has joined #ruby
Tuor has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dfucci has joined #ruby
pwnd_sfw2 has joined #ruby
pwnd_sfw has quit [Read error: Connection reset by peer]
pwnd_sfw2 is now known as pwnd_sfw
venmx has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
t3hyoshi has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
zacts has quit [Ping timeout: 258 seconds]
jla has joined #ruby
nofxx_ has joined #ruby
venmx has joined #ruby
nofxx__ has quit [Ping timeout: 246 seconds]
zacts has joined #ruby
venmx has quit [Ping timeout: 272 seconds]
orbyt_ has joined #ruby
al2o3-cr has quit [Quit: WeeChat 3.0]
dinfuehr has quit [Ping timeout: 240 seconds]
Rounin has joined #ruby
dinfuehr has joined #ruby
schaerli has joined #ruby
baojg has quit [Remote host closed the connection]
pwnd_sfw6 has joined #ruby
dinfuehr has quit [Ping timeout: 246 seconds]
pwnd_sfw has quit [Ping timeout: 256 seconds]
pwnd_sfw6 is now known as pwnd_sfw
dinfuehr has joined #ruby
schaerli has quit [Remote host closed the connection]
schaerli has joined #ruby
baojg has joined #ruby
jla has quit [Ping timeout: 240 seconds]
schaerli has quit [Ping timeout: 256 seconds]
zacts has quit [Quit: leaving]
fercell has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schaerli has joined #ruby
vondruch_ has joined #ruby
jla has joined #ruby
lunarkitty7 has quit [Quit: Konversation terminated!]
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
vondruch_ has quit [Quit: vondruch_]
dinfuehr has quit [Ping timeout: 256 seconds]
vondruch_ has joined #ruby
dinfuehr has joined #ruby
<nakilon>
meh, I run tests in Github Actions on different versions of docker containers
<nakilon>
such as: ruby:2.3-alpine, ruby:alpine3.7, ruby:alpine, alpine:3.7, alpine
al2o3-cr has joined #ruby
<nakilon>
docker is conceptually supposed to save me from such moments but in Github Action ruby segfaults while locally -- no, because the ruby:alpine is older
<nakilon>
docker images ruby:alpine => 7b110757101b 13 months ago
vondruch_ has quit [Quit: vondruch_]
vondruch_ has joined #ruby
<nakilon>
I mean, I understand that Github Action will use another version each time -- that's the point of the test; but it's weird that I missed it locally because there is no practice to pull local images every time and it would make investigation harder
<nakilon>
because currently I can backup the old image with `docker tag` but when I pull it it'll be overwritten
<nakilon>
the worst thing is that after I pull the new image it still does not segfault for me...
jenrzzz has joined #ruby
schne1der has joined #ruby
<nakilon>
and what's wrong with Ruby 3 kwargs?! the |*args, **kwargs| merges kwargs into args
jenrzzz has quit [Ping timeout: 246 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
dfucci has quit [Ping timeout: 258 seconds]
electrostat has quit [Quit: uwotm8]
jenrzzz has joined #ruby
postmodern has quit [Quit: Leaving]
tpanarch1st has quit [Ping timeout: 258 seconds]
jenrzzz has quit [Ping timeout: 272 seconds]
jla has quit [Ping timeout: 240 seconds]
electrostat has joined #ruby
al2o3-cr has quit [Quit: WeeChat 3.0]
<nakilon>
oh, maybe it's minitest's fault and somehow ruby <3.0 can pass both * and ** via *, but not 3.0
joast has quit [Ping timeout: 265 seconds]
Tempesta_ has left #ruby ["Closing Channel, bye."]
<havenwood>
Mukesh: I don't understand the question. Can you show what you've tried?
fanta1 has joined #ruby
<nakilon>
another weird thing: bundle install, when there is a git fork specified in Gemfile, instead of saying 'install git' it just skips it and that results in wrong tests results too
venmx has joined #ruby
<nakilon>
(forget the last one, it's my env var fault)
<phaul>
Most common way is just to use flow control dispatching on the type of argument
<phaul>
Ruby tries to identify methods by name, it's not just about dispatch on call, but for Object#method it needs to be unambiguous
<phaul>
Also the type system is new and it's opt-in on 3.0. So normally arguments are typeless
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<phaul>
(as far as method calls are concerned)
jenrzzz has joined #ruby
cow[moo] has joined #ruby
jla has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pavelz has quit [Changing host]
pavelz has joined #ruby
<nakilon>
is it possible to somehow compile the Ruby code into JVM bytecode to then execute on machine with Java?
dinfuehr has quit [Ping timeout: 256 seconds]
dinfuehr has joined #ruby
Technodrome has joined #ruby
ChmEarl has joined #ruby
<havenwood>
nakilon: Yeah, they ship with tooling to generate .java classes, if that's what you mean?
<havenwood>
nakilon: Like: jrubyc --javac foo.rb
<nakilon>
havenwood I have a ruby file that reads input from STDIN, etc.; I tried rubyc -- it was compiling for half an hour and crashed presumably because running out of RAM
<havenwood>
If you grab the JRuby 9.2.14.0 Complete .jar.
<havenwood>
nakilon: The #jruby folk themselves are in the #jruby channel and are super helpful.
<nakilon>
I suppose this warbler thing is doing that for me -- it has installed jruby-jars, jruby-rack, rubyzip
<nakilon>
but I can't figure out how to use it yet
<nakilon>
oh I made it
<havenwood>
nakilon: What was the command?
<nakilon>
"warble jar" -- it automatically found the ./bin/mygem
<nakilon>
so java -jar runs it and seems working, starts slowly though
<nakilon>
$ time mygem
<nakilon>
$ time java -jar mygem.jar
<nakilon>
2.40 real 4.98 user 0.33 sys
<nakilon>
0.14 real 0.08 user 0.04 sys
<havenwood>
nakilon: Is the former running with JRuby too?
<nakilon>
ruby 2.3
<nakilon>
I'll try rbenv jruby, just a sec
<nakilon>
oh idk how to install it, nvm ) ERROR: Java 8 required, but your Java version was: openjdk version "14.0.1" 2020-04-14
<nakilon>
I'll use this jar
al2o3-cr has quit [Ping timeout: 256 seconds]
orbyt_ has joined #ruby
<nakilon>
hmmm, for some reason the resulting jar works not always the same
<havenwood>
nakilon: CRuby starts a good bit faster than the JVM. With JRuby the --dev command helps. Drip would help with both the `jruby` and `java` startup times. https://github.com/ninjudd/drip
<havenwood>
nakilon: Just another thought, but I wonder if you could get a reasonably sized standalone from ruby-packer https://github.com/pmq20/ruby-packer
<nakilon>
yeah, that's the rubyc thing that after few undocumented tweaks was compiling it for half an hour and crashed )
<Aguiar>
JanHebler[m] I managed to send my assignment in the last few minutes, I almost missed the deadline.
schne1der has quit [Quit: schne1der]
hiroaki has quit [Ping timeout: 272 seconds]
jenrzzz has joined #ruby
roadie has quit [Ping timeout: 260 seconds]
roadie has joined #ruby
fanta1 has quit [Quit: fanta1]
hiroaki has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
chouhoulis has joined #ruby
orbyt_ has joined #ruby
<isene>
I am trying to capture Ctrl-q as a key sequence in a Ruby program but failing - While it is easy to capture Ctrl-a with "Ctrl-v Ctrl-a" in VIM insert mode when writing y program, for obvious reasons, Ctrl-q does not yield such a code. So how do I enter that inside the quotation marks in my program? I would also like to capture an even more elusive key combo - the Ctrl-^ (this is for a curses RPN
<isene>
calculator I'm writing)
kristian_on_linu has quit [Remote host closed the connection]
maryo has joined #ruby
dinfuehr has quit [Ping timeout: 258 seconds]
dinfuehr has joined #ruby
dinfuehr has quit [Ping timeout: 265 seconds]
pgib has joined #ruby
dinfuehr has joined #ruby
<leftylink>
I think I read somewhere that the answer will involve something like putting the terminal into raw mode, but I lack knowledge of the specifics and what to do after that is achieved
roadie has quit [Ping timeout: 264 seconds]
Glumetu has left #ruby [#ruby]
roadie has joined #ruby
roadie has quit [Remote host closed the connection]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SeepingN has joined #ruby
alextee has quit [Ping timeout: 258 seconds]
chouhoulis has quit [Remote host closed the connection]
<nakilon>
it does not seem to work with minitest-around
asdasdzzzzzz has joined #ruby
<asdasdzzzzzz>
Hi guys, I'm currently working on a react/rails api app. I have deployed the application to heroku and I came across a problem. When I access a subroute (for example: "/feed") I get the error 404 route [GET] '/feed' does not exist. How can I get rid of this problem? Any suggestions? Thank you
duderonomy has joined #ruby
al2o3-cr has quit [Ping timeout: 256 seconds]
al2o3-cr has joined #ruby
maryo87 has joined #ruby
dinfuehr has quit [Ping timeout: 240 seconds]
maryo has quit [Ping timeout: 246 seconds]
dinfuehr has joined #ruby
schaerli has quit [Ping timeout: 264 seconds]
gr33n7007h has joined #ruby
al2o3-cr has quit [Ping timeout: 256 seconds]
hahuang65_ is now known as hahuang65
Lyubo1 has joined #ruby
al2o3-cr has joined #ruby
shokohsc has quit [Ping timeout: 246 seconds]
gr33n7007h has quit [Ping timeout: 256 seconds]
shokohsc has joined #ruby
fercell has joined #ruby
neshpion_ has joined #ruby
neshpion has quit [Remote host closed the connection]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
Aguiar has quit [Quit: Ping timeout (120 seconds)]
neshpion_ is now known as neshpion
Rudd0 has quit [Ping timeout: 240 seconds]
Aguiar has joined #ruby
fercell has quit [Ping timeout: 240 seconds]
maryo87 has quit [Ping timeout: 246 seconds]
swaggboi has quit [Ping timeout: 264 seconds]
swaggboi has joined #ruby
gix has joined #ruby
postmodern has joined #ruby
s3nd1v0g1us has joined #ruby
Mia has joined #ruby
Axy has quit [Ping timeout: 240 seconds]
cliluw has quit [Read error: Connection reset by peer]
nertzy has quit [Quit: Leaving]
al2o3-cr has quit [Ping timeout: 256 seconds]
cthulchu_ has joined #ruby
blackmesa has joined #ruby
alexherbo2 has quit [Ping timeout: 258 seconds]
TomyWork has quit [Remote host closed the connection]
evil has joined #ruby
Fire-Dragon-DoL has quit [Ping timeout: 256 seconds]