airstream66 has quit [Remote host closed the connection]
eljimbo has joined #ruby
eljimmy has quit [Read error: Connection reset by peer]
braincrash has quit [Ping timeout: 244 seconds]
zacts has joined #ruby
oil has joined #ruby
duderonomy has quit [Ping timeout: 256 seconds]
sp_ has quit [Ping timeout: 252 seconds]
misterpink has joined #ruby
dviola has quit [Changing host]
dviola has joined #ruby
eljimbo has quit [Ping timeout: 252 seconds]
oil has left #ruby ["Leaving"]
zipace has joined #ruby
craigp has joined #ruby
wpostma has joined #ruby
JeanCarloMachado has quit [Ping timeout: 264 seconds]
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
astrobunny has joined #ruby
craigp has quit [Ping timeout: 264 seconds]
inteq has joined #ruby
eljimbo has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta_ has quit [Remote host closed the connection]
aryaching has quit [Ping timeout: 272 seconds]
jaguarmagenta has joined #ruby
hidtsden has joined #ruby
hidtsden has quit [Changing host]
hidtsden has joined #ruby
A_Drone has joined #ruby
jaguarmagenta has quit [Ping timeout: 272 seconds]
tmtwd has joined #ruby
Immune has joined #ruby
jackjackdripper has joined #ruby
charliesome has joined #ruby
<wpostma>
Anyone ever tried to use charlock_holmes on suse? I get a library (icuc?) load error: LoadError: /home/wpostma/.rvm/gems/ruby-2.3.0/gems/charlock_holmes-0.7.3/lib/charlock_holmes/charlock_holmes.so: undefined symbol: _ZTIN6icu_538ByteSinkE - /hom
pawnbox has joined #ruby
djbkd has quit [Quit: My people need me...]
arescorpio has joined #ruby
Jayson_Virissimo has joined #ruby
pawnbox has quit [Ping timeout: 265 seconds]
shmuli has quit [Remote host closed the connection]
dhk_ has quit [Quit: Leaving]
astrobunny has quit [Remote host closed the connection]
pokalyis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eljimbo has quit [Quit: This computer has gone to sleep]
craigp has joined #ruby
vitd has joined #ruby
tdy has joined #ruby
roamingdog has joined #ruby
craigp has quit [Ping timeout: 272 seconds]
jhack has quit []
braincra- has quit [Quit: bye bye]
Jameser has joined #ruby
wpostma has quit [Quit: This computer has gone to sleep]
gusrub has joined #ruby
Yzguy has joined #ruby
braincrash has joined #ruby
sp_ has joined #ruby
[gmi] has joined #ruby
optiz0r has joined #ruby
sp_ has quit [Ping timeout: 256 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
[gmi] has quit [Client Quit]
gizmore has joined #ruby
gizless has quit [Ping timeout: 272 seconds]
twalla has joined #ruby
pawnbox has joined #ruby
bmurt has joined #ruby
ResidentBiscuit has quit [Ping timeout: 272 seconds]
Immune has quit [Ping timeout: 264 seconds]
nankyokusei has joined #ruby
Yzguy has quit [Quit: Cya]
koooge has quit [Quit: Leaving...]
craigp_ has joined #ruby
pawnbox has quit [Ping timeout: 252 seconds]
twalla has quit [Ping timeout: 272 seconds]
hightower2 has joined #ruby
A_Drone has quit [Remote host closed the connection]
roamingdog has quit [Read error: Connection reset by peer]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
sp_ has quit [Ping timeout: 265 seconds]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
govg has joined #ruby
roamingdog has quit [Remote host closed the connection]
bocaneri has quit [Excess Flood]
roamingdog has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
roamingdog has quit [Remote host closed the connection]
bocaneri has joined #ruby
roamingdog has joined #ruby
cdg has joined #ruby
roamingdog has quit [Remote host closed the connection]
jackjackdripper has joined #ruby
conta has joined #ruby
cdg has quit [Ping timeout: 244 seconds]
govg has quit [Ping timeout: 264 seconds]
Immune has quit [Ping timeout: 264 seconds]
conta has quit [Ping timeout: 252 seconds]
Robtop__ has joined #ruby
charliesome has joined #ruby
Ropeney has joined #ruby
thatsnotjack has quit [Ping timeout: 272 seconds]
concave has quit []
redpants has quit [Ping timeout: 252 seconds]
pwnd_nsfw` has quit [Ping timeout: 256 seconds]
gusrub has joined #ruby
armin has joined #ruby
Hyuk has joined #ruby
<armin>
hi. any hint how to get such a beautiful nice coloured irb prompt? i was able to customize it a bit and have hirb and wirble installed, but i'm a ruby noob so i don't know further.
dminuoso has quit [Remote host closed the connection]
dviola has quit [Quit: WeeChat 1.5]
Robtop__ has quit [Read error: Connection reset by peer]
<davix>
total noob question. why does this doesn't act like I expect (nor do I get ambiguouty error) if (x != "view") || (x != "deposit") || (x != "withdraw"). but when leaving just view it works correctly (like || acts like &&)
<dminuoso>
davix: How do you expect it to act?
<davix>
if not or not or not
<dminuoso>
davix: it works like you expect it, and you can even leave the parens.
<davix>
trying to raise an exception if someone is using a command out of my command possibilities
<dminuoso>
>> a = 1; puts "foo" if a == 2 || a == 1
<dminuoso>
davix: use an array instead, and use Enumerable#any? - it's just cleaner.
whathappens has joined #ruby
<dminuoso>
or all? or none?
jcao219 has joined #ruby
<davix>
trying to raise an exception if someone is using a command out of my command possibilities, so I guess I just want to rule the possibility none of these commands are used. I will examine array option for this. thank you dminuoso
<dminuoso>
davix: The problem with your initial question is just a confusion in your mind.
<dminuoso>
davix: Let's say someone passes "deposit" - then the first expression would be true. So Ruby ends up evaluating: if true || false || false - which is true.
xentity1x has joined #ruby
<davix>
correct I just found my brain bug, it should have been not && not && not
<davix>
now it works
jaguarmagenta has joined #ruby
<dminuoso>
davix: I found bug spray to be effective against these brain bugs. Through the nose.
<davix>
dminuoso: I am using weed smoke to kill all of my brain bugs :)
<dminuoso>
I think I found your problem..
whathappens has quit [Ping timeout: 272 seconds]
<davix>
or... my solution
harfangk has joined #ruby
<davix>
my problems are many, of which weed is not even one
<harfangk>
wee
djbkd has quit [Quit: My people need me...]
last_staff has joined #ruby
sp_ has joined #ruby
nofxx has quit [Ping timeout: 256 seconds]
Devalo has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
peteykun has quit [Quit: Leaving]
igniting has joined #ruby
hahuang61 has quit [Ping timeout: 252 seconds]
jaguarmagenta has quit [Remote host closed the connection]
jaguarmagenta has joined #ruby
cdg has joined #ruby
devmagpie has joined #ruby
sdwrage has quit [Quit: Leaving]
jaguarmagenta has quit [Ping timeout: 252 seconds]
cdg has quit [Ping timeout: 264 seconds]
pawnbox has joined #ruby
Immune has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
Dimik has joined #ruby
charliesome has quit [Ping timeout: 244 seconds]
elenatanasoiu has joined #ruby
gingray has joined #ruby
charliesome has joined #ruby
jenrzzz has joined #ruby
jaequery has joined #ruby
NTrash has joined #ruby
elenatanasoiu has quit [Ping timeout: 265 seconds]
valkyr2e has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dtscode has joined #ruby
anaiden has joined #ruby
fusmu has joined #ruby
enterprisey has quit [Ping timeout: 264 seconds]
sp_ has quit [Ping timeout: 272 seconds]
aufi has joined #ruby
conta has joined #ruby
craigp has quit [Ping timeout: 256 seconds]
tomphp has joined #ruby
nando293921 has quit [Ping timeout: 264 seconds]
Silthias1 has joined #ruby
charliesome has joined #ruby
AlphaAtom has joined #ruby
Silthias has quit [Ping timeout: 264 seconds]
toretore has quit [Ping timeout: 244 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
anisha has joined #ruby
_br__ has quit [Ping timeout: 265 seconds]
thatsnotjack has quit [Ping timeout: 265 seconds]
_br__ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lucast has quit [Ping timeout: 252 seconds]
lucast has joined #ruby
charliesome has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
jackjackdripper has quit [Quit: Leaving.]
NTrash has quit [Quit: Konversation terminated!]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
devmagpie has quit [Quit: devmagpie]
rbr has quit [Disconnected by services]
devmagpie has joined #ruby
cdg has joined #ruby
rbr has joined #ruby
Enapay has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cdg has quit [Ping timeout: 252 seconds]
ponga has joined #ruby
raeoks has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mclee has quit [Quit: WeeChat 0.4.2]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aganov has joined #ruby
TomyWork has joined #ruby
nirix has quit [Ping timeout: 240 seconds]
rsampaio_ has quit [Ping timeout: 265 seconds]
ta_ has joined #ruby
SesMan has joined #ruby
raeoks has joined #ruby
raeoks has quit [Client Quit]
grh has joined #ruby
anaiden has quit [Quit: anaiden]
sp_ has joined #ruby
spectrum has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has joined #ruby
eizua has joined #ruby
sneakerhax has quit [Ping timeout: 264 seconds]
tomphp has joined #ruby
mhoogkamer has joined #ruby
nankyokusei has joined #ruby
queequeg1 has quit [Ping timeout: 244 seconds]
ocbtec has joined #ruby
queequeg1 has joined #ruby
blackgoat has quit [Ping timeout: 265 seconds]
biberu has joined #ruby
nankyokusei has quit [Ping timeout: 264 seconds]
mhoogkamer has quit [Changing host]
mhoogkamer has joined #ruby
spectrum has quit [Quit: Oh Shidd]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_sfiguser has quit [Ping timeout: 264 seconds]
jaruga___ has joined #ruby
whathappens has joined #ruby
Chair has joined #ruby
shmuli has quit [Remote host closed the connection]
whathappens has quit [Ping timeout: 264 seconds]
flying has joined #ruby
shmuli has joined #ruby
vondruch has joined #ruby
zukin has joined #ruby
Burgestrand has joined #ruby
_sfiguser has joined #ruby
ankitraj has joined #ruby
terlar has joined #ruby
pandaant has joined #ruby
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Burgestrand has joined #ruby
devmagpie has quit [Quit: devmagpie]
djbkd has joined #ruby
craigp has joined #ruby
jaguarmagenta has joined #ruby
<davix>
so how far am I from the getting this to work: until age.%(7).zero? age = (age += 1)
<davix>
end
<davix>
trying to zero in on age divisible by 7
<elomatreb>
Uh, that is a very weird way to write that conditional
<elomatreb>
Why not use `age % 7 == 0`?
<apeiros>
age = (age += 1) is verbose for age += 1
<apeiros>
or rather: age = (age += 1) is verbose for age = age + 1 which is verbose for age += 1
<davix>
counter is not my issue, even when using until age % 7 == 0
<davix>
age += 1
<davix>
end
<elomatreb>
Also, if you want to find the next largest age divisble by 7, can't you just use `age += age % 7` or am I too dumb for math in the morning?
<davix>
i get `<main>': undefined method `%' for nil:NilClass (NoMeth
<apeiros>
means age is nil
<apeiros>
and that doesn't happen in the code you showed
mtkd has quit [Ping timeout: 265 seconds]
<apeiros>
i.e. happens before
<apeiros>
(or you didn't show all code)
<elomatreb>
The more code you show us (preferrably in a gist), the more we can help you
Silthias1 has quit [Ping timeout: 272 seconds]
jaguarmagenta has quit [Ping timeout: 256 seconds]
* apeiros
would love a patched ruby which shows the expression on which the method was called
Silthias has joined #ruby
<davix>
i'll pastebin my assignment altough i would like to solve it myself :) no straight answers please just hints as to what may be my issue. I'll check if i'm passing the var correctly and then paste
<apeiros>
age = nil; age % 7 # !> undefined method `%' for nil:NilClass ("age % 7")
<elomatreb>
apeiros: I thought about that too, traceable (remembering where they were created) nils could be nice for debugging
mtkd has joined #ruby
<apeiros>
(foo ? bar : nil) % 7 # !> undefined method `%' for nil:NilClass ((foo ? bar : nil) % 7)
<apeiros>
elomatreb: yes, traceable nils would be nice. the above is different though.
<davix>
oh i found a function which was probably not passing a var correctly to continue, thanks investigating. thinking i need a better python parser/debugger than mri syntactic on vim
<elomatreb>
What does Python have to do with this? Oo
<davix>
obviously ruby :) it works great for python
<davix>
but using pycharms for python
<davix>
it works now btw, thank you for that hint on age being nil i wish I could understand it from the error earlier on
<elomatreb>
Yeah, undefined method ... for nil:NilClass is probably the most infamous Ruby error
<elementaru>
is it college assignment?
<tobiasvl>
"null pointer exceptions" are pretty common in all languages :)
<elomatreb>
"undefined is not a function"
<davix>
nope, never done college. just broadening my horizons. it's a course for operations engineers to transfer to devops
<apeiros>
elomatreb: I also like the idea of non-nullable variables
<apeiros>
no experience with languages which have that, though. so I don't know whether that just leads to abuses.
<elomatreb>
apeiros: What irks me is that with all the metaprogramming stuff Ruby can do, we're really close to being able to implement such debugging tools ourselves
<elomatreb>
But certain behaviours (for example that there is only one nil object) stop us from doing that :(
<davix>
can anyone suggest better debugging method to use with vim? (currently using syntactic with mri which only does some style and syntax)
salut has joined #ruby
<elomatreb>
davix: "pry" and "byebug" are two debugging tools very commonly used with Ruby, but idk if they're integrated with your text editor
bsrd has joined #ruby
<davix>
any free linux IDEs that have good integration to them? I like vim but can do the switch for ruby development
glcx has joined #ruby
glcx has joined #ruby
glcx has quit [Changing host]
<elomatreb>
Since Ruby is a very dynamic language, tooling is limited compared to languages like Java. A regular text editor is usually enough for Ruby development
elenatanasoiu has joined #ruby
<elomatreb>
If you want an IDE, there is RedMine (And I've heard lots of good things about it), but it's far from free
blaxter has joined #ruby
<hanmac>
as Ruby Ide i like Eclipse (free) it can use Ruby as plugin, but might not support recent language features
<hanmac>
but for small edits i like gedit
blackmesa has joined #ruby
<davix>
cool thanks guys
xentity1x has quit [Ping timeout: 264 seconds]
CloCkWeRX has quit [Quit: Leaving.]
tomphp has joined #ruby
roamingdog has joined #ruby
cdg has joined #ruby
teclator has quit [Read error: Connection reset by peer]
gregf_ has joined #ruby
Chair is now known as Couch
cdg has quit [Ping timeout: 264 seconds]
Dimik has quit [Ping timeout: 265 seconds]
FINbit has joined #ruby
djbkd has quit [Quit: My people need me...]
Pupeno has joined #ruby
frozengeek has joined #ruby
Silthias1 has joined #ruby
teclator has joined #ruby
Silthias has quit [Ping timeout: 265 seconds]
djbkd has joined #ruby
marr has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
Jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
M-shine has quit [Remote host closed the connection]
M-manveru has quit [Remote host closed the connection]
fladson[m] has quit [Remote host closed the connection]
cpfeilschifter[m has quit [Remote host closed the connection]
davix has quit [Remote host closed the connection]
bascht has quit [Write error: Connection reset by peer]
roamingdog has quit [Ping timeout: 244 seconds]
symm- has joined #ruby
Beams has joined #ruby
sp_ has quit [Ping timeout: 264 seconds]
jaguarmagenta has joined #ruby
shmuli has quit [Remote host closed the connection]
JeanCarloMachado has joined #ruby
nofxx has quit [Ping timeout: 252 seconds]
lugzer has joined #ruby
jaguarmagenta has quit [Ping timeout: 256 seconds]
davix has joined #ruby
A_Drone has joined #ruby
Snowy has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
M-mistake has joined #ruby
M-shine has joined #ruby
M-manveru has joined #ruby
bascht has joined #ruby
cpfeilschifter[m has joined #ruby
fladson[m] has joined #ruby
ruby-lang192 has joined #ruby
dgncn has quit [Quit: ^^]
Filiphe has joined #ruby
<ruby-lang192>
Hi
Silthias has joined #ruby
Silthias1 has quit [Ping timeout: 265 seconds]
<ruby-lang192>
I am trying to rename a file using File.rename but I am always getting Permission denied @ sys_fail2
mikecmpbll has joined #ruby
sp_ has joined #ruby
<ruby-lang192>
I am using ruby on windows 7
nikivi has joined #ruby
ferr has joined #ruby
<elementaru>
maybe the file is open?
Ishido has joined #ruby
<ruby-lang192>
I am trying this
<ruby-lang192>
File.open('public/test.txt','w') do |file| File.rename(file,'test1.txt') end
tuxaddicted has quit [Ping timeout: 265 seconds]
<hanmac>
ruby-lang192: File.rename wants TWO filenames, not a file object
tuxaddicted has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
bkxd has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<ruby-lang192>
Okay thanks brother
pwnd_nsfw has quit [Read error: Network is unreachable]
<ruby-lang192>
problem has been solved
<ruby-lang192>
thanks a lot
pwnd_nsfw has joined #ruby
workmad3 has joined #ruby
twalla has joined #ruby
yeticry has quit [Ping timeout: 264 seconds]
djbkd has quit [Remote host closed the connection]
tuxaddicted has quit [Ping timeout: 256 seconds]
glcx has quit [Ping timeout: 252 seconds]
glcx has joined #ruby
glcx has quit [Changing host]
glcx has joined #ruby
shmuli has joined #ruby
jsrn_ has joined #ruby
FINbit has left #ruby [#ruby]
tuxaddicted has joined #ruby
yeticry has joined #ruby
blackgoat has joined #ruby
nankyokusei has joined #ruby
twalla has quit [Ping timeout: 244 seconds]
Jameser has joined #ruby
<dminuoso>
hanmac: Actually this should be a thing.
<dminuoso>
I mean File#rename at least.
JeanCarl1Machado has joined #ruby
<hanmac>
hm yeah that might be more possible
<hanmac>
i prefer FileUtils.mv
nikivi has quit [Quit: irc]
<dminuoso>
hanmac: Well the thing is, it mimics too much how the underlying system works. "Invoke an mv command and pass it two parameters"
<dminuoso>
hanmac: Most of File just doesn't feel very Rubyish in the way of "use instance methods to interact with objects"
<dminuoso>
I dont know, maybe there are good reasons to separate them.
jenrzzz has quit [Ping timeout: 256 seconds]
ledestin has joined #ruby
nankyokusei has quit [Ping timeout: 252 seconds]
blackgoat has quit [Ping timeout: 252 seconds]
JeanCarloMachado has quit [Ping timeout: 272 seconds]
A_Drone has quit [Remote host closed the connection]
glcx has quit [Ping timeout: 256 seconds]
flashpoint9 has joined #ruby
jaguarmagenta has joined #ruby
whathappens has joined #ruby
bkxd has quit [Ping timeout: 252 seconds]
cyphase has quit [Ping timeout: 252 seconds]
Pupeno has quit [Remote host closed the connection]
bkxd has joined #ruby
JeanCarl1Machado has quit [Ping timeout: 272 seconds]
glcx has joined #ruby
glcx has quit [Changing host]
glcx has joined #ruby
Pupeno has joined #ruby
ace05 has quit [Remote host closed the connection]
whathappens has quit [Ping timeout: 252 seconds]
angela-mac-hd has joined #ruby
terlar has quit [Ping timeout: 256 seconds]
<hanmac>
dminuoso: i think the class ones work better with file names than with file objects
angela-mac-hd is now known as ace05
Hyuk has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
ruby-lang192 has quit [Ping timeout: 240 seconds]
vitd has joined #ruby
Hyuk has joined #ruby
Hyuk has quit [Client Quit]
flashpoint9 has quit []
workmad3 has quit [Ping timeout: 252 seconds]
vitd has quit [Ping timeout: 256 seconds]
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mark_66 has joined #ruby
Jameser_ has joined #ruby
Pupeno has quit [Quit: Leaving...]
mark_66 has quit [Remote host closed the connection]
Jameser has quit [Ping timeout: 265 seconds]
mark_66 has joined #ruby
mark_66 has quit [Remote host closed the connection]
mark_66 has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
duncannz has quit [Remote host closed the connection]
Jameser_ has quit [Max SendQ exceeded]
workmad3 has joined #ruby
Jameser has joined #ruby
glcx has quit [Quit: Quitte]
<dminuoso>
hanmac: Is it a different file when you rename it?
<dminuoso>
hanmac: I mean on files that use inodes it's not the case.
<dminuoso>
*filesystems
<hanmac>
hm i cant answer that but you can not rename an open file
<dminuoso>
A File object does not have to represent an open file, it could be an abstraction of a file descriptor.
<jokke>
a quick question about yard. I have a module which implements included. In it i extend the including class with some class methods. basic stuff. How can i tell yard to automagically extend all classes including this module with the class methods?
blackgoat has joined #ruby
User458764 has quit [Remote host closed the connection]
koooge has quit [Quit: Leaving...]
bkxd has quit [Ping timeout: 252 seconds]
jcao219 has quit [Ping timeout: 265 seconds]
jcao219 has joined #ruby
Filiphe has quit [Remote host closed the connection]
pandaant has quit [Quit: Lost terminal]
blackgoat has quit [Quit: WeeChat 1.5]
Snickers has joined #ruby
_sfiguser has quit [Ping timeout: 265 seconds]
frankiee_ has quit [Ping timeout: 264 seconds]
c355e3b has joined #ruby
whathappens has joined #ruby
mark_66 has left #ruby [#ruby]
whathappens has quit [Ping timeout: 252 seconds]
rodfersou has joined #ruby
auzty has quit [Quit: Leaving]
astrobunny has quit [Remote host closed the connection]
zipace has joined #ruby
blackgoat has joined #ruby
koenrh has joined #ruby
koenrh has quit [Client Quit]
koenrh has joined #ruby
sdothum has joined #ruby
_sfiguser has joined #ruby
FailorTwist has joined #ruby
Hyuk has joined #ruby
<FailorTwist>
hello!
terlar has joined #ruby
<FailorTwist>
I just found a hidden feature in ruby!
<dminuoso>
No such thing.
<dminuoso>
But share
<FailorTwist>
thanks!
<FailorTwist>
it is called a "void expression"
<FailorTwist>
I've not been able to figure how it works though :\
shmuli has quit [Remote host closed the connection]
arashb has joined #ruby
<FailorTwist>
is there any "evaluator" bot on this channel?
<apeiros>
FailorTwist: `12 && break` is NOT the same as `break && 12`
blackmesa has quit [Ping timeout: 264 seconds]
<FailorTwist>
got it!
yeticry has joined #ruby
<apeiros>
so if we say something about one of those two expressions, it has *nothing* to say about the other one. as they're not the same.
<apeiros>
but `break &&` never makes sense
<apeiros>
neither does `return &&`
<FailorTwist>
I'm such a stupid person :\
<dminuoso>
FailorTwist: It is not a runtime error, but a parser error. This is the important bit
<FailorTwist>
parse?
<apeiros>
and I'll explain a third time why: break and return *stop* the code execution when hit.
<dminuoso>
FailorTwist: Yes. Rubys parser cannot deduce the value of the expression, because it's incomplete.
jaguarmagenta has quit [Remote host closed the connection]
<FailorTwist>
I though only compiled languages can have parsers :\
raeoks has joined #ruby
<FailorTwist>
*thought
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
<dminuoso>
FailorTwist: Don't think of languages as "compiled" or "interpreted" - it's a bad and wrong way of looking at them. :)
<FailorTwist>
I have a lot to learn!
jaguarmagenta has joined #ruby
<FailorTwist>
brb
FailorTwist has quit [Quit: Emergency]
<dminuoso>
FailorTwist: Parsing is just the step of transforming some input into some internal representation according to a syntax. :-)
FailorTwist has joined #ruby
<FailorTwist>
hello again and apologies for my impertinence
<dminuoso>
13:12 < dminuoso> FailorTwist: Parsing is just the step of transforming some input into some internal representation according to a syntax. :-)
<dminuoso>
FailorTwist: Humans do this too. It's when you hear or read a word, and decide "it is a verb" :-)
<FailorTwist>
I had no idea that was the case -- I actually thought parsing means converting the source code into some intermediate machine code
maloik has quit [Remote host closed the connection]
<FailorTwist>
thanks for clarifying!
maloik has joined #ruby
sp_ has quit [Quit: Lost terminal]
jaguarmagenta has quit [Ping timeout: 252 seconds]
<hanmac>
hm newer ruby, or some ruby Interpretations (jruby & rubinius) does create byte code
<FailorTwist>
>> def voidexpr() while true do (true) && break end end # have I now done it correctly?
<ruby[bot]>
dminuoso: # => /tmp/execpad-865a54cf1179/source-865a54cf1179:2:in `<main>': undefined method `rescue' for #<Proc:0x ...check link for more (https://eval.in/657048)
<dminuoso>
>> -> { break && true }
<ruby[bot]>
dminuoso: # => /tmp/execpad-c8900bdcb887/source-c8900bdcb887:2: void value expression (https://eval.in/657049)
<FailorTwist>
that site is inaccessible in my country :\
nankyokusei has joined #ruby
<dminuoso>
FailorTwist: In a nutshell, when Ruby encounters a "return", "break", "next", "redo", "retry" there cannot be another expression along with it.
<FailorTwist>
thanks a lot! but what is the point with it?
Guest29767 has quit [Ping timeout: 256 seconds]
<chrisseaton>
dminuoso: I don't understand - loop { 12 && break && return } is fine
<chrisseaton>
Obviously the break and return won't run, but it compiles fine
<FailorTwist>
that is actually what has confused me -- I'm so new to ruby :\
<dminuoso>
chrisseaton: Im wondering whether thats a bug actually
<chrisseaton>
dminuoso: I don't see why - it's valid code I think
<ciawal>
the break would run, no?
<dminuoso>
chrisseaton: Oh no its not yeah.
<chrisseaton>
Sorry, yes I was thinking of ||
<dminuoso>
(12 && break) evaluates to a non-cond expression.
<dminuoso>
thats the key
<dminuoso>
err a cond expression I think its called actually
whiteline has quit [Read error: Connection reset by peer]
<dminuoso>
chrisseaton: It could be a parser bug right there. This should emit a void expression error.
nuck has joined #ruby
<FailorTwist>
def voidexpr() while true; (12) && (break) && (return 'v') end end; voidexpr # should it actually return 'v'?
whiteline has joined #ruby
nuck is now known as Guest87104
<dminuoso>
FailorTwist: no
ldnunes has joined #ruby
blaxter has quit [Quit: foo]
nankyokusei has quit [Ping timeout: 264 seconds]
<dminuoso>
FailorTwist: And I really think that Ruby should give you a VVE error for this.
<FailorTwist>
thanks! irb2.0 shows me no such error -- it quits :\
<chrisseaton>
The reason it is a little tricky is that Ruby would have to propagate the information about break not producing a value up outside the call of #&& - Ruby currently isn't engineering to make that kind of program reasoning easy.
<dminuoso>
chrisseaton: Its not about break not producing a value
<dminuoso>
chrisseaton: its about control flow
<FailorTwist>
does break ever produce a value?
<FailorTwist>
I mean
<dminuoso>
chrisseaton: ohhh nevermind I understand what you mean.
<dminuoso>
chrisseaton: the "break" node itself does not produce a value in the ast
<dminuoso>
(hence void value)
<FailorTwist>
I had actually been told it takes arguments, but I have no idea what they are used for
<chrisseaton>
Right, and you'd have to then follow that chain of through to the fact that the && then in this case also can't produce a value
bsrd has quit [Quit: WeeChat 1.5]
<dminuoso>
chrisseaton: right, so all the other node_return knows, is that it was followed by a NODE_AND
<chrisseaton>
But Ruby doesn't do optimisations based on that sort of thing, so building all of that just to give you a nice error when you write code that's strange in the first place might not be worth it.
claudiuinberlin has quit [Remote host closed the connection]
<ruby[bot]>
dminuoso: I have disassembled your code, the result is at https://eval.in/657071
<chrisseaton>
Something like Rubocop might be the best place to catch this kind of error
<dminuoso>
chrisseaton: I got a question that you are likely to answer. What's up with all these trace calls in ruby bytecode?
<dminuoso>
Are they related to Kernel.set_trace_func ?
jcao219 has quit [Ping timeout: 252 seconds]
blackmesa has joined #ruby
<chrisseaton>
Yes, that and TracePoint
<chrisseaton>
So you need at least one trace bytecode for each line of Ruby code
<FailorTwist>
will it be a correct claim then, that `12 && (break)` is a rather different type of void expression (compard to a plian `break`)? I'm asking this because `(break) && (return)` gives me an error, while `(12 && (break)) && (return)` won't, but `v = (12) && (break)` and `v = (12 &&(break)) && (return)` give me a void-value-expression error
<FailorTwist>
*plain
<dminuoso>
FailorTwist: 12 && break is not a void value expression.
<dminuoso>
break && 12 is
shmuli has joined #ruby
<dminuoso>
break && <anything> is
nebben has quit [Remote host closed the connection]
Sp4rKy has quit [Ping timeout: 276 seconds]
<FailorTwist>
>> v = 1; while v != 0; v -= 1; l = 12 && (break); end
<FailorTwist>
that is now making perfect sense there!
<dminuoso>
chrisseaton: There's a slightly amusing part about one of your presentations by the way. Every time I think about the JVM, I immediately have an Alice picture in my mind.
<dminuoso>
I think that presentation also talked about traces
<dminuoso>
Well you did. :-)
Bellthoven has joined #ruby
<zukin>
does ruby[bot] have a github page?
<dminuoso>
zukin: Not a public one currently.
blackmesa has quit [Ping timeout: 244 seconds]
shmuli has quit [Ping timeout: 256 seconds]
mark_66 has joined #ruby
<FailorTwist>
thanks all for helping!
FailorTwist has left #ruby [#ruby]
frankiee_ has joined #ruby
dminuoso has quit [Ping timeout: 272 seconds]
symm- has quit [Quit: Leaving...]
ta_ has quit [Remote host closed the connection]
johnmilton has quit [Remote host closed the connection]
ankitraj has quit [Ping timeout: 252 seconds]
Bellthoven has quit []
mark_66 has quit [Remote host closed the connection]
tk__ has joined #ruby
bluOxigen has quit [Ping timeout: 265 seconds]
synthroid has joined #ruby
bluOxigen has joined #ruby
mark_66 has joined #ruby
Snowy has quit [Remote host closed the connection]
dminuoso has joined #ruby
GinoManWorks has quit [Quit: Leaving]
DoubleMalt has quit [Ping timeout: 244 seconds]
bruce_lee has quit [Read error: Connection reset by peer]
Silthias has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
Silthias1 has quit [Ping timeout: 265 seconds]
sdothum has quit [Ping timeout: 264 seconds]
bsrd has joined #ruby
Snowy has joined #ruby
devmagpie has joined #ruby
chouhoulis has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nebben has joined #ruby
tyang has joined #ruby
johnmilton has joined #ruby
marsjaninzmarsa has quit [Quit: ZNC 1.7.x-git-487-cbf5c38 - http://znc.in]
iMadper has quit [Remote host closed the connection]
marsjaninzmarsa has joined #ruby
pragmaticus has joined #ruby
brujoand has joined #ruby
abernstein has quit [Quit: abernstein]
tabakhase has quit [*.net *.split]
tubbo has quit [*.net *.split]
papercod1 has quit [*.net *.split]
papercod1 has joined #ruby
tubbo has joined #ruby
tabakhase has joined #ruby
dminuoso has quit [Remote host closed the connection]
fergal has joined #ruby
nullniverse has quit [Ping timeout: 264 seconds]
bizolos has joined #ruby
ace05 has quit [Read error: Connection reset by peer]
<fergal>
hi guys, is there a nice way of parsing a json string ruby that is surrounded by other strings? i have an application that outputs something like: “Execution complete! Here is the config used: {“key”:”value”…} Results:…” I’d like a nice way of extracting and parsing only the json from this string - is this possible?
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pawnbox has quit [Ping timeout: 272 seconds]
frozengeek has joined #ruby
Snickers has quit [Ping timeout: 264 seconds]
Immune has quit [Ping timeout: 264 seconds]
nzst has joined #ruby
craigp has quit [Ping timeout: 265 seconds]
nzst has left #ruby [#ruby]
ace05 has quit [Remote host closed the connection]
ace05 has joined #ruby
s2013 has joined #ruby
ChiefAlexander has joined #ruby
TomyWork has quit [Ping timeout: 240 seconds]
ace05 has quit [Ping timeout: 244 seconds]
<fergal_>
apeiros: so i ended up doing this: startp = output.index(‘{‘); endp = output.rindex(‘}’); sub = output[startp..endp]; <- could this be more “rubified"?
nettoweb1 has quit [Ping timeout: 256 seconds]
Tempesta has quit [Quit: See ya!]
Tempesta has joined #ruby
coolboy has joined #ruby
quoboo is now known as Quoboo
teclator has quit [Ping timeout: 256 seconds]
swills has quit [Read error: Connection reset by peer]
swills has joined #ruby
malconis has joined #ruby
qwertyco has quit [Quit: Leaving]
Quoboo is now known as quoboo
qwertyco has joined #ruby
qwertyco has quit [Max SendQ exceeded]
qwertyco has joined #ruby
whiteline has quit [*.net *.split]
majoh has quit [*.net *.split]
johnny56 has quit [*.net *.split]
modin has quit [*.net *.split]
Trynemjoel has quit [*.net *.split]
Fernando-Basso has quit [*.net *.split]
Tharbakim has quit [*.net *.split]
Todd has quit [*.net *.split]
SJr has quit [*.net *.split]
shaman42_ has quit [*.net *.split]
Lewix has quit [*.net *.split]
techntoke_ has quit [*.net *.split]
charles81 has quit [*.net *.split]
aspiers has quit [*.net *.split]
rflot has quit [*.net *.split]
emersonian has quit [*.net *.split]
epitron has quit [*.net *.split]
valeri_ufo has quit [*.net *.split]
joes has quit [*.net *.split]
atmosx has quit [*.net *.split]
ujjain has quit [*.net *.split]
erlend has quit [*.net *.split]
irick has quit [*.net *.split]
Nanuq has quit [*.net *.split]
ELCALOR has quit [*.net *.split]
vcoinminer has quit [*.net *.split]
noodle has quit [*.net *.split]
mrbobbytables has quit [*.net *.split]
ramblinpeck has quit [*.net *.split]
jmhmccr has quit [*.net *.split]
sylario has quit [*.net *.split]
zzak has quit [*.net *.split]
adambeynon has quit [*.net *.split]
codepete has quit [*.net *.split]
MrBloo has quit [*.net *.split]
cjk101010 has quit [*.net *.split]
C0deMaver1ck_ has quit [*.net *.split]
nyuszika7h has quit [*.net *.split]
nibbo_ has quit [*.net *.split]
kapowaz has quit [*.net *.split]
spastorino has quit [*.net *.split]
bcavileer has quit [*.net *.split]
ewilliam_ has quit [*.net *.split]
AdamMeghji__ has quit [*.net *.split]
mrfooo has quit [*.net *.split]
hayden__ has quit [*.net *.split]
alxndr has quit [*.net *.split]
incomprehensibly has quit [*.net *.split]
johnkpaul has quit [*.net *.split]
knowtheory has quit [*.net *.split]
skmp has quit [*.net *.split]
raz has quit [*.net *.split]
halfdan has quit [*.net *.split]
dellavg has quit [*.net *.split]
electrostat has quit [*.net *.split]
devster31 has quit [*.net *.split]
tobiasvl has quit [*.net *.split]
nrk has quit [*.net *.split]
Mekkis has quit [*.net *.split]
tvl has joined #ruby
nibbo has joined #ruby
shaman42 has joined #ruby
C0deMaver1ck has joined #ruby
joes has joined #ruby
valeri_uF0 has joined #ruby
emersonian has joined #ruby
raz has joined #ruby
cjk101010 has joined #ruby
majoh has joined #ruby
Nanuq has joined #ruby
erlend has joined #ruby
Trynemjoel has joined #ruby
Todd has joined #ruby
raz has quit [Changing host]
raz has joined #ruby
tvl is now known as tobiasvl
electrostat has joined #ruby
devster31 has joined #ruby
irick has joined #ruby
epitron has joined #ruby
valeri_uF0 is now known as valeri_ufo
nettoweb has joined #ruby
dellavg has joined #ruby
atmosx has joined #ruby
nrk has joined #ruby
C0deMaver1ck is now known as Guest86969
aspiers has joined #ruby
Fernando-Basso has joined #ruby
ujjain has joined #ruby
ujjain has quit [Changing host]
ujjain has joined #ruby
Tharbakim has joined #ruby
SJr has joined #ruby
Mekkis has joined #ruby
qwertyco has quit [Client Quit]
modin has joined #ruby
whiteline has joined #ruby
nando293921 has quit [Ping timeout: 259 seconds]
nyuszika7h has joined #ruby
discopatrick has quit [Ping timeout: 265 seconds]
Lewix has joined #ruby
hayden__ has joined #ruby
bcavileer has joined #ruby
quadgrande has joined #ruby
sylario has joined #ruby
johnny56 has joined #ruby
mrfooo has joined #ruby
codepete has joined #ruby
jmhmccr has joined #ruby
kapowaz has joined #ruby
johnkpaul has joined #ruby
knowtheory has joined #ruby
ELCALOR has joined #ruby
ghostlight has quit [Ping timeout: 272 seconds]
MrBloo has joined #ruby
adambeynon has joined #ruby
ewilliam_ has joined #ruby
alxndr has joined #ruby
skmp has joined #ruby
<apeiros>
fergal_: so the part before { is not static?
discopatrick has joined #ruby
<fergal_>
apeiros: nope
nettoweb has quit [Max SendQ exceeded]
halfdan has joined #ruby
Snickers has joined #ruby
incomprehensibly has joined #ruby
vcoinminer has joined #ruby
charles81 has joined #ruby
rflot has joined #ruby
<apeiros>
output[/\{.*\}/]
mrbobbytables has joined #ruby
spastorino has joined #ruby
zzak has joined #ruby
techntoke_ has joined #ruby
ace05 has joined #ruby
noob_on_rails has joined #ruby
jackjackdripper has joined #ruby
nowhere_man has joined #ruby
nettoweb has joined #ruby
quadgrande has quit [Client Quit]
ramblinpeck has joined #ruby
AdamMeghji__ has joined #ruby
noodle has joined #ruby
lifted has joined #ruby
chouhoulis has joined #ruby
Filiphe has joined #ruby
nettoweb has quit [Max SendQ exceeded]
maddmaxx has joined #ruby
eljimbo has joined #ruby
miguelfernandes has joined #ruby
nettoweb has joined #ruby
chouhoulis has quit [Ping timeout: 256 seconds]
pwnd_nsfw` has quit [Read error: Network is unreachable]
<LyndsySimon>
I have an error where I want the message to have a common prefix, but a custom message each time it's raised. I've seen others raise an instance of an exception instead of the exception class itself, but I didn't know if that was intentional on their part or not, or whether it was an accepted practice.
arashb has quit [Ping timeout: 265 seconds]
shmuli has quit [Ping timeout: 256 seconds]
bluOxigen has quit []
eljimbo has quit [Ping timeout: 265 seconds]
<apeiros>
LyndsySimon: yeah, that's fine
<apeiros>
at least I do that too :)
c355e3b has quit [Quit: Connection closed for inactivity]
<LyndsySimon>
Cool, thanks.
<canton7>
LyndsySimon, doesn't StandardError have its own 'message' property
<LyndsySimon>
apeiros: I trust your judgement so far. You've not yet led me astray :)
eljimbo has joined #ruby
<apeiros>
LyndsySimon: `raise Foo` will raise an instance of Foo too btw.
<LyndsySimon>
canton7: I thought so too, but it didn't work without the attr_accessor call.
<Nilium>
apeiros once gave me a drink and told me it was coffee but it was really orange juice. The trust is shattered.
<apeiros>
and you can `raise MyAPINotAvailable, "custom part"` with your code. it'll do the same.
thatsnotjack has joined #ruby
<apeiros>
Nilium: trust in your perception, I presume?
<LyndsySimon>
apeiros: Yeah, I knew that, and that's what I've been doing. I've refactored out where others have used `raise Foo.new` without arguments, but this time I need it :)
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
teclator has joined #ruby
hostess has quit [Ping timeout: 272 seconds]
<LyndsySimon>
apeiros: That I didn't know. Awesome :)
<apeiros>
LyndsySimon: I use raise Ex.new when the initialize takes more/different things than the message
<LyndsySimon>
Nilium: That's kinda your fault for not checking your assumptions. Orange juice neither looks nor quacks like coffee.
wldcordeiro has quit [Ping timeout: 244 seconds]
<Nilium>
One cannot tell the difference if there's a lid on the cup.
<LyndsySimon>
canton7: d'oh! I didn't include the super call, that was the problem :)
<Nilium>
I was truly betrayed.
<canton7>
;)
AlexxNica has joined #ruby
<apeiros>
canton7, LyndsySimon: ah, yes, sure. you don't have to replicate the message part. I assumed the focus was on custom exceptions, calling .new on them
ghostlight has joined #ruby
vuoto has joined #ruby
sdothum has joined #ruby
tomphp has joined #ruby
renderf__ has quit [Ping timeout: 272 seconds]
cdg has joined #ruby
twalla has joined #ruby
renderfu_ has joined #ruby
grh has joined #ruby
tomphp has quit [Client Quit]
polishdub has joined #ruby
Devalo has joined #ruby
gregf_ has quit [Ping timeout: 240 seconds]
<hanmac>
if Orange juice does quacks like coffee then something is VERY wrong ;P
moneylotion has quit [Read error: Connection reset by peer]
dinoangelov_ has quit [Client Quit]
dinoangelov has joined #ruby
ramfjord has joined #ruby
fergal_ has quit [Quit: fergal_]
jaruga___ has quit [Quit: jaruga___]
qguv has joined #ruby
agit0 has quit [Quit: zzzZZZ….]
fuzzyhorns has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
Felipe__ has joined #ruby
Felipe__ has quit [Remote host closed the connection]
salut has quit [Quit: salut]
TPug has joined #ruby
Devalo has joined #ruby
Devalo_ has quit [Read error: Connection reset by peer]
minimalism has joined #ruby
mhoogkamer has joined #ruby
whathappens has quit [Remote host closed the connection]
devmagpie has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
devmagpie has quit [Client Quit]
whathappens has joined #ruby
Beams has quit [Quit: .]
Devalo has quit [Read error: Connection reset by peer]
jaequery has joined #ruby
Devalo has joined #ruby
conta has quit [Ping timeout: 265 seconds]
Felipe__ has joined #ruby
dgncn has joined #ruby
nitric_ has joined #ruby
gheegh has joined #ruby
Felipe__ has quit [Remote host closed the connection]
conta has joined #ruby
gregf_ has quit [Quit: Page closed]
jackjackdripper has quit [Quit: Leaving.]
dinoangelov has quit [Quit: (null)]
nitric has quit [Ping timeout: 265 seconds]
cdg has joined #ruby
<noob_on_rails>
any good Wysiwig that you recommend guys ?
<noob_on_rails>
rails 5
JoshS has quit [Quit: Leaving]
<noob_on_rails>
oh sry , this is ruby
the_drow has joined #ruby
iamvery_ has quit [Quit: Leaving...]
cdg has quit [Read error: Connection reset by peer]
anaiden has quit [Quit: anaiden]
AlexxNica has quit [Quit: AlexxNica]
cdg has joined #ruby
agit0 has joined #ruby
jaguarmagenta has joined #ruby
the_drow has quit [Ping timeout: 244 seconds]
elenatanasoiu has quit [Ping timeout: 252 seconds]
SCHAAP137 has joined #ruby
minimalism has quit [Ping timeout: 252 seconds]
DoubleMalt has joined #ruby
the_drow has joined #ruby
rakm has joined #ruby
ferr has quit [Quit: WeeChat 1.5]
Felipe__ has joined #ruby
Devalo has quit [Read error: Connection reset by peer]
jaguarmagenta has quit [Ping timeout: 252 seconds]
shmuli has joined #ruby
Devalo has joined #ruby
Devalo has quit [Read error: Connection reset by peer]
Devalo has joined #ruby
the_drow has quit [Ping timeout: 244 seconds]
shmuli has quit [Ping timeout: 244 seconds]
AnarchyAo has joined #ruby
the_drow has joined #ruby
crameth has joined #ruby
crameth has quit [Remote host closed the connection]
nando293921 has quit [Ping timeout: 265 seconds]
eizua has quit [Quit: Leaving]
iamvery_ has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
minimalism has joined #ruby
the_drow has joined #ruby
Felipe__ has quit [Quit: Leaving]
claudiuinberlin has joined #ruby
Devalo has quit [Read error: Connection reset by peer]
nitric_ has quit [Quit: sleep]
nitric has joined #ruby
djbkd has joined #ruby
Devalo has joined #ruby
DoubleMalt has quit [Ping timeout: 244 seconds]
nankyokusei has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
miguelfernandes has quit [Remote host closed the connection]
cdg has quit [Read error: Connection timed out]
moneylotion has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
cdg has joined #ruby
minimalism has quit [Quit: WeeChat 1.6]
tdy has quit [Ping timeout: 256 seconds]
nankyokusei has quit [Ping timeout: 256 seconds]
nh_cham has joined #ruby
sepp2k has quit [Quit: Leaving.]
the_drow has quit [Read error: Connection reset by peer]
nitric_ has joined #ruby
nitric has quit [Ping timeout: 264 seconds]
jsrn_ has quit [Read error: Connection reset by peer]
nh_cham has quit [Quit: leaving]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
the_drow has joined #ruby
blackmesa has joined #ruby
Devalo has quit [Remote host closed the connection]
kith has quit [Quit: kith]
nikivi has joined #ruby
craigp_ has joined #ruby
mhoogkamer has quit [Ping timeout: 256 seconds]
ace05 has joined #ruby
brendan- has joined #ruby
<baweaver>
zenspider: Yeah, RubyGems is broken to hell and none of the SSL fixes work
kitikonti has joined #ruby
<baweaver>
even if you upgrade to 2.6.7 on the latest ruby with the latest globalsign certs after imploding rvm and starting the entire thing from scratch
blackmesa has quit [Ping timeout: 272 seconds]
craigp_ has quit [Ping timeout: 244 seconds]
andikr has quit [Remote host closed the connection]
dnkyhotei has joined #ruby
conta has quit [Ping timeout: 252 seconds]
jenrzzz_ has joined #ruby
<dnkyhotei>
Hello rubyist, I'm playing with Rails now and am wondering why my sessions control won't authenticate a user with API calls but seems to work fine in web UI
<helpa>
Hi dnkyhotei. We in #ruby would really appreciate it if you did not use pastebin during your time with us.
<helpa>
Pastebin is not good because it loads slowly for most, has ads which are distracting and has terrible formatting. Please use Gist (http://gist.github.com) or Pastie (http://pastie.org) instead. Thanks!
jeffreylevesque has quit [Ping timeout: 272 seconds]
[diecast] has joined #ruby
Torkable has joined #ruby
Felipe__ has joined #ruby
Torkable is now known as Guest59835
SCHAAP137 has joined #ruby
aryaching has joined #ruby
rfv has joined #ruby
davidmichaelkarr has joined #ruby
lucasb_ has joined #ruby
Guest59835 has left #ruby [#ruby]
crameth has joined #ruby
crameth has quit [Remote host closed the connection]
kireevco_ has joined #ruby
daxroc has joined #ruby
yo61 has joined #ruby
zrl has joined #ruby
JackMc has joined #ruby
anaiden has joined #ruby
ggherdov has joined #ruby
mhoogkamer has joined #ruby
johnmilton has quit [Remote host closed the connection]
<eam>
is there an easy way (say via the environment) to run a little bit of ruby to, say, instrument atexit?
<eam>
I want to run a whole slew of random ruby scripts and log their resident memory at exit
futilegames has joined #ruby
bilal80 has joined #ruby
ramfjord has joined #ruby
elenatanasoiu has quit [Ping timeout: 244 seconds]
yazdmich is now known as BytesAndCoffee
Olipro has quit [*.net *.split]
ltp has quit [*.net *.split]
nowhere_man has quit [*.net *.split]
gr has quit [*.net *.split]
cyphase_eviltwin has quit [*.net *.split]
blackmesa has quit [*.net *.split]
agit0 has quit [*.net *.split]
lucasb_ has quit [*.net *.split]
dviola has quit [*.net *.split]
banisterfiend has quit [*.net *.split]
[Butch] has quit [*.net *.split]
igniting has quit [*.net *.split]
grh has quit [*.net *.split]
teclator has quit [*.net *.split]
ruby[bot] has quit [*.net *.split]
sdwrage has quit [*.net *.split]
noob_on_rails has quit [*.net *.split]
johnkpaul has quit [*.net *.split]
jmhmccr has quit [*.net *.split]
bcavileer has quit [*.net *.split]
timvisher has quit [*.net *.split]
electrostat has quit [*.net *.split]
irick has quit [*.net *.split]
Guest86969 has quit [*.net *.split]
tobiasvl has quit [*.net *.split]
cjk101010 has quit [*.net *.split]
swills has quit [*.net *.split]
Tempesta has quit [*.net *.split]
tvw has quit [*.net *.split]
patarr has quit [*.net *.split]
RTFM[away] has quit [*.net *.split]
pragmaticus has quit [*.net *.split]
ldnunes has quit [*.net *.split]
queequeg1 has quit [*.net *.split]
lucast has quit [*.net *.split]
bocaneri has quit [*.net *.split]
misterpink has quit [*.net *.split]
Batholith has quit [*.net *.split]
n8o has quit [*.net *.split]
Kero has quit [*.net *.split]
AndyWojo has quit [*.net *.split]
cardoni has quit [*.net *.split]
bestie has quit [*.net *.split]
HashNuke has quit [*.net *.split]
wsmoak has quit [*.net *.split]
twodayslate has quit [*.net *.split]
mrsolo has quit [*.net *.split]
Junaos has quit [*.net *.split]
aarongodin has quit [*.net *.split]
face has quit [*.net *.split]
ejnahc has quit [*.net *.split]
Xiti has quit [*.net *.split]
TinkerTyper has quit [*.net *.split]
bathtub_shark has quit [*.net *.split]
Rutix has quit [*.net *.split]
bronson has quit [*.net *.split]
Satyajit has quit [*.net *.split]
colstrom has quit [*.net *.split]
meatchicken has quit [*.net *.split]
canton7 has quit [*.net *.split]
zirpu has quit [*.net *.split]
ndrst has quit [*.net *.split]
wnd has quit [*.net *.split]
troter__________ has quit [*.net *.split]
lz has quit [*.net *.split]
Hobbyboy has quit [*.net *.split]
G has quit [*.net *.split]
evie_hammond has quit [*.net *.split]
fiddlerwoaroof has quit [*.net *.split]
marens has quit [*.net *.split]
null_ref has quit [*.net *.split]
tty1 has quit [*.net *.split]
RushPL has quit [*.net *.split]
Guest22909 has quit [*.net *.split]
yokel has quit [*.net *.split]
jud has quit [*.net *.split]
beatdown has quit [*.net *.split]
lele has quit [*.net *.split]
hfp_work has quit [*.net *.split]
abort_ has quit [*.net *.split]
web_nanners has quit [*.net *.split]
yasu___ has quit [*.net *.split]
abort has joined #ruby
marens has joined #ruby
C0deMaver1ck has joined #ruby
marens has quit [Changing host]
marens has joined #ruby
webnanners has joined #ruby
misterpink has joined #ruby
lele has joined #ruby
ejnahc has joined #ruby
electrostat has joined #ruby
lz has joined #ruby
Kero has joined #ruby
tvl has joined #ruby
G has joined #ruby
queequeg1 has joined #ruby
tbuehlmann has joined #ruby
zirpu has joined #ruby
lucasb has joined #ruby
swills has joined #ruby
face has joined #ruby
dviola has joined #ruby
canton7 has joined #ruby
cyphase_eviltwin has joined #ruby
tvw has joined #ruby
ndrst has joined #ruby
null_ref has joined #ruby
cjk101010 has joined #ruby
ltp has joined #ruby
[Butch] has joined #ruby
patarr has joined #ruby
timvisher has joined #ruby
wnd has joined #ruby
beatdown has joined #ruby
yasu___ has joined #ruby
Wizznt has joined #ruby
fiddlerwoaroof has joined #ruby
ruby[bot] has joined #ruby
grh has joined #ruby
irick has joined #ruby
RTFM[away] has joined #ruby
pragmaticus has joined #ruby
RTFM[away] has quit [Changing host]
RTFM[away] has joined #ruby
sdwrage has joined #ruby
yokel has joined #ruby
nowhere_man has joined #ruby
meatchicken has joined #ruby
ldnunes has joined #ruby
Xiti has joined #ruby
n8o has joined #ruby
evie_hammond has joined #ruby
bronson has joined #ruby
tvl is now known as tobiasvl
jud has joined #ruby
C0deMaver1ck is now known as Guest15043
bocaneri has joined #ruby
dviola has quit [Changing host]
dviola has joined #ruby
bathtub_shark has joined #ruby
gr has joined #ruby
hfp_work has joined #ruby
TinkerTyper has joined #ruby
ndrst is now known as Guest58512
Olipro has joined #ruby
Junaos has joined #ruby
Rutix has joined #ruby
Rutix has quit [Changing host]
Rutix has joined #ruby
Batholith has joined #ruby
tty1 has joined #ruby
Tempesta has joined #ruby
Tempesta has quit [Changing host]
Tempesta has joined #ruby
<Papierkorb>
eam: install your at_exit handler and then eval() into the file, modifying ARGV and $0 so the called program assumes it was called directly?
teclator has joined #ruby
RushPL has joined #ruby
ekinmur has joined #ruby
ekinmur has quit [Changing host]
<eam>
I could do that. now that I think more about it, I want to collect every process including potentially non-ruby things shelled out
<eam>
maybe I should go with LD_PRELOAD of exit(2)?
Hobbyboy has joined #ruby
<Papierkorb>
eam: ptrace()?
deimos has quit [Ping timeout: 240 seconds]
techntoke_ has quit [Ping timeout: 263 seconds]
tdy has quit [Ping timeout: 272 seconds]
davidmichaelkarr has quit [Ping timeout: 258 seconds]
daxroc has quit [Ping timeout: 258 seconds]
ec has quit [Ping timeout: 244 seconds]
<eam>
yeah perhaps. If so I
benjwadams has quit [Quit: WeeChat 1.4]
sneakers has joined #ruby
<eam>
I'd like to do it with gdb and not write it all from scratch
caw has quit [Ping timeout: 256 seconds]
johnkpaul has joined #ruby
wsmoak has joined #ruby
cardoni has joined #ruby
AndyWojo has joined #ruby
jaguarmagenta has joined #ruby
Rodya_ has quit [Remote host closed the connection]
jmhmccr has joined #ruby
colstrom has joined #ruby
Rodya_ has joined #ruby
havenwood has quit [Read error: Connection reset by peer]