claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 252 seconds]
roonsauce has quit [Ping timeout: 240 seconds]
ShalokShalom_ has joined #ruby
alex`` has quit [Ping timeout: 246 seconds]
Burgestrand has quit [Ping timeout: 260 seconds]
ShalokShalom has quit [Ping timeout: 252 seconds]
Burgestrand has joined #ruby
jgjorgji has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
bvcosta has quit [Remote host closed the connection]
thinkpad has quit [Ping timeout: 240 seconds]
bvcosta has joined #ruby
bigkevmcd has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
mkali has quit [Ping timeout: 255 seconds]
thinkpad has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
rabajaj has quit [Remote host closed the connection]
bigkevmcd has joined #ruby
jgjorgji has joined #ruby
A124 has quit [Ping timeout: 240 seconds]
workmad3_ has joined #ruby
bvcosta has quit [Ping timeout: 264 seconds]
A124 has joined #ruby
kn-928 has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
kn-928 has quit [Ping timeout: 240 seconds]
uZiel has quit [Ping timeout: 248 seconds]
Gadgetoid has quit [Ping timeout: 248 seconds]
Gadgetoid has joined #ruby
uZiel has joined #ruby
cagomez has joined #ruby
kies has quit [Ping timeout: 240 seconds]
frozengeek_ has joined #ruby
apparition has joined #ruby
cagomez has quit [Ping timeout: 248 seconds]
flughafen_ has quit [Ping timeout: 248 seconds]
frozengeek has quit [Ping timeout: 248 seconds]
bvcosta has joined #ruby
Slinky_Pete has joined #ruby
Slinky_Pete has quit [Ping timeout: 260 seconds]
cagomez has joined #ruby
rabajaj has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]
skweek has quit [Ping timeout: 264 seconds]
cagomez has quit [Ping timeout: 240 seconds]
skweek has joined #ruby
skweek has quit [Max SendQ exceeded]
frozengeek_ has quit [Quit: frozengeek_]
frozengeek_ has joined #ruby
claudiuinberlin has joined #ruby
Chuck_ has joined #ruby
charliesome has joined #ruby
claudiuinberlin has quit [Client Quit]
nadir is now known as DipoleHourglass
ldnunes has joined #ruby
matled has joined #ruby
Burgestrand has quit [Ping timeout: 240 seconds]
GodFather has joined #ruby
soyokaze has joined #ruby
frozengeek_ has quit [Quit: frozengeek_]
sekmo has joined #ruby
frozengeek_ has joined #ruby
skweek has joined #ruby
Burgestrand has joined #ruby
Mortomes|Work has quit [Ping timeout: 260 seconds]
qwedfg has quit [Ping timeout: 240 seconds]
frozengeek_ has quit [Client Quit]
claudiuinberlin has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Snowy has quit [Remote host closed the connection]
ShalokShalom_ has quit [Ping timeout: 252 seconds]
ShalokShalom has joined #ruby
ur5us has quit [Ping timeout: 255 seconds]
jameser_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
synthroid has joined #ruby
Slinky_Pete has joined #ruby
guille-moe has quit [Ping timeout: 240 seconds]
MyMind has quit [Ping timeout: 240 seconds]
phaul has quit [Ping timeout: 240 seconds]
Pisuke has joined #ruby
uZiel has quit [Read error: Connection reset by peer]
_aeris_ has quit [Write error: Connection reset by peer]
claudiuinberlin has joined #ruby
phaul has joined #ruby
Snowy has joined #ruby
_aeris_ has joined #ruby
Slinky_Pete has quit [Ping timeout: 260 seconds]
gnufied has joined #ruby
gr33n7007h has joined #ruby
uZiel has joined #ruby
zeitchef has joined #ruby
guille-moe has joined #ruby
zeitchef has quit [Quit: Leaving]
FahmeF has quit [Remote host closed the connection]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
soyokaze has quit [Quit: Leaving]
gr33n7007h is now known as al2o3-cr
claudiuinberlin has joined #ruby
flughafen_ has joined #ruby
bronson has joined #ruby
Snowy has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 264 seconds]
<dminuoso>
depesz: What brought you over to #ruby?
<dminuoso>
Shouldn't you be fiddling with postgres? :-)
minimalism has quit [Quit: minimalism]
FahmeF has joined #ruby
<depesz>
dminuoso: i am, and was, but needed informationa bout "gem" thing.
<depesz>
i've seen ruby script, working in ruby 2.1, that has line "gem ....", despite not requiribng anything earlier, and I didn't know where to find information about it, some docs? what module? I couldn't find it in core
apparition has quit [Read error: Connection reset by peer]
kn-928 has quit [Ping timeout: 240 seconds]
ShalokShalom has quit [Remote host closed the connection]
<Salmonidae>
hi depesz. it is a method implemented by rubygems. i think it ensures the version that is required is the version you specify, gem "foo", "= 1.0.0".
<Salmonidae>
private visibility methods are usually hidden by default, in yard
<depesz>
ok. for now my problem is solved. I just wish it was somehow easier to find, instead of asking in here.
<Salmonidae>
yeah. it's tough sometimes.especially since ruby-doc.org ranks so highly in search engines. try ruby-doc.info instead. it can search by class/method name (in browser, not "cmd+f" filter as recommended by rdoc). and is just generally much better. so it might help a tiny bit more. anyway it wouldn't have helped in this case regardless :(
<pilne>
is this where i'd ask how to "update" the ruby-versions available to ruby-install? I've googled around and i can't get my ruby-install to show higher than 2.3.3
knight33 has joined #ruby
mkali has joined #ruby
__Yiota has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
roshanavand has quit [Quit: Leaving]
rabajaj has quit [Remote host closed the connection]
<matthewd>
rubygems is stdlib, not core... but since ruby 1.9, there's a hidden `require "rubygems"` that's executed by default (unless run with --disable=gems)
<Salmonidae>
somewhere in there, it might be documented
<Salmonidae>
i cant find it
<Salmonidae>
not even with the method filter
<matthewd>
Scrolling to g for gem worked for me ¯\_(ツ)_/¯
<Salmonidae>
yes. i think it has to >3 chars to apply the filter. not sure.
<matthewd>
The filter applies to the module too
<Salmonidae>
ah yeah. that works better.
<matthewd>
So filtering for kernel has more hope, as we're looking for a method whose name appears in every namespace in the gem :P
<Salmonidae>
but it's still terribe
roshanavand has joined #ruby
<matthewd>
Everything's terrible... but at least it contains the current version, and uses a parser compatible with the source
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Salmonidae>
in what sense is everything terrible? that website is low quality, and it's almost official for how often it is used, for a major programming language. this fact is lost on most rubyists.
millerti has quit [Ping timeout: 240 seconds]
<matthewd>
It's used often because alternatives are also terrible. Thus: everything's terrible.
<Salmonidae>
i think it's better to say, "nothing's perfect", and there's varying levels of good, with rdoc at the bottom and yard at the top. you may say its subjective, but look at the technical merits too
cdg has joined #ruby
roshanavand has quit [Quit: Leaving]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
synthroid has quit [Remote host closed the connection]
roshanavand has joined #ruby
GodFather has quit [Ping timeout: 240 seconds]
<matthewd>
If someone would teach yard to parse rdoc inputs, I'd be a happy person. But right now, saying yard makes better docs is about as useful as saying that javadoc does: neither one can (or wants to) properly parse the source I want documented.
<Salmonidae>
so. your issue is clearly that you do not like the @tags, right?
<matthewd>
My issue is that I want documentation of ruby core and stdlib
<Salmonidae>
yard does so. do you know that mruby also uses yard?
<matthewd>
For Rails, yes, the problem is that people don't like @tags. I do, but people don't.
<Salmonidae>
sure. personally, i think they're great and have proven to be able to document the "meta magic" of ruby.
<Salmonidae>
i agree with you, but click on 'methods', it's documented. the landing page is just not good.
claudiuinberlin has joined #ruby
jgjorgji has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<matthewd>
Yeah, yard has much better powers with meta stuff. That's why I'd seriously like to see a yard that could fully parse rdoc hints: so we could use it on Rails, without having to sell people on a mass change of existing doc-comments, and just use @tags on things that rdoc currently can't handle.
<Salmonidae>
sure. the thing is tho yard is designed to be pluggable, so it just requires someone to take the effort. that's why i think it is the best ruby doc tool.
<matthewd>
Ah, that's fair. Because of the presentation, I went for SecureRandom module in yard, then couldn't see where to go.
GodFather has joined #ruby
cdg has quit [Ping timeout: 255 seconds]
<Salmonidae>
i have seen yard plugins that can document AS::Concern and so on, properly, for example
<Salmonidae>
actually think it was 'concerning'
<Salmonidae>
documenting its meta
<matthewd>
Yes. That sort of stuff's why I want it. But until it can learn :doc: and :nodoc:, I'll buy that it's likely the best tool to document one's gem, but not that it's the best tool to document someone else's rdoc-written gem.
<matthewd>
(see the fact that it wasn't showing Kernel#gem)
GodFather_ has joined #ruby
GodFather has quit [Client Quit]
<Salmonidae>
i think it could support it (i don't know for sure). i think the author of yard simply thinks both of those are a bad idea, for good reason actually. his argument makes sense.
<Salmonidae>
his argument is that ruby visibility rules can apply
<Salmonidae>
for is and isn't documentable
<matthewd>
Well Kernel#gem seems a pretty good counterargument IMO, but that's beside the point
<Salmonidae>
his opinionated but his tool is pluggable, so you can add your own opinions and take his away, to a certain extent.
<Salmonidae>
he's*
<Salmonidae>
sure, but actually solveable. you just need an appropiate .yardopts, probably.
<matthewd>
Yep. But as long as the tool isn't so plugged, it's deliberately misdocumenting stdlib, so rubydoc.info is bad. Prettier, but bad.
GodFather_ has quit [Remote host closed the connection]
GodFather_ has joined #ruby
<matthewd>
I can't do much about rubydoc.info, but having someone solve this for Rails is in fact on my todo list, FWIW
govg has quit [Ping timeout: 248 seconds]
flughafen_ has quit [Ping timeout: 240 seconds]
govg has joined #ruby
<Salmonidae>
sure. nothing's perfect. i just think yard has the most potential
<matthewd>
My challenge is somewhat larger, though: to manage a smooth transition, I think I need both a read-rdoc-formatting plugin, and an output formatter that'll match our current API site
DLSteve has joined #ruby
<Salmonidae>
hm, not sure. i'm not familiar with rails that much. it supports templates though, although i have never seen one besides the default (rubydoc.info).
GodFather_ has quit [Remote host closed the connection]
FahmeF has quit [Ping timeout: 264 seconds]
<matthewd>
(which is itself not without its problems, though I think somewhat better than the rdoc default... I'd just rather not get an argument for a new engine get bogged down in a comparison of their outputs)
<Salmonidae>
well. that's the headache of major project. have to walk slow, and listen to a lot of noise. so it can be hard to get things done.
<matthewd>
Yeah, I haven't looked in real detail, but assume a new output template would be the relatively easier of the two tasks
sekmo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GodFather has joined #ruby
cout has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jgjorgji has joined #ruby
claudiuinberlin has joined #ruby
KevinSjoberg has joined #ruby
InfinityFye has quit [Quit: Leaving]
kn-928 has joined #ruby
Slinky_Pete has joined #ruby
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
selim has quit [Ping timeout: 240 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
selim has joined #ruby
charliesome has joined #ruby
Slinky_Pete has quit [Ping timeout: 255 seconds]
claudiuinberlin has joined #ruby
ta_ has quit [Remote host closed the connection]
swills has quit [Remote host closed the connection]
swills has joined #ruby
swills has joined #ruby
Chuck_ has quit [Remote host closed the connection]
swills has quit [Remote host closed the connection]
swills has joined #ruby
swills has joined #ruby
swills has quit [Changing host]
spt0 has joined #ruby
chouhoulis has joined #ruby
bvcosta has quit [Remote host closed the connection]
dionysus69 has joined #ruby
bvcosta has joined #ruby
NeverTired has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
dionysus69 has quit [Client Quit]
webnanners has quit [Ping timeout: 248 seconds]
gnufied has quit [Ping timeout: 246 seconds]
gnufied has joined #ruby
Ishido has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
webnanners has joined #ruby
bvcosta has quit [Ping timeout: 246 seconds]
claudiuinberlin has joined #ruby
Chuck_ has joined #ruby
ana_ has quit [Remote host closed the connection]
GodFather has quit [Ping timeout: 264 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
guardian has joined #ruby
ana_ has joined #ruby
ShalokShalom has quit [Remote host closed the connection]
_aeris_ has quit [Ping timeout: 248 seconds]
uZiel has quit [Ping timeout: 248 seconds]
roshanavand has quit [Quit: Leaving]
_aeris_ has joined #ruby
bvcosta has joined #ruby
bladdezz has left #ruby [#ruby]
synthroid has joined #ruby
bronson has joined #ruby
uZiel has joined #ruby
Rapture has joined #ruby
FrostCandy has joined #ruby
ForeignBiscuit has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ForeignBiscuit is now known as ResidentBiscuit
duckpuppy has joined #ruby
cagomez has joined #ruby
skweek has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
roonsauce has joined #ruby
millerti has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GodFather has joined #ruby
cagomez has quit [Ping timeout: 246 seconds]
balazs_ has joined #ruby
phaul has quit [Ping timeout: 240 seconds]
__Yiota has joined #ruby
MarkBilk has joined #ruby
roonsauce has quit []
roonsauce has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
Snowy has joined #ruby
MarkBilk__ has quit [Ping timeout: 240 seconds]
bvcosta has quit [Remote host closed the connection]
mtkd has quit [Ping timeout: 264 seconds]
mtkd has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
rgr has joined #ruby
hogetaro has quit [Quit: Leaving...]
bvcosta has joined #ruby
ledestin has joined #ruby
Archrover has quit [Changing host]
Archrover has joined #ruby
ana_ has quit [Ping timeout: 252 seconds]
npgm has joined #ruby
ledestin has quit [Ping timeout: 264 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alex`` has quit [Quit: WeeChat 1.9]
alex`` has joined #ruby
chouhoul_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hogetaro has joined #ruby
chouhoulis has quit [Ping timeout: 248 seconds]
claudiuinberlin has joined #ruby
skweek has quit [Ping timeout: 246 seconds]
r7c has quit [Quit: Leaving]
pilne has quit [Quit: Quitting!]
hogetaro has quit [Client Quit]
Burgestrand has quit [Quit: Closing time!]
rippa has joined #ruby
gusrub has joined #ruby
skweek has joined #ruby
TomyWork has quit [Ping timeout: 240 seconds]
mkali has quit [Quit: mkali]
mkali has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bvcosta has quit [Remote host closed the connection]
bvcosta has joined #ruby
jinie has quit [Ping timeout: 260 seconds]
polishdub has joined #ruby
baroquebobcat has joined #ruby
bruno- has joined #ruby
jinie has joined #ruby
bvcosta has quit [Ping timeout: 264 seconds]
gizmore|2 is now known as gizmore
synthroid has quit [Remote host closed the connection]
cschneid has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MrSparkle has quit [Ping timeout: 240 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
troys has joined #ruby
sepp2k has joined #ruby
Siyfion has quit [Read error: Connection reset by peer]
Siyfion has joined #ruby
<al2o3-cr>
amosbird: what are you trying to do?
chouhoul_ has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
jrafanie has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
synthroid has joined #ruby
Dimik has joined #ruby
Dimik has quit [Client Quit]
synthroi_ has joined #ruby
bmurt has joined #ruby
synthroid has quit [Ping timeout: 240 seconds]
Dimik has joined #ruby
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
phaul has joined #ruby
dviola has joined #ruby
cagomez has joined #ruby
cagomez has quit [Client Quit]
jrafanie_ has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
jrafanie has quit [Ping timeout: 248 seconds]
mark_66 has quit [Remote host closed the connection]
Slinky_Pete has joined #ruby
karunamon has quit [Ping timeout: 240 seconds]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skweek has joined #ruby
Slinky_Pete has quit [Ping timeout: 246 seconds]
balazs_ has quit [Ping timeout: 240 seconds]
Asher has joined #ruby
conta has quit [Ping timeout: 240 seconds]
Asher has quit [Client Quit]
jrafanie_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
noobineer has quit [Ping timeout: 248 seconds]
KevinSjoberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
Chuck_ has quit [Remote host closed the connection]
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
mustmodify_ has joined #ruby
synthroi_ has quit [Remote host closed the connection]
<mustmodify_>
I'm doing a half-hour presentation about Ruby to a developer meetup. I know a ton about Ruby. I love Ruby. But I'm having a hard time thinking of exactly how to express what I love about Ruby in small examples that will be digestable to non-Ruby devs. Any thoughts?
TomyLobo has joined #ruby
duckpupp1 has joined #ruby
duckpupp1 has quit [Client Quit]
troys is now known as troys_
s00pcan has quit [Ping timeout: 240 seconds]
knight33 has joined #ruby
milardovich has joined #ruby
ascarter has joined #ruby
workmad3_ has quit [Ping timeout: 248 seconds]
frozengeek_ has joined #ruby
[Butch] has joined #ruby
Serpent7776 has quit [Quit: Leaving]
KevinSjoberg has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duckpuppy has quit [Quit: WeeChat 1.9]
millerti has joined #ruby
Asher has joined #ruby
Snowy has quit [Remote host closed the connection]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrafanie has joined #ruby
cdg has quit [Ping timeout: 248 seconds]
cdg_ has quit [Ping timeout: 246 seconds]
NeverTired has quit [Quit: Connection closed for inactivity]
al2o3-cr has quit [Ping timeout: 240 seconds]
GodFather_ has quit [Ping timeout: 264 seconds]
cdg__ has quit [Ping timeout: 248 seconds]
thuryn has joined #ruby
<thuryn>
if i do this, will it create an infinite loop?
kn-928 has joined #ruby
<thuryn>
my_string = 'this\r\n and that\r\n'.gsub(/\//, '//')
al2o3-cr has joined #ruby
<thuryn>
my_string = 'this\r\n and that\r\n'.gsub(/\//, '\\') # this rather, making each \ into \\
KevinSjoberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso>
?tias
<ruby[bot]>
Why don't you try it and see for yourself?
KevinSjoberg has joined #ruby
frozengeek_ has joined #ruby
belmoussaoui_ has quit [Remote host closed the connection]
shwouchk has joined #ruby
belmoussaoui_ has joined #ruby
Slinky_Pete has quit [Remote host closed the connection]
oleo has quit [Remote host closed the connection]
jolamb has joined #ruby
<thuryn>
it doesn't, but the number of '\\' you have to have in the replacement part is mind-bending.
phaul has quit [Ping timeout: 240 seconds]
baroquebobcat has quit [Ping timeout: 240 seconds]
<dminuoso>
thuryn, thats because \ is an escape character in gsub itself
<dminuoso>
thuryn, its used for things like \1 or \&
<dminuoso>
so the "real single" backslash is \\
<thuryn>
not in practice.
Chuck_ has left #ruby [#ruby]
<thuryn>
to turn a single \ into \\, it took this: my_string.gsub(/\\/,'\\\\\\')
<thuryn>
SIX backslashes, not four.
<thuryn>
8 backslashes has identical results. TEN backslashes results in \ becoming \\\
<thuryn>
it's WEIRD i tell ya
<dminuoso>
thuryn, that's because a "real single" backslash serves as a different escape char on its own
gusrub has quit [Remote host closed the connection]
vivus has joined #ruby
benlieb has joined #ruby
gusrub has joined #ruby
frozengeek_ has quit [Quit: frozengeek_]
<thuryn>
that doesn't explain why the first "\\" seems to not do anything, but the after that, "\\\\" becomes "\" in the final form.
<matthewd>
'\\' is one slash in a string; '\\\\' is one slash in a replacement, because of what dminuoso said
<vivus>
Hello all. If I have a ruby/rails project that has a Procfile and other (what I would assume are setup/config files), how would I go about executing/running such a setup?
<thuryn>
so where does the final \\ go?
ta_ has joined #ruby
<matthewd>
You need more than four because you want more than one slash in your result
milardovich has quit []
baroquebobcat has joined #ruby
<matthewd>
?rails vivus
<ruby[bot]>
vivus: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<havenwood>
vivus: 2.3.5 came out today, so that'll probably have to do for the moment.
<vivus>
looks okay I guess? I know that ruby isn't critical for containers, so there would be no conflicts with any system-ruby (although none is present)
<vivus>
s/containers/ubuntu-OS
<havenwood>
vivus: Ruby version managers and Brightbox packages play nicely with system Ruby anyways.
benlieb has quit [Quit: benlieb]
biberu has quit []
phaul has joined #ruby
jrafanie has joined #ruby
claudiuinberlin has joined #ruby
sameerynho has joined #ruby
sameerynho is now known as Guest85415
knight33 has joined #ruby
Slinky_Pete has joined #ruby
nofxx has quit [Remote host closed the connection]
rawste has joined #ruby
troys_ is now known as troys
uZiel has quit [Ping timeout: 248 seconds]
Slinky_Pete has quit [Ping timeout: 240 seconds]
jrafanie_ has joined #ruby
graft is now known as Guest37165
Dimik has quit [Read error: Connection reset by peer]
jrafanie has quit [Ping timeout: 260 seconds]
Dimik has joined #ruby
sepp2k has quit [Ping timeout: 255 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has quit []
dviola has quit [Quit: WeeChat 1.9]
milardovich has joined #ruby
orbyt_ has joined #ruby
dionysus69 has joined #ruby
rabajaj has quit [Quit: Leaving]
al2o3-cr has quit [Quit: WeeChat 1.9]
gr33n7007h has joined #ruby
yqt has joined #ruby
ozcanesen has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
zeitchef has joined #ruby
__Yiota has quit [Read error: Connection reset by peer]
synthroid has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 255 seconds]
gr33n7007h is now known as al2o3-cr
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roonsauce has quit [Remote host closed the connection]
roonsauce has joined #ruby
r3QuiEm_cL has joined #ruby
enterprisey has quit [Read error: Connection reset by peer]
r3QuiEm_cL has quit [Client Quit]
roonsauce has quit [Ping timeout: 248 seconds]
Burgestrand has quit [Quit: Closing time!]
<quuxman>
If "dict = {a: 1, b: 2}; foo(dict)" is the same as "foo(a:1, b:2)" how do I pass dict to foo as one argument?
ozcanesen has quit [Quit: ozcanesen]
gusrub has quit [Remote host closed the connection]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gusrub has joined #ruby
ozcanesen has joined #ruby
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Max SendQ exceeded]
goyox86 has left #ruby [#ruby]
__Yiota has joined #ruby
<havenwood>
quuxman: In both your examples there's a lone hash as the sole argument. (Presuming the latter is a bare Hash and not optional keyword arguments, which it is also valid syntax for.)
goyox86_ has joined #ruby
nofxx has joined #ruby
selim has quit [Ping timeout: 248 seconds]
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Max SendQ exceeded]
enterprisey has joined #ruby
selim has joined #ruby
chouhoul_ has joined #ruby
s3nd1v0g1us has joined #ruby
tcopeland has quit [Quit: tcopeland]
goyox86_ has left #ruby [#ruby]
goyox86_ has joined #ruby
chouhoulis has quit [Ping timeout: 248 seconds]
skweek has joined #ruby
FrostCandy has quit []
chouhoul_ has quit [Ping timeout: 248 seconds]
troys_ is now known as troys
ozcanesen has quit [Quit: ozcanesen]
polishdub has quit [Quit: leaving]
<quuxman>
havenwood: so if I understand the behavior of "foo(dict)" depends on the definition of foo, in that if it has named arguments, it will pass the contents of dict, otherwise it will pass dict as a single argument
<quuxman>
haha metaprogramming is frighteningly easy in Ruby :-P
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<SeepingN>
and nothing else matas ♫
phaul has quit [Ping timeout: 260 seconds]
jamesaxl has quit [Quit: WeeChat 1.8]
rgr has quit [Quit: rgr]
lele has quit [Ping timeout: 260 seconds]
lele has joined #ruby
enterprisey has quit [Remote host closed the connection]
<orbyt_>
What's the difference between a .ru file and a .rb file? .ru appears to still be ruby...
<SeepingN>
russian ruby?
Silthias1 has joined #ruby
Silthias has quit [Ping timeout: 246 seconds]
ozcanesen has quit [Quit: ozcanesen]
<matthewd>
orbyt_: config.ru is a rackup file: it's ruby, but to be evaluated in a specific context.. like a rakefile
<orbyt_>
matthewd Thought as much, thanks!
ozcanesen has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
cschneid has quit [Remote host closed the connection]
DTZUZO has joined #ruby
high_fiver has quit [Ping timeout: 260 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skweek has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
nofxx has quit [Remote host closed the connection]
ozcanesen has quit [Quit: ozcanesen]
r3QuiEm_cL has joined #ruby
ozcanesen has joined #ruby
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
<nofxx>
Anyone running Ryzen? wondering if ruby/spec will have more gain in ryzen 16 cores, on i7 single core speed
preyalone has quit [Quit: Connection closed for inactivity]
def_jam is now known as eb0t
enterprisey has joined #ruby
gusrub has quit [Remote host closed the connection]
Puffball_ has joined #ruby
ozcanesen has quit [Quit: ozcanesen]
__Yiota has joined #ruby
Puffball has quit [Ping timeout: 240 seconds]
carnegie has joined #ruby
ozcanesen has joined #ruby
nertzy has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
goyox86_ has quit [Quit: goyox86_]
Silthias has joined #ruby
Silthias1 has quit [Ping timeout: 252 seconds]
marxarelli is now known as marxarelli|afk
mim1k has quit [Ping timeout: 248 seconds]
bronson has joined #ruby
ozcanesen has quit [Quit: ozcanesen]
brent__ has joined #ruby
tvw has quit [Remote host closed the connection]
cdg has quit [Ping timeout: 248 seconds]
<quuxman>
havenwood: how do I apply a list as function arguments?
<quuxman>
nm, just like python: foo(*L)
bronson has quit [Ping timeout: 260 seconds]
twillkens has quit [Ping timeout: 240 seconds]
<quuxman>
What is going on?? In a test I have: expect(Foo::Bar).to receive(:call).with(*EXAMPLE_DICT.values) # but I'm getting "error expected (foo, bar, ...) got: ({:a:foo, b:bar})". How is that passing a dictionary?
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]