muffiny has quit [Quit: Connection closed for inactivity]
kapil___ has quit [Quit: Connection closed for inactivity]
sanscoeur has joined #ruby
universa1 has quit [Ping timeout: 276 seconds]
universa1 has joined #ruby
venmx has quit [Quit: leaving]
venmx has joined #ruby
roshanavand has joined #ruby
sanscoeur has quit [Ping timeout: 264 seconds]
universa1 has quit [Read error: Connection reset by peer]
Zxyzk has joined #ruby
Zxyzk has quit [Client Quit]
Beams has quit [Quit: .]
<jokester>
that happens when one tries to evaluate some_array[nil]
<jokester>
you may want to figure out what caused that
Beams has joined #ruby
AnandJambhulkar has joined #ruby
Burgestrand has quit [Quit: Closing time!]
moei has quit [Quit: Leaving...]
tomphp has quit [Ping timeout: 276 seconds]
leitz has quit [Quit: Nappy time]
universa1 has joined #ruby
zautomata3 has joined #ruby
Beams has quit [Quit: .]
Beams has joined #ruby
zautomata2 has quit [Ping timeout: 276 seconds]
Beams has quit [Client Quit]
universa1 has quit [Ping timeout: 276 seconds]
TheBetr72 has joined #ruby
TheBetr72 has quit [Max SendQ exceeded]
GodFather has joined #ruby
postmodern_ has quit [Quit: Leaving]
TheBetrayer has quit [Ping timeout: 240 seconds]
GodFather has quit [Remote host closed the connection]
GodFather has joined #ruby
Beams has joined #ruby
zautomata4 has joined #ruby
zautomata3 has quit [Ping timeout: 240 seconds]
conta has quit [Ping timeout: 264 seconds]
conta has joined #ruby
tomphp has joined #ruby
tomphp has quit [Client Quit]
TheBetrayer has joined #ruby
TheBetrayer has quit [Max SendQ exceeded]
universa1 has joined #ruby
AnandJambhulkar has quit [Ping timeout: 256 seconds]
Burgestrand has joined #ruby
InfinityFye has joined #ruby
InfinityFye has left #ruby [#ruby]
<kke>
(that also happens with 1234[nil] or "foo"[nil])
AnandJambhulkar has joined #ruby
erlend has quit [Ping timeout: 248 seconds]
erlend has joined #ruby
suukim has quit [Quit: Konversation terminated!]
minimalism has joined #ruby
John_Ivan has joined #ruby
apparition has joined #ruby
TheBetrayer has joined #ruby
tomphp has joined #ruby
norfumpit has quit [Ping timeout: 265 seconds]
szulak has quit [Ping timeout: 276 seconds]
sundhell is now known as sundhell_away
tvw has joined #ruby
moei has joined #ruby
Asher has joined #ruby
norfumpit has joined #ruby
chouhoulis has joined #ruby
TheBetrayer has quit [Ping timeout: 260 seconds]
Asher has quit [Ping timeout: 248 seconds]
AnandJambhulkar has quit [Quit: This computer has gone to sleep]
RougeR has joined #ruby
RougeR has quit [Changing host]
RougeR has joined #ruby
Cavallari has joined #ruby
DenSchub has quit [Ping timeout: 246 seconds]
AJA4350 has joined #ruby
rabajaj has quit [Remote host closed the connection]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yohji has quit [Remote host closed the connection]
DenSchub has joined #ruby
jeffreylevesque has quit [Ping timeout: 264 seconds]
ldnunes has joined #ruby
ur5us has quit [Remote host closed the connection]
rwb has quit [Ping timeout: 260 seconds]
szulak has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
Psybur has joined #ruby
sanscoeur has joined #ruby
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AnandJambhulkar has joined #ruby
ta_ has quit [Remote host closed the connection]
sanscoeur has quit [Ping timeout: 256 seconds]
aufi has quit [Ping timeout: 256 seconds]
saTchymoto has joined #ruby
VladGh has quit [Quit: Lost terminal]
<saTchymoto>
Hi guys. Totally fresh Ruby newb here. Never coded before a day in my life and am trying to start learning. I am following an online tutorial but the problem is that I cannot get my "ri" to work
<saTchymoto>
does anyone have a moment to help me, if at all possible
<phaul>
what issue do you have with ri?
<phaul>
what does executing ri return on the command line?
VladGh has joined #ruby
<saTchymoto>
C:\Ruby24-x64>ri upscale
<saTchymoto>
Nothing known about .upscale
<saTchymoto>
it the same regardless og what I try and search for
<saTchymoto>
I ran
<saTchymoto>
C:\Ruby24-x64>rdoc-data --install
<saTchymoto>
Your ruby version 2.4 is not supported, only 1.8, 1.9, 2.0, 2.1, 2.2, 2.3
<saTchymoto>
into a folder which I moved into my ruby folder
<saTchymoto>
but it doesnt seem to help
<NL3limin4t0r>
mikhael_k33hl: I guess `available_thread_index = thread_pool.rindex { |thread| available?(thread) }` can't find an match thus returning `nil` resulting in the error on the line where you try to `thread_pool[available_thread_index] = Thread.new(job) do`
<kke>
saTchymoto: probably something like 'ri puts' works. upscale is probably a method in some module/gem you're using and you need to do something like 'ri Foofoo.upscale'
TheBetrayer has joined #ruby
TheBetrayer has quit [Max SendQ exceeded]
<saTchymoto>
C:\Ruby24-x64>ri puts
<saTchymoto>
Nothing known about .puts
AnandJambhulkar has quit [Quit: This computer has gone to sleep]
TheBetrayer has joined #ruby
TheBetrayer has quit [Max SendQ exceeded]
<saTchymoto>
C:\Ruby24-x64>ri prints
<saTchymoto>
Nothing known about .prints
<kke>
i've used ruby since something like 2001 and never touched ri.
reber__ has joined #ruby
<saTchymoto>
Aye but the problem is I often do not have access to the net and would like to be able to access this helpful function
kapil___ has joined #ruby
<saTchymoto>
Several people have told me they google stuff
<saTchymoto>
But I would love to have this work
reber has quit [Ping timeout: 240 seconds]
<saTchymoto>
it seems liek a nice tool
<phaul>
saTchymoto: it is. you should try to get it working.
cschneid_ has joined #ruby
DenSchub has quit [Remote host closed the connection]
<phaul>
I am not familiar with windows though or how you set things/ruby up on windows. but there will be someone who can help you
<saTchymoto>
I tried googling it
<saTchymoto>
a solution that is
<kke>
looks like someone had the same problem on stackoverflow but nobody answered
<saTchymoto>
yeah and the few suggestions that I found I tried
<NL3limin4t0r>
saTchymoto: Alternatively you can download the core and std-lib documentation from the ruby-doc website. https://ruby-doc.org/downloads/
<konsolebox>
saTchymoto: you can download the documentation and statically link the pages in it to your browser
stoffus has quit [Client Quit]
<kke>
some answer said that windows ruby installer includes windows help chm files of the stdlib
cschneid_ has quit [Ping timeout: 248 seconds]
stoffus has joined #ruby
<saTchymoto>
I have no idea what windows help chm files are
<saTchymoto>
but it still comes up with the same message
DTZUZO has joined #ruby
stoffus has joined #ruby
alfiemax has quit [Remote host closed the connection]
synthroid has joined #ruby
AnandJambhulkar has joined #ruby
stoffus has quit [Client Quit]
conta has quit [Ping timeout: 264 seconds]
<kke>
i think you can just double click .chm's and you get some strange user interface for searching and browsing, but of course it's not the same experience.
<NL3limin4t0r>
saTchymoto: Did you install Ruby with the Ruby installer for windows? If yes, did you pick install it with or without the devkit?
<kke>
saTchymoto: that link does not tell you to copy anything to your ruby dir. it tells you to download a ruby source code .zip from github, extract it somewhere, go into that directory and type "rdoc --all --ri" after which you can remove that directory + zip.
<kke>
and you will just download one file, not a ton of files.
<konsolebox>
saTchymoto: what do you get with `ri --list-doc-dirs`?
<saTchymoto>
NL3limin4t0r I used the windows installer with devkit
<saTchymoto>
Ruby+Devkit 2.4.4-1 (x64)
ogres has joined #ruby
<saTchymoto>
kke my mistake I just did the TL DR version
zautomata has joined #ruby
<saTchymoto>
Run rdoc --all --ri on directory containing source code for same ruby version as your installed version.
<saTchymoto>
I will try following the step by step process and see if that fixes it
zautomata4 has quit [Ping timeout: 265 seconds]
alfiemax has joined #ruby
RougeR has quit [Ping timeout: 260 seconds]
<NL3limin4t0r>
saTchymoto: Have you already tried the most upvoted answer? `gem rdoc --all --ri --no-rdoc` ?
aufi has joined #ruby
<NL3limin4t0r>
in your cmd command promt
zautomata1 has joined #ruby
cschneid_ has joined #ruby
zautomata has quit [Ping timeout: 248 seconds]
<saTchymoto>
One second I will try again
bmurt has joined #ruby
cschneid_ has quit [Ping timeout: 264 seconds]
synthroi_ has joined #ruby
faces has quit [Remote host closed the connection]
jeffreylevesque has joined #ruby
synthroid has quit [Ping timeout: 248 seconds]
alex`` has joined #ruby
alex`` is now known as alexherbo2
tomphp has joined #ruby
alexherbo2 is now known as alex``
rfoust has joined #ruby
jeffreylevesque_ has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jeffreylevesque has quit [Ping timeout: 256 seconds]
bmurt has joined #ruby
zapata has quit [Ping timeout: 256 seconds]
<saTchymoto>
kke I have now tried following the step by step
<saTchymoto>
there is something I am confused about
<saTchymoto>
PS C:\Users\mici\Desktop> cd .\ruby-2_4_4\
<saTchymoto>
Generating RI format into P:/.rdoc...
<saTchymoto>
I am running the command in the destination folder
<saTchymoto>
but the parsing is generating a folder on my P drive
k0mpa has joined #ruby
reber__ has quit [Quit: Leaving]
reber has joined #ruby
jcalla has joined #ruby
nadir has joined #ruby
<NL3limin4t0r>
saTchymoto: The solution you're trying has 0 upvotes, why not try the one with 29 upvotes first?
<NL3limin4t0r>
`gem rdoc --all --ri --no-rdoc` ?
<NL3limin4t0r>
Or did you already try that one?
<saTchymoto>
I already tried that one
<saTchymoto>
at least I think I did
<saTchymoto>
all of this is very new to me and a lot of whats written is rather very technical
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
conta has joined #ruby
donofrio has joined #ruby
zapata has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TheBetrayer has joined #ruby
duderonomy has joined #ruby
alfiemax has quit [Remote host closed the connection]
Asher has joined #ruby
<NL3limin4t0r>
the `gem` command is used by ruby to manage plugins/libraries called "gems". In this case you're using rdoc which handles ruby documentation, the other stuff are just some options that are defined by the library itself.
<saTchymoto>
Ok not sure which one of those I did worked
<saTchymoto>
but I am getting some stuff now
<saTchymoto>
still not getting it all I think
alfiemax has joined #ruby
<saTchymoto>
like "ri puts" gives me a reply now
<saTchymoto>
but "ri upscale" does not
Asher has quit [Ping timeout: 256 seconds]
<saTchymoto>
oh lol
<saTchymoto>
It's upcase
<saTchymoto>
not upscale
<saTchymoto>
ok so it seems to be working now
<saTchymoto>
no idea how
schneider has quit [Ping timeout: 248 seconds]
<saTchymoto>
One of the many things I did must have worked
marr has quit [Ping timeout: 276 seconds]
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Max SendQ exceeded]
chocoelho has quit [Ping timeout: 264 seconds]
s3nd1v0g1us has joined #ruby
Mikasi has joined #ruby
alfiemax has quit [Remote host closed the connection]
schneider has joined #ruby
chocoelho has joined #ruby
k0mpa has quit [Ping timeout: 268 seconds]
<NL3limin4t0r>
saTchymoto: Good to hear. Good luck learning Ruby. I find it a fun and clean language to work in, although somewhat lacking in some areas. For example the lack of overloading methods.
apparition has quit [Quit: Bye]
chocoelho has quit [Client Quit]
NL3limin4t0r has quit [Quit: WeeChat 1.9.1]
TheBetrayer has joined #ruby
TheBetrayer has quit [Max SendQ exceeded]
c0mrad3 has joined #ruby
kedare has joined #ruby
jerematic has joined #ruby
white_lilies has joined #ruby
chouhoulis has quit [Remote host closed the connection]
arne has joined #ruby
AnandJambhulkar has quit [Quit: This computer has gone to sleep]
NL3limin4t0r has joined #ruby
<arne>
fukin gem namespaces is so polluted with unfinished projects :(
<arne>
can't find a name for a project
mrtroy32 has joined #ruby
<Cork>
how would one import an enum with fiddle::importer?
<arne>
what's an enum
<Cork>
a c typedef
<arne>
sorry, can't follow
<arne>
this is #ruby
<Cork>
fiddle is for importing libs from c in ruby
<arne>
oh, is this FFI?
<arne>
wow, that's cool
mjolnird has joined #ruby
<arne>
but, there won't be information about enums in compiled files.. except with debugging activated
<Cork>
ah...
<Cork>
that would explain why i fail XD
<Cork>
ok so just create it as a new struct then
<arne>
i guess so, even with debugging enabled, i doubt there is a standard format for "this is how an enum looks"
<Cork>
arne: thx
<arne>
you'll have to live with (1..n)
<Cork>
ya, this isn't meant to be for debug :)
<arne>
Cork: but it seems Fiddle is also able to parse C files, so maybe there is a way
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
suukim has joined #ruby
TheBetrayer has joined #ruby
Mondongo has joined #ruby
TheBetrayer has quit [Max SendQ exceeded]
yeticry has quit [Ping timeout: 264 seconds]
conta has quit [Quit: conta]
conta has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
yeticry has joined #ruby
atmosx has joined #ruby
sanscoeur has joined #ruby
white_lilies has quit [Ping timeout: 276 seconds]
TheBetrayer has joined #ruby
TheBetrayer has quit [Max SendQ exceeded]
Mikasi has quit [Ping timeout: 248 seconds]
sanscoeur has quit [Ping timeout: 264 seconds]
rabajaj has joined #ruby
Asher has joined #ruby
mrtroy32 has quit [Ping timeout: 268 seconds]
saTchymoto has quit []
amatas has joined #ruby
gnufied has joined #ruby
Asher has quit [Ping timeout: 240 seconds]
shiroeni has quit [Remote host closed the connection]
raynold has quit [Quit: Connection closed for inactivity]
amatas_ has joined #ruby
amatas_ has quit [Client Quit]
amatas_ has joined #ruby
amatas has quit [Ping timeout: 240 seconds]
amatas_ is now known as amatas
Rapture has joined #ruby
TinkerT has quit [Quit: ZNC 1.7.x-nightly-20180404-d6bfe504 - https://znc.in]
TinkerT has joined #ruby
AnandJambhulkar has joined #ruby
roshanavand has quit [Ping timeout: 264 seconds]
jerematic has quit [Remote host closed the connection]
jerematic has joined #ruby
Mike11 has quit [Quit: Leaving.]
Asher has joined #ruby
andikr has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 240 seconds]
jerematic has quit [Ping timeout: 276 seconds]
chouhoulis has joined #ruby
netherwolfe has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
meinside has quit [Quit: Connection closed for inactivity]
foobar__ has joined #ruby
aranhaqg has joined #ruby
cadillac_ has quit [Ping timeout: 248 seconds]
<foobar__>
aranhaqg: \o/
foobar__ is now known as joelwallis
joelwallis is now known as joelwallis_
cadillac_ has joined #ruby
joelwallis_ has quit [Quit: Page closed]
arne is now known as Bish
oleo has joined #ruby
RougeR has quit [Ping timeout: 256 seconds]
jeffreylevesque_ has quit [Remote host closed the connection]
tomphp has joined #ruby
grilix has joined #ruby
jeffreylevesque has joined #ruby
ogres has quit [Quit: Connection closed for inactivity]
synthroi_ has quit [Remote host closed the connection]
guille-moe has quit [Quit: guille-moe]
tomphp has quit [Client Quit]
amatas has quit [Remote host closed the connection]
amatas has joined #ruby
guille-moe has joined #ruby
Cavallari has quit [Quit: Cavallari]
cadillac_ has quit [Read error: Connection reset by peer]
cschneid_ has joined #ruby
AnandJambhulkar has quit [Quit: This computer has gone to sleep]
nadir has quit [Quit: Connection closed for inactivity]
alfiemax has quit [Ping timeout: 255 seconds]
samort7 has joined #ruby
orbyt_ has joined #ruby
sergio_101 has joined #ruby
tomphp has joined #ruby
ecuanaso has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
intheclouddan has joined #ruby
wilbert has joined #ruby
gheegh has joined #ruby
dr3w_ has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
n0m4d1c has joined #ruby
dr3w_ has quit [Client Quit]
wilbert has quit [Client Quit]
apeiros has quit []
pilne has joined #ruby
ur5us has joined #ruby
<intheclouddan>
I'm trying to write a simple brew cask that downloads a binary behind authentication. Is there a way I'm missing for Ruby to grab my shell environment variables? I tried just a basic #{ENV['USERNAME']} and that's setup but it shows up blank
kedare has quit [Quit: Konversation terminated!]
ur5us has quit [Ping timeout: 255 seconds]
biberu has joined #ruby
gheegh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]