sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chipotle has quit [Quit: cheerio]
mistermocha has joined #ruby
nibbo has quit [Ping timeout: 240 seconds]
diego4 has quit [Ping timeout: 264 seconds]
blackmesa has quit [Ping timeout: 264 seconds]
citrusfizz has quit [Read error: Connection reset by peer]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackgoat has quit [Ping timeout: 260 seconds]
mistermocha has quit [Ping timeout: 268 seconds]
tmtwd has joined #ruby
s2013 has joined #ruby
claw has quit [Read error: Connection reset by peer]
devbug has joined #ruby
claw has joined #ruby
klka has joined #ruby
rbennacer has quit [Remote host closed the connection]
Digpig has quit [Ping timeout: 260 seconds]
sadin has quit [Quit: Leaving]
sudoubuntu has joined #ruby
Digpig has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<klka>
I installed ruby using rbenv, it is possible to copy the files ~/rbenv to similar linux and run ruby there?
<eam>
quite likely, but not necessarily
karmatr0n has joined #ruby
<klka>
and add it to PATH env?
<klka>
what do you mean eam
rbennacer has joined #ruby
nibbo has joined #ruby
<eam>
copying compiled binaries between linux systems tends to work for similar architectures and linux versions, but doesn't always
goglosh has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
<eam>
it's surprisingly easy to encounter architecture conflicts, even within x86
<eam>
or of course, differing library dependencies
<eam>
depends on the two systems and how you compiled your rubies
Chagel has joined #ruby
sgambino has joined #ruby
<goglosh>
I have a question
<klka>
thanks eam
<goglosh>
is irb written in ruby'
<goglosh>
?
<eam>
goglosh: yes
<goglosh>
thanks
<eam>
it's very easy to make your own irb!
<goglosh>
:) you got me there
karmatr0n has quit [Ping timeout: 244 seconds]
<eam>
goglosh: ruby -pe1
<eam>
there's no prompt, but type in something like 1 + 1
<eam>
er oops
<goglosh>
ooh I get it
<eam>
I mean ruby -pe'$_=eval $_'
<eam>
:)
<goglosh>
well kind of
<goglosh>
ok
<eam>
-pe1 is just cat
* goglosh
was wondering what the 1 stood for
<goglosh>
anyway, I got the source to ruby but
<goglosh>
it doesn't seem to come with that of irb or
<goglosh>
anything else really
<eam>
-e1 is just a way to give ruby a short program that does nothing
<goglosh>
oh
<eam>
say, if you only want the effect of the other fancy args like -p
kies has joined #ruby
<eam>
goglosh: check lib/irb
<eam>
and bin/irb for the stub that executes it
<goglosh>
thanks!
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
<goglosh>
it's kind of hard to see that with all the *.c files right there at the root dir
<goglosh>
several files!
<Ox0ded>
goglosh: `ls --group` is good.
<goglosh>
didn't know about that switch
Zggb has joined #ruby
<goglosh>
this shall keep me busy for a while
mistermocha has joined #ruby
Musashi007 has joined #ruby
Musashi007 has quit [Client Quit]
porkaroo has joined #ruby
<goglosh>
thanks people
HouseMD has joined #ruby
<goglosh>
oh of course .irbrc is a thing
<goglosh>
I should've known
mistermocha has quit [Ping timeout: 264 seconds]
HouseMD is now known as GG
devbug has quit [Quit: ZZZzzz…]
ta_ has joined #ruby
Chagel_ has joined #ruby
paradisaeidae has joined #ruby
yfeldblum has joined #ruby
baweaver has joined #ruby
Chagel has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
rubie has quit [Remote host closed the connection]
rubie has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
sdwrage has joined #ruby
j2k_ has quit [Ping timeout: 250 seconds]
Rasi has quit [Ping timeout: 268 seconds]
ta_ has quit [Ping timeout: 276 seconds]
x0f has quit [Ping timeout: 250 seconds]
matp has quit [Ping timeout: 250 seconds]
nano- has quit [Ping timeout: 250 seconds]
nano- has joined #ruby
abyx has joined #ruby
heyjim has quit [Ping timeout: 268 seconds]
MuffinPimp has quit [Ping timeout: 250 seconds]
j2k has joined #ruby
abyx has quit [Client Quit]
x0f has joined #ruby
mosez has quit [Ping timeout: 250 seconds]
kam270 has quit [Ping timeout: 248 seconds]
braincrash has quit [Quit: bye bye]
genpaku_ has joined #ruby
pikajude has quit [Ping timeout: 268 seconds]
shmuli_ has quit [Ping timeout: 250 seconds]
MuffinPimp has joined #ruby
Guest12896__ is now known as zrl
mosez has joined #ruby
pikajude has joined #ruby
pikajude has joined #ruby
rbennacer has quit [Remote host closed the connection]
genpaku has quit [Remote host closed the connection]
genpaku_ is now known as genpaku
shmuli has joined #ruby
marcdel has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
rubie has quit [Remote host closed the connection]
matp has joined #ruby
Rasi has joined #ruby
yqt has quit [Ping timeout: 264 seconds]
s2013 has joined #ruby
Musashi007 has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
braincrash has joined #ruby
diegoaguilar has joined #ruby
Suntzu has quit [Ping timeout: 268 seconds]
crameth has joined #ruby
Suntzu has joined #ruby
tomchapin has joined #ruby
hahuang65 has joined #ruby
stevenxl has joined #ruby
porkaroo has quit [Ping timeout: 248 seconds]
tomchapi_ has quit [Ping timeout: 260 seconds]
decoponyo has joined #ruby
zast has joined #ruby
smathy is now known as smathy_afk
banister has quit [Ping timeout: 250 seconds]
decoponio has quit [Ping timeout: 268 seconds]
blackmesa has joined #ruby
s1kx has quit [Ping timeout: 250 seconds]
oz has quit [Ping timeout: 250 seconds]
oz has joined #ruby
ensyde_ has quit [Quit: Leaving]
hahuang65 has quit [Ping timeout: 244 seconds]
banister has joined #ruby
decoponyo has quit [Max SendQ exceeded]
ramfjord has quit [Ping timeout: 268 seconds]
Musashi007 has quit [Quit: Musashi007]
s1kx has joined #ruby
decoponio has joined #ruby
chipotle has joined #ruby
bkxd has joined #ruby
cdg has quit [Remote host closed the connection]
gix has quit [Ping timeout: 248 seconds]
blackmesa has quit [Ping timeout: 244 seconds]
rbennacer has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
dravine has quit [Quit: dravine]
bkxd has quit [Ping timeout: 240 seconds]
klka has quit [Remote host closed the connection]
safe has joined #ruby
gix has joined #ruby
pawnbox has joined #ruby
RickHull has joined #ruby
mozzarella has quit [Ping timeout: 250 seconds]
pifon has joined #ruby
tjvc has quit [Ping timeout: 268 seconds]
tmtwd has quit [Ping timeout: 264 seconds]
josephan has joined #ruby
snoobydoo has joined #ruby
tjvc has joined #ruby
tjvc has quit [Changing host]
tjvc has joined #ruby
rubie has joined #ruby
<josephan>
I have "lib/poker.rb" that loads another file using located in "lib/poker/round.rb". I am using "require_relative 'poker/round'" to load the second file but I am still getting Uninitialized Constant Error. Is it easy to identify what I did wrong?
karmatr0n has joined #ruby
youch has quit [Ping timeout: 244 seconds]
<shevy>
josephan if the constant is in that second file, then this means that the file was not loaded
marcdel has quit [Ping timeout: 244 seconds]
<Ox0ded>
josephan: It must be that "poker/round.rb" is using some constant defined in "poker.rb"; you're loading it before the constant exists.
<Ox0ded>
You can either separate everything out into "lib/poker/" and just have "poker.rb" require everything in there, or sin a little and have some requires at the bottom of "poker.rb".
karmatr0n has quit [Ping timeout: 260 seconds]
B1n4r10 has joined #ruby
benlieb has joined #ruby
<goglosh>
Ox0ded: you once showed me away to see the compiled instructions of ruby code
mrgrieves has joined #ruby
<goglosh>
what was the module or whatever it was again?
jsaak has quit [Ping timeout: 250 seconds]
jsaak has joined #ruby
<Ox0ded>
goglosh: I'm sure I did. Sorry about that. :P
pwnd_nsfw` has quit [Read error: Connection reset by peer]
weemsledeux has quit [Ping timeout: 268 seconds]
<goglosh>
thanks!
<Ox0ded>
Sure thing. `RubyVM::InstructionSequence.new('17 + 25').to_a` is less noisy if the code you want to check is a String.
<Ox0ded>
The format and instruction names have changed slightly between versions, so mind those dragons.
<goglosh>
okay
mozzarella has joined #ruby
<goglosh>
and say, isthere a way to give single instructions?
sekrit has quit [Ping timeout: 612 seconds]
<goglosh>
nvm let me first understand how this works
Dimik has quit [Read error: Connection reset by peer]
<Ox0ded>
goglosh: I recently used it to show somebody how to pull the outermost method call out of a block: https://eval.in/541123
scepticulous has quit [Ping timeout: 244 seconds]
<Ox0ded>
That'd break on versions prior to 2.2, though, where that instruction was instead called `opt_send_simple`.
pwnd_nsfw has joined #ruby
<goglosh>
that's hard to read
johnmilton has quit [Remote host closed the connection]
<goglosh>
:P
mrgrieves has quit [Ping timeout: 276 seconds]
<Ox0ded>
Thanks.
solocshaw has quit [Ping timeout: 268 seconds]
<goglosh>
burakku majiku
<goglosh>
I'll stick to the easy stuff for now :`
Spami has quit [Quit: This computer has gone to sleep]
freerobby has quit [Quit: Leaving.]
<Ox0ded>
Fair enough. That aspect of Ruby isn't really meant for human consumption.
ta_ has joined #ruby
<josephan>
Ox0ded: Thank you! You were absolutely correct.
<Ox0ded>
josephan: Happy to help. :)
jenrzzz has quit [Ping timeout: 252 seconds]
<goglosh>
why do we have access to it then?
<Ox0ded>
Why not?
<goglosh>
or is it for the AI overlords'
tildes_ has joined #ruby
<Ox0ded>
I mean, it's used internally for keeping everything nice and modular. It just so happens that it's exported to userland for the weirdos that want to play with it.
fedexo has joined #ruby
<goglosh>
are you
<goglosh>
calling me a weirdo?
ta_ has quit [Ping timeout: 246 seconds]
<goglosh>
gee
<Ox0ded>
You just said it wasn't your bag?
<goglosh>
I said I'll stick to the human stuff FOR NOW :)
<goglosh>
is it weird to want to write in raw ruby bytecode?
sekrit has joined #ruby
mtkd has quit [Ping timeout: 252 seconds]
devbug has joined #ruby
mtkd has joined #ruby
<goglosh>
:P
<shevy>
depends on what you want to do
<shevy>
what do you want to do with these instructions?
Inside has quit [Ping timeout: 260 seconds]
<goglosh>
a debuggger
Renich has quit [Ping timeout: 246 seconds]
<goglosh>
(but as I said I'm not ready yet)
pifon has quit [Ping timeout: 244 seconds]
<shevy>
well that would fit then I suppose
benlieb has quit [Quit: benlieb]
bry4n_ has quit [Ping timeout: 268 seconds]
benlieb has joined #ruby
blackgoat has joined #ruby
hahuang65 has joined #ruby
elifoster has joined #ruby
karioleez has joined #ruby
existensil has quit [Ping timeout: 252 seconds]
safe has quit [Quit: Leaving]
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
ruby-lang586 has joined #ruby
arescorpio has quit [Excess Flood]
blackmesa has joined #ruby
duncannz has joined #ruby
josephan has quit [Ping timeout: 250 seconds]
hahuang65 has quit [Ping timeout: 248 seconds]
ruby-lang859 has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruby-lang586 has quit [Ping timeout: 250 seconds]
bkxd has joined #ruby
_blizzy_ has quit [Quit: Leaving]
amclain has quit [Quit: Leaving]
blackmesa has quit [Ping timeout: 248 seconds]
Yeomra has quit [Ping timeout: 260 seconds]
Musashi007 has joined #ruby
bkxd has quit [Ping timeout: 268 seconds]
ruby-lang859 has quit [Ping timeout: 250 seconds]
pifon has joined #ruby
BtcBen has joined #ruby
pifon has quit [Max SendQ exceeded]
bob434 has quit [Quit: This computer has gone to sleep]
pifon has joined #ruby
pifon has quit [Max SendQ exceeded]
bob434 has joined #ruby
pifon has joined #ruby
marcdel has joined #ruby
auzty has joined #ruby
pifon has quit [Max SendQ exceeded]
pifon has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
pifon has quit [Client Quit]
karmatr0n has joined #ruby
pifon has joined #ruby
jt__ has joined #ruby
tonini has joined #ruby
Chagel_ has quit [Remote host closed the connection]
dravine has joined #ruby
karmatr0n has quit [Ping timeout: 244 seconds]
pifon has quit [Max SendQ exceeded]
pifon has joined #ruby
darkf_ has joined #ruby
smathy_afk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Musashi007 has quit [Quit: Musashi007]
darkf has quit [Ping timeout: 244 seconds]
noService has joined #ruby
rbennacer has quit [Remote host closed the connection]
bob434 has quit [Quit: This computer has gone to sleep]
leftpad has quit [Remote host closed the connection]
hahuang65 has joined #ruby
Mia has quit [Read error: Connection reset by peer]
shmuli has quit [Remote host closed the connection]
Devalo has joined #ruby
Cooooo has quit [Remote host closed the connection]
krz has joined #ruby
shmuli has joined #ruby
karioleez has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 264 seconds]
marcdel has joined #ruby
blackmesa has joined #ruby
AnoHito_ has quit [Ping timeout: 260 seconds]
merida_ has joined #ruby
krz has quit [Quit: WeeChat 1.2]
yfeldblu_ has joined #ruby
czerasz has joined #ruby
merida has quit [Ping timeout: 248 seconds]
blackmesa has quit [Ping timeout: 244 seconds]
moeabdol1 has joined #ruby
fschuindt has joined #ruby
yfeldblum has quit [Ping timeout: 276 seconds]
yfeldblu_ has quit [Ping timeout: 248 seconds]
tildes_ has joined #ruby
<fschuindt>
Hello folks, any tip on how to build a monitor for a certain screen position (looking for changes). Like a sensor that will fire off when determined area in the screen changes.
moeabdol2 has joined #ruby
elifoster has quit [Ping timeout: 260 seconds]
jt__ has quit [Remote host closed the connection]
jokester has quit [Quit: recharge]
moeabdol1 has quit [Ping timeout: 260 seconds]
abyx has joined #ruby
abyx has quit [Client Quit]
fedexo has quit [Ping timeout: 248 seconds]
dopie_ has joined #ruby
Lomex has joined #ruby
fedexo has joined #ruby
astrobun_ has quit [Remote host closed the connection]
mrgrieves has joined #ruby
weaksauce has joined #ruby
marcoecc has quit [Read error: Connection reset by peer]
marcoecc has joined #ruby
Lomex has quit [Ping timeout: 246 seconds]
mrgrieves has quit [Ping timeout: 248 seconds]
dopie_ has quit [Quit: Lost terminal]
jokester has joined #ruby
oliver___ has joined #ruby
Eiam_ has joined #ruby
zapata has quit [Ping timeout: 260 seconds]
tildes_ has quit [Ping timeout: 248 seconds]
marcdel has quit [Ping timeout: 248 seconds]
Brando753 has left #ruby ["WeeChat 1.4"]
astrobun_ has joined #ruby
djbkd_ has joined #ruby
jokester has quit [Quit: WeeChat 1.4]
jokester has joined #ruby
noService has joined #ruby
saneax_AFK is now known as saneax
merida has joined #ruby
merida_ has quit [Read error: Connection reset by peer]
merida_ has joined #ruby
A5101 has joined #ruby
rubie has quit [Remote host closed the connection]
sauvin has joined #ruby
djbkd has quit [Remote host closed the connection]
merida has quit [Ping timeout: 276 seconds]
abyx has joined #ruby
abyx has quit [Client Quit]
BTRE has quit [Ping timeout: 246 seconds]
raeoks has joined #ruby
lxsameer has joined #ruby
karioleez has joined #ruby
krz has joined #ruby
ssiris has quit [Quit: End of Line]
karioleez has quit [Remote host closed the connection]
karioleez has joined #ruby
lsmola has joined #ruby
karioleez is now known as kareeoleez
blt has quit [Ping timeout: 276 seconds]
blackgoat has joined #ruby
merida has joined #ruby
aganov has joined #ruby
joonty has joined #ruby
rbennacer has joined #ruby
existensil has joined #ruby
hk238 has joined #ruby
joonty has quit [Client Quit]
tubuliferous has quit [Ping timeout: 260 seconds]
goglosh has quit [Quit: yeah]
merida_ has quit [Ping timeout: 276 seconds]
pelegreno has quit [Read error: Connection reset by peer]
rbennacer has quit [Ping timeout: 246 seconds]
Pupeno has joined #ruby
Devalo has quit [Remote host closed the connection]
hahuang65 has joined #ruby
pelegreno has joined #ruby
kareeoleez has quit []
agit0 has quit [Quit: zzzZZZ….]
kareeoleez has joined #ruby
Pupp3tm4st3r has joined #ruby
RyanMcCoskrie has joined #ruby
snoobydoo has quit [Ping timeout: 248 seconds]
rbennacer has joined #ruby
hahuang65 has quit [Ping timeout: 246 seconds]
czerasz has quit [Ping timeout: 268 seconds]
bkxd has joined #ruby
tubuliferous has joined #ruby
snoobydoo has joined #ruby
firstdayonthejob has joined #ruby
fedexo has quit [Ping timeout: 250 seconds]
blackmesa has joined #ruby
djbkd_ has quit [Remote host closed the connection]
rbennacer has quit [Read error: Connection reset by peer]
idletask has joined #ruby
abyx has joined #ruby
badleaf has joined #ruby
Macaveli has joined #ruby
bkxd has quit [Ping timeout: 252 seconds]
abyx has quit [Client Quit]
BtcBen has quit [Ping timeout: 244 seconds]
dn` has joined #ruby
Zggb has quit [Quit: Connection closed for inactivity]
blackmesa has quit [Ping timeout: 276 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CausaMortis has joined #ruby
mark3 has joined #ruby
rbennacer has joined #ruby
benlieb has quit [Quit: benlieb]
czerasz has joined #ruby
blt has joined #ruby
vale_tudo has quit [Ping timeout: 260 seconds]
astrobun_ has quit [Remote host closed the connection]
rbennacer has quit [Ping timeout: 252 seconds]
andikr has joined #ruby
speakingcode has quit [Ping timeout: 260 seconds]
dionysus69 has joined #ruby
yfeldblum has joined #ruby
ta_ has joined #ruby
yfeldblum has quit [Remote host closed the connection]
czerasz has quit [Ping timeout: 268 seconds]
yfeldblum has joined #ruby
rbennacer has joined #ruby
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
tubuliferous has quit [Ping timeout: 248 seconds]
firstdayonthejob has quit [Ping timeout: 264 seconds]
vdamewood has quit [Quit: Life beckons.]
Chagel has joined #ruby
astrobun_ has joined #ruby
marcdel has joined #ruby
gagrio-gone is now known as gagrio
Digpig has quit [Quit: Konversation terminated!]
rbennacer has quit [Ping timeout: 244 seconds]
speakingcode has joined #ruby
darkf_ is now known as darkf
TvL2386 has quit [Quit: Ex-Chat]
A5101 has quit [Quit: Leaving]
BTRE has joined #ruby
nhhc has joined #ruby
biberu has joined #ruby
ur5us has quit [Remote host closed the connection]
agit0 has joined #ruby
djbkd has joined #ruby
codecop has joined #ruby
krz has quit [Ping timeout: 264 seconds]
djbkd has quit [Ping timeout: 252 seconds]
mojca has quit [Quit: mojca]
skade has joined #ruby
postmodern has quit [Quit: Leaving]
ag4ve has joined #ruby
krz has joined #ruby
<ag4ve>
i'm not sure what ruby doesn't like with these groups - it seems to be having issues with '-' and ',' in them http://sprunge.us/BYeP
<ag4ve>
but idk how to fix it
<ag4ve>
also it doesn't seem to like my use of \( which is weird
mhoungbo has joined #ruby
Pupp3tm4st3r has quit [Quit: Leaving...]
sQVe has joined #ruby
Couch has joined #ruby
<ag4ve>
(i'm coming from the perl world - trying to create a chef ohai plugin - so it's probable i've got other issues the lexer hasn't gotten to but the regex stuff is stumping me)
<Ox0ded>
The '/' in "user/group" on Line 41 isn't being interpreted as part of the comment.
hahuang65 has quit [Ping timeout: 268 seconds]
paatalaBhairavi has joined #ruby
<ag4ve>
seriously?
bkxd has joined #ruby
paatalaBhairavi has quit [Client Quit]
<Ox0ded>
Well, removing it does away with all the syntax errors.
<ag4ve>
ha, well, ok i guess that'x my fix then - y'all got a bugs ml?
<ag4ve>
or if you want to handle it since i don't really know ruby...
<Ox0ded>
I'm trying to see whether it's documented behavior, but that seems unlikely.
djbkd has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 248 seconds]
blackmesa has joined #ruby
<ag4ve>
my first ruby script and i trip over it :)
<Ox0ded>
Leave it to a Perler. :P
<adaedra>
Hello
marcdel has quit [Ping timeout: 252 seconds]
* adaedra
resuscitates Ox0ded
<Ox0ded>
Morning, adaedra.
Ox0ded is now known as Ox0dea
<Ox0dea>
And thank you kindly.
pandaant has joined #ruby
<adaedra>
My pleasure.
bkxd has quit [Ping timeout: 244 seconds]
<Ox0dea>
I'd been dead ever since somebody mistyped my call sign as "Delta Echo Delta".
Emmanuel_Chanel has joined #ruby
<ag4ve>
heh
<ag4ve>
btw, while i'm here - any easy way to concatinate lines from a file when the last ended in '\' ?
<ag4ve>
(i'm pretty sure i don't handle command lines w/ comments at the end either, but...)
blackmesa has quit [Ping timeout: 240 seconds]
AlexRussia has quit [Ping timeout: 260 seconds]
<Caerus>
maan... sinus infection and studying ruby (or anything for that matter) don't go along :(
<ag4ve>
line.gsub(/#.*/,'') will be fine wrt comments in command lines - i have no idea how to concatinate w/ the next line when the last char is '/' though
Madplatypus has joined #ruby
<Ox0dea>
ag4ve: `lines.each_cons(2)` lets you process them pair-wise.
Pupeno has quit [Remote host closed the connection]
<ag4ve>
ah ty
<Ox0dea>
ag4ve: So, er, I guess /foo/ Regexp literals really ought to permit /s in comments, but it probably makes everything gnarlier than is warranted for something so small.
Chagel_ has joined #ruby
<Ox0dea>
If you're dead-set on having the slash in, `%r{foo} == /foo/`.
<djellemah>
ag4ve: I'd use a custom Enumerator for concatenating lines, but that might be overkill if you're new at ruby.
<Ox0dea>
Aye, you'd ideally want to walk them individually and maintain a simple state machine.
<Ox0dea>
But doing it with #each_cons is dirty and exciting. :P
Chagel has quit [Ping timeout: 240 seconds]
baweaver has quit [Remote host closed the connection]
<djellemah>
:-O right up perler's street...
vale_tudo has joined #ruby
pawnbox has quit [Remote host closed the connection]
Pupeno has joined #ruby
pawnbox has joined #ruby
diegoaguilar has joined #ruby
mojca has quit [Quit: mojca]
rbennacer has joined #ruby
vale_tudo has quit [Ping timeout: 244 seconds]
Pupeno has quit [Remote host closed the connection]
merida has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
devbug has quit [Quit: ZZZzzz…]
pawnbox has joined #ruby
Chagel_ has quit [Remote host closed the connection]
Chagel has joined #ruby
badleaf has quit [Ping timeout: 246 seconds]
<ag4ve>
ah thanks - i'll make the bug report so it's known - now that i know, i don't much care if it's fixed
rbennacer has quit [Ping timeout: 246 seconds]
<ag4ve>
though i would've assumed the parser would stop looking after # anyway
jero_ has quit [Ping timeout: 244 seconds]
<ag4ve>
well, # outside of character classes and not \#
mikecmpbll has joined #ruby
<ag4ve>
iirc i saw a (?#...) for comments in the middle of a regex which seemed weird to me, but i guess that's your third edge case
skade has quit [Quit: Computer has gone to sleep.]
<Ox0dea>
ag4ve: Well, when you think about it, you have to escape every other slash if you're using a /foo/ Regexp.
<Ox0dea>
I'm not sure whether that rule should be broken for embedded comments.
rbennacer has joined #ruby
<Ox0dea>
Onigmo *could* permit raw slashes in character classes, but it would unduly complicate things, and I think the same logic can be applied for comments.
czerasz has joined #ruby
tvw has joined #ruby
DoubleMalt has joined #ruby
rolha has joined #ruby
rbennacer has quit [Ping timeout: 260 seconds]
rbennacer has joined #ruby
tubuliferous has joined #ruby
<ag4ve>
my issue is parsing after a bare # w/ /x - after it hits # it shouldn't try any farther
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ag4ve>
idk if there are any unicode or ebdic cases that i'm not considering (i don't think so) but...
<ag4ve>
(or if ruby even compiles on a mainframe :P )
<ag4ve>
*ebcdic
the_drow has joined #ruby
ur5us has quit [Remote host closed the connection]
Devalo has joined #ruby
rbennacer has quit [Ping timeout: 244 seconds]
nodejunkie has quit [Ping timeout: 252 seconds]
Ropeney has joined #ruby
tubuliferous has quit [Ping timeout: 250 seconds]
karmatr0n has joined #ruby
hahuang65 has joined #ruby
x77686d has quit [Quit: x77686d]
devbug has joined #ruby
yfeldblum has quit [Ping timeout: 248 seconds]
Devalo has quit [Ping timeout: 250 seconds]
rbennacer has joined #ruby
Bloomer has quit [Remote host closed the connection]
devbug has quit [Client Quit]
devbug has joined #ruby
jt__ has joined #ruby
karmatr0n has quit [Ping timeout: 244 seconds]
ur5us has joined #ruby
hahuang65 has quit [Ping timeout: 248 seconds]
devbug has quit [Client Quit]
paradisaeidae has quit [Quit: ChatZilla 0.9.92 [Firefox 45.0.1/20160315153207]]
Bloomer has joined #ruby
Bloomer has quit [Read error: Connection reset by peer]
marcdel has joined #ruby
lxsameer has quit [Ping timeout: 246 seconds]
<manveru>
ag4ve: it's more likely to be a bug in oniguruma
<manveru>
though ruby forked that, so in the end it's up to matz and co to fix it :)
<Ox0dea>
I don't think anything's broken. :x
<Ox0dea>
The comments are still "part of" the Regexp, and so have their syntax slightly constrained.
<manveru>
oh wait, it's working with %r?
blackmesa has joined #ruby
<manveru>
then, nevermind, didn't read all the history ^^;
Xeago has quit [Read error: Connection reset by peer]
<ag4ve>
i guess then the constraint should at least be documented (though that wouldn't've helped me - i wouldn't've thought to look at a comment constraint)
rbennacer has quit [Ping timeout: 250 seconds]
rbennacer has joined #ruby
polll has joined #ruby
mrgrieves has joined #ruby
<ag4ve>
btw, is %r{...} considered the "right way" vs /.../ ?
snoobydoo has quit [Ping timeout: 260 seconds]
<manveru>
usually, yeah
madgen has joined #ruby
<Ox0dea>
?
<manveru>
%r() or %r{} or %r[] or %r!! or %r%% or %r@@ or ...
<ag4ve>
mmmm, i wonder if i should be testing defined?
bkxd has joined #ruby
<ag4ve>
or == nil
shmuli has quit [Remote host closed the connection]
Pupeno_ has quit [Remote host closed the connection]
rbennacer has joined #ruby
cpup has quit [Ping timeout: 240 seconds]
<norc>
Ox0dea: Working with grammars I have come to realise wonderful things.
<norc>
Like did you know that "void;" is a syntactically legal declaration in C...
<workmad3_>
ag4ve: the problem appears to be that `cap` is a MatchData object from a regexp match... and that doesn't support `[]=` (which is what `cap["foobar"] = <something>` does)
<ag4ve>
meh, == nil doesn't work either - something else that idk
Swey_Hey has joined #ruby
agent_white has quit [Quit: gnight]
cpup has joined #ruby
<ag4ve>
oooo, of course i can't redefine that - yeah that makes perfect sense - doh
<Ox0dea>
ag4ve: Of course you can. It'd just be a really weird thing to do. :P
<ag4ve>
so, how do i copy cap into a plain array of strings?
<ruby[bot]>
Ox0dea: # => undefined method `named_captures' for #<MatchData "abc123" word:"abc" num:"123"> (NoMethodError) ...check link for more (https://eval.in/549137)
<Ox0dea>
Wat.
<Ox0dea>
&ri MatchData#named_captures
<`derpy>
No results
<Ox0dea>
I can't believe that's a Ruby 2.4 thing. :(
hackeron has quit [Ping timeout: 260 seconds]
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
hahuang65 has quit [Ping timeout: 244 seconds]
n008f4g_ has joined #ruby
<Ox0dea>
ag4ve: You'll have to say `$~.names.zip($~.captures).to_h`. :/
Chagel has quit [Remote host closed the connection]
joonty has joined #ruby
CloCkWeRX has quit [Ping timeout: 260 seconds]
Chagel has joined #ruby
<n1colas>
Hello
<jhass>
hi
Chagel has quit [Remote host closed the connection]
lsmola has quit [Ping timeout: 276 seconds]
<ag4ve>
wfm - it's in a chef env, so iirc i'm on 2.1 anyway
<ag4ve>
well, wfm but yeah, kinda ugly
Chagel has joined #ruby
rbennacer has quit [Ping timeout: 276 seconds]
yfeldblum has quit [Ping timeout: 248 seconds]
<gregf_>
ag4ve: args = %w|foo bar baz|;str = "foo bar baz"; /(?<foo>\w+)\s+(?<bar>\w+)\s+(?<baz>\w+)/ =~ str; p [ foo,bar, baz].zip(args).to_h <== like that
sepp2k has joined #ruby
rbennacer has joined #ruby
baweaver has joined #ruby
Gnubie__ has quit [Quit: No Ping reply in 180 seconds.]
Gnubie_ has joined #ruby
Macaveli has joined #ruby
rbennacer has quit [Ping timeout: 244 seconds]
baweaver has quit [Ping timeout: 250 seconds]
Emmanuel_Chanel_ has joined #ruby
Gasher has joined #ruby
Emmanuel_Chanel_ has quit [Read error: Connection reset by peer]
Chagel has quit [Remote host closed the connection]
hackeron has joined #ruby
Emmanuel_Chanel_ has joined #ruby
Emmanuel_Chanel_ has quit [Max SendQ exceeded]
Ishido has joined #ruby
Emmanuel_Chanel_ has joined #ruby
<blackmesa>
hi all. Should I rather use 'Time.current.to_date' or 'Date.current' for todays date?
Emmanuel_Chanel has quit [Ping timeout: 244 seconds]
Emmanuel_Chanel_ has quit [Client Quit]
rbennacer has joined #ruby
<Ishido>
Isn't that "Date.today" ?
<Ishido>
(not checked)
Emmanuel_Chanel has joined #ruby
Emmanuel_Chanel has quit [Max SendQ exceeded]
Emmanuel_Chanel has joined #ruby
<workmad3>
blackmesa: if you're in rails, `Date.current` is your best bet... if you're in plain ruby, `Date.today`
marcdel has joined #ruby
<workmad3>
(Date.today will use the system locale's timezone, Date.current in rails will pay attention to Time.zone)
<Ishido>
(oh yes, I forgot RoR, sorry)
<blackmesa>
thx Ishido workmad3 for quick response
FooMunki has joined #ruby
Emmanuel_Chanel has quit [Max SendQ exceeded]
<Ishido>
If it helped you...
Emmanuel_Chanel has joined #ruby
Chagel has joined #ruby
bkxd has joined #ruby
dvinciguerra__ has joined #ruby
madgen has quit [Ping timeout: 252 seconds]
mrgrieves has quit [Ping timeout: 246 seconds]
moei has quit [Quit: Leaving...]
marcdel has quit [Ping timeout: 244 seconds]
Mon_Ouie has quit [Ping timeout: 244 seconds]
bkxd has quit [Ping timeout: 250 seconds]
toretore has quit [Ping timeout: 276 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rbennacer has quit [Ping timeout: 260 seconds]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
noService has quit [Ping timeout: 246 seconds]
moei has joined #ruby
rodfersou has quit [Quit: leaving]
_djbkd has joined #ruby
madgen has joined #ruby
bkxd has joined #ruby
rbennacer has joined #ruby
nfk|laptop has joined #ruby
johnmilton has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_djbkd has quit [Ping timeout: 276 seconds]
gnufied has joined #ruby
lsmola has joined #ruby
madgen has quit [Ping timeout: 264 seconds]
bob434 has joined #ruby
sphex_ has quit [Ping timeout: 248 seconds]
dionysus69 has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
rbennacer has quit [Ping timeout: 244 seconds]
dionysus69 has joined #ruby
mrgrieves has joined #ruby
Chagel has quit [Ping timeout: 240 seconds]
snoobydoo has quit [Ping timeout: 268 seconds]
agit0 has quit [Read error: Connection reset by peer]
leftpad has joined #ruby
skade has joined #ruby
bob434 has quit [Quit: This computer has gone to sleep]
the_drow has quit [Quit: This computer has gone to sleep]
bob434 has joined #ruby
rbennacer has joined #ruby
madgen has joined #ruby
agit0 has joined #ruby
nartes has joined #ruby
jgt4 has joined #ruby
spiman has joined #ruby
trinaldi has joined #ruby
the_drow has joined #ruby
PedramT has joined #ruby
bob434 has quit [Client Quit]
bob434 has joined #ruby
Zai00 has joined #ruby
Macaveli has joined #ruby
hahuang65 has joined #ruby
rodfersou has joined #ruby
codecop has quit [Remote host closed the connection]
auzty has quit [Quit: Leaving]
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
astrobu__ has joined #ruby
astrobunny has quit [Read error: Connection reset by peer]
hahuang65 has quit [Ping timeout: 260 seconds]
futilegames has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
rbennacer has quit [Ping timeout: 276 seconds]
futilegames has quit [Client Quit]
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
ldnunes has joined #ruby
rbennacer has joined #ruby
<the_drow>
has anyone tried to use coverband with Grape? The documentation only talks about Sinatra and Rails
bry4n_ has quit [Read error: Connection reset by peer]
neanderslob_ has quit [Read error: Connection reset by peer]
rbennacer has quit [Ping timeout: 240 seconds]
CloCkWeRX has joined #ruby
Emmanuel_Chanel has joined #ruby
cgfbee has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
sphex has joined #ruby
cgfbee has joined #ruby
Xeago has joined #ruby
nartes has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
rbennacer has joined #ruby
sdothum has joined #ruby
n008f4g_ has quit [Ping timeout: 244 seconds]
Xeago has quit [Remote host closed the connection]
rbennacer has quit [Ping timeout: 244 seconds]
tubuliferous has joined #ruby
Didac has joined #ruby
marcdel has joined #ruby
mark3 has quit [Ping timeout: 246 seconds]
rake_db_migrate has joined #ruby
pawnbox has quit [Remote host closed the connection]
workmad3 is now known as wm3|away
vale_tudo has joined #ruby
tubuliferous has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
marcdel has quit [Ping timeout: 248 seconds]
djbkd has joined #ruby
hanmac has quit [Ping timeout: 268 seconds]
krz has quit [Ping timeout: 244 seconds]
mark3 has joined #ruby
tubuliferous has joined #ruby
djbkd has quit [Ping timeout: 276 seconds]
Begi has joined #ruby
Begi has left #ruby [#ruby]
clauswitt has joined #ruby
abyx has joined #ruby
sandelius has joined #ruby
synthroid has joined #ruby
mark3 has quit [Read error: Connection reset by peer]
mark3 has joined #ruby
snoobydoo has joined #ruby
abyx has quit [Client Quit]
clauswitt has quit [Client Quit]
wldcordeiro has quit [Ping timeout: 268 seconds]
CloCkWeRX has quit [Ping timeout: 276 seconds]
bronson has quit [Ping timeout: 244 seconds]
rake_db_migrate has quit [Remote host closed the connection]
edwinvdgraaf has quit [Ping timeout: 268 seconds]
blackmesa has quit [Ping timeout: 244 seconds]
hanmac has joined #ruby
bronson has joined #ruby
Rickmasta has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
joaquins has quit [Ping timeout: 250 seconds]
zapata has joined #ruby
rake_db_migrate has joined #ruby
edwinvdgraaf has joined #ruby
platzhirsch has left #ruby [#ruby]
abyx has joined #ruby
rbennacer has joined #ruby
abyx has quit [Client Quit]
rake_db_migrate has quit [Ping timeout: 264 seconds]
blackgoat has quit [Quit: WeeChat 1.4]
tubuliferous has quit [Ping timeout: 276 seconds]
rbennacer has quit [Ping timeout: 250 seconds]
sandelius has joined #ruby
CloCkWeRX has joined #ruby
aupadhye has joined #ruby
bob434 has quit [Quit: This computer has gone to sleep]
platzhirsch has joined #ruby
swills has quit [Remote host closed the connection]
GnuYawk has joined #ruby
GnuYawk has quit [Changing host]
GnuYawk has joined #ruby
Urs0 has joined #ruby
<Urs0>
Hello. :)
bluOxigen has quit [Ping timeout: 276 seconds]
<jhass>
hi
Yeomra has joined #ruby
baweaver has joined #ruby
abyx has joined #ruby
terlar has quit [Quit: WeeChat 1.4]
PedramT has quit [Remote host closed the connection]
abyx has quit [Client Quit]
Madplatypus has quit [Quit: Connection closed for inactivity]
brt has joined #ruby
baweaver has quit [Ping timeout: 268 seconds]
jmignault has joined #ruby
kobain has joined #ruby
rake_db_migrate has joined #ruby
fmcgeough has joined #ruby
bluOxigen has joined #ruby
kareeoleez has quit [Remote host closed the connection]
<shevy>
yo jhass - I see you are busy hacking away at crystal
marcdel has joined #ruby
<jhass>
more or less
andywojo has quit [Ping timeout: 244 seconds]
Urs0 has quit [Ping timeout: 250 seconds]
the_drow has quit [Quit: This computer has gone to sleep]
kareeoleez has joined #ruby
mrgrieve1 has joined #ruby
nartes has joined #ruby
vondruch has quit [Quit: Ex-Chat]
pawnbox has quit [Remote host closed the connection]
mrgrieves has quit [Ping timeout: 244 seconds]
marcdel has quit [Ping timeout: 260 seconds]
wm3|away is now known as workmad3
krz has joined #ruby
djbkd has joined #ruby
BSaboia has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
tildes has quit [Remote host closed the connection]
jero_ has joined #ruby
centrx has joined #ruby
djbkd has quit [Ping timeout: 252 seconds]
sdwrage has quit [Quit: Leaving]
ChiefAlexander has joined #ruby
shredding has joined #ruby
_stu_ has joined #ruby
Swey_Hey has quit [Quit: Leaving]
KensoDev has quit [Read error: Connection reset by peer]
duderonomy has quit [Read error: Connection reset by peer]
hays has quit [Read error: Connection reset by peer]
Asher has quit [Read error: Connection reset by peer]
_stu_ has quit [Read error: Connection reset by peer]
Asher has joined #ruby
zenspider has quit [Ping timeout: 264 seconds]
M-Kodo has quit [Ping timeout: 264 seconds]
_stu_ has joined #ruby
sarbs has quit [Ping timeout: 248 seconds]
duderonomy has joined #ruby
sauvin has quit [Ping timeout: 244 seconds]
mg^ has quit [Ping timeout: 244 seconds]
ljames has quit [Ping timeout: 276 seconds]
gnufied has quit [Ping timeout: 264 seconds]
failshell has joined #ruby
zenspider has joined #ruby
ByronJohnson has quit [Ping timeout: 260 seconds]
noService has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ByronJohnson has joined #ruby
mg^ has joined #ruby
bahar has quit [Ping timeout: 260 seconds]
rbennacer has joined #ruby
Xeago has joined #ruby
centrx has quit [Remote host closed the connection]
<failshell>
anyone knows of a gem that handles authentication to the AWS REST APIs? version 4 hopefully? I'm talking about the HMAC-SHA1 signing
sarbs has joined #ruby
rbennacer has quit [Remote host closed the connection]
bahar has joined #ruby
gnufied has joined #ruby
sauvin has joined #ruby
rbennacer has joined #ruby
M-Kodo has joined #ruby
s00pcan has quit [Quit: leaving]
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
n008f4g_ has joined #ruby
pawnbox has joined #ruby
noService has quit [Ping timeout: 246 seconds]
bkxd has quit [Ping timeout: 246 seconds]
godzillaenlacasa has joined #ruby
Devalo has joined #ruby
Xeago has quit [Remote host closed the connection]
spiman has quit [Ping timeout: 264 seconds]
sudoubuntu has joined #ruby
hahuang65 has joined #ruby
spiman has joined #ruby
chipotle has joined #ruby
merida_ has quit [Remote host closed the connection]
merida has joined #ruby
bkxd has joined #ruby
Devalo has quit [Ping timeout: 250 seconds]
Xeago has joined #ruby
GodFather has joined #ruby
andywojo has joined #ruby
bahar has quit [Changing host]
bahar has joined #ruby
merida has quit [Remote host closed the connection]
machinewar has joined #ruby
griffindy has joined #ruby
hahuang65 has quit [Ping timeout: 252 seconds]
cdg has joined #ruby
williamjordan has joined #ruby
rkoller has joined #ruby
freerobby has joined #ruby
whippythellama has joined #ruby
failshell has quit []
spiman has quit [Ping timeout: 264 seconds]
malconis has joined #ruby
malconis has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 244 seconds]
Xeago has quit [Remote host closed the connection]
malconis has joined #ruby
duckpuppy has joined #ruby
Xeago has joined #ruby
rake_db_migrate has quit [Read error: Connection reset by peer]
synthroid has quit [Remote host closed the connection]
rake_db_migrate has joined #ruby
sgambino has joined #ruby
the_drow has joined #ruby
guardian has quit [Excess Flood]
Pupeno has joined #ruby
perlgod has joined #ruby
limon7 has joined #ruby
<DefV>
I want a function to have the signature "meta(property: 'og:description')", but I feel doing `def meta(fields); prop, field = fields.to_a[0]; end` is quite dirty. Is there a better way?
crazydiamond has joined #ruby
OTORelic has joined #ruby
binaryplease1 has joined #ruby
Pupeno has quit [Ping timeout: 252 seconds]
PedramT has joined #ruby
chipotle has quit [Quit: cheerio]
Pupeno_ has joined #ruby
binaryplease has quit [Ping timeout: 276 seconds]
chipotle has joined #ruby
mrgrieves has joined #ruby
mrgrieve1 has quit [Ping timeout: 276 seconds]
OTORelic1 has joined #ruby
myntcake has joined #ruby
Rickmasta has joined #ruby
OTORelic has quit [Ping timeout: 248 seconds]
darkf has quit [Quit: Leaving]
Xeago has quit [Remote host closed the connection]
karmatr0n has joined #ruby
snoobydoo has quit [Ping timeout: 276 seconds]
ngauthier has joined #ruby
Xeago has joined #ruby
marcdel has joined #ruby
machinewar has quit [Remote host closed the connection]
williamjordan has quit [Remote host closed the connection]
binaryplease1 is now known as binaryplease
tristanp has joined #ruby
freerobby has quit [Quit: Leaving.]
bry4n_ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
karmatr0n has quit [Ping timeout: 276 seconds]
Yeomra has quit [Ping timeout: 248 seconds]
jmorgado1 has joined #ruby
marcdel has quit [Ping timeout: 276 seconds]
djbkd has joined #ruby
bry4n_ has quit [Read error: Connection reset by peer]
jmorgado1 has quit [Remote host closed the connection]
jmorgado has quit [Ping timeout: 252 seconds]
tristanp_ has joined #ruby
jmorgado has joined #ruby
tubuliferous has joined #ruby
Xeago has quit [Remote host closed the connection]
tristanp has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
n008f4g_ has quit [Ping timeout: 276 seconds]
Pupeno_ has quit [Remote host closed the connection]
ekinmur has joined #ruby
ziyadb has quit [Quit: Connection closed for inactivity]
djbkd has quit [Ping timeout: 244 seconds]
Xeago has quit [Remote host closed the connection]
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stantona has quit [Ping timeout: 264 seconds]
ngauthier has quit [Quit: Page closed]
Xeago has joined #ruby
Yeomra has joined #ruby
CloCkWeRX has quit [Ping timeout: 252 seconds]
geekbri has joined #ruby
moeabdol2 has quit [Ping timeout: 250 seconds]
madgen has quit [Ping timeout: 248 seconds]
chipotle has quit [Quit: cheerio]
mojca has quit [Quit: mojca]
stantona has joined #ruby
tty01 has joined #ruby
Xeago has quit [Remote host closed the connection]
jmignault has quit [Quit: rcirc on GNU Emacs 24.5.1]
freerobby has joined #ruby
grill has joined #ruby
jmignault has joined #ruby
kareeoleez has quit [Remote host closed the connection]
rubie has joined #ruby
jhack has joined #ruby
stantona has quit [Remote host closed the connection]
moeabdol2 has joined #ruby
rodfersou is now known as rodfersou|lunch
<ag4ve>
i notice most (everything?) inherrits nil? but i can't seem to put that inline with another method: $1.nil?.gsub(...)
Xeago has joined #ruby
madgen has joined #ruby
<canton7>
.nil? returns true or false
<ag4ve>
i guess what i'm asking is if there's a way to only use a method if the variable is defined?
<canton7>
and booleans don't have the method gsub
<ag4ve>
yeah, that makes sense
bry4n_ has joined #ruby
<Papierkorb>
ag4ve: With Ruby2.3: the_variable&.gsub(..)
<atmosx>
ag4ve if you could post a code snippet would be asier
<atmosx>
easier
<Papierkorb>
ag4ve: Without Ruby2.3: the_variable && the_variable.gsub(...) # Functionally almost identical. Identical if you don't chain-call another method
<ag4ve>
so, a declaration from a regex match would be like foo = ($1 && $1.gsub(/[\t ]*, '')) ?
patrick-sartent has joined #ruby
<ag4ve>
mmm, nm - i can tias too - thanks :)
CloCkWeRX has joined #ruby
<Papierkorb>
ag4ve: Depends.
<Papierkorb>
as in: Yes, but maybe there's a better way
shwouchkster has joined #ruby
dstarh has joined #ruby
Guest53134 has joined #ruby
anisha has quit [Quit: Leaving]
Xeago has quit [Remote host closed the connection]
edwinvdgraaf has quit [Remote host closed the connection]
Guest53134 has quit [Remote host closed the connection]
hahuang65 has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
zast has joined #ruby
crameth has joined #ruby
crameth has quit [Max SendQ exceeded]
Uranio has joined #ruby
nfk|laptop has quit [Quit: yawn]
<ag4ve>
i see what i'm running into gsub is overwriting the previous regex's $1,$2,... variables
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aganov has quit [Remote host closed the connection]
hxegon has joined #ruby
GnuYawk has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
djbkd has quit [Ping timeout: 276 seconds]
limon7 has quit [Quit: Lost terminal]
skade has joined #ruby
aufi has quit [Ping timeout: 276 seconds]
emilkarl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rake_db__ has quit [Read error: Connection reset by peer]
DEac- has quit [Quit: leaving]
rake_db_migrate has joined #ruby
jorum has joined #ruby
jhack has joined #ruby
_djbkd has quit [Ping timeout: 250 seconds]
DEac- has joined #ruby
mistermocha has quit [Ping timeout: 248 seconds]
DEac- has quit [Client Quit]
DEac- has joined #ruby
xaxisx has joined #ruby
B1n4r10 has joined #ruby
nartes has quit [Read error: Connection reset by peer]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
x77686d has joined #ruby
ixti has quit [Read error: Connection reset by peer]
skislak has quit [Ping timeout: 276 seconds]
Uranio has quit [Quit: Leaving]
rake_db__ has joined #ruby
rkazak has quit [Ping timeout: 260 seconds]
Pupeno has joined #ruby
sandelius has joined #ruby
ChiefAlexander has joined #ruby
entropie has joined #ruby
jmorgado1 has quit [Quit: Leaving]
AlexRussia has joined #ruby
B1n4r10 has quit [Ping timeout: 248 seconds]
rake_db_migrate has quit [Ping timeout: 250 seconds]
tty01 has joined #ruby
B1n4r10 has joined #ruby
<zomba>
big 'ol network problems this morning...
Devalo has quit [Remote host closed the connection]
sandelius has quit [Ping timeout: 240 seconds]
agent_white has joined #ruby
B1n4r10 has quit [Read error: Connection reset by peer]
agentmeerkat has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
<djellemah>
zomba: self.print_todo is a class method. Which in your case means that the @items it uses is not the one that you assign in TodoList.initialize
abyx has joined #ruby
B1n4r10 has joined #ruby
hahuang65 has joined #ruby
CausaMortis has quit [Ping timeout: 244 seconds]
Ropeney has joined #ruby
hxegon is now known as hxegon_AFK
mark3 has quit [Remote host closed the connection]
Azure|dc has joined #ruby
hinbody has joined #ruby
futilegames has joined #ruby
zapata has quit [Ping timeout: 260 seconds]
Xeago has joined #ruby
marxarelli has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
davedev24 has joined #ruby
Azure has quit [Ping timeout: 246 seconds]
hahuang65 has quit [Ping timeout: 276 seconds]
CloCkWeRX has quit [Quit: Leaving.]
jgt4 has joined #ruby
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
madgen has quit [Ping timeout: 260 seconds]
smathy has joined #ruby
mostlybadfly has joined #ruby
troulouliou_div2 has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
baweaver has joined #ruby
mrgrieves has quit [Ping timeout: 276 seconds]
<agent_white>
Mornin' folks
<zomba>
I need print_items defined in class Item, but callable in class TodoList
<zomba>
self.print_todo works fine in class TodoList
jorum has quit [Ping timeout: 268 seconds]
ssiris has joined #ruby
Azure|dc has quit [Remote host closed the connection]
<smathy>
Yeah, I suppose you'd need something else, self.prototype.def ;)
pawnbox has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 250 seconds]
jackjackdripper has joined #ruby
<smathy>
...my point was just that the syntax would make more sense to me if you adjusted what `def` was "called on" (I know it's not a regular method in current implementation) rather than changing the arg to def.
aeontech has joined #ruby
RegulationD has quit [Remote host closed the connection]
jgt4 has quit [Ping timeout: 250 seconds]
rake_db_migrate has joined #ruby
mistermocha has quit [Ping timeout: 244 seconds]
ta_ has quit [Remote host closed the connection]
joonty has quit [Ping timeout: 248 seconds]
platzhirsch has left #ruby [#ruby]
rcvalle has joined #ruby
Spami has quit [Ping timeout: 260 seconds]
Saint_Philomena has quit [Ping timeout: 250 seconds]
brent_ has joined #ruby
DrCode has quit [Remote host closed the connection]
n008f4g_ has joined #ruby
duckpuppy has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
troulouliou_div2 has quit [Quit: Leaving]
agentmee1kat has quit [Ping timeout: 252 seconds]
patrick-sartent has quit [Quit: .]
baweaver has joined #ruby
Pupeno_ has quit [Remote host closed the connection]
<jyaworski>
Hey all. Anyone using savon? I've passed my path to :wsdl, but in the logs it shows me it's querying 8443 instead of my specified port in the URI.
<pizzaops>
Is that actually idiomatic? Is there a "better" way?
kies has joined #ruby
rodfersou has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
jmorgado1 has joined #ruby
swills has joined #ruby
blandflakes has joined #ruby
nanoz has quit [Read error: Connection reset by peer]
xaxisx_ has joined #ruby
xaxisx_ has quit [Client Quit]
<shevy>
depends on how much your reader method would do
<shevy>
in this case you don't even use it
<shevy>
erm setter
jmorgado has quit [Ping timeout: 244 seconds]
benlieb has quit [Quit: benlieb]
rodfersou has joined #ruby
akkmaxon has quit [Quit: Konversation terminated!]
<pizzaops>
Yeah I really just need a attr_reader here, but that's not really my question
<pizzaops>
I'm more asking about my use of param=nil and ||
akkmaxon has joined #ruby
akkmaxon has quit [Client Quit]
akkmaxon has joined #ruby
_djbkd has quit [Remote host closed the connection]
xaxisx has quit [Ping timeout: 276 seconds]
<Ox0dea>
pizzaops: Why not use default arguments as intended?
pawnbox has joined #ruby
stunder has quit [Ping timeout: 248 seconds]
duncannz has quit [Remote host closed the connection]
<pizzaops>
Ox0dea: that's...a good point
<pizzaops>
I'm not sure why!
baweaver has quit [Ping timeout: 268 seconds]
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
moeabdol has quit [Ping timeout: 252 seconds]
<pizzaops>
Ox0dea: you're 100% right . . . I don't remember what got me on this path.
pifon has joined #ruby
<pizzaops>
There was some point where normal defaults weren't good enough but I don't remember why anymore, and I think I just kept doing this weird pattern even when not necessary
ramfjord_ has joined #ruby
<Ox0dea>
pizzaops: Be free of your cargo cult.
<pizzaops>
Ox0dea: the funny thing about it in this case was I was cargo-culting *myself*
pifon1 has quit [Ping timeout: 244 seconds]
aeontech has quit [Quit: aeontech]
<pizzaops>
Thanks, as usual!
<Ox0dea>
Sure thing. ^_^
<Ox0dea>
Good on ya for self-medicating, as it were.
umurgdk has quit [Quit: Going offline, see ya! (www.adiirc.com)]
pawnbox has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 244 seconds]
<Ox0dea>
pizzaops: For your edification, a pattern of which to be both aware and wary: https://eval.in/549533
polishdub has quit [Quit: Leaving]
<a1fa>
is it possible to have a has_many with additional scope?
<a1fa>
wrong channel
jmorgado has joined #ruby
jmorgado1 has quit [Ping timeout: 264 seconds]
mdw has quit [Ping timeout: 264 seconds]
stunder has joined #ruby
kobain has quit [Ping timeout: 260 seconds]
abyx has quit [Quit: This computer has gone to sleep]
kies has quit [Ping timeout: 246 seconds]
jackjackdripper has quit [Quit: Leaving.]
ferr has quit [Ping timeout: 264 seconds]
kobain has joined #ruby
chouhoulis has quit [Ping timeout: 246 seconds]
mistermocha has joined #ruby
tildes has joined #ruby
stunder has quit [Ping timeout: 244 seconds]
cwenner has quit [Quit: Leaving]
baweaver has joined #ruby
<djellemah>
I have this perception that DRb is ... not production-ready, slightly flaky. But, I can't find any solid information on the matter.
mistermocha has quit [Ping timeout: 248 seconds]
stannard has quit [Remote host closed the connection]
tildes has quit [Ping timeout: 244 seconds]
rake_db__ has quit [Remote host closed the connection]
stannard has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
codecop has quit [Remote host closed the connection]
<someish>
What’s going on in a ruby class when a method is called from outside one of the methods in that class? For example, in PHP or Java, you can’t just call a function or method inside a class declaration, but outside a method declaration.
<shevy>
atm0sphere if it is not installed then of course you can not use it :)
jt__ has joined #ruby
<zomba>
Sorry for the time waster
domaldel has quit [Quit: Leaving]
_stu_ has quit [Quit: _stu_]
Swey_Hey has joined #ruby
aeon_ has quit [Quit: aeon_]
atm0sphere has quit [Quit: Leaving]
<zomba>
That's an interesting problem with gem install though (for me). Can rescue exception and install gem, but a require after that fails. But running the code again succeeds
darkf has joined #ruby
<Ox0dea>
Installing gems in a rescue clause is pretty cruel.
whathappens has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
<zomba>
It was a "ensure_gem_is_installed" method idea
yfeldblum has joined #ruby
freerobby has quit [Quit: Leaving.]
<shevy>
you mean to install the gem when it is not available at runtime?
blandflakes has joined #ruby
workmad3 has quit [Ping timeout: 276 seconds]
stunder has quit [Quit: WeeChat 1.4]
<zomba>
Yep
<zomba>
I need to decide on a permanent nickname and register it...
benlieb has quit [Quit: benlieb]
zeroDivisible has quit [Quit: WeeChat 1.4]
aeontech has joined #ruby
mistermocha has joined #ruby
zomba has quit [Ping timeout: 250 seconds]
JesseH has quit [Remote host closed the connection]
7F1AAP1G0 has joined #ruby
<shevy>
zombie!
edwinvdgraaf has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 244 seconds]
<VeryBewitching>
It'd be cool to have a small zombie-ant-farm
marcdel has joined #ruby
<shevy>
there was once a mini-ant game in ruby-gnome
houhoulis has joined #ruby
rbennacer has quit [Remote host closed the connection]
7F1AAP1G0 has quit [Read error: Connection reset by peer]
skweek has quit [Ping timeout: 248 seconds]
GG has quit [Quit: I dont even care at this point honestly....]