havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.1, 2.3.4 & 2.2.7: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
nofxxxx has quit [Ping timeout: 246 seconds]
jusa has joined #ruby
mesamoo has joined #ruby
Rodya_ has joined #ruby
nofxxxx has joined #ruby
jusa has quit [Ping timeout: 255 seconds]
jdsampayo has joined #ruby
mim1k has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
nofxxxx has quit [Ping timeout: 255 seconds]
poloych has quit [Remote host closed the connection]
dkam has quit [Ping timeout: 246 seconds]
Guest95348 has quit [Excess Flood]
forgot has joined #ruby
nofxxxx has joined #ruby
dkam has joined #ruby
forgot is now known as Guest23689
mim1k has quit [Ping timeout: 255 seconds]
jdsampayo has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
troys is now known as troys_
poloych has joined #ruby
Kug3lis has joined #ruby
brent__ has joined #ruby
brent___ has quit [Ping timeout: 260 seconds]
raspado has quit [Remote host closed the connection]
duderonomy has quit [Ping timeout: 258 seconds]
bkxd has joined #ruby
nitric has quit [Ping timeout: 245 seconds]
bkxd has quit [Ping timeout: 260 seconds]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
enterprisey has joined #ruby
marr has quit [Ping timeout: 260 seconds]
enterprisey has quit [Client Quit]
chat_ has quit [Ping timeout: 245 seconds]
enterprisey has joined #ruby
im0nde has quit [Ping timeout: 240 seconds]
bruce_lee has quit [Ping timeout: 240 seconds]
lxsameer has quit [Quit: WeeChat 1.7]
KeyJoo has quit [Ping timeout: 240 seconds]
bruce_lee has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
jenrzzz has quit [Ping timeout: 260 seconds]
AndBobsYourUncle has quit [Ping timeout: 258 seconds]
chat_ has joined #ruby
brent__ has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
jenrzzz has joined #ruby
raspado has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
dasher00 has quit [Ping timeout: 246 seconds]
ben__ has joined #ruby
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ben__ has quit [Ping timeout: 246 seconds]
gusrub has quit [Remote host closed the connection]
t-recx has quit [Quit: t-recx]
HoierM has joined #ruby
dasher00 has joined #ruby
Rodya_ has joined #ruby
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
brent__ has joined #ruby
nofxxxx has quit [Quit: Leaving]
nofxx has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
uZiel has joined #ruby
brent__ has quit [Ping timeout: 260 seconds]
bmurt has joined #ruby
davidmichaelkarr has quit [Quit: Connection closed for inactivity]
Orbixx has joined #ruby
duderonomy has joined #ruby
arescorpio has joined #ruby
amclain has quit [Quit: Leaving]
z3uS has quit [Quit: /dev/null]
bambanx has joined #ruby
z3uS has joined #ruby
bkxd has joined #ruby
cschneid_ has joined #ruby
nunchuck has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
d^sh has quit [Ping timeout: 260 seconds]
d^sh has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hakoichi has joined #ruby
Silthias1 has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
bkxd has quit [Ping timeout: 260 seconds]
Silthias has quit [Ping timeout: 260 seconds]
bkxd has joined #ruby
chouhoulis has quit [Ping timeout: 246 seconds]
DTZUZU has quit [Quit: WeeChat 1.7]
nertzy has quit [Quit: This computer has gone to sleep]
<Orbixx> hakoichi: hey
chat_ has quit [Ping timeout: 260 seconds]
shinnya has quit [Ping timeout: 246 seconds]
bkxd has quit [Ping timeout: 240 seconds]
bvcosta has joined #ruby
PorcoRex has joined #ruby
<PorcoRex> Good evening.
<Radar> Hi
bvcosta has quit [Ping timeout: 240 seconds]
gizmore|2 has joined #ruby
chat__ has joined #ruby
raspado has quit [Remote host closed the connection]
sepp2k has quit [Ping timeout: 260 seconds]
__Yiota has joined #ruby
charliesome has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
gizmore has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
johnzorn has joined #ruby
ascarter has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gnufied has joined #ruby
__Yiota has joined #ruby
jusa has joined #ruby
jusa has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
mim1k has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has quit [Ping timeout: 240 seconds]
bruce_lee has quit [Remote host closed the connection]
genpaku has quit [Remote host closed the connection]
genpaku has joined #ruby
bambanx has quit [Quit: Leaving]
DeeJayh has quit [Read error: Connection reset by peer]
sarbs has quit [Read error: Connection reset by peer]
__Yiota has joined #ruby
gnufied has quit [Quit: Leaving]
sarbs has joined #ruby
uZiel has quit [Remote host closed the connection]
pb122 has quit [Write error: Connection reset by peer]
pb122 has joined #ruby
troys_ is now known as troys
DeeJayh has joined #ruby
uZiel has joined #ruby
sarbs has quit [Read error: Connection reset by peer]
sarbs has joined #ruby
sleetdrop has joined #ruby
poloych has quit [Remote host closed the connection]
gothicsouth has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
ben__ has joined #ruby
HoierM has quit [Ping timeout: 268 seconds]
stormbytes has quit [Quit: Textual IRC Client: www.textualapp.com]
ben__ has quit [Ping timeout: 260 seconds]
ascarter has quit [Read error: Connection reset by peer]
Rodya_ has joined #ruby
ascarter has joined #ruby
dasher00 has quit [Ping timeout: 260 seconds]
ryzokuken has joined #ruby
ascarter has quit [Client Quit]
Rodya_ has quit [Ping timeout: 258 seconds]
dasher00 has joined #ruby
arescorpio has quit [Ping timeout: 255 seconds]
gix has quit [Ping timeout: 260 seconds]
ecuanaso has joined #ruby
cdg has joined #ruby
bkxd has joined #ruby
sleetdrop has quit [Ping timeout: 276 seconds]
gix has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
felltir has quit [Remote host closed the connection]
felltir has joined #ruby
mim1k has joined #ruby
felltir has quit [Ping timeout: 255 seconds]
mim1k has quit [Ping timeout: 246 seconds]
haylon has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
jameser has joined #ruby
sleetdrop has joined #ruby
ascarter has joined #ruby
ascarter_ has joined #ruby
ecuanaso has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ryzokuken has quit [Ping timeout: 260 seconds]
Rodya_ has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zapata has quit [Quit: WeeChat 1.8]
uZiel has joined #ruby
Rodya_ has quit [Ping timeout: 258 seconds]
xall has joined #ruby
troys is now known as troys_
bkxd has joined #ruby
xall has quit [Ping timeout: 260 seconds]
mikecmpbll has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bkxd has quit [Ping timeout: 240 seconds]
ascarter has joined #ruby
vondruch has quit [Quit: vondruch]
perniciouscaffei has joined #ruby
A124 has quit [Quit: '']
ascarter has quit [Client Quit]
SeepingN has joined #ruby
A124 has joined #ruby
MrBusiness3 has joined #ruby
rohitpaulk has joined #ruby
raspado has joined #ruby
MrBismuth has quit [Ping timeout: 255 seconds]
chat__ has quit [Ping timeout: 240 seconds]
patarr has joined #ruby
raspado has quit [Quit: Leaving...]
uZiel has quit [Ping timeout: 248 seconds]
rohitpaulk has quit [Ping timeout: 240 seconds]
MrBusiness3 has quit [Quit: https://www.youtube.com/watch?v=xIIqYqtR1lY -- Suicide is Painless - Johnny Mandel]
patarr has quit [Ping timeout: 246 seconds]
MrBusiness has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
18VABDA0J has joined #ruby
ascarter has joined #ruby
jcao219 has quit [Ping timeout: 246 seconds]
uZiel has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
hakoichi has quit [Ping timeout: 260 seconds]
mikecmpbll has joined #ruby
18VABDA0J has quit [Ping timeout: 260 seconds]
armyriad has quit [Read error: Connection reset by peer]
cdg has quit [Remote host closed the connection]
lightstalker has quit [Ping timeout: 240 seconds]
ryzokuken has joined #ruby
arquebus has joined #ruby
justizin has quit [Quit: Connection closed for inactivity]
chat___ has joined #ruby
Rodya_ has joined #ruby
armyriad has joined #ruby
mjuszczak has joined #ruby
rohitpaulk has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
ur5us has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: inabit. zz.]
Bock has joined #ruby
chat___ has quit [Ping timeout: 246 seconds]
bkxd has joined #ruby
arquebus has quit [Quit: konversation disconnects]
bkxd has quit [Ping timeout: 260 seconds]
aupadhye has joined #ruby
charliesome has joined #ruby
chat_ has joined #ruby
muelleme has joined #ruby
snockerton has quit [Quit: Leaving.]
ur5us has joined #ruby
ascarter_ has quit [Ping timeout: 260 seconds]
tvw has joined #ruby
bpmedley has quit [Ping timeout: 268 seconds]
mjuszczak has quit []
ur5us has quit [Remote host closed the connection]
Ishido has joined #ruby
oleo has quit [Quit: irc client terminated!]
troys_ is now known as troys
hutch34 has joined #ruby
muelleme has quit [Ping timeout: 240 seconds]
enterprisey has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 258 seconds]
haylon has quit [Quit: Leaving]
PorcoRex has quit [Quit: Leaving]
dionysus69 has joined #ruby
cschneid_ has joined #ruby
muelleme has joined #ruby
cschneid_ has quit [Ping timeout: 255 seconds]
dionysus69 has quit [Ping timeout: 255 seconds]
rohitpaulk has quit [Ping timeout: 246 seconds]
blackwind_123 has quit [Quit: IceChat - Keeping PC's cool since 2000]
s1kx has joined #ruby
ryzokuken_ has joined #ruby
Rodya_ has joined #ruby
ryzokuken has quit [Ping timeout: 246 seconds]
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
chat_ has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
chat has joined #ruby
Tempesta has quit [Quit: See ya!]
chat is now known as Guest47897
troys has quit [Quit: Bye]
bkxd has joined #ruby
sleetdrop has quit [Quit: Computer has gone to sleep.]
AlexRussia has quit [Ping timeout: 255 seconds]
muelleme has quit [Ping timeout: 260 seconds]
sleetdrop has joined #ruby
nadir has joined #ruby
bkxd has quit [Ping timeout: 246 seconds]
harfangk has joined #ruby
vali has joined #ruby
anisha has joined #ruby
bkxd has joined #ruby
conta has joined #ruby
ryzokuken_ has quit [Quit: Leaving]
anisha_ has joined #ruby
bkxd has quit [Ping timeout: 246 seconds]
anisha has quit [Ping timeout: 246 seconds]
weathermaker has joined #ruby
roshanavand has joined #ruby
Tempesta has joined #ruby
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
andikr has joined #ruby
nofxx has quit [Ping timeout: 240 seconds]
sleetdrop has quit [Quit: Computer has gone to sleep.]
dionysus69 has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
Guest47897 has quit [Ping timeout: 240 seconds]
sleetdrop has joined #ruby
patarr has joined #ruby
nofxx has joined #ruby
cfec0b8d has joined #ruby
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
5EXAA6YSK has joined #ruby
roshanavand1 has joined #ruby
jusa has joined #ruby
patarr has quit [Ping timeout: 260 seconds]
aufi has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
roshanavand1 is now known as roshanavand
arquebus has joined #ruby
arquebus has quit [Client Quit]
tvw has quit [Ping timeout: 255 seconds]
Silthias has joined #ruby
Silthias2 has joined #ruby
felltir has joined #ruby
felltir has quit [Remote host closed the connection]
ben__ has joined #ruby
Silthias1 has quit [Ping timeout: 260 seconds]
gizmore|2 has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
Silthias has quit [Ping timeout: 240 seconds]
ben__ has quit [Ping timeout: 255 seconds]
Pumukel has joined #ruby
Pumukel has quit [Remote host closed the connection]
yosafbridge has quit [Quit: Leaving]
jgnagy has quit [Remote host closed the connection]
Pumukel has joined #ruby
jgnagy has joined #ruby
biberu has joined #ruby
Rodya_ has joined #ruby
cfec0b8d has quit [Remote host closed the connection]
yosafbridge has joined #ruby
lacour has quit [Quit: Leaving]
milardovich has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
mark_66 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
Otti has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Silthias2 has quit [Ping timeout: 240 seconds]
lightstalker has joined #ruby
Silthias has joined #ruby
mathys has joined #ruby
belmoussaoui has quit [Ping timeout: 246 seconds]
5EXAA6YSK has quit [Ping timeout: 260 seconds]
im0nde has joined #ruby
mark_66 has quit [Quit: Leaving.]
mark_66 has joined #ruby
belmoussaoui has joined #ruby
bricker has joined #ruby
milardovich has quit [Remote host closed the connection]
bricker has quit [Client Quit]
chat____ has joined #ruby
bricker has joined #ruby
bricker is now known as bricker2
jusa has quit [Ping timeout: 255 seconds]
bricker2 has quit [Client Quit]
bricker has joined #ruby
bricker is now known as bricker2
bricker2 has quit [Client Quit]
horst has joined #ruby
ben__ has joined #ruby
hurricanehrndz has quit [Quit: Goodbye]
valentinul has joined #ruby
vali has quit [Ping timeout: 260 seconds]
jcao219 has joined #ruby
ben__ has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
rgr has joined #ruby
hurricanehrndz has joined #ruby
valentinul has quit [Client Quit]
nachoman has joined #ruby
brent__ has joined #ruby
MrBusiness has quit [Ping timeout: 255 seconds]
ltem has joined #ruby
ferr1 has joined #ruby
cjhowe7 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roshanavand has quit [Quit: roshanavand]
roshanavand has joined #ruby
brent__ has quit [Ping timeout: 255 seconds]
Rodya_ has joined #ruby
jcao219 has quit [Ping timeout: 240 seconds]
mark_66 has quit [Quit: Leaving.]
mark_66 has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 255 seconds]
mikecmpbll has joined #ruby
ddffg has joined #ruby
_joes___ has joined #ruby
_joes___ has quit [Client Quit]
_joes___ has joined #ruby
zipace has joined #ruby
zipace has quit [Changing host]
zipace has joined #ruby
Burgestrand has joined #ruby
mim1k has joined #ruby
bkxd has joined #ruby
bkxd has quit [Ping timeout: 255 seconds]
mathys has quit [Quit: Leaving]
bvcosta has joined #ruby
bvcosta has quit [Remote host closed the connection]
bvcosta has joined #ruby
AlexRussia has joined #ruby
marr has joined #ruby
Beams has joined #ruby
patarr has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
mikecmpb_ has joined #ruby
Burgestrand has quit [Quit: Closing time!]
mikecmpbll has quit [Ping timeout: 246 seconds]
mim1k has quit [Read error: Connection reset by peer]
milardovich has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
milardov_ has joined #ruby
uZiel has joined #ruby
chat____ has quit [Ping timeout: 268 seconds]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Burgestrand has joined #ruby
bvcosta has quit [Remote host closed the connection]
MrBusiness has joined #ruby
bvcosta has joined #ruby
jaruga________ has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
haraoka has joined #ruby
mim1k has joined #ruby
flying has joined #ruby
<zenspider> wow. fairly dead
rgr has quit [Quit: rgr]
mim1k has quit [Ping timeout: 260 seconds]
mim1k has joined #ruby
Kug3lis has joined #ruby
Otti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nachoman has quit []
Puffball_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
nachoman has joined #ruby
dreamthese has quit [Remote host closed the connection]
dreamthese has joined #ruby
Puffball has joined #ruby
rohitpaulk has joined #ruby
vikaton has quit [Quit: Connection closed for inactivity]
Otti has joined #ruby
<kke_> how can i tail a stringio? something like https://gist.github.com/kke/e7f8721840cf09900cabcc900312f134 but so it actually works :)
bkxd has joined #ruby
weathermaker has quit [Ping timeout: 240 seconds]
Rodya_ has quit [Ping timeout: 246 seconds]
howdoi has joined #ruby
gagrio has joined #ruby
<zenspider> tail?
flying has quit []
<kke_> read in a loop and do something like output to stdout for the new data
bkxd has quit [Ping timeout: 246 seconds]
bkxd has joined #ruby
<zenspider> are you sure you want a StringIO for that?
<zenspider> kke_: can you figure out how to do the equivalent with a regular file?
<universa1> why not push to an array and pop? ;)
benz has joined #ruby
dasher^0_o has joined #ruby
<zenspider> universa1: maybe they actually want an IO
<benz> hello, i have some emergency issue on puma
<benz> any expert here?
<universa1> zenspider: yeah maybe, but the example is so contrived, that the actual problem might be something totally different ;)
<kke_> zenspider: i was planning to capture the real $stdout, then do $stdout = my_string_io and then process stuff that comes into it
<zenspider> kke_: you didn't answer my question. can you figure out how to do this with a regular IO?
<zenspider> like a file
<Burgestrand> ?anyone benz
<ruby[bot]> benz: Just ask your question, if anyone has, is or can, they will respond.
<zenspider> Burgestrand: thank you. I never remember those things
<Burgestrand> zenspider me neither, I looked it up at https://ruby-community.com/ruboto/facts
<Burgestrand> zenspider ;)
<zenspider> ?help me
<ruby[bot]> zenspider: I don't see no me, whom should I tell about help?
<benz> on a rails project, puma starts consuming all the cpu
raul782 has joined #ruby
<kke_> zenspider: yes, you can just keep file.reading it (or use inotifier/kqueue whatever)
<benz> in just 1 minutes it reaches 80%
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zenspider> kke_: don't think so...
<benz> any idea how to debug
lxsameer has joined #ruby
<universa1> benz: it stays at 80% or it drops after a minute or two?
<raul782> Hi guys, how can I replace a \n with an invisible newline. because right now
<zenspider> kke_: if your same process opens a file writes to it and then tries to read from it in a loop? what happens?
<raul782> when I store it in a mysql textfield, I can still see the \n
<zenspider> benz: how are you sure it isn't doing something legitimately?
<zenspider> raul782: how do you see it?
<benz> it stays at 80
<kke_> zenspider: hmm yes, the reader should keep track of file position and rewind and then the writer in another thread will screw things up by overwriting
<zenspider> kke_: that's because the reader and the writer are the same thing... the single IO
<kke_> i wonder if i could use IO.pipe then
<zenspider> what are you REALLY trying to do?
<kke_> read, write = IO.pipe $stdout = write; then keep reading the read
leitz has joined #ruby
<raul782> zenspider: this is how it's stored in the database <script type="text/javascript">\n var abc=1 </script>
<raul782> I've tried several combinations with gsub, before storing it.
<zenspider> raul782: how do you know that? how do you see it?
<kke_> trying to capture stdout of another thread
tomphp has joined #ruby
<zenspider> kke_: what does that mean, and in what context?
<raul782> zenspider: My app, display that field in a text area
<raul782> in a fomr
<raul782> In a form
<zenspider> so you're not looking at the raw value in the db (or whatever)
<kke_> IO.pipe however is not available on all platforms. dang.
<zenspider> ...
<kke_> i have something like spinner "foo" { .... } and i don't like how it currently requires monkeypatching/overwriting puts/print/etc to keep track of the spinner position
tvw has joined #ruby
<raul782> zenspider: let me confirm you that
nanoz has joined #ruby
mark_66 has left #ruby ["PART #elixir-lang :PART #crystal-lang :PONG :verne.freenode.net"]
<raul782> zenspider: Yeah, I can see the \n in the field of type: text
<raul782> zenspider: The context is the following: I had this javascript snippet stored in the database, and then the app exported in a CSV, in order to not break the format, I replaced newline with \n
<zenspider> so then the value is correct in the db and incorrect in the form. it is probably being escaped by something when it goes into the form? is there some sanitizer being used?
<raul782> But when I want to import it again, I can replace it back to an invisible new line
<raul782> zenspider
<raul782> zenspider: yes, I'm using codemirror
<zenspider> well... that's not exactly what I mean, but maybe it is also getting in the way. You could add an extra text-area that is plain and see what displays in there...
hutch34 has joined #ruby
<zenspider> I suspect that something is causing problems before codemirror is involved (but that's just a guess)
<zenspider> I would be attempting to write a test to verify this more directly tho
oliv_____ has joined #ruby
romank has joined #ruby
<raul782> zenspider: ok I'll spit it out in a regular textarea
hutch34 has quit [Ping timeout: 255 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
d^sh has quit [Ping timeout: 246 seconds]
rohitpaulk has quit [Ping timeout: 240 seconds]
<raul782> zenspider: Weird, in a simple textarea. I can se the \n
<raul782> *still see
<raul782> IS there a a non printable character for newline
tomphp has joined #ruby
cschneid_ has joined #ruby
<zenspider> raul782: kk. then you know it isn't codemirror. cool.
<zenspider> can you `p the_text` in ruby, before the render and then look at it there? the real question is whether it displays as \n or \\n
nimzo has joined #ruby
<nimzo> hello all
<nimzo> what's the neatest way of achiving the following in ruby:
milardov_ has quit [Remote host closed the connection]
<nimzo> a = [1, 2, 3, 4]
<zenspider> don't paste...
haraoka has quit [Ping timeout: 260 seconds]
<zenspider> use a gist
Burgestrand has quit [Read error: Connection reset by peer]
<nimzo> b = [2, 6] -> a.include?(b)
Burgestrand has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
<nimzo> have two arrays, check if ANY value of b is contained in a
<zenspider> raul782: wait. when you said you escaped it yourself... where did you do that? did you put in a literal \n into the db or what?
<zenspider> nimzo: what'd you try so far?
<nimzo> I know I can write my own logic to check that but I was wondering if there's a neater way of doing it
<nimzo> zenspider: function which iterates of a and check b.include(i)
<nimzo> iterates over*
Neptu has quit [Ping timeout: 255 seconds]
<nimzo> sorry I meant the other way round.. iterates over b and for each element a.include?(i)
uZiel has quit [Remote host closed the connection]
<zenspider> doesn't matter... it's the same thing
cschneid_ has quit [Ping timeout: 260 seconds]
<zenspider> what do you call that type of check?
<nimzo> if it finds one then returns true else false.. I feel like there's gotta be a sexier way of doing that
bkxd has joined #ruby
<Burgestrand> nimzo nope, pretty much `b.any? { … }` is the way to go.
<zenspider> Burgestrand: come on... 1) you're wrong. 2) at least TRY to teach a little
<Burgestrand> zenspider ditto
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eifran has joined #ruby
bvcosta has quit [Remote host closed the connection]
<zenspider> ditto as in I'm not trying to teach? nice try
<Burgestrand> zenspider no I mean if you tell me I'm wrong tell me where
tomphp has joined #ruby
tomphp has quit [Client Quit]
<nimzo> Burgestrand: this is a shortcut to what I'm already doing.
<nimzo> in the block I'll still have to check a.include?(i)
<Burgestrand> zenspider I don't mind being wrong, but it'd be more helpful if you could tell me why :)
tomphp has joined #ruby
<zenspider> I'm more concerned with nimzo's problem atm
tomphp has quit [Client Quit]
<raul782> zenspider: when coming from the db to the CSV I did the following: gsub(/[\r\n]+/, '\n')
<nimzo> Burgestrand: but I do agree it's better than what I got.
<nimzo> nimzo: don't know what you call that type of check.
<zenspider> raul782: ok. so you actually have a literal "\\n" in your string
<zenspider> >> '\n'.inspect
<ruby[bot]> zenspider: # => "\"\\\\n\"" (https://eval.in/814591)
<Burgestrand> nimzo all I saw was "have to arrays, check if ANy value of b is contained in a, is there a neater way of doing it?`
bvcosta has joined #ruby
<Burgestrand> nimzo maybe I missed your actual question? :)
<zenspider> nimzo: ok. checking what is in common between two collections is called the "intersection"
<nimzo> oh you're right!
<raul782> the only way to capture the \n
<nimzo> zenspider: that's neat. Thanks!
<zenspider> nimzo: look at the doco for Set
<raul782> zenspider is df.gsub("\n", ???)
_DanN__ has quit [Ping timeout: 240 seconds]
<Burgestrand> >> [1, 2, 3, 4] & [2, 4]
<ruby[bot]> Burgestrand: # => [2, 4] (https://eval.in/814592)
<Burgestrand> Oh, that's a bad example :(
<Burgestrand> >> [1, 2, 3, 4] && [0, 2, 4, 7]
<ruby[bot]> Burgestrand: # => [0, 2, 4, 7] (https://eval.in/814593)
<Burgestrand> …
_DanN_ has joined #ruby
<Burgestrand> >> [1, 2, 3, 4] & [0, 2, 4, 7]
<ruby[bot]> Burgestrand: # => [2, 4] (https://eval.in/814594)
<Burgestrand> \o/
<raul782> zenspider: what should I put on ???, to get back the initial non printable newline?
<zenspider> >> '\n'.gsub('\n', "\n")
<ruby[bot]> zenspider: # => "\n" (https://eval.in/814595)
nimzo has quit [Quit: Page closed]
<zenspider> Burgestrand: hopeless
<zenspider> raul782: does that make sense? '\n' in ruby is the escaped form. "\n" is normal form
Neptu has joined #ruby
<raul782> ok, I'll try it on my import method to see if that works
<Burgestrand> zenspider rude!
Rodya_ has joined #ruby
<zenspider> raul782: iirc, newlines in values in CSV *is* valid tho, you need to have quotes around the field. so you don't need to escape them so much as you need to output valid CSV, rigt?
<zenspider> right. ugh.
<konsolebox> raul782: what are you really trying to do?
rohitpaulk has joined #ruby
uZiel has joined #ruby
andikr has quit [Remote host closed the connection]
<zenspider> field = (escaped / non-escaped)
<zenspider> non-escaped = *TEXTDATA
<zenspider> escaped = DQUOTE *(TEXTDATA / COMMA / CR / LF / 2DQUOTE) DQUOTE
d^sh has joined #ruby
<raul782> zenspider, that worked :). well it's not a CSV but a TSV
<zenspider> and using the CSV class should do that for you automatically
<zenspider> same thing
Rodya_ has quit [Ping timeout: 246 seconds]
<raul782> zenspider: the thing is that many fields have double quotes
<raul782> so it seemed to me at the moment that using a TSV should work
papercode has joined #ruby
<raul782> I ahd to use this to make it work : csv = CSV.parse(string, col_sep: "\t", :quote_char => "\x00")
<zenspider> double quotes are just "" inside (2DQUOTE above)
Xeago has quit [Ping timeout: 260 seconds]
<arahael> Also, tabs in values is valid, too.
<zenspider> yes, but again, the file format allows for all of this
Xeago has joined #ruby
<zenspider> but whatever... you can munge and demunge the values consistently
arup_r has joined #ruby
<raul782> That's great to know, I'll follow your advice then, now that it's working.
cschneid_ has joined #ruby
<arahael> zenspider: At this point, you might as well just read the lines, and do a .split('\t')
Burgestrand has quit [Quit: Closing time!]
lel has quit [Ping timeout: 260 seconds]
cschneid_ has quit [Ping timeout: 260 seconds]
mikecmpb_ is now known as mikecmpbll
lel has joined #ruby
<mikecmpbll> i read between the lines 🕵🏼
raul782 has quit [Ping timeout: 258 seconds]
rikkipitt has joined #ruby
Otti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackwind_123 has joined #ruby
leitz has quit [Quit: Nappy time]
papercode has left #ruby ["WeeChat 1.8-dev"]
anisha_ has quit [Ping timeout: 240 seconds]
patarr has joined #ruby
anisha has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
arup_r has left #ruby [#ruby]
arup_r has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
d^sh_ has joined #ruby
herbmillerjr has quit [Remote host closed the connection]
d^sh has quit [Ping timeout: 240 seconds]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aruns has joined #ruby
<aruns> Hi, running RVM 1.29.1 on Mac OS X 10.11.6 (El Capitan) using Fish Shell 2.4.0
milardovich has joined #ruby
ur5us has joined #ruby
benz has quit [Remote host closed the connection]
<aruns> Have downloaded RVM via Bash, default Ruby prior to RVM was 2.0.0, have installed the RVM function script for Fish
<aruns> But rvm default does not update the default Ruby version on my system
gagrio has quit [Remote host closed the connection]
<aruns> Even though I have rvm default in ~/.config/fish/config.fish
<aruns> And everything seems to be fine in terms of what's in $PATH
cdg has joined #ruby
Ninja0n3 has joined #ruby
milardovich has quit [Ping timeout: 255 seconds]
<Ninja0n3> Hello, I'm feeling a bit stupid right now, I'm trying to run a ruby script which uses ENV['ENVVAR'] from a bash script, in the script I have ENVVAR="my_var_value" before calling 'ruby myscript.rb', however when I 'puts ENV['ENVVAR']' it comes empty, any ideas?
<zenspider> aruns: you might want to switch to bash and ensure that things work there first. then it is either fish itself or the bindings between the two.
<zenspider> that said... rvm does a LOT. you might want to check out rbenv or others instead. they might play nicer with fish just because they do less
<zenspider> and do it MUCH MUCH cleaner
<kke_> Ninja0n3: i think you need to export it
<kke_> Ninja0n3: export ENVVAR
<zenspider> Ninja0n3: either export it or have it on the same line as the call
<zenspider> K=V ruby blah.rb
<Ninja0n3> kke_: Thank you, I just found that out myself, I did not have the 'export' command before the env variable, adding it solved the issue
<Ninja0n3> Thanks a lot
<Ninja0n3> zenspider, kke_ thank you!
bkxd has quit [Ping timeout: 240 seconds]
<kke_> strings from env are frozen btw. ran into this when doing something like foo = ENV['BAR']; foo.gsub!(...)
Burgestrand has joined #ruby
aruns has quit [Ping timeout: 255 seconds]
Rodya_ has joined #ruby
mim1k has quit [Read error: Connection reset by peer]
Fernando-Basso has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
bkxd has joined #ruby
Tempesta_ has joined #ruby
roshanavand has quit [Quit: roshanavand]
moei has quit [Read error: Connection reset by peer]
Burgestrand has quit [Ping timeout: 240 seconds]
Burgestrand has joined #ruby
moei has joined #ruby
Tempesta has quit [Ping timeout: 246 seconds]
oliv_____ has quit [Remote host closed the connection]
petruff1 has joined #ruby
nanoz has quit [Ping timeout: 246 seconds]
anisha has quit [Quit: This computer has gone to sleep]
tomphp has joined #ruby
SaschaVoid has joined #ruby
patarr has joined #ruby
tomphp has quit [Ping timeout: 260 seconds]
saschavo1d has joined #ruby
Burgestrand has quit [Read error: Connection reset by peer]
cfec0b8d has joined #ruby
SaschaVoid has quit [Ping timeout: 246 seconds]
d3d1rty has quit [Ping timeout: 260 seconds]
patarr has quit [Ping timeout: 246 seconds]
milardovich has joined #ruby
jameser has joined #ruby
Burgestrand has joined #ruby
saschavo1d has quit [Ping timeout: 246 seconds]
SaschaVoid has joined #ruby
IAM_ has joined #ruby
<kke_> zenspider: btw, what i can actually do is use anything that responds to .write instead of StringIO (perhaps in this case Queue with alias_method :push, :write)
<IAM_> It looks like spontaneously creating a nested hash is possible https://en.wikipedia.org/wiki/Autovivification#Ruby but I'm wondering if there's a way to only create h['foo'] if h['foo']['something'] is actually *assigned to* (and not just accessed).
erlend has quit [Quit: Bye]
saschavo1d has joined #ruby
Guest6267 is now known as alamar
SaschaVoid has quit [Ping timeout: 255 seconds]
rikkipitt has quit [Remote host closed the connection]
rikkipitt has joined #ruby
saschavo1d has quit [Ping timeout: 260 seconds]
rikkipitt has quit [Remote host closed the connection]
SaschaVoid has joined #ruby
rikkipitt has joined #ruby
SaschaVoid has quit [Client Quit]
rikkipitt has quit [Remote host closed the connection]
rikkipitt has joined #ruby
bvcosta has quit [Remote host closed the connection]
rikkipitt has quit [Remote host closed the connection]
bvcosta has joined #ruby
rikkipitt has joined #ruby
rikkipitt has quit [Remote host closed the connection]
rikkipitt has joined #ruby
rikkipitt has quit [Remote host closed the connection]
rikkipitt has joined #ruby
Kug3lis has joined #ruby
ldnunes has joined #ruby
rikkipitt has quit [Ping timeout: 255 seconds]
<kke_> so the revised version of my gist that actually does what i wanted to: https://gist.github.com/kke/e7f8721840cf09900cabcc900312f134
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
belmoussaoui has quit [Read error: Connection reset by peer]
belmoussaoui has joined #ruby
Kug3lis has joined #ruby
Kug3lis has quit [Client Quit]
bkxd has quit [Ping timeout: 245 seconds]
HoierM has joined #ruby
belmoussaoui has quit [Remote host closed the connection]
johnny56_ has joined #ruby
belmoussaoui has joined #ruby
MarkBilk has quit [Ping timeout: 258 seconds]
psychicist__ has joined #ruby
flying has joined #ruby
ur5us has quit [Remote host closed the connection]
johnny56 has quit [Ping timeout: 264 seconds]
oli______ has joined #ruby
flying has quit [Client Quit]
test has joined #ruby
test is now known as Guest44413
Guest44413 has quit [Remote host closed the connection]
Tempesta_ is now known as Tempesta
Tempesta has quit [Changing host]
Tempesta has joined #ruby
oli______ has quit [Remote host closed the connection]
ur5us has joined #ruby
MarkBilk has joined #ruby
ldnunes has quit [Ping timeout: 268 seconds]
bkxd has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
rikkipitt has joined #ruby
Rodya_ has joined #ruby
rohitpaulk has quit [Ping timeout: 246 seconds]
milardovich has quit [Remote host closed the connection]
renchan has joined #ruby
Rodya_ has quit [Ping timeout: 258 seconds]
brendan- has joined #ruby
Kug3lis has joined #ruby
synthroid has joined #ruby
jhass has quit [Remote host closed the connection]
arup_r has quit [Remote host closed the connection]
swills has joined #ruby
ldnunes has joined #ruby
pupsicle has joined #ruby
jhass has joined #ruby
hutch34 has joined #ruby
<mikecmpbll> anyone got any experience of using traveling-ruby with native extensions that aren't yet supported by the project?
<mikecmpbll> i want to package up a ruby project that uses msgpack gem.
nachoman has quit []
Puffball has quit [Remote host closed the connection]
pupsicle has quit [Client Quit]
Puffball has joined #ruby
nachoman has joined #ruby
pupsicle has joined #ruby
uZiel has quit [Remote host closed the connection]
uZiel has joined #ruby
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sleetdrop has quit [Quit: Computer has gone to sleep.]
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ninja0n3 has quit [Quit: Leaving]
heyimwill has quit [Ping timeout: 255 seconds]
krasnus has quit [Ping timeout: 255 seconds]
roshanavand has joined #ruby
oleo has joined #ruby
rikkipitt has quit [Quit: Leaving...]
Kug3lis has joined #ruby
hogetaro has joined #ruby
krasnus has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
tmm88 has joined #ruby
bkxd has quit [Ping timeout: 258 seconds]
mtkd has joined #ruby
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xzhao has joined #ruby
xzhao has quit [Remote host closed the connection]
belmoussaoui has quit [Ping timeout: 255 seconds]
olivi____ has joined #ruby
ben__ has joined #ruby
omab has joined #ruby
xzhao has joined #ruby
omab has quit [Remote host closed the connection]
omab has joined #ruby
prubini87 has joined #ruby
sepp2k has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
Orbixx has quit [Ping timeout: 255 seconds]
workmad3_ is now known as workmad3
heyimwill has joined #ruby
gigetoo has joined #ruby
olivi____ has quit [Ping timeout: 240 seconds]
kith_ has joined #ruby
kith_ is now known as kith
jhass has quit [Quit: Bye]
mim1k has joined #ruby
ben_____ has joined #ruby
jhass has joined #ruby
prubini87 has quit [Read error: Connection reset by peer]
ben__ has quit [Ping timeout: 258 seconds]
bkxd has joined #ruby
dasher^0_o has quit [Ping timeout: 246 seconds]
oliv_____ has joined #ruby
rohitpaulk has joined #ruby
jhass has quit [Client Quit]
Rodya_ has joined #ruby
mim1k has quit [Read error: Connection reset by peer]
howdoi has quit [Quit: Connection closed for inactivity]
Kug3lis has joined #ruby
jhass has joined #ruby
nachoman has quit []
millerti has joined #ruby
rohitpaulk has quit [Ping timeout: 255 seconds]
PatrikasZvaigzde has quit [Ping timeout: 246 seconds]
PatrikasZvaigzde has joined #ruby
Rodya_ has quit [Ping timeout: 255 seconds]
dasher^0_o has joined #ruby
ujjain has quit [Ping timeout: 246 seconds]
jhass has quit [Ping timeout: 268 seconds]
rippa has joined #ruby
Mon_Ouie has joined #ruby
mostlybadfly has joined #ruby
DLSteve has joined #ruby
mjuszczak has joined #ruby
tmm88 has quit [Quit: Page closed]
mim1k has joined #ruby
gizmore has joined #ruby
tomphp has joined #ruby
mjuszczak has quit []
shinnya has joined #ruby
oliv_____ has quit [Remote host closed the connection]
xzhao has quit [Remote host closed the connection]
oliv_____ has joined #ruby
KeyJoo has joined #ruby
bmurt has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
renchan has quit [Quit: Leaving...]
xzhao has joined #ruby
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
tomphp has quit [Client Quit]
oliv_____ has quit [Ping timeout: 260 seconds]
__Yiota has joined #ruby
arup_r has joined #ruby
tomphp has joined #ruby
belmoussaoui has joined #ruby
GinoMan has joined #ruby
tomphp has quit [Client Quit]
arup_r has quit [Remote host closed the connection]
conta has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
tomphp has quit [Client Quit]
KeyJoo has quit [Excess Flood]
KeyJoo has joined #ruby
perniciouscaffei has joined #ruby
tomphp has joined #ruby
Kug3lis has joined #ruby
_joes___ has quit [Quit: Connection closed for inactivity]
Alex9 has joined #ruby
tomphp has quit [Client Quit]
bvcosta has quit [Read error: Connection reset by peer]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhou__ has joined #ruby
ur5us has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
DeeJayh has quit [Ping timeout: 260 seconds]
swills has quit [Quit: Leaving]
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DeeJayh has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
DeeJayh_ has joined #ruby
rohitpaulk has joined #ruby
bvcosta has joined #ruby
Rodya_ has joined #ruby
djbkd has joined #ruby
ldnunes has quit [Ping timeout: 260 seconds]
DeeJayh has quit [Ping timeout: 260 seconds]
bvcosta_ has joined #ruby
patarr has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rodya_ has quit [Ping timeout: 258 seconds]
rohitpaulk has quit [Ping timeout: 260 seconds]
jhass has joined #ruby
bvcosta has quit [Ping timeout: 240 seconds]
<Burgestrand> IAM_ (3 hours later) not AFAIK, but you can create your own object with a similar interface, and specifically implement `[]=(key, value)`
Derperperd has quit [Ping timeout: 240 seconds]
swills has joined #ruby
oliv_____ has joined #ruby
DeeJayh_ has quit [Ping timeout: 260 seconds]
aupadhye has quit [Ping timeout: 240 seconds]
chouhou__ has quit [Remote host closed the connection]
DeeJayh has joined #ruby
ldnunes has joined #ruby
DeeJayh_ has joined #ruby
<IAM_> Burgestrand: Thanks for the info. So I'm guessing the implementation for assignment []= could differ from read/traversal. Would writing an extended object need much more to it than the autovivification example needs? Such as: tree = proc { Hash.new { |hash, key| hash[key] = tree.call } }
bkxd has quit [Read error: Connection reset by peer]
hutch34 has joined #ruby
LastWhisper____ has joined #ruby
DeeJayh has quit [Ping timeout: 260 seconds]
<Burgestrand> IAM_ problem will arise if you want to something such as `tree["x"]["y"] = "Hey"` without `tree["x"]` being defined
bkxd has joined #ruby
<Burgestrand> IAM_ since the implementation of `[]` in the root node does not know if you want to autovivi…thingy or if you want a nil value
<Burgestrand> IAM_ so sorry, I did misunderstand your initial question
chouhoulis has joined #ruby
bmurt has joined #ruby
cdg has quit [Ping timeout: 240 seconds]
snockerton has joined #ruby
omab has quit [Ping timeout: 240 seconds]
Pumukel has quit [Ping timeout: 255 seconds]
DeeJayh_ has quit [Ping timeout: 260 seconds]
chouhoul_ has joined #ruby
chouhoulis has quit [Ping timeout: 255 seconds]
ferr1 has quit [Quit: WeeChat 1.8]
WxW has joined #ruby
<IAM_> Ok thanks. I had wondered if there was a way to "propagate" the difference between doing a `tree["x"]["y"] = "Hey"` versus a test access `tree["x"]["y"]` that just checks for the presence of that `["y"]`.
WxW has left #ruby [#ruby]
WxW has joined #ruby
<Burgestrand> IAM_ there's possibly a way to hack around it, but there's no nice way to go about it I don't think
Derperperd has joined #ruby
mtkd has quit [Ping timeout: 255 seconds]
mtkd has joined #ruby
WxW has left #ruby ["Leaving"]
perniciouscaffei has joined #ruby
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
howdoi has joined #ruby
djbkd has joined #ruby
chalkmonster has joined #ruby
cschneid_ has joined #ruby
djbkd has quit [Ping timeout: 240 seconds]
nchambers is now known as stupidity
stupidity is now known as nchambers
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
milardovich has joined #ruby
chalkmonster has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
Derperperd has quit [Changing host]
Derperperd has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
xzhao has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 260 seconds]
Rodya_ has quit [Ping timeout: 246 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
djbkd has quit [Ping timeout: 255 seconds]
gothicsouth has joined #ruby
milardov_ has joined #ruby
roychri has joined #ruby
milardovich has quit [Read error: Connection reset by peer]
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hobodave has joined #ruby
swills has quit [Quit: Leaving]
brent__ has joined #ruby
zipace has quit [Ping timeout: 258 seconds]
milardov_ has quit [Remote host closed the connection]
boombox_ has joined #ruby
milardovich has joined #ruby
boombox_ has quit [Remote host closed the connection]
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
ascarter has joined #ruby
ascarter_ has joined #ruby
swills has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
yeticry_ has joined #ruby
milardovich has quit [Remote host closed the connection]
Kug3lis has joined #ruby
yeticry has quit [Ping timeout: 246 seconds]
Burgestrand has quit [Quit: Closing time!]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Kug3lis has quit [Client Quit]
ascarter has quit [Ping timeout: 255 seconds]
psychicist__ has quit [Ping timeout: 246 seconds]
charliesome has joined #ruby
plujon has joined #ruby
bkxd has quit [Ping timeout: 246 seconds]
Alex9 has quit [Quit: Textual IRC Client: www.textualapp.com]
ascarter has joined #ruby
rohitpaulk has joined #ruby
bkxd has joined #ruby
chat_ has joined #ruby
mikecmpbll has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
petruff1 has quit [Ping timeout: 240 seconds]
nanoz has joined #ruby
sepp2k has quit [Ping timeout: 240 seconds]
duderonomy has quit [Ping timeout: 255 seconds]
amclain has joined #ruby
Silthias1 has joined #ruby
gnufied has joined #ruby
Silthias has quit [Ping timeout: 240 seconds]
muelleme has joined #ruby
ur5us has joined #ruby
millerti has joined #ruby
Silthias has joined #ruby
ivanskie has joined #ruby
kies has quit [Ping timeout: 260 seconds]
keyjoo_ has joined #ruby
ur5us has quit [Ping timeout: 245 seconds]
Silthias1 has quit [Ping timeout: 240 seconds]
KeyJoo has quit [Read error: Connection reset by peer]
<ivanskie> i know its wrong channel but.. (famous last words)... uhm is there a command to 'forget' all previous changes in git before I push? i don't want it to push anything about what i did before how the files are right now
Rodya_ has joined #ruby
gusrub has joined #ruby
petruff1 has joined #ruby
nitric has joined #ruby
<ivanskie> not sure if i need clean or reset. because I want to keep everything i just did, without history. i do git push origin, and it tells me uploading 5mb.. and its wrong unless its uploading previous changes which i don't want it to do
Beams has quit [Quit: .]
ascarter has quit [Ping timeout: 260 seconds]
im0nde has quit [Quit: im0nde]
im0nde has joined #ruby
Rodya_ has quit [Ping timeout: 245 seconds]
Ishido has quit [Ping timeout: 246 seconds]
<Papierkorb> ivanskie: Have you committed them already, or only staged through `git add`?
dasher^0_o has quit [Ping timeout: 268 seconds]
<Papierkorb> ivanskie: You can view the most recent commit (probably the one you created) with `git show` (without further parameters) to review it again. Maybe you added a binary file (images?) by accident
<ivanskie> hm
[Butch] has joined #ruby
MarkBilk_ has joined #ruby
<ivanskie> maybe this git rm --cached FILENAME
hutch34 has quit [Ping timeout: 246 seconds]
MarkBilk has quit [Ping timeout: 246 seconds]
muelleme has quit [Ping timeout: 258 seconds]
Ishido has joined #ruby
mjuszczak has joined #ruby
weathermaker has joined #ruby
MarkBilk has joined #ruby
mim1k has quit [Ping timeout: 246 seconds]
bkxd has quit [Ping timeout: 245 seconds]
romank has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MarkBilk_ has quit [Ping timeout: 246 seconds]
hobodave has quit [Quit: Computer has gone to sleep.]
bkxd has joined #ruby
DeeJayh has joined #ruby
gusrub has quit [Remote host closed the connection]
Silthias has left #ruby [#ruby]
hobodave has joined #ruby
xzhao has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iron16 has joined #ruby
bvcosta_ has quit [Remote host closed the connection]
hahuang65 has quit [Read error: Connection reset by peer]
bvcosta has joined #ruby
synthroid has quit []
plujon has quit [Remote host closed the connection]
cfec0b8d has quit [Remote host closed the connection]
cfec0b8d has joined #ruby
bvcosta has quit [Ping timeout: 246 seconds]
<ivanskie> pretty sure i haven't figured out how to use modules / classes yet: https://github.com/i5okie/pxgMapFetcher/tree/MultiSite
lxsameer has quit [Quit: WeeChat 1.7]
iron16 has left #ruby ["Leaving"]
mjuszczak has quit []
mjuszczak has joined #ruby
mjuszczak has quit [Client Quit]
ledestin has joined #ruby
hahuang65 has joined #ruby
dviola has joined #ruby
roshanavand has quit [Ping timeout: 246 seconds]
ledestin has quit [Ping timeout: 260 seconds]
rippa has joined #ruby
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bvcosta has joined #ruby
bvcosta has quit [Remote host closed the connection]
nitric has quit [Quit: quit]
bvcosta has joined #ruby
kies has joined #ruby
millerti has joined #ruby
benlieb has joined #ruby
xall has joined #ruby
bvcosta has quit [Ping timeout: 268 seconds]
nertzy has joined #ruby
pwnd_nsfw has quit [Read error: Connection reset by peer]
nitric has joined #ruby
Rodya_ has joined #ruby
Xiti` has joined #ruby
SuperLag has joined #ruby
SuperLag has quit [Client Quit]
SuperLag has joined #ruby
SuperLag has joined #ruby
SuperLag has quit [Changing host]
SuperLag has quit [Client Quit]
bigkevmcd has quit [Quit: Outta here...]
dc4 has joined #ruby
Xiti has quit [Ping timeout: 246 seconds]
gusrub has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
mjuszczak has joined #ruby
pwnd_nsfw has joined #ruby
kegster has joined #ruby
gusrub has quit [Client Quit]
rgiscard has joined #ruby
mikecmpbll has joined #ruby
rohitpaulk has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 255 seconds]
gusrub has joined #ruby
__Yiota has joined #ruby
knight33 has joined #ruby
mjuszczak has quit []
bvcosta has joined #ruby
bkxd has joined #ruby
bvcosta has quit [Remote host closed the connection]
bvcosta has joined #ruby
mjuszczak has joined #ruby
yottanami has joined #ruby
yottanami has left #ruby [#ruby]
yottanami has joined #ruby
weathermaker has quit [Ping timeout: 260 seconds]
<yottanami> How can I write this code in Ruby style and cleaner? `if params[:reception_status] == true; pay_status = 1 else payed = 0`
gusrub has quit [Remote host closed the connection]
bvcosta has quit [Ping timeout: 255 seconds]
SaschaVoid has joined #ruby
nanoz has quit [Quit: OMG! C++ is hard]
oliv_____ has quit [Remote host closed the connection]
ecuanaso has joined #ruby
keyjoo_ has quit [Ping timeout: 260 seconds]
oliv_____ has joined #ruby
dviola has quit [Quit: WeeChat 1.8]
<baweaver> why not just have pay_status be true or false?
<baweaver> also the `== true` is redundant
dc4 has quit [Ping timeout: 255 seconds]
petruff1 has quit [Ping timeout: 260 seconds]
oliv_____ has quit [Ping timeout: 260 seconds]
duderonomy has joined #ruby
dc4 has joined #ruby
xall has quit [Ping timeout: 240 seconds]
petruff1 has joined #ruby
<pupsicle> baweaver: == true is not redundant.
<havenwood> pupsicle: it is though
<baweaver> It's going to be true or false
<baweaver> and anything not explicitly false or nil is truthy in Ruby
<baweaver> hence redundant
<pupsicle> How in the fuck would you know that?
<baweaver> language
<havenwood> pupsicle: try removing the ` == true` part and see that the behavior doesn't change
mjuszczak has quit []
<havenwood> pupsicle: we know Ruby!
<pupsicle> If the value is true, yes. But he may specifically need it to be true to meet the condition.
<pupsicle> The status could be anything besides true or false.
<havenwood> yikes
<pupsicle> In fact, it's probably a string.
<pupsicle> So it'll always "be truthy"
<havenwood> pupsicle: So it may be a TrueClass or a String? Why?
<baweaver> depends on the form in (I assume because or params) Rails
<havenwood> pupsicle: That's not a good idea.
Kug3lis has joined #ruby
<baweaver> havenwood: note that pupsicle wasn't the OP there.
<baweaver> yottanami was.
<havenwood> ahh
cjhowe7 has joined #ruby
* havenwood tries to wake up
<baweaver> so they don't entirely know either ;)
gusrub has joined #ruby
cjhowe7 has quit [Client Quit]
<pupsicle> ?
<havenwood> yottanami: What are the values that `params[:reception_status]` might be? Is it just `true` or `false`?
dc4 has quit [Ping timeout: 240 seconds]
bvcosta has joined #ruby
mjuszczak has joined #ruby
<pupsicle> << "false" == true
<pupsicle> oops
<baweaver> Oh we know
<baweaver> other way by the way
<baweaver> >> 'false' == true
<ruby[bot]> baweaver: # => false (https://eval.in/814979)
<pupsicle> ah thanks
<pupsicle> I guess my point wasn't that it wasn't redundant but that he may not be expressing what he intended to.
<pupsicle> Apologies for getting fired up.
<baweaver> happens
<baweaver> weekend is almost here
<havenwood> pupsicle: It's extremely common for new folk to `== false` and `== true` when the values are `false`, `true` or `nil`. I assumed Strings were in no way involved because of the `== true`.
<baweaver> pretty much that
<havenwood> Hopefully the value doesn't alternate between TrueClass and a String or there are other issues in play.
bvcosta has quit [Ping timeout: 255 seconds]
rgr has joined #ruby
<havenwood> I see it enough one wonders if Ruby should warn in that case.
<havenwood> the == true check, i mean
<havenwood> I guess like pupsicle points out, it *can* be intended.
hutch34 has joined #ruby
mjuszczak has quit []
lagweezle_away is now known as lagweezle
aufi has quit [Remote host closed the connection]
<pupsicle> I just saw 'params' and immediately thought Rails and strings.
desnudopenguino has joined #ruby
<desnudopenguino> I have an issue trying to get rid of \xA0 unicode characters in a string, anyone have any suggestions?
Kug3lis has quit [Ping timeout: 255 seconds]
Kug3lis has joined #ruby
devyn has quit [Ping timeout: 255 seconds]
uZiel has quit [Ping timeout: 248 seconds]
kies has quit [Ping timeout: 240 seconds]
dviola has joined #ruby
ur5us has joined #ruby
bvcosta has joined #ruby
muelleme has joined #ruby
bvcosta has quit [Remote host closed the connection]
yottanami has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 240 seconds]
bvcosta has joined #ruby
mjuszczak has joined #ruby
nertzy has quit [Read error: Connection reset by peer]
bkxd has joined #ruby
devyn has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
nertzy has joined #ruby
bvcosta has quit [Ping timeout: 260 seconds]
Rodya_ has joined #ruby
grymmjack has joined #ruby
nertzy has quit [Read error: Connection reset by peer]
zapata has joined #ruby
nertzy has joined #ruby
harfangk has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
[Butch] has quit [Quit: I'm out . . .]
workmad3 has quit [Ping timeout: 260 seconds]
Bock has quit [Remote host closed the connection]
mjuszczak has quit []
mjuszczak has joined #ruby
jakew has joined #ruby
centrx has joined #ruby
<ivanskie> uhm
Xiti` has quit [Quit: Xiti`]
jakew has quit [Client Quit]
<ivanskie> looks like YAML is loaded with relation to different dir than this hmm
Xiti has joined #ruby
ascarter_ has quit [Read error: Connection reset by peer]
bvcosta has joined #ruby
bvcosta has quit [Remote host closed the connection]
bvcosta has joined #ruby
rgiscard has quit [Read error: Connection reset by peer]
shinnya has quit [Ping timeout: 245 seconds]
dc4 has joined #ruby
mjuszczak has quit []
bvcosta has quit [Ping timeout: 268 seconds]
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lxsameer has joined #ruby
petruff1 has quit [Ping timeout: 240 seconds]
oliv_____ has joined #ruby
dviola has quit [Quit: WeeChat 1.8]
petruff1 has joined #ruby
oliv_____ has quit [Remote host closed the connection]
mjuszczak has joined #ruby
oliv_____ has joined #ruby
stryek has joined #ruby
speakingcode has joined #ruby
chouhoulis has joined #ruby
stryek_ has quit [Ping timeout: 260 seconds]
petruff2 has joined #ruby
chouhoul_ has quit [Ping timeout: 260 seconds]
petruff1 has quit [Ping timeout: 240 seconds]
tvw has quit [Remote host closed the connection]
bvcosta has joined #ruby
bvcosta has quit [Remote host closed the connection]
ascarter has joined #ruby
govg has joined #ruby
bvcosta has joined #ruby
jaruga________ has quit [Quit: jaruga________]
kies has joined #ruby
mjuszczak has quit []
<Authenticator> A user of an app I wrote is having a *ton* of 'already initialized constant' messages about OpenSSL. I don't when I run the same app the same way. I bundled the OpenSSL 2.0.3 gem with it.
mjuszczak has joined #ruby
bvcosta has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 240 seconds]
petruff2 has quit [Ping timeout: 240 seconds]
govg has quit [Quit: leaving]
solars has joined #ruby
Kug3lis has joined #ruby
hutch34 has quit [Ping timeout: 268 seconds]
<solars> hey, I've got the following Gemfile and test script, but keep getting /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- bundle/setup (LoadError)
mim1k has joined #ruby
<solars> with bundle exec sudo ruby test.rb - can anyone tell me what's wrong here?
<ivanskie> i have a strange error going on. I'm thinking to do with relation of directory? https://github.com/i5okie/pxgMapFetcher/blob/MultiSite/app/mapfetcher.rb#L28 can't figure it out.
Kug3lis has quit [Client Quit]
dc4 has quit [Ping timeout: 255 seconds]
<ivanskie> thought the YAML was getting loaded with different relation to the app. but couldn't fix it. YAML.read_file() gets "./sites/site.yml" and still gives an error that seems to point to wrong file path.
lagweezle is now known as lagweezle_away
<Authenticator> Does anyone know why my user is getting a bunch of OpenSSL constant-already-initialized messages and I am not? They installed my bundled gems...
ur5us has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
oliv_____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
<pupsicle> Suggests rolling back to 2.0.2
bvcosta has joined #ruby
<pupsicle> or specifiying 2.0.3 in the gemfile vice just openssl
bvcosta has quit [Remote host closed the connection]
bvcosta has joined #ruby
GinoMan2440 has joined #ruby
olivi____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
GinoMan has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
bvcosta has quit [Ping timeout: 246 seconds]
bkxd has quit [Read error: Connection reset by peer]
faelkle has joined #ruby
faelkle has quit [Changing host]
faelkle has joined #ruby
[Butch] has joined #ruby
faelkle has quit [Client Quit]
Rodya_ has joined #ruby
bkxd has joined #ruby
dviola has joined #ruby
axyjo has joined #ruby
<Authenticator> pupsicle: Thanks.
weathermaker has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
bkxd has quit [Read error: Connection reset by peer]
hahuang65 has quit [Ping timeout: 260 seconds]
bkxd has joined #ruby
mjuszczak has quit []
bkxd has quit [Read error: Connection reset by peer]
hfp_work has quit [Quit: bye]
hfp has quit [Quit: bye]
keanny479 has joined #ruby
<keanny479> Hello
<apeiros> hi keanny479
<keanny479> Is there a good online program to learn Ruby/Rails ?
<keanny479> I wish to create my own apps
<keanny479> i use OpenBSD as main Operating system
<zenspider> is lmgtfy still a thing?
hfp has joined #ruby
<apeiros> there are a couple I don't know how good each of them are, though. codecademy is one f.ex.
bkxd has joined #ruby
hfp_work has joined #ruby
bvcosta has joined #ruby
<keanny479> no suggestions except code academy ?
hutch34 has joined #ruby
* zenspider sighs
mjuszczak has joined #ruby
bvcosta has quit [Remote host closed the connection]
bvcosta has joined #ruby
<centrx> keanny479: The Hartl tutorial at railstutorial.org is good
<keanny479> thank's everyone
hutch34 has quit [Ping timeout: 240 seconds]
SuperLag has joined #ruby
SuperLag has joined #ruby
SuperLag has quit [Changing host]
enterprisey has joined #ruby
roamingdog has joined #ruby
bvcosta has quit [Ping timeout: 240 seconds]
keanny479 has quit [Ping timeout: 260 seconds]
bkxd has quit [Read error: Connection reset by peer]
bkxd has joined #ruby
hahuang65 has joined #ruby
chat_ has quit [Quit: leaving]
dc4 has joined #ruby
mjuszczak has quit []
mtkd has quit [Ping timeout: 260 seconds]
poloych has joined #ruby
mjuszczak has joined #ruby
GinoMan has joined #ruby
mtkd has joined #ruby
HoierM has quit [Ping timeout: 240 seconds]
GinoMan2440 has quit [Ping timeout: 260 seconds]
bvcosta has joined #ruby
bvcosta has quit [Remote host closed the connection]
bvcosta has joined #ruby
ascarter_ has joined #ruby
mjuszczak has quit []
ascarter_ has quit [Client Quit]
DeeJayh has quit [Ping timeout: 255 seconds]
bvcosta has quit [Ping timeout: 260 seconds]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
GinoMan2440 has joined #ruby
govg has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ldnunes has quit [Ping timeout: 255 seconds]
hobodave_ has joined #ruby
GinoMan2440 has quit [Max SendQ exceeded]
govg has quit [Client Quit]
GinoMan2440 has joined #ruby
GinoMan has quit [Ping timeout: 258 seconds]
dionysus69 has joined #ruby
hobodave has quit [Ping timeout: 260 seconds]
govg has joined #ruby
govg has quit [Client Quit]
wnd has quit [Excess Flood]
wnd has joined #ruby
SeepingN has joined #ruby
johnny56_ has quit [Quit: johnny56_]
lagweezle_away is now known as lagweezle
hutch34 has joined #ruby
cjhowe7 has joined #ruby
johnny56 has joined #ruby
bvcosta has joined #ruby
GinoMan has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
bvcosta has quit [Remote host closed the connection]
GinoMan has quit [Client Quit]
wnd has quit [Excess Flood]
nhhc has joined #ruby
bvcosta has joined #ruby
wnd has joined #ruby
hutch34_ has joined #ruby
GinoMan2440 has quit [Ping timeout: 240 seconds]
ldnunes has joined #ruby
hutch34 has quit [Ping timeout: 268 seconds]
bvcosta has quit [Ping timeout: 268 seconds]
govg has joined #ruby
Rodya_ has joined #ruby
hutch34_ has quit [Ping timeout: 268 seconds]
govg_ has joined #ruby
govg_ has quit [Client Quit]
ekinmur has joined #ruby
Rodya_ has quit [Ping timeout: 260 seconds]
Kug3lis has joined #ruby
Kug3lis has quit [Client Quit]
lagweezle is now known as lagweezle_away
dc4 has quit [Ping timeout: 255 seconds]
sepp2k has joined #ruby
hutch34_ has joined #ruby
bvcosta has joined #ruby
bvcosta has quit [Remote host closed the connection]
bvcosta has joined #ruby
SuperLag has quit [Quit: leaving]
SuperLag has joined #ruby
SuperLag has quit [Client Quit]
Mon_Ouie has quit [Quit: WeeChat 1.7.1]
hutch34_ has quit [Ping timeout: 246 seconds]
SuperLag has joined #ruby
SuperLag has quit [Changing host]
SuperLag has joined #ruby
Fira_ has joined #ruby
chopin has joined #ruby
bvcosta has quit [Ping timeout: 240 seconds]
PatrikasZvaigzde has quit [Ping timeout: 260 seconds]
brent__ has quit [Remote host closed the connection]
gusrub has quit [Read error: No route to host]
bvcosta has joined #ruby
hutch34_ has joined #ruby
bvcosta has quit [Remote host closed the connection]
bvcosta has joined #ruby
hobodave_ has quit [Read error: Connection reset by peer]
keyjoo_ has joined #ruby
hutch34_ has quit [Ping timeout: 255 seconds]
bvcosta has quit [Ping timeout: 246 seconds]
anisha has joined #ruby
jjunior_ has quit [Quit: Connection closed for inactivity]
muelleme has quit [Ping timeout: 255 seconds]
mim1k has joined #ruby
PatrikasZvaigzde has joined #ruby
enterprisey has quit [Remote host closed the connection]
govg has quit [Quit: "switching PCs"]
brent__ has joined #ruby
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
ltem has quit [Quit: Leaving]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
mim1k has quit [Ping timeout: 240 seconds]
anisha has quit [Quit: Leaving]
bkxd has quit [Ping timeout: 268 seconds]
nhhc has quit [Quit: Leaving]
bkxd has joined #ruby
bvcosta has joined #ruby
bvcosta has quit [Remote host closed the connection]
bvcosta has joined #ruby
<desnudopenguino> kenny479: RoR on OpenBSD is interesting, PM me if you want some detai
<desnudopenguino> +ls
ldnunes has quit [Quit: Leaving]
gusrub has joined #ruby
<desnudopenguino> keanny479: sorry, missed the a, see above
ur5us has quit [Remote host closed the connection]
shinnya has joined #ruby
dcluna has quit [Ping timeout: 258 seconds]
bvcosta has quit [Ping timeout: 268 seconds]
olivi____ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
oliv_____ has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
chat_ has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rodya_ has quit [Ping timeout: 258 seconds]
chopin has quit [Remote host closed the connection]
oliv_____ has quit [Ping timeout: 268 seconds]
tvw has joined #ruby
bvcosta has joined #ruby
bvcosta has quit [Remote host closed the connection]
belmoussaoui has quit [Quit: belmoussaoui]
bvcosta has joined #ruby
pupsicle has quit [Quit: Leaving]
creshiem has joined #ruby
belmoussaoui has joined #ruby
solars has quit [Ping timeout: 260 seconds]
rgr has quit [Quit: rgr]
bvcosta has quit [Ping timeout: 240 seconds]
mgirk has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
cdg has quit [Remote host closed the connection]
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mim1k has joined #ruby
benlieb has quit [Quit: benlieb]
bvcosta has joined #ruby
s1kx has quit [Quit: s1kx]
oliv_____ has joined #ruby
mgirk has quit [Quit: Page closed]
swills has quit [Quit: Leaving]
mim1k has quit [Ping timeout: 240 seconds]
nachoman has joined #ruby
godel_ has joined #ruby
ResidentBiscuit has joined #ruby
DeeJayh has joined #ruby
oliv_____ has quit [Ping timeout: 255 seconds]
ruby[bot] has joined #ruby
HoierM has joined #ruby
HoierM has quit [Max SendQ exceeded]
HoierM has joined #ruby
poloych has quit [Remote host closed the connection]
patarr has quit [Ping timeout: 240 seconds]
bvcosta has quit [Remote host closed the connection]
t-recx has joined #ruby
bvcosta has joined #ruby
centrx has quit [Remote host closed the connection]
learningruby has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
<learningruby> Is a Ruby exception an object? And where can I find more detailed information about exceptions?
mjuszczak has joined #ruby
<elomatreb> learningRuby: Yes, https://ruby-doc.org/core-2.4.1/Exception.html
bvcosta has quit [Ping timeout: 240 seconds]
<learningruby> thanks elomatreb
ekinmur has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
centrx has joined #ruby
<learningruby> Most Ruby books are all kinda superficial and ambiguous, I've tried several. Can anybody suggest a resource for learning Ruby that is more precise and detailed but not as puzzling as the Ruby documentation itself for a beginner?
centrx has quit [Client Quit]
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
Fernando-Basso has quit [Quit: WeeChat 1.8]
<learningruby> So elomatreb, if Ruby ‘raises an exception’ related to ZeroDivisionError for example, it means that Ruby detected a division by zero and then responded to this error by creating an object of ZeroDivisionError class?
Rodya_ has joined #ruby
username_ has joined #ruby
ascarter_ has joined #ruby
<ivanskie> what is a recommended tdd/bdd process for ruby apps, outside of rails?
<ivanskie> something that's not overkill lol
Rodya_ has quit [Ping timeout: 246 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
<baweaver> ivanskie: you can just use RSpec the same as anything else, or Minitest if you're so inclined
<baweaver> I typically just set up Guard/RSpec on a project and go at it
<baweaver> learningRuby: See the channel topic, there's a book list in there
<ivanskie> hm
<baweaver> Really I tend to read Eloquent Ruby most times, but if you really want that good tome-y feel check out The Ruby Way
mochiyoda_ has joined #ruby
<ivanskie> as i asked the question I realised if i'm going to test it i'll have to retool the code a bit to accept faker
<ivanskie> gah
<ivanskie> this is becoming a medusa of a project
<ivanskie> for no reason what so efer
<ivanskie> ever
mjuszczak has quit []
creshiem has quit [Quit: creshiem]
<learningruby> thanks a lot baweaver.. I'm currently reading “well grounded rubyist” it's good but often ambiguous which annoys me a bit.. I'll check these ones you suggested
<baweaver> define ambiguous
mochiyoda has quit [Ping timeout: 246 seconds]
<baweaver> bundle gem <name>
<baweaver> makes a brand new packageable gem for ya
<baweaver> Most Ruby tends to be lib/ and spec/ (or test/)
<ivanskie> i could just duplicate the 'master' branch folder and edit the yml csv files. but no i decided i need to have a folder Sites and read sitename.yml & sitename.csv files lol
brent__ has quit [Remote host closed the connection]
<learningruby> baweaver For example, “An exception is a special kind of object, an instance of the class Exception or a descendant of that class. ” → here at the end of this sentence, I don't know whether the exception are the descendent classes themselves or instances of these descendent classes. Not the best example, but run into many situations where it's not
<learningruby> perfectly clear what the sentence means.
<learningruby> *descendant
DoubleMalt has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
bpmedley has joined #ruby
centrx has quit [Remote host closed the connection]
ivanskie has quit [Quit: Page closed]
t-recx has quit [Quit: t-recx]
nertzy has quit [Quit: This computer has gone to sleep]
wtc has quit [Ping timeout: 246 seconds]
wtc has joined #ruby
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
lxsameer has quit [Ping timeout: 255 seconds]
duderonomy has quit [Ping timeout: 246 seconds]
ascarter_ has quit [Ping timeout: 240 seconds]
cjhowe7 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zenspider> seems perfectly clear to me. what are you getting confused by specifically?
<learningruby> it is clear to you because you know what an exception is in advance.. but if you read by comment carefully you'll see the ambiguity
ascarter_ has joined #ruby
<zenspider> no, actually I won't... which is why I asked what specifically you got hung up on... and I was willing to help you with that but it seems like you don't want that
<learningruby> sorry for being rude man. ok, here's the ambiguity, more specifically: “an instance of the class Exception or a descendant of that class” → you could remove the ambiguity like this “an instance of the class Exception or OF a descendant of that class”
godel_ has quit [Remote host closed the connection]
<learningruby> “an instance of the class Exception or a descendant of that class. ” can have two meanings: 1. “an (instance of the class Exception) or (a descendant of that class)” and 2. “an instance of (the class Exception) or (a descendant of that class).”. I think what the book meant is the second interpretation.
speakingcode has quit [Ping timeout: 260 seconds]
bvcosta has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
cjhowe7 has joined #ruby
unreal_ is now known as unreal
bvcosta has quit [Ping timeout: 246 seconds]
AgentVenom has quit [Quit: Textual IRC Client: www.textualapp.com]
cschneid_ has quit [Remote host closed the connection]
SaschaVoid has quit [Quit: leaving]
learningruby has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
biberu has quit []
Rodya_ has joined #ruby
oleo has quit [Excess Flood]
wnd_ has joined #ruby
wnd has quit [Excess Flood]
hsiktas_ has joined #ruby
Guest23689 has quit [Excess Flood]
hsiktas has quit [Ping timeout: 365 seconds]
manveru has quit [Ping timeout: 365 seconds]
hsiktas_ is now known as hsiktas
oleo has joined #ruby
manveru_ has joined #ruby
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
belmoussaoui__ has joined #ruby
belmoussaoui has quit [Ping timeout: 246 seconds]
Rodya_ has quit [Ping timeout: 245 seconds]
forgot has joined #ruby
bkxd has joined #ruby
helpa-bot has joined #ruby
helpa has quit [Write error: Broken pipe]
wnd_ is now known as wnd
Pierreb|home has joined #ruby
helpa-bot has quit [Remote host closed the connection]
helpa has joined #ruby
keyjoo_ has quit [Ping timeout: 259 seconds]
rikai_ has joined #ruby
roamingdog has quit [Remote host closed the connection]
_DanN__ has joined #ruby
_br___ has joined #ruby
piotrj_ has joined #ruby
DEac-_ has joined #ruby
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
duderonomy has joined #ruby
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
KillerFox has quit [Write error: Broken pipe]
piotrj has quit [Write error: Broken pipe]
DEac- has quit [Write error: Broken pipe]
_DanN_ has quit [Write error: Broken pipe]
_br__ has quit [Write error: Broken pipe]
forgot has quit [Write error: Broken pipe]
roamingdog has joined #ruby
oleo has quit [Excess Flood]
my123 has quit [Excess Flood]
rikai has quit [Quit: No Ping reply in 180 seconds.]
FastJack has quit [Remote host closed the connection]
KillerFox has joined #ruby
forgot has joined #ruby
my123 has joined #ruby
my123 has joined #ruby
FastJack has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
roamingdog has quit [Remote host closed the connection]
cfec0b8d has quit [Ping timeout: 255 seconds]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
gains has quit [Ping timeout: 260 seconds]
bvcosta has joined #ruby
spectrum has joined #ruby
bvcosta has quit [Ping timeout: 255 seconds]
ResidentBiscuit has quit [Remote host closed the connection]
alveric2 has joined #ruby
ResidentBiscuit has joined #ruby
Guest17649 has joined #ruby
chouhoulis has quit [Remote host closed the connection]
ResidentBiscuit has quit [Remote host closed the connection]
mim1k has joined #ruby
ResidentBiscuit has joined #ruby
alveric1 has quit [Ping timeout: 240 seconds]
sepp2k has quit [Quit: Leaving.]
olivi____ has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]