baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.3, 2.5.5, 2.4.6: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select Ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
orbyt_ has quit [Client Quit]
infernix has joined #ruby
skryking_ has joined #ruby
skryking has quit [Ping timeout: 245 seconds]
d^sh has quit [Ping timeout: 268 seconds]
d^sh has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Fernando-Basso has quit [Remote host closed the connection]
fphilipe has joined #ruby
brandoncc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
znz_jp has joined #ruby
s3nd1v0g1us has joined #ruby
orbyt_ has joined #ruby
tdy1 has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 245 seconds]
AJA4351 is now known as AJA4350
BTRE has quit [Remote host closed the connection]
wald0 has quit [Quit: Lost terminal]
RiPuk has quit [Ping timeout: 245 seconds]
brandoncc has joined #ruby
jmcgnh has quit [Ping timeout: 276 seconds]
bvdw6 has joined #ruby
fphilipe has quit [Ping timeout: 264 seconds]
jmcgnh has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
gix- has joined #ruby
gix has quit [Disconnected by services]
D9 has joined #ruby
eblip has quit [Read error: Connection reset by peer]
eb0t has quit [Read error: Connection reset by peer]
eblip has joined #ruby
eb0t has joined #ruby
dsmythe has quit [Remote host closed the connection]
dsmythe has joined #ruby
UnknownSoldier has joined #ruby
Eiam has quit [Read error: Connection reset by peer]
leimh has quit [Quit: Leaving]
jottr has joined #ruby
jottr has quit [Ping timeout: 258 seconds]
UnknownSoldier is now known as \tau
AJA4350 has quit [Ping timeout: 258 seconds]
fphilipe has joined #ruby
ramfjord has joined #ruby
dsmythe has quit [Remote host closed the connection]
jenrzzz_ has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
KeyJoo has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
cd has quit [Quit: cd]
jenrzzz_ has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
jottr_ has joined #ruby
jottr has quit [Read error: Connection reset by peer]
jottr_ has quit [Ping timeout: 246 seconds]
jottr_ has joined #ruby
fphilipe has quit [Ping timeout: 258 seconds]
BTRE has joined #ruby
jottr_ has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
dar123 has joined #ruby
jottr has quit [Ping timeout: 276 seconds]
dsmythe has joined #ruby
dsmythe has quit [Ping timeout: 276 seconds]
fphilipe has joined #ruby
s3nd1v0g1us has quit [Ping timeout: 276 seconds]
\tau has quit [Read error: Connection reset by peer]
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dar123 has joined #ruby
braincrash has quit [Quit: bye bye]
weteamsteve1 has quit [Read error: Connection reset by peer]
braincrash has joined #ruby
jottr has joined #ruby
ramfjord has joined #ruby
jottr has quit [Ping timeout: 276 seconds]
KeyJoo has quit [Quit: KeyJoo]
ramfjord has quit [Read error: Connection reset by peer]
gix- has quit [Ping timeout: 250 seconds]
fphilipe has quit [Ping timeout: 276 seconds]
sauvin has joined #ruby
pupsikov has joined #ruby
sgen has quit [Ping timeout: 276 seconds]
dsmythe has joined #ruby
dsmythe has quit [Ping timeout: 252 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has joined #ruby
jottr has quit [Ping timeout: 258 seconds]
code_zombie has quit [Quit: Leaving]
jenrzzz has joined #ruby
fphilipe has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
jottr has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
dsmythe has joined #ruby
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
darmou has joined #ruby
fphilipe has quit [Ping timeout: 240 seconds]
darmou has quit [Client Quit]
dar123 has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
dellavg_ has joined #ruby
esrse has joined #ruby
reber has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
brandoncc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Inline has quit [Quit: Leaving]
fphilipe has joined #ruby
crankharder has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
hightower2 has joined #ruby
dar123 has joined #ruby
dsmythe has quit [Remote host closed the connection]
mozzarel1 has joined #ruby
mozzarella has quit [Ping timeout: 255 seconds]
mozzarel1 is now known as mozzarella
aither64 is now known as aither
conta has joined #ruby
GodFather has quit [Ping timeout: 276 seconds]
duderonomy has joined #ruby
nowhere_man has joined #ruby
andikr has joined #ruby
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
clemens3 has quit [Ping timeout: 246 seconds]
nowhere_man has quit [Ping timeout: 258 seconds]
jottr has joined #ruby
Furai has quit [Quit: WeeChat 2.4]
jottr has quit [Ping timeout: 245 seconds]
Furai has joined #ruby
jenrzzz has joined #ruby
suukim has joined #ruby
podlech has joined #ruby
pupsikov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 246 seconds]
podlech has quit [Client Quit]
jenrzzz has joined #ruby
kapil____ has joined #ruby
vondruch has joined #ruby
GodFather has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
houhoul__ has quit [Remote host closed the connection]
tdy1 has quit [Ping timeout: 250 seconds]
crankharder has quit [Ping timeout: 250 seconds]
autoone has joined #ruby
jottr has joined #ruby
misaki_m has joined #ruby
patientj has joined #ruby
dsmythe has joined #ruby
crankharder has joined #ruby
clemens3 has joined #ruby
lxsameer has joined #ruby
prestorium has joined #ruby
clemens3_ has joined #ruby
jenrzzz has joined #ruby
Prira has quit [Remote host closed the connection]
clemens3 has quit [Ping timeout: 246 seconds]
patientj has quit [Ping timeout: 246 seconds]
autoone has quit [Ping timeout: 246 seconds]
Prira has joined #ruby
autoone has joined #ruby
patientj has joined #ruby
patientj has left #ruby [#ruby]
autoone has quit [Quit: WeeChat 2.4]
dsmythe has quit [Remote host closed the connection]
misaki_m has quit [Quit: Mutter: www.mutterirc.com]
_joes_ has joined #ruby
BH23 has joined #ruby
dsmythe has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
autoone has joined #ruby
autoone has quit [Client Quit]
aupadhye has joined #ruby
vyrus001 has joined #ruby
<vyrus001> confused about an err
<vyrus001> /usr/lib64/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:54:in `require': libffi.so.6: cannot open shared object file: No such file or directory - /home/vyrus/.gem/ruby/2.4.0/gems/ffi-1.9.18/lib/ffi_c.so (LoadError)
<vyrus001> ~/.gem/ruby/2.4.0/gems/ffi-1.9.18/lib $ ls -l = -rwxr-xr-x 1 vyrus vyrus 177168 Apr 3 2017 ffi_c.so
<vyrus001> ?
_axx has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
jefffrails35 has joined #ruby
jenrzzz has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
waheedi has joined #ruby
duderonomy has joined #ruby
Swyper has joined #ruby
duderonomy has quit [Client Quit]
Swyper has quit [Remote host closed the connection]
tekk has quit [Quit: ZNC - http://znc.in]
jenrzzz has quit [Ping timeout: 250 seconds]
thunderbirdtr has quit [Quit: ZNC 1.7.2 - https://znc.in]
thunderbirdtr has joined #ruby
jottr has joined #ruby
cgfbee has quit [Ping timeout: 252 seconds]
_joes_ has quit [Ping timeout: 250 seconds]
TvL2386 has quit [Ping timeout: 245 seconds]
_joes_ has joined #ruby
jottr_ has joined #ruby
cgfbee has joined #ruby
jottr has quit [Read error: Connection reset by peer]
jottr has joined #ruby
lele has quit [Ping timeout: 255 seconds]
jottr_ has quit [Ping timeout: 250 seconds]
TvL2386 has joined #ruby
dsmythe has quit [Remote host closed the connection]
fphilipe has quit [Ping timeout: 264 seconds]
darklajid has joined #ruby
dsmythe has joined #ruby
jenrzzz has joined #ruby
al2o3-cr has quit [Quit: If the universe is a machine where the future is uniquely determined by its present state, it would not be possible to calculate what the future will be.]
<darklajid> Hey there. I .. don't really know ruby, but recently got asked (interview) to build a simple console application that is evaluated by a rspec testsuite. I did this in dotnet core. Unfortunately it seems the rspec code fails to read my stdout and now I wanna figure out why.
teclator has joined #ruby
<darklajid> https://pastebin.com/fX3WCB3A is the code that 1) returns the correct output, if I launch my console application directly (.net assembly) 2) returns [] if I launch the very same console application in a docker container 3) returns [] if I launch the very same code via dotnet run
<darklajid> All three invocations produce exactly the same output on the command line if launched interactively - but 2 out of 3 end up as empty array of lines in the Ruby code above. Is there anything I could tinker with to figure out why that might be the case?
fphilipe has joined #ruby
hairedfox has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
<hairedfox> hi everyone
<hairedfox> I'm new here
al2o3-cr has joined #ruby
<darklajid> Basically pty = PTY.spawn("executable_here") w/ the code above works differently depending if the executable launches docker or dotnet run for some reason and I don't see any visible change..
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
laaron has joined #ruby
fphilipe has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
fphilipe has joined #ruby
tdy1 has joined #ruby
lele has joined #ruby
dsmythe has quit [Remote host closed the connection]
venmx has joined #ruby
tdy1 has quit [Ping timeout: 244 seconds]
jottr has quit [Ping timeout: 258 seconds]
esrse has quit [Ping timeout: 276 seconds]
Tuor has joined #ruby
aupadhye_ has joined #ruby
kapil____ has quit [Quit: Connection closed for inactivity]
dsmythe has joined #ruby
jottr has joined #ruby
dsmythe has quit [Ping timeout: 276 seconds]
aupadhye has quit [Quit: Leaving]
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 246 seconds]
dar123 has joined #ruby
darklajid has quit [Ping timeout: 256 seconds]
aupadhye_ has quit [Ping timeout: 250 seconds]
jottr has joined #ruby
<phaul> darkla... oh they left :)
<phaul> probably race condition.
<phaul> hairedfox: hi. welcome to the channel
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dsmythe has joined #ruby
kapil____ has joined #ruby
aupadhye_ has joined #ruby
ramfjord has joined #ruby
conta has quit [Ping timeout: 258 seconds]
dsmythe has quit [Ping timeout: 264 seconds]
Cthulu201 has quit [Quit: Nowhere special. I always wanted to go there.]
Cthulu201 has joined #ruby
aupadhye_ has quit [Ping timeout: 258 seconds]
ramfjord has quit [Ping timeout: 250 seconds]
aupadhye_ has joined #ruby
jenrzzz has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
venmx has quit [Ping timeout: 250 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
venmx has joined #ruby
hightower2 has quit [Changing host]
hightower2 has joined #ruby
Cthulu201 has quit [Quit: Nowhere special. I always wanted to go there.]
Cthulu201 has joined #ruby
reber has quit [Remote host closed the connection]
conta has joined #ruby
RougeR has joined #ruby
AJA4350 has joined #ruby
dsmythe has joined #ruby
<Bish> has anyone tried falcon so far, or any other way to use http/2 with ruby?
dsmythe has quit [Ping timeout: 276 seconds]
<Bish> i want to push messages to the browser like a chat message and don't quite now how
jottr has joined #ruby
<Bish> well i guess thats not what http/2 does
<Bish> so i still have to use websockets? when i want to do something like that?
<Bish> that sucks
RiPuk has joined #ruby
hairedfox has quit [Quit: Lost terminal]
asfsadf has joined #ruby
asfsadf has quit [Ping timeout: 256 seconds]
ferr has joined #ruby
Sup3rLurk has quit [Quit: WeeChat 2.2]
sleetdrop has joined #ruby
SuperLag has quit [Quit: reboot]
ldnunes has joined #ruby
SuperLag has joined #ruby
jenrzzz has joined #ruby
ldnunes has quit [Ping timeout: 244 seconds]
phaul has quit [Ping timeout: 258 seconds]
sleetdrop has quit [Quit: Textual IRC Client: www.textualapp.com]
phaul has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
Silex has joined #ruby
Silex has left #ruby [#ruby]
Silex has joined #ruby
ldnunes has joined #ruby
dsmythe has joined #ruby
ldnunes has quit [Ping timeout: 246 seconds]
ec has quit [Ping timeout: 240 seconds]
<adam12> Bish: I'm using Iodine which doesn't support http/2 afaik but does support websockets.
jhill has quit [Write error: Connection reset by peer]
ctp has quit [Ping timeout: 252 seconds]
englishm has quit [Ping timeout: 252 seconds]
afisher has quit [Ping timeout: 258 seconds]
strmpnk has quit [Read error: Connection reset by peer]
<adam12> Bish: Your options are Websockets, long-polling, SSE. You migt be able to use http2 since it's a streaming protocol. I'd say long-polling is the simplest at smaller scales. The message_bus gem works well for that (I use it paired with Roda).
ctp has joined #ruby
afisher has joined #ruby
jhill has joined #ruby
dsmythe has quit [Ping timeout: 252 seconds]
englishm has joined #ruby
strmpnk has joined #ruby
ec has joined #ruby
<lupine> SSE is *really* simple for unidirectional stuff
tpanarch1st has joined #ruby
xfbs has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
xfbs has joined #ruby
imadper has quit [Ping timeout: 250 seconds]
ldnunes has joined #ruby
waheedi has quit [Quit: waheedi]
ldnunes has quit [Ping timeout: 250 seconds]
ramfjord has joined #ruby
dhollinger has quit [Ping timeout: 250 seconds]
ramfjord has quit [Ping timeout: 246 seconds]
Silex has quit [Ping timeout: 256 seconds]
ferr has quit [Quit: WeeChat 2.4]
ldnunes has joined #ruby
shansen has joined #ruby
dhollinger has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_joes_ has quit [Quit: _joes_]
BH23 has quit [Remote host closed the connection]
ldnunes has quit [Ping timeout: 268 seconds]
_joes_ has joined #ruby
tpanarch1st has quit [Ping timeout: 258 seconds]
Inline has joined #ruby
lucasb has joined #ruby
dsmythe has joined #ruby
dsmythe has quit [Ping timeout: 276 seconds]
ctp___ has joined #ruby
afisher_ has joined #ruby
afisher has quit [Ping timeout: 258 seconds]
afisher_ is now known as afisher
ctp has quit [Ping timeout: 250 seconds]
ctp___ is now known as ctp
brendan- has quit [Ping timeout: 258 seconds]
conta has quit [Ping timeout: 246 seconds]
brendan- has joined #ruby
jcalla has joined #ruby
_joes_ has quit [Quit: _joes_]
cow[moo] has joined #ruby
laaron has quit [Remote host closed the connection]
<RougeR> any fluentd users here>
laaron has joined #ruby
sgen has joined #ruby
jenrzzz has joined #ruby
waheedi has joined #ruby
pupsikov has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
venmx has quit [Quit: leaving]
jelera has joined #ruby
Rapture has joined #ruby
aupadhye_ has quit [Ping timeout: 255 seconds]
dsmythe has joined #ruby
jenrzzz has joined #ruby
dsmythe has quit [Ping timeout: 252 seconds]
Tuor has quit [Quit: Konversation terminated!]
SuperL4g has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
SuperLag has quit [Ping timeout: 244 seconds]
brandoncc has joined #ruby
cow[moo] has quit [Read error: Connection reset by peer]
dsmythe has joined #ruby
cow[moo] has joined #ruby
ramfjord has joined #ruby
krawchyk has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
laaron has joined #ruby
BH23 has joined #ruby
_joes_ has joined #ruby
dar123 has joined #ruby
queip has quit [Ping timeout: 246 seconds]
jelera has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
conta has joined #ruby
jelera has joined #ruby
lxsameer has quit [Quit: out]
Swyper has joined #ruby
Dbugger has joined #ruby
clemens3_ has quit [Ping timeout: 245 seconds]
sgen has quit [Remote host closed the connection]
sgen has joined #ruby
yokel has quit [Remote host closed the connection]
Swyper has quit [Remote host closed the connection]
conta has quit [Ping timeout: 258 seconds]
SuperL4g is now known as SuperLag
yokel has joined #ruby
houhoulis has joined #ruby
rippa has joined #ruby
_joes_ has quit [Ping timeout: 244 seconds]
BH23 has quit [Ping timeout: 250 seconds]
Momentum has joined #ruby
<Momentum> hi, is 2.6.2 no longer maintained?
hightower2 has quit [Ping timeout: 246 seconds]
queip has joined #ruby
<ytti> Momentum, i don't understand the question, what does it mean to have maintained patch release?
<ytti> Momentum, or do you mean if 2.6 is maintained? that is indeed maintained
<Momentum> yeah well, i actually was running a rails app under 2.6.2 but i'm getting an error now after the update to 2.6.3
<Momentum> not an error but unmatching versions
<adam12> Momentum: What's the error?
<Momentum> Your Ruby version is 2.6.3, but your Gemfile specified 2.6.2
<Momentum> well i kinda solved that but ...
<ytti> very odd gemfile specification
<adam12> Momentum: That's caused by the `ruby` line in your Gemfile. Just update it or make it less strict.
<Momentum> edit the line in the gemfile to match the ruby version?
<ytti> you want foo.required_ruby_version = '>= 2.6'
Swyper has joined #ruby
<adam12> Momentum: Do you have a line in Gemfile that starts with "ruby" ?
<Momentum> of course
<adam12> Momentum: ... and it is? I'm just gonna guess `ruby "2.6.2"`
<Momentum> yes
<adam12> Momentum: I'd relax it to something like `ruby "~> 2.6.2"`
<Momentum> won't that cause me problems later on?
<adam12> Momentum: why would you say that?
<ytti> probability of ruby 2.6.N+K being broken but 2.6.N working for your code is not something you should plan for
<Momentum> okay, thank you
<Momentum> adam12: have i seen you in ##chess? or that's someone else?
tdy1 has joined #ruby
<adam12> Momentum: not me.
<Momentum> okay, thank you guys, i appreciate it :)
dsmythe has quit [Ping timeout: 276 seconds]
jottr has quit [Ping timeout: 245 seconds]
ramfjord has joined #ruby
AJA4350 has quit [Remote host closed the connection]
<Momentum> one more question, should i bother with rbenv? or that's not necessary
<Momentum> i still don't understand its exact usefulness on my situation anyway
AJA4350 has joined #ruby
<adam12> Momentum: Hard to say. What's your situation? Can you describe a little bit about how you're using Ruby?
ramfjord has quit [Ping timeout: 245 seconds]
<Momentum> i actually set it to use 2.6.2 when i got that problem, so now i'm using 2.6.2
<ytti> rbenv utility is to install newer ruby version locally without super user permissions
<ytti> and to use different ruby versions simultaneously with convenience
<ytti> if you can avoid, do avoid, complexity needs justificaiton
<Momentum> yeah that makes total sense
<Momentum> i'm just trying to get rid of it now, since i'm specifying to use any ruby above 2.6.2 in my gemfile
AJA4350 has quit [Client Quit]
AJA4350 has joined #ruby
brandoncc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Swyper has quit [Remote host closed the connection]
armyriad has quit [Read error: Connection reset by peer]
armyriad has joined #ruby
jelera has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
andikr has quit [Remote host closed the connection]
Swyper has joined #ruby
cd has joined #ruby
jelera has joined #ruby
orbyt_ has joined #ruby
SeepingN has joined #ruby
jelera has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has quit [Ping timeout: 246 seconds]
laaron- has joined #ruby
reber has joined #ruby
laaron has quit [Ping timeout: 256 seconds]
Eiam has joined #ruby
doodlebug has joined #ruby
sameerynho has joined #ruby
gix has joined #ruby
conta has joined #ruby
jelera has joined #ruby
conta has quit [Client Quit]
conta has joined #ruby
weteamsteve has joined #ruby
jelera has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
RougeR has quit [Ping timeout: 250 seconds]
sphenxes has joined #ruby
tdy1 has quit [Ping timeout: 258 seconds]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
BTRE has quit [Remote host closed the connection]
ramfjord has joined #ruby
fphilipe has quit [Ping timeout: 246 seconds]
sphenxes has quit [Quit: Leaving]
Swyper has quit [Remote host closed the connection]
duderonomy has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
dhollinger has quit [Ping timeout: 258 seconds]
dellavg_ has quit [Ping timeout: 245 seconds]
Swyper has joined #ruby
dhollinger has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
conta has quit [Quit: conta]
sgen has quit [Ping timeout: 276 seconds]
jhill has quit []
jhill has joined #ruby
ec has quit []
ec has joined #ruby
englishm has quit []
sauvin has quit [Read error: Connection reset by peer]
englishm has joined #ruby
BTRE has joined #ruby
conta has joined #ruby
jenrzzz has joined #ruby
pupsikov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
doodleb89 has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
doodlebug has quit [Ping timeout: 276 seconds]
prestorium has quit [Quit: prestorium]
waheedi has quit [Quit: waheedi]
RougeR has joined #ruby
RougeR is now known as Guest29930
dsmythe has joined #ruby
kapil____ has quit [Quit: Connection closed for inactivity]
jelera has joined #ruby
pupsikov has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
rindolf has joined #ruby
jenrzzz has joined #ruby
<Swyper> any ideas why its not passing?
<rindolf> hi all, can the line " dir = File.expand_path(File.join(Dir.tmpdir, ".epubtmp#{Time.now.to_f.to_s}")) " here - https://sourceforge.net/p/docbook/code/HEAD/tree/trunk/xsl/epub/bin/dbtoepub - result in a collision?
suukim has quit [Quit: Konversation terminated!]
<uplime> Swyper: you'd need to show the rspec file
<rindolf> Swyper: you are not calling random_word
<Swyper> oo
<phaul> rindolf: by collision you mean to get a dir name that's already there?
<rindolf> phaul: yes
<rindolf> phaul: if the time is the same
<phaul> but tmpdir is unique
<phaul> &>> Dir.tmpdir
<rubydoc> # => undefined method `tmpdir' for Dir:Class (NoMethodError) stderr: -e:2:in `<main>': undefined method... check link for more (https://carc.in/#/r/6sjg)
jenrzzz has quit [Ping timeout: 268 seconds]
<phaul> oh. it's not
jcarl43 has joined #ruby
<phaul> one would expect them to use mktmpdir, which would be unique..
<phaul> being guessable by using Time.now and not proper random is also a security hole...
<rindolf> phaul: ah
conta has quit [Quit: conta]
<phaul> one could spam //tmp with links to /etc/. then when root runs this they just corrupt /etc. it's far fetched, but shows the problem
jenrzzz has joined #ruby
gigetoo has quit [Ping timeout: 245 seconds]
<phaul> that's why tmp names should not be predictable
yokel has quit [Ping timeout: 246 seconds]
gigetoo has joined #ruby
yokel has joined #ruby
sgen has joined #ruby
<rindolf> phaul: should it be Dir::mktmpdir() or Dir.mktmpdir()?
<phaul> Dir.mktmpdir
<rindolf> phaul: ok
<phaul> :: should only be used in constant nesting
<phaul> like A::B::C ...
jelera has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jelera has joined #ruby
jelera has quit [Client Quit]
jelera has joined #ruby
jelera has quit [Client Quit]
jelera has joined #ruby
jelera has quit [Client Quit]
nowhere_man has joined #ruby
jrafanie has joined #ruby
jelera has joined #ruby
<ramfjord> Swyper: was that for a class or something? Personally I don't recommend writing tests that verify private state within a class - test the public interface only
jelera has quit [Client Quit]
<ramfjord> the "specification"
<Swyper> yeah its for an online course
nadir has joined #ruby
jelera has joined #ruby
jelera has quit [Client Quit]
<rindolf> phaul: thanks
<phaul> Swyper: I guess the specs came with the assignment. Can you share them? It's hard to tell why you are failing them, if can't see them.
<phaul> rindolf: yw
mrpropa has joined #ruby
<phaul> cool :) hopefully they fix it
dar123 has joined #ruby
<phaul> I personally would remove () on method calls with no arguments
Steve_ has joined #ruby
<phaul> but is that code leaving stuff in /tmp after it has run? No program should do that. Disk space is finite.. (but it's the same prior to your patch)
cthu| has joined #ruby
cthulchu_ has quit [Ping timeout: 244 seconds]
<rindolf> phaul: i see
<rindolf> phaul: thanks
<phaul> np
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
Guest29930 has quit [Ping timeout: 246 seconds]
dar123 has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Read error: Connection reset by peer]
Swyper has joined #ruby
Azure has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
lubekpl has joined #ruby
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tdy1 has joined #ruby
lubekpl has quit [Quit: WeeChat 1.9.1]
nowhere_man has quit [Ping timeout: 246 seconds]
lubekpl has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
doodleb89 has quit [Read error: Connection reset by peer]
doodlebug has joined #ruby
brandoncc has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
kyrylo has joined #ruby
Swyper has quit [Remote host closed the connection]
doodleb12 has joined #ruby
jenrzzz has joined #ruby
krawchyk has quit [Quit: krawchyk]
Steve_ has quit [Ping timeout: 256 seconds]
doodlebug has quit [Ping timeout: 268 seconds]
nowhere_man has joined #ruby
hightower2 has joined #ruby
weteamsteve has quit [Ping timeout: 276 seconds]
doodleb12 has quit [Read error: Connection reset by peer]
r29v has joined #ruby
r29v has quit [Client Quit]
jenrzzz has quit [Ping timeout: 255 seconds]
code_zombie has joined #ruby
doodlebug has joined #ruby
ErhardtMundt has quit [Read error: Connection reset by peer]
ErhardtMundt has joined #ruby
d0liver has joined #ruby
jenrzzz has joined #ruby
hightower2 has quit [Changing host]
hightower2 has joined #ruby
Azure has joined #ruby
brandoncc has quit [Quit: Textual IRC Client: www.textualapp.com]
d0liver has quit [Remote host closed the connection]
d0liver has joined #ruby
Swyper has joined #ruby
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
dsmythe has quit [Remote host closed the connection]
Swyper has quit [Remote host closed the connection]
weteamsteve has joined #ruby
Swyper has joined #ruby
mrpropa has quit [Quit: Textual IRC Client: www.textualapp.com]
prestorium has joined #ruby
weteamsteve has quit [Quit: Leaving]
weteamsteve1 has joined #ruby
prestorium has quit [Ping timeout: 246 seconds]
<Swyper> ere are the spec tests failing as well phaul
<Swyper> and updated code
queip has quit [Ping timeout: 258 seconds]
nowhere_man has quit [Ping timeout: 258 seconds]
nowhere_man has joined #ruby
queip has joined #ruby
cthu| has quit [Ping timeout: 246 seconds]
jefffrails35 has quit [Read error: Connection reset by peer]
<phaul> Swyper: I ranyour code locally, let'slook at the first issue.
<phaul> It complains "undefined method `length' for nil:NilClass" on line that contains @guess_word = Array.new(@guess_word.length, "-")
<phaul> can you confirm you are seeing the same?
gb_away has quit [Ping timeout: 246 seconds]
<phaul> an instance variable (variable with @) is nil on first encounter. That means @guess_word.length is sending the length message to nil object. That's why it's failing
<Swyper> Hi phaul I am not seeing the same, I think that is because I am just running the command to run the tests (bundle exec rspec)
<phaul> we have to somehow find a way so that you see proper error messages reported
<Swyper> hmm
SegFaultAX has quit [Quit: ZNC - http://znc.in]
SegFaultAX has joined #ruby
<phaul> what I did was the following: copied your source in a file, added require 'rspec/autorun' to the top, and removed (commented out the lines which weren't code
<phaul> then I ran it with $ ruby blah.rb ### blah.rb is the file...
<Swyper> require 'rspec/autorun' will just automatically run rspec I guess?
<phaul> it passed 4 tests, failed the rest and also gave error messages for each failure
<phaul> yes
<Swyper> neat I will do that
doodlebug has quit [Read error: Connection reset by peer]
gb_away has joined #ruby
<Swyper> Rtyer$ ruby lib/hangman.rb
<Swyper> No examples found.
<Swyper> Finished in 0.00043 seconds (files took 0.09187 seconds to load)
<Swyper> 0 examples, 0 failures
<Swyper> hm
<Swyper> I added require thing you did
<phaul> try running the same file, you have to see the same results
<Swyper> alright
ramfjord has quit [Ping timeout: 245 seconds]
blackjid has quit [Ping timeout: 250 seconds]
doodleb35 has joined #ruby
<havenwood> Swyper: I can confirm. Running phaul's example above I get the same output.
<havenwood> except for the λ prompt ;)
ramfjord has joined #ruby
Swyper has quit [Remote host closed the connection]
xtsee has quit [Ping timeout: 250 seconds]
blackjid has joined #ruby
dar123 has joined #ruby
reber has quit [Remote host closed the connection]
Swyper has joined #ruby
<havenwood> Swyper: When an Array is one-word strings, Ruby has a nice, readable shorthand: %w[cat dog bootcamp pizza]
Swyper has quit [Read error: Connection reset by peer]
Swyper has joined #ruby
<havenwood> Swyper: Also, consider freezing constants!: DICTIONARY = %w[cat dog bootcamp pizza].freeze
<havenwood> Swyper: It's common inside a class to use `self` to refer to the instance or `self.class` to refer to the class. That way, if you rename `Hangman` you only have to change it in one place.
<havenwood> self.class.random_word
<havenwood> Swyper: You have to define @guess_word before you can check its #length
<havenwood> Swyper: That first use of Array.new on line 6 is great, since it's properly using arguments. The second Array.new without arguments should instead be an Array literal: []
<havenwood> Swyper: @attempted_chars = []
Swyper has quit [Ping timeout: 246 seconds]
<havenwood> Swyper: Remove parens from the end of methods without arguments. So `def secret_word` not `def secret_word()`.
<havenwood> There's a helper called `attr_reader` that can replace the methods on lines 10-25 that simply expose an instance variable of the same name.
<havenwood> `attr_reader :secret_word` is the same as `def secret_word; @secret_word; end`
<phaul> they are gone... Online courses depending on your background can be extremly hard I think.
<phaul> there is no direct feedback, you have to figure out on your own..
<havenwood> phaul: yeah, they go from new to Ruby to create your own class with a ton missing inbetween
Swyper has joined #ruby
<phaul> yeah. tbh, I want to encourage ppl and help them when they around, but when a bootcamp or such frees them from a couple of grand and promises that they will learn web and rails in 2 month.. oh well..
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
doodleb35 has quit [Read error: Connection reset by peer]
Dbugger has quit [Ping timeout: 264 seconds]
doodlebug has joined #ruby
Swyper has quit [Remote host closed the connection]
jrafanie has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz has quit [Ping timeout: 250 seconds]
xtsee has joined #ruby
jenrzzz has joined #ruby
pupsikov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Client Quit]
s3nd1v0g1us has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
violentE has quit [Quit: Leaving]
jelera has joined #ruby
nowhere_man has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
bougyman has quit [Ping timeout: 268 seconds]
bougyman has joined #ruby
jelera has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 245 seconds]
laaron- has quit [Remote host closed the connection]
laaron has joined #ruby
dsmythe has joined #ruby
doodlebug has quit [Ping timeout: 250 seconds]
doodleb65 has joined #ruby
pupsikov has joined #ruby
tdy1 has quit [Ping timeout: 268 seconds]
ramfjord has quit [Ping timeout: 258 seconds]
pupsikov has quit [Client Quit]
jenrzzz has joined #ruby
rindolf has quit [Ping timeout: 246 seconds]
doodleb65 has quit [Read error: Connection reset by peer]
Swyper has joined #ruby
doodlebug has joined #ruby
lucasb has quit [Quit: Connection closed for inactivity]
tpanarch1st has joined #ruby