adam12 changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.0.1, 2.7.3, 2.6.7: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | BLM <3
hiroaki has quit [Ping timeout: 248 seconds]
orbyt_ has joined #ruby
swaggboi has quit [Quit: C-x C-c]
hiroaki has joined #ruby
swaggboi has joined #ruby
goepsilongo has joined #ruby
gearnode has quit [Ping timeout: 276 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
derpadmin has joined #ruby
venmx has joined #ruby
Rudd0 has quit [Ping timeout: 260 seconds]
venmx has quit [Ping timeout: 265 seconds]
robotbee has quit [Ping timeout: 265 seconds]
MalkbabY has quit [Remote host closed the connection]
MalkbabY has joined #ruby
robotbee has joined #ruby
goepsilongo has quit [Quit: Konversation terminated!]
cliluw has quit [Read error: Connection reset by peer]
centrx has quit [Ping timeout: 250 seconds]
cer-0 has joined #ruby
cer-0 has quit [Quit: leaving]
evdubs_ has joined #ruby
venmx has joined #ruby
evdubs has quit [Ping timeout: 260 seconds]
venmx has quit [Ping timeout: 252 seconds]
gix- has joined #ruby
gix has quit [Disconnected by services]
cd has quit [Quit: cd]
yuesbeez has quit [Quit: Connection closed for inactivity]
robotbee has quit [Ping timeout: 260 seconds]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
Axy has quit [Read error: Connection reset by peer]
Mia has quit [Ping timeout: 252 seconds]
ChmEarl has quit [Quit: Leaving]
TorpedoSkyline has quit [Quit: Konversation terminated!]
oleksandry has joined #ruby
Rudd0 has joined #ruby
oleksandry has quit [Ping timeout: 260 seconds]
m27frogy has quit [Ping timeout: 268 seconds]
evdubs_ is now known as evdubs
cliluw has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cliluw has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
Mrgoose has quit [Ping timeout: 268 seconds]
venmx has joined #ruby
venmx has quit [Ping timeout: 260 seconds]
robotbee has joined #ruby
MalkbabY has quit [Remote host closed the connection]
MalkbabY has joined #ruby
Mrgoose has joined #ruby
Mia has joined #ruby
ur5us_ has quit [Ping timeout: 240 seconds]
bucareli has joined #ruby
feriman has joined #ruby
teclator has joined #ruby
oleksandry has joined #ruby
bucareli has quit [Quit: leaving]
robotbee has quit [Ping timeout: 252 seconds]
sphex has quit [Ping timeout: 268 seconds]
blackmesa has joined #ruby
vondruch has joined #ruby
mahlon has quit [Read error: Connection reset by peer]
mahlon has joined #ruby
ged has quit [Ping timeout: 260 seconds]
venmx has joined #ruby
Rounin has joined #ruby
ged has joined #ruby
venmx has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
robotbee has joined #ruby
robotbee has quit [Ping timeout: 252 seconds]
explorie1 has quit [Ping timeout: 268 seconds]
explorie1 has joined #ruby
meinside has quit [Quit: Connection closed for inactivity]
howdoi has quit [Quit: Connection closed for inactivity]
BSaboia has joined #ruby
JaredCE has joined #ruby
BSaboia has quit [Ping timeout: 240 seconds]
feriman has quit [Ping timeout: 240 seconds]
BSaboia has joined #ruby
evdubs has quit [Read error: Connection reset by peer]
tosaraja has quit [Ping timeout: 246 seconds]
evdubs has joined #ruby
vasanth has joined #ruby
tosaraja has joined #ruby
gearnode has joined #ruby
evdubs_ has joined #ruby
vasanth has quit [Ping timeout: 260 seconds]
BSaboia has quit [Quit: This computer has gone to sleep]
nofxx_ has joined #ruby
evdubs has quit [Ping timeout: 240 seconds]
vasanth has joined #ruby
nofxx__ has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Remote host closed the connection]
pyra has joined #ruby
klaas has quit [Read error: Connection reset by peer]
klaas_ has joined #ruby
hiroaki has quit [Ping timeout: 260 seconds]
hiroaki has joined #ruby
mniip has quit [Ping timeout: 608 seconds]
TomyWork has joined #ruby
explorie2 has joined #ruby
explorie1 has quit [Ping timeout: 246 seconds]
explorie1 has joined #ruby
explorier has quit [Ping timeout: 252 seconds]
venmx has joined #ruby
gix- has quit [Ping timeout: 260 seconds]
fernando-basso has joined #ruby
feriman has joined #ruby
MalkbabY has quit [Remote host closed the connection]
MalkbabY has joined #ruby
User458764 has quit [Ping timeout: 276 seconds]
User4588 has quit [Ping timeout: 260 seconds]
mniip has joined #ruby
ur5us_ has joined #ruby
BSaboia has joined #ruby
jla has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
BSaboia has quit [Quit: This computer has gone to sleep]
venmx has quit [Ping timeout: 260 seconds]
<nakilon> there are chomp:true optional keyword arguments in several methods on this subject
coniptor has quit [Ping timeout: 246 seconds]
coniptor has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
User4588 has joined #ruby
blackmesa has joined #ruby
jetchisel has joined #ruby
ur5us_ has quit [Ping timeout: 276 seconds]
pyra has quit [Ping timeout: 276 seconds]
oleksandry has quit [Ping timeout: 240 seconds]
ur5us_ has joined #ruby
BSaboia has joined #ruby
fernando-basso has quit [Quit: May the force]
BSaboia has quit [Quit: This computer has gone to sleep]
oleksandry has joined #ruby
m27frogy has joined #ruby
elcuervo has quit [Read error: Connection reset by peer]
elcuervo has joined #ruby
vasanth has quit [Ping timeout: 268 seconds]
fernando-basso has joined #ruby
ur5us_ has quit [Ping timeout: 250 seconds]
yxhuvud has quit [Read error: Connection reset by peer]
yxhuvud has joined #ruby
explorie2 has quit [Ping timeout: 240 seconds]
explorie1 has quit [Ping timeout: 268 seconds]
coniptor has quit [Ping timeout: 265 seconds]
explorier has joined #ruby
explorie1 has joined #ruby
coniptor has joined #ruby
Raboo has quit [Remote host closed the connection]
venmx has joined #ruby
Raboo has joined #ruby
Fusl has quit [Max SendQ exceeded]
Fusl has joined #ruby
venmx has quit [Ping timeout: 260 seconds]
explorie1 has quit [Ping timeout: 246 seconds]
explorier has quit [Ping timeout: 252 seconds]
coniptor has quit [Ping timeout: 265 seconds]
Tempesta has quit [Quit: See ya!]
BSaboia has joined #ruby
archer__ has joined #ruby
stryek has joined #ruby
coniptor has joined #ruby
vondruch has quit [Ping timeout: 252 seconds]
archer__ has quit [Quit: Lost terminal]
Tempesta has joined #ruby
thecoffemaker has quit [Ping timeout: 260 seconds]
BSaboia has quit [Quit: This computer has gone to sleep]
thecoffemaker has joined #ruby
cow[moo] has joined #ruby
jimms has joined #ruby
orbyt_ has joined #ruby
vondruch has joined #ruby
Xeago has quit [Quit: Xeago]
Xeago has joined #ruby
Tumac55 has joined #ruby
cow[moo] has quit [Quit: Textual IRC Client: www.textualapp.com]
Tumac55 has left #ruby [#ruby]
harlin has joined #ruby
TorpedoSkyline has joined #ruby
blackmesa1 has joined #ruby
blackmesa has quit [Ping timeout: 248 seconds]
blackmesa has joined #ruby
MalkbabY has quit [Remote host closed the connection]
MalkbabY has joined #ruby
blackmesa1 has quit [Ping timeout: 260 seconds]
cow[moo] has joined #ruby
blackmesa has quit [Quit: WeeChat 3.1]
venmx has joined #ruby
code_zombie has joined #ruby
istrasci has quit [Quit: Connection closed]
centrx has joined #ruby
cd has joined #ruby
arwn has joined #ruby
<arwn> It's my first day using ruby and I'm trying to set up a new project. I ran bundle exec MyProject && bundle install. now how do I run it? The bundler website is unclear on how to use bundle exec.
vondruch has quit [Read error: Connection reset by peer]
<jla> welcome, arwn 'bundle exec ' may look for a ruby gem ...
<arwn> i'm just reading about rake right now but I think this is a bit too much to worry about. Is it a bad idea to just `irb main.rb` and forget about bundler and rake?
<jla> may i suggest to have a look at how to build your own Ruby based blog in oder to taste ruby gems - bundler workflow ?
<jla> for example, with ... http://jekyllrb.com
<arwn> oh funny I was actually going to make a blog builder
<jla> haha...enjoy jekyll
<jla> you can meet us https://talk.rubyrb.com forum
<jla> Jekyll is like Ruby, simple at first look, powerful under the hood
<adam12> Don’t forget about Bridgetown too: https://www.bridgetownrb.com
<havenwood> adam12: I hadn't seen Bridgetown. Neat.
<havenwood> adam12: I was just giving Utopia another look. https://github.com/socketry/utopia
<havenwood> adam12: This Live app got me looking at it again. https://github.com/socketry/live/tree/master/example/basic
<havenwood> I never really considered it in earnest.
<adam12> Yeah, Utopia is neat.
<havenwood> HTTP/2 WebSockets + Morphdom + software engineer design sensibilities https://utopia-falcon-heroku.herokuapp.com/live/index
<adam12> I really want to deep dive into the parser that Samuel built since I think it would be a neat compliment to view components.
<adam12> He calls them xnodes I think.
<arwn> im utterly confused now. can't I just do something like `bundle new project && run project`? am I thinking about this the wrong way?
blackmesa has joined #ruby
<adam12> havenwood: I’m bullish on Hanami 2 (there’s been a ton of progress on it lately and I think a new alpha should drop soon), but I’ve also been secretly working on my own internal framework. A side effect of that tho has been to deep dive into older frameworks like Merb, which has been super fascinating. A lot of stuff from Merb was very
<adam12> forward facing. I wish it didn’t die.
<havenwood> arwn: If you have an existing app, you typically do `bundle && bundle exec ruby ...`.
<havenwood> arwn: I haven't looked at Hanami 2 at all!
<havenwood> adam12: ^
<havenwood> arwn: What is `bundle new` supposed to do?
<micah> how is a jamstack site not just... a static site?
<adam12> arwn: I guess it depends on what you expect `bundle new project` to produce. It ships a `bin/console` which might be what you want?
<havenwood> arwn: Are you meaning to create a gem or Gemfile or what?
<adam12> micah: Well, nobody owns a trademark for _static site_.. ;P
* havenwood trademarks Static Site
iheartcoffee has joined #ruby
<adam12> DAMN YOU havenwood
<arwn> havenwood: yes sorry. meant bundle gem, not new.
ChmEarl has joined #ruby
<havenwood> arwn: bundle gem arwn && cd arwn && rake
<adam12> Actually, that’s the wrong patent. https://uspto.report/TM/88746545
<havenwood> arwn: rake install
<adam12> s/patent/trademark (please don’t hurt me mr havenwood)
<havenwood> ®
iheartcoffee has left #ruby [#ruby]
<adam12> arwn: The folder structure of a gem is fairly consistent, at least at the beginning. If `bundle gem` creates `lib/foo.rb`, (whatever you named your project), that could technically be your entry point. `ruby -rbundler/setup -Ilib lib/foo` could be your command to run it.
centrx has quit [Ping timeout: 276 seconds]
<havenwood> arwn: You can also just install the gem to get it in your load path.
<havenwood> arwn: rake install
<havenwood> It's handy to know how to run it like adam12 said.
cthulchu_ has joined #ruby
<adam12> arwn: Not bundler related but the principles are the same. `bundle gem` just eliminates some boilerplate. https://guides.rubygems.org/make-your-own-gem/
<havenwood> adam12: I was almost sad for SCOTUS ruling correctly in Google v. Oracle since it means we don't get so much pain that abolishing software patents becomes viable.
<adam12> havenwood: Maybe we’ll get lucky with the patent defense funds that CloudFlare/etc are doing.
<micah> adam12: :D
<havenwood> adam12: yeah, a great start to tap it down while we wait on critical mass to just fix the broken
<adam12> havenwood: Not that I agree with software patents, but frivilous software parents definitely chap my ass. So it’s nice to see some pushback there, especially if patents are being invalidated.
<adam12> CloudFlare alone has like 120 patents? I’m surprised to think there’s enough unique problems to patent. Which is in some ways bothersome.
<adam12> LOL
<micah> yet nobody can ever get it right :D
<havenwood> "In this manner, the user is kept informed of the status of a task being performed without resorting to language sensitive messages such as "Now processing object number 12 of 100" ."
<havenwood> A progress bar is the universal translator of completion!
<havenwood> Quick, patent 12%.
<havenwood> By affixing a percent sign, this novel design technique achieves universal translation.
<adam12> O_O
<adam12> Failure for not using 42.
arwn has quit [Quit: Connection closed]
JaredCE has quit [Ping timeout: 268 seconds]
JaredCE has joined #ruby
oleksandry has quit [Ping timeout: 268 seconds]
wallacer has quit [Ping timeout: 250 seconds]
JaredCE has quit [Ping timeout: 265 seconds]
Axy has joined #ruby
wallacer has joined #ruby
Mia has quit [Ping timeout: 240 seconds]
hiroaki has quit [Ping timeout: 260 seconds]
sphex has joined #ruby
<micah> ×This request has been rejected due to the violation of Fair Use policy
howdoi has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 252 seconds]
gix has joined #ruby
Axy has quit [Read error: Connection reset by peer]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
jla has quit [Ping timeout: 265 seconds]
alexherbo2 has joined #ruby
Xiti` has joined #ruby
<alexherbo2> hello
cow[moo] has quit [Read error: Connection reset by peer]
<alexherbo2> I get an error after updating to Ruby 3. I have `def initialize(**attributes, &block)` and call `Pokemon.new(index: 25, name: 'Pikachu')` which works, but when using hashes, in my `def self.all` it doesn't. how can I fix it?
Xiti has quit [Ping timeout: 252 seconds]
<alexherbo2> I heard about Ruby introducing method overloading, so maybe I can define 2 initializers, one using `**attributes` and the other `attributes` as the single argument for hash.
<alexherbo2> not sure what is the correct approach
<adam12> alexherbo2: Do you have a stack trace? That might help.
oleksandry has joined #ruby
<alexherbo2> `/home/taupiqueur/root/projects/active-record.rb/chapters/04-active-record-basics/lib/active-record/base.rb:96:in `initialize': wrong number of arguments (given 1, expected 0) (ArgumentError)`
<adam12> alexherbo2: There’s no real method overloading, so that wouldn’t work.
<adam12> alexherbo2: On Ruby 2.7 does your code warn?
<alexherbo2> in Ruby 2.7 my code worked, I could pass as named argument or as a hash
<alexherbo2> with `**attributes`
<alexherbo2> no, on ruby 2.7, it works fine
Mia has quit [Read error: Connection reset by peer]
<alexherbo2> I'm sure it is because `**attributes` are optional and expect 0 positional argument (the hash I'm passing in `.all`)
<adam12> alexherbo2: Show source of self.all. Can you put all of this together in a gist or paste? source code, stacktrace (full, not just 1 line), etc.
<adam12> alexherbo2: You could try splatting the hash in .all, **hash
<alexherbo2> I have a repo but I have to force push
<adam12> Seeing the whole picture and not just fragments will help. There should of been a warning on 2.7 tho.
<alexherbo2> adam12: let me try the splatting
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
<alexherbo2> I haven't removed the solution yet
robotbee has joined #ruby
<alexherbo2> so you suggest `build_record(**row)` should work?
blackmesa has quit [Ping timeout: 276 seconds]
<adam12> No, probably not. If I look at that code, it’s not a Hash but a SQLite3 object of some sort...
blackmesa has joined #ruby
<adam12> Run on 2.7 and get a warning. Without the warning we’re guessing.
<havenwood> Or share a minimal reproduction case.
duderonomy has joined #ruby
MalkbabY has quit [Remote host closed the connection]
MalkbabY has joined #ruby
alexherbo28 has joined #ruby
Xiti` has quit [Quit: Leaving]
oleksandry has quit [*.net *.split]
ChmEarl has quit [*.net *.split]
alexherbo2 has quit [*.net *.split]
mniip has quit [*.net *.split]
nofxx_ has quit [*.net *.split]
evdubs_ has quit [*.net *.split]
arooni has quit [*.net *.split]
woodruffw has quit [*.net *.split]
DEac-_ has quit [*.net *.split]
sagax has quit [*.net *.split]
Arahael has quit [*.net *.split]
phenom has quit [*.net *.split]
maxmanders has quit [*.net *.split]
joast has quit [*.net *.split]
Milos has quit [*.net *.split]
alexherbo28 is now known as alexherbo2
brigitte has joined #ruby
Tumac55 has joined #ruby
Arahael has joined #ruby
arooni has joined #ruby
mniip has joined #ruby
ChmEarl has joined #ruby
oleksandry has joined #ruby
nofxx_ has joined #ruby
DEac-_ has joined #ruby
joast has joined #ruby
sagax has joined #ruby
Milos has joined #ruby
evdubs_ has joined #ruby
phenom has joined #ruby
woodruffw has joined #ruby
maxmanders has joined #ruby
Azure|dc has quit [Ping timeout: 240 seconds]
sagax has quit [Max SendQ exceeded]
Xiti has joined #ruby
duderonomy has quit [Ping timeout: 240 seconds]
aloy has quit [Ping timeout: 276 seconds]
duderonomy has joined #ruby
Azure has joined #ruby
brigitte has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
Emmanuel_Chanel has joined #ruby
TomyWork has quit [Remote host closed the connection]
<adam12> alexherbo2: Cool.
oleksandry has quit [Ping timeout: 252 seconds]
jess has quit []
jimms has quit [Quit: Leaving]
Tumac55 has left #ruby [#ruby]
alexherbo2 has quit [Quit: The Lounge - https://thelounge.chat]
johnny56 has quit [Ping timeout: 246 seconds]
evdubs_ is now known as evdubs
dan64- has joined #ruby
TorpedoSkyline has quit [Ping timeout: 240 seconds]
TorpedoSkyline has joined #ruby
dan64 has quit [Ping timeout: 240 seconds]
Rudd0 has quit [Ping timeout: 240 seconds]
feriman has quit [Ping timeout: 265 seconds]
TCZ has joined #ruby
aloy has joined #ruby
johnny56 has joined #ruby
robotmay has quit [Remote host closed the connection]
robotmay has joined #ruby
dviola has quit [Quit: WeeChat 3.1]
dviola has joined #ruby
jla has joined #ruby
phaul has joined #ruby
rubydoc has joined #ruby
jinie has quit [Quit: ZNC 1.8.2 - https://znc.in]
al2o3-cr has joined #ruby
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
cadeskywalker has quit [Ping timeout: 240 seconds]
weaksauce has joined #ruby
venmx has quit [Ping timeout: 260 seconds]
jinie has joined #ruby
cadeskywalker has joined #ruby
Smasher has left #ruby [#ruby]
jla has quit [Ping timeout: 246 seconds]
TCZ is now known as figurine
blackmesa has quit [Ping timeout: 276 seconds]
venmx has joined #ruby
venmx has quit [Ping timeout: 265 seconds]
JaredCE has joined #ruby
jinie has quit [Quit: ZNC 1.8.2 - https://znc.in]
JaredCE has quit [Ping timeout: 265 seconds]
jinie has joined #ruby
jinie has quit [Client Quit]
jinie has joined #ruby
blackmesa has joined #ruby
jetchisel has quit [Ping timeout: 240 seconds]
jetchisel has joined #ruby
tinco has quit [Ping timeout: 245 seconds]
tinco has joined #ruby
jimms has joined #ruby
blackmesa1 has joined #ruby
blackmesa has quit [Ping timeout: 248 seconds]
Tempesta has quit [Quit: See ya!]
Tempesta has joined #ruby
feriman has joined #ruby
levifig has quit [Ping timeout: 245 seconds]
rheddry has joined #ruby
hiroaki has joined #ruby
harlin has quit [Quit: Leaving]
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
fernando-basso has quit [Quit: May the force]
MalkbabY has quit [Remote host closed the connection]
MalkbabY has joined #ruby
robotbee has quit [Ping timeout: 240 seconds]
figurine has quit [Quit: ...]
harlin has joined #ruby
feriman has quit [Ping timeout: 268 seconds]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
harlin has quit [Quit: Leaving]
<leftylink> ehhhh... that's a little weird. to_proc can't do protected methods?
pinkpandabot has joined #ruby
venmx has joined #ruby
Rudd0 has joined #ruby
<leftylink> odError => e; e end]
<leftylink> pinkpandabot rb class A def foos(as); as.map(&:foo) end; def foos2(as); as.map { _1.foo } end; protected def foo; :foo end end; [A.new.foos2([A.new, A.new]), begin; A.new.foo([A.new, A.new]); rescue NoMethodError => e; e end]
<pinkpandabot> [[:foo, :foo], #<NoMethodError: protected method `foo' called for #<A:0x00005569decc6bc0> - 2 more lines - https://carc.in/#/r/b19r
<leftylink> I see
<leftylink> > So we're looking at the instance of foo we got as though we are in a method of class Symbol, and we can't invoke a protected method.
<leftylink> all right then
<leftylink> I should have looked that up before posting here. I apologise for wasting your time and attention. as you were.
venmx has quit [Ping timeout: 246 seconds]
blackmesa1 has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jimms has quit [Quit: Leaving]
micah has left #ruby [#ruby]
gearnode has quit [Ping timeout: 268 seconds]
gearnode has joined #ruby
robotbee has joined #ruby
cuerbot has joined #ruby
elcuervo has quit [Ping timeout: 240 seconds]
stryek has quit [Quit: Connection closed for inactivity]
cthulchu_ has quit [Ping timeout: 240 seconds]
robotbee has quit [Ping timeout: 252 seconds]
bucareli has joined #ruby
gearnode has quit [Remote host closed the connection]
gearnode has joined #ruby
venmx has joined #ruby
venmx has quit [Ping timeout: 246 seconds]