jhass[m] changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.1.2, 3.0.4, 2.7.6: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
johnny has left #ruby [Leaving]
moldorcoder7 has quit [Ping timeout: 252 seconds]
jpn has joined #ruby
markong has quit [Ping timeout: 268 seconds]
jpn has quit [Ping timeout: 252 seconds]
nirvdrum has joined #ruby
nirvdrum has quit [Ping timeout: 268 seconds]
sylario has quit [Quit: Connection closed for inactivity]
nirvdrum has joined #ruby
nirvdrum has quit [Ping timeout: 252 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 252 seconds]
nirvdrum has joined #ruby
EternalSunshine has joined #ruby
Sankalp- has joined #ruby
Ziyan has joined #ruby
Sankalp has quit [Ping timeout: 268 seconds]
Sankalp- is now known as Sankalp
nirvdrum has quit [Quit: nirvdrum]
nirvdrum has joined #ruby
perdent has quit [Ping timeout: 252 seconds]
rhe has quit [Ping timeout: 268 seconds]
nirvdrum has quit [Quit: nirvdrum]
nirvdrum has joined #ruby
nirvdrum has quit [Read error: Connection reset by peer]
jpn has joined #ruby
nirvdrum has joined #ruby
jpn has quit [Ping timeout: 268 seconds]
Sophira has quit [Quit: Reconnecting]
Sophira has joined #ruby
justache has quit [Quit: ZNC 1.8.2 - https://znc.in]
nirvdrum has quit [Quit: nirvdrum]
rhe has joined #ruby
perrierjouet has quit [*.net *.split]
IsoLinCHiP has quit [*.net *.split]
andrea[m]1 has quit [*.net *.split]
cuppajoeman has quit [*.net *.split]
cnsvc has quit [*.net *.split]
JayDoubleu__ has quit [*.net *.split]
gigamo has quit [*.net *.split]
itok has quit [*.net *.split]
jtperreault has quit [*.net *.split]
marahin has quit [*.net *.split]
marahin has joined #ruby
IsoLinCHiP has joined #ruby
cnsvc has joined #ruby
cuppajoeman has joined #ruby
JayDoubleu__ has joined #ruby
jtperreault has joined #ruby
gigamo has joined #ruby
perrierjouet has joined #ruby
itok has joined #ruby
jpn has joined #ruby
andrea[m]1 has joined #ruby
jpn has quit [Ping timeout: 252 seconds]
Linux_Kerio has joined #ruby
repo has quit [*.net *.split]
wnd has quit [*.net *.split]
benjaminwil has quit [*.net *.split]
wnd has joined #ruby
benjaminwil has joined #ruby
repo has joined #ruby
repo is now known as Guest5727
peer has quit [Changing host]
peer has joined #ruby
Ziyan has quit [Ping timeout: 244 seconds]
Ziyan has joined #ruby
Ziyan has quit [Read error: Connection reset by peer]
Ziyan has joined #ruby
eddof13 has joined #ruby
Ziyan has quit [Ping timeout: 264 seconds]
Ziyan has joined #ruby
eddof13 has quit [Ping timeout: 252 seconds]
gigamo has quit [Changing host]
gigamo has joined #ruby
Ziyan has quit [Ping timeout: 255 seconds]
Ziyan has joined #ruby
jpn has joined #ruby
Ziyan has quit [Ping timeout: 240 seconds]
jpn has quit [Ping timeout: 252 seconds]
Ziyan has joined #ruby
arg_ has joined #ruby
protektwar has joined #ruby
protektwar has quit [Changing host]
protektwar has joined #ruby
perdent has joined #ruby
ur5us has joined #ruby
Ziyan has quit [Ping timeout: 256 seconds]
Ziyan has joined #ruby
_ht has joined #ruby
Rounin has joined #ruby
Ziyan has quit [Ping timeout: 248 seconds]
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
Ziyan has joined #ruby
jpn has joined #ruby
justache has joined #ruby
perdent has quit [Quit: Client closed]
Ziyan has quit [Ping timeout: 248 seconds]
Ziyan has joined #ruby
Ziyan has quit [Ping timeout: 268 seconds]
Ziyan has joined #ruby
jpn has quit [Ping timeout: 252 seconds]
jpn has joined #ruby
Ziyan has quit [Ping timeout: 256 seconds]
Ziyan has joined #ruby
Ziyan has quit [Ping timeout: 252 seconds]
Ziyan has joined #ruby
moldorcoder7 has joined #ruby
phryk has quit [Quit: ZNC 1.8.2 - https://znc.in]
justache has quit [Quit: ZNC 1.8.2 - https://znc.in]
Ziyan has quit [Ping timeout: 256 seconds]
phryk has joined #ruby
justache has joined #ruby
ur5us has quit [Ping timeout: 256 seconds]
Ziyan has joined #ruby
jpn has quit [Ping timeout: 256 seconds]
teclator has joined #ruby
arg_ has quit [Quit: Connection closed for inactivity]
Ziyan has quit [Ping timeout: 248 seconds]
justache has quit [Remote host closed the connection]
Ziyan has joined #ruby
justache has joined #ruby
justache has quit [Remote host closed the connection]
justache has joined #ruby
justache has quit [Remote host closed the connection]
justache has joined #ruby
jpn has joined #ruby
justache has quit [Remote host closed the connection]
justache has joined #ruby
justache has quit [Remote host closed the connection]
justache has joined #ruby
justache has quit [Remote host closed the connection]
rhe has quit [Quit: ~ *]
ur5us has joined #ruby
rhe has joined #ruby
justache has joined #ruby
justache has quit [Remote host closed the connection]
justache has joined #ruby
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
John_Ivan has quit [Read error: Connection reset by peer]
John_Ivan has joined #ruby
Ziyan has quit [Ping timeout: 268 seconds]
jpn has quit [Ping timeout: 252 seconds]
Ziyan has joined #ruby
justache has quit [Quit: ZNC 1.8.2 - https://znc.in]
justache has joined #ruby
gr33n7007h has quit [Ping timeout: 268 seconds]
gr33n7007h has joined #ruby
Ziyan has quit [Ping timeout: 256 seconds]
Ziyan has joined #ruby
rhe has quit [Ping timeout: 256 seconds]
<Zerock> Is it absolutely taboo to have executables in a gem not in the "bin" directory? I'm writing a program and I currently have the executable in the root of the project for ease of use. Putting it in a bin directory makes it annoying to run in place.
protektwar has quit [Ping timeout: 248 seconds]
markong has joined #ruby
rhe has joined #ruby
justache has quit [Quit: ZNC 1.8.2 - https://znc.in]
justache has joined #ruby
rhe has quit [Ping timeout: 248 seconds]
nirvdrum has joined #ruby
dminuoso has left #ruby [WeeChat 3.5]
<jhass[m]> Zerock: The only requirement is to list them in https://guides.rubygems.org/specification-reference/#executables. I've seen a convention where people put them in an `exe` folder gaining quite some traction
nirvdrum has quit [Quit: nirvdrum]
Guest5727 is now known as repo
repo is now known as Guest4515
Guest4515 has quit [Quit: WeeChat 3.5]
repo1 has joined #ruby
Ziyan_ has joined #ruby
nirvdrum has joined #ruby
Ziyan has quit [Ping timeout: 268 seconds]
Ziyan_ has quit [Ping timeout: 244 seconds]
Ziyan has joined #ruby
nirvdrum has quit [Quit: nirvdrum]
nirvdrum has joined #ruby
nirvdrum has quit [Client Quit]
gr33n7007h has quit [Ping timeout: 256 seconds]
gr33n7007h has joined #ruby
nirvdrum has joined #ruby
John_Ivan has quit [Quit: Ghost of the future.]
protektwar has joined #ruby
protektwar has quit [Changing host]
protektwar has joined #ruby
justache has quit [Remote host closed the connection]
justache has joined #ruby
nirvdrum has quit [Quit: nirvdrum]
shokohsc has quit [Read error: Connection reset by peer]
shokohsc has joined #ruby
protektwar has quit [Ping timeout: 248 seconds]
hightower2 has joined #ruby
<rapha> Zerock: the exe folder jhass[m] mentions is also the convention used by bundler-made Gems.
<Zerock> as stated, my executable is in the root of the project. my question is whether that's going to upset a lot of people
<Zerock> putting it in an exe directory is not materially different from putting it in a bin directory
<rapha> havenwood: had gotten around to trying it out meanwhile. Still scared of the Asterisk from my C(++) days. In Ruby it's a very well-mannered symbol actually.
<rapha> Zerock: isn't that more about keeping things nice and tidy and what that means to the author of the Gem, personally?
<Zerock> rapha: I'm very new to Ruby and have never packaged a gem before. I know that some communities/repositories have strict guidelines for how things should be organized in a package
<rapha> Are you writing a Gem for a pre-existing project then?
<Zerock> yes, but it's my own project
<Zerock> I've wrapped up everything I want to include in version 1.0 and I'm looking up how to write a gemspec, and it seems clear that you are expected to have a separate directory for the executable. My question is whether that is going to be a big deal to people or if it's just a suggestion
<jhass[m]> We're not easily annoyed by having to write bin/foo while testing, I doubt we'll be easily annoyed by having not to :P
<Zerock> righto, that's what I wanted to know
<rapha> My opinion is that that's totally fine then. There _is_ a section in https://guides.rubygems.org/patterns/
<jhass[m]> FWIW I've seen people running around with PATH="bin:..."
<rapha> [... on this]
<rapha> jhass[m]: annoyedly, i sometimes do that during Gem development. but not as part of ~/.bashrc.
<jhass[m]> not really seeing a dedicated section there :D There's https://guides.rubygems.org/make-your-own-gem/#adding-an-executable however
<jhass[m]> Generally Ruby's community mindset is pretty flexible though
<rapha> That's what I meant. Maybe section was the wrong term, sorry.
<jhass[m]> Don't worry too much. Honestly you'll probably not have many people contributing in the first place unless extremely lucky....
<Zerock> jhass[m]: interestingly I did already have a stranger contribute to this project but he promptly vanished after his change got merged lawl
<Zerock> I think that was his random good deed for the day or something
<rapha> The beauty of GitHub
desnudopenguino has joined #ruby
splud has quit [Ping timeout: 255 seconds]
gr33n7007h has quit [Ping timeout: 256 seconds]
gr33n7007h has joined #ruby
rhe has joined #ruby
ur5us has quit [Ping timeout: 256 seconds]
splud has joined #ruby
ur5us has joined #ruby
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
protektwar has joined #ruby
protektwar has joined #ruby
protektwar has quit [Changing host]
ur5us has quit [Ping timeout: 256 seconds]
howdoi has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 256 seconds]
r3m has quit [Quit: WeeChat 3.7-dev]
r3m has joined #ruby
dostoyevsky2 has quit [Ping timeout: 264 seconds]
dostoyevsky2 has joined #ruby
arg_ has joined #ruby
protektwar has quit [Ping timeout: 256 seconds]
markong has quit [Ping timeout: 252 seconds]
Ziyan has quit [Ping timeout: 244 seconds]
Ziyan has joined #ruby
vandees has joined #ruby
protektwar has joined #ruby
protektwar has joined #ruby
Ziyan has quit [Ping timeout: 255 seconds]
Ziyan has joined #ruby
jpn has joined #ruby
protektwar has quit [Ping timeout: 248 seconds]
jpn has quit [Ping timeout: 256 seconds]
eladhel has joined #ruby
_root has joined #ruby
Ziyan has quit [Quit: Textual IRC Client: www.textualapp.com]
eladhel has quit [Ping timeout: 252 seconds]
<axisys> is there a difference between %w(bar qaz).include? foo and %w(bar qaz).include?(foo) when foo="bar" ?
_ht has quit [Remote host closed the connection]
<Zerock> axisys: those are the exact same. parentheses are (usually) optional in ruby.
<ccooke> axisys: brackets are optional in general, but they are sometimes necessary when you are passing a block. "method(foo) { code }" is equivalent to "method(foo, &block)" (where 'block' is an anonymous block of "{ code }". However, "method foo { code }" is equivalent to method( foo(&block) )
<Zerock> I have found some edge cases where omitting the parens would break something, but those two syntaxes are the exact same call
vandees has quit [Ping timeout: 256 seconds]
<ccooke> (There are a few other cases, but that's the most common)
<Zerock> edge cases like: if foo bar || baz qux
<Zerock> I think the lack of parens runs up against operator priority
<ccooke> exactly
vandees has joined #ruby
<ccooke> or to put it another way, there is an implied parenthesis operator that has a lower priority than some other operators.
<ccooke> (It's not in the operator table, mind, but it would sometimes be easier to explain things if it was)
vandees has quit [Quit: Igloo IRC: https://iglooirc.com]
<leftylin1> and then you have some absolute travesty like
<leftylin1> pandabot: rb puts {1 => 2}
<pandabot> - 1 more lines - stderr: -e:2: warning: One-line pattern matching is experimental, and the behavior may change in future vers ... 13 more chars - https://carc.in/#/r/dm4h
<leftylin1> yeah.
<leftylin1> pandabot: rb puts {a: 1}
<pandabot> stderr: -e:2: syntax error, unexpected ':', expecting '}' - exit 1 - https://carc.in/#/r/dm4i
<leftylin1> yeah
<leftylin1> and like you could 100% see instances where someone would actually want to output a hash
<leftylin1> so, parentheses required
<ccooke> Amusingly...
<ccooke> pandabot: rb purs **{a: 1}
<ccooke> hah.
<ccooke> pandabot: rb puts **{a: 1}
<ccooke> Bah. But yes, you *can* output it with some - in this case - nasty syntactic saccharine :-D
<axisys> Zerock, ccooke: 😱
arg_ has quit [Quit: Connection closed for inactivity]
jpn has joined #ruby
arg_ has joined #ruby
hightower3 has joined #ruby
hightower2 has quit [Ping timeout: 252 seconds]
jpn has quit [Ping timeout: 248 seconds]
Linux_Kerio has quit [Ping timeout: 244 seconds]
jpn has joined #ruby
markong has joined #ruby
John_Ivan has joined #ruby
jpn has quit [Ping timeout: 248 seconds]
sagax has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 252 seconds]
ur5us has joined #ruby
EternalSunshine has quit [Read error: Connection reset by peer]
arg_ has quit [Quit: Connection closed for inactivity]
ur5us has quit [Ping timeout: 256 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 252 seconds]
Aminda has quit [Ping timeout: 268 seconds]
Aminda has joined #ruby