vipaca has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschneid_ has joined #ruby
belmoussaoui has quit [Ping timeout: 240 seconds]
belmoussaoui has joined #ruby
<namho>
Happy New Years everyone. I'm new to Ruby and was hoping for some guidance. I went through the Codecademy Ruby lesson - would the Pickaxe book, Well-Grounded, and Eloquent good places to go next?
cloaked1 has quit [Remote host closed the connection]
cschneid_ has quit [Ping timeout: 248 seconds]
KeyJoo has joined #ruby
cloaked1 has joined #ruby
cloaked1 has quit [Changing host]
cloaked1 has joined #ruby
<mikhael_k33hl>
elomatreb: I see, thanks I'll try that one
sagax has quit [Quit: Konversation terminated!]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrp93 has joined #ruby
milardovich has joined #ruby
DmitryBochkarev has joined #ruby
milardovich has quit [Remote host closed the connection]
DmitryBochkarev has quit [Client Quit]
rippa has joined #ruby
milardovich has joined #ruby
cloaked1 has quit [Quit: Leaving]
capin1 has quit [Quit: WeeChat 2.0.1]
elphe has quit [Ping timeout: 268 seconds]
sundhell_away is now known as sundhell
<mikhael_k33hl>
elomatreb: Do I really need to make the class a singleton though? hmmm
elphe has joined #ruby
t0adst00l has quit [Ping timeout: 272 seconds]
<elomatreb>
That really depends on your usecase
abraham_ has joined #ruby
darkhanb has joined #ruby
<mikhael_k33hl>
elomatreb: say I use the Ruby SIngleton Module, how do I change the value of the database during unit tests?
<mikhael_k33hl>
since the new method is now private
<elomatreb>
You can bypass access restrictions with #send (e.g. `some_instance.send(:private_method, "some_arg")`)
abraham_ has quit [Quit: abraham_]
cschneid_ has joined #ruby
t0adst00l has joined #ruby
jtdoncas has joined #ruby
jtdoncas_ has quit [Ping timeout: 252 seconds]
r3kz has joined #ruby
capin1 has joined #ruby
kculpis has quit [Ping timeout: 240 seconds]
jtdoncas_ has joined #ruby
ur5us has joined #ruby
jtdoncas has quit [Ping timeout: 252 seconds]
capin1 has quit [Quit: WeeChat 2.0.1]
capin1 has joined #ruby
Dimik has quit [Ping timeout: 252 seconds]
bokayio has quit [Ping timeout: 240 seconds]
deafscribe has quit [Ping timeout: 265 seconds]
bokayio has joined #ruby
<mikhael_k33hl>
elomatreb: I got a symbol in my class that I need to change during unit test, is there any way to do it or do I have to define a getter?
<elomatreb>
Depends on where you assigned it, there is instance_variable_set for instance variables
<mikhael_k33hl>
How do I initialize the instance inside the singleton for testing?
<mikhael_k33hl>
oh okay just have to invoke Class.instance
<livcd>
any promos/discounts/sales going on for recommended Ruby books ?
nofxx has quit [Remote host closed the connection]
pwnd_nsfw` has joined #ruby
c0ncealed has quit [Remote host closed the connection]
pwnd_nsfw has quit [Ping timeout: 268 seconds]
elphe has quit [Ping timeout: 264 seconds]
jtdoncas_ has quit [Ping timeout: 240 seconds]
elphe has joined #ruby
c0ncealed has joined #ruby
<mikhael_k33hl>
Since I have a singleton for database access, how do I ensure that the database get's closed when the program is closed since that connection will always be open as long as the program is runjning
Sauvin has quit [Read error: Connection reset by peer]
LocaMocha has joined #ruby
InfinityFye has joined #ruby
InfinityFye has left #ruby [#ruby]
Freshnuts has quit [Quit: Leaving]
nowhere_man has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 252 seconds]
nowhere_man has joined #ruby
ta_ has joined #ruby
capin1 has quit [Quit: WeeChat 2.0.1]
ur5us has quit [Remote host closed the connection]
MrSparkle has left #ruby [#ruby]
claudiuinberlin has joined #ruby
t0adst00l has quit [Ping timeout: 272 seconds]
randomstrangerb has quit [Ping timeout: 264 seconds]
cschneid_ has quit [Remote host closed the connection]
cschneid_ has joined #ruby
randomstrangerb has joined #ruby
nathani has quit [Read error: Connection reset by peer]
Gabemo has quit [Ping timeout: 240 seconds]
nathani has joined #ruby
dionysus69 has joined #ruby
dionysus69 has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
Gabemo has joined #ruby
cschneid_ has quit [Remote host closed the connection]
cschneid_ has joined #ruby
randomstrangerb has quit [Ping timeout: 252 seconds]
cschneid_ has quit [Remote host closed the connection]
randomstrangerb has joined #ruby
mikecmpbll has joined #ruby
nerium has joined #ruby
jenrzzz has joined #ruby
vondruch has joined #ruby
t0adst00l has joined #ruby
ur5us has joined #ruby
marr has joined #ruby
<mikhael_k33hl>
what's the best way to ensure a method is run when program terminates?
elphe has quit [Ping timeout: 248 seconds]
milardovich has quit [Read error: Connection reset by peer]
guardian has quit [Quit: Coyote finally caught me]
m0x00 has joined #ruby
elphe has joined #ruby
bkxd has joined #ruby
cschneid_ has joined #ruby
bkxd has quit [Max SendQ exceeded]
Beams has joined #ruby
guardian has joined #ruby
guardian has quit [Client Quit]
reber has joined #ruby
ren0v0 has joined #ruby
bkxd has joined #ruby
bkxd has quit [Max SendQ exceeded]
<ren0v0>
Hi, i'm trying to install ruby via RVM, but its just freezing on "Installing required packages: gawk, libyaml-dev, libsqlite3-dev," ?
bkxd has joined #ruby
drewmcmillan has joined #ruby
drewmcmillan has quit [Client Quit]
ur5us has quit [Remote host closed the connection]
k0mpa has quit [Remote host closed the connection]
nerium has quit [Quit: nerium]
qba73 has joined #ruby
<apeiros>
mikhael_k33hl: there's Kernel#at_exit
<apeiros>
ren0v0: uh, maybe run it with `set -x` (I hope that's the right command). i.e. `set -x` then `rvm install your_ruby`
<ren0v0>
apeiros, that's for interactive stuff right?
<apeiros>
that's for your shell
<ren0v0>
because i found the issue and it was related, in the logfile it had a popup for another package that needed confirmation
<ren0v0>
so, RVM doesn't handle this well at all
heliumk has joined #ruby
<apeiros>
it's quite possible that rvm doesn't properly shield one from interactive sections, yes. I'd ask over in #rvm what to do about that
tvw has joined #ruby
banisterfiend has joined #ruby
beauby has quit [Quit: leaving]
beauby has joined #ruby
cschneid_ has quit [Ping timeout: 272 seconds]
cschneid_ has joined #ruby
ur5us has joined #ruby
jaruga has joined #ruby
ur5us has quit [Remote host closed the connection]
beauby has left #ruby [#ruby]
beauby has joined #ruby
swat2 has quit [Ping timeout: 268 seconds]
sundhell is now known as sundhell_away
beauby has quit [Quit: leaving]
beauby has joined #ruby
t0adst00l has quit [Remote host closed the connection]
t0adst00l has joined #ruby
Cavallari has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
heliumk has quit [Quit: heliumk]
clemens3 has joined #ruby
beauby has left #ruby [#ruby]
beauby has joined #ruby
amatas has quit [Quit: amatas]
qba73 has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Quit: dionysus69]
amatas has joined #ruby
t0adst00l has quit [Remote host closed the connection]
qba73 has joined #ruby
t0adst00l has joined #ruby
marens has quit [Quit: No Ping reply in 180 seconds.]
tastygradient has joined #ruby
marens has joined #ruby
marens has quit [Changing host]
marens has joined #ruby
guardianx has joined #ruby
nchambers has quit [Ping timeout: 272 seconds]
<mikhael_k33hl>
apeiros: what if the program get closed unexpectedly will theh at_exit still run?
<apeiros>
no
<apeiros>
depending on how unexpectedly a program terminates, there's little to nothing you can do anyway
<apeiros>
you can set up a global begin/rescue/end to rescue all ruby related exceptions and with rescue Interrupt, also a ctrl-c termination
nchambers has joined #ruby
<apeiros>
the latter can be caught via trap("SIGINT") as well
tastygradient has quit [Ping timeout: 248 seconds]
biberu has joined #ruby
<apeiros>
I'm actually mistaken. at_exit will also be run in case of unhandled exceptions.
Mortomes|Work has joined #ruby
<apeiros>
but that's still only one kind of "unexpected termination"
raynold has quit [Quit: Connection closed for inactivity]
elphe has quit [Ping timeout: 248 seconds]
zwliew has joined #ruby
guardian has joined #ruby
drewmcmillan has joined #ruby
drewmcmillan has quit [Client Quit]
elphe has joined #ruby
bkxd_ has joined #ruby
bkxd_ has quit [Max SendQ exceeded]
bkxd_ has joined #ruby
bkxd has quit [Ping timeout: 256 seconds]
nowhere_man has quit [Ping timeout: 256 seconds]
guardian has quit [Quit: Coyote finally caught me]
beauby has quit [Ping timeout: 268 seconds]
elphe has quit [Ping timeout: 272 seconds]
bkxd_ has quit []
guardian has joined #ruby
oleo has quit [Remote host closed the connection]
elphe has joined #ruby
dionysus69 has joined #ruby
ferr has joined #ruby
guardian has quit [Quit: Coyote finally caught me]
cschneid_ has quit [Ping timeout: 265 seconds]
guardianx has quit []
ferr has left #ruby [#ruby]
guardian has joined #ruby
cschneid_ has joined #ruby
oleo has joined #ruby
nowhere_man has joined #ruby
iamarun has quit [Remote host closed the connection]
qba73 has quit [Remote host closed the connection]
qba73 has joined #ruby
tvw has quit [Ping timeout: 255 seconds]
aupadhye has quit [Ping timeout: 272 seconds]
tcopeland has quit [Quit: tcopeland]
zautomata has joined #ruby
Psybur has quit [Ping timeout: 248 seconds]
jnyw has quit [Quit: WeeChat 2.0.1]
paddy_ has joined #ruby
cschneid_ has quit [Ping timeout: 265 seconds]
drewmcmillan has joined #ruby
TomyWork has joined #ruby
sundhell_away is now known as sundhell
randomstrangerb has quit [Ping timeout: 255 seconds]
randomstrangerb has joined #ruby
AJA4350 has joined #ruby
heliumk has joined #ruby
plexigras has quit [Ping timeout: 252 seconds]
plexigras has joined #ruby
cschneid_ has joined #ruby
heliumk has quit [Quit: heliumk]
Pierreb|home has joined #ruby
alfiemax has quit [Remote host closed the connection]
paddy_ has quit [Quit: paddy_]
randomstrangerb has quit [Ping timeout: 248 seconds]
alfiemax has joined #ruby
randomstrangerb has joined #ruby
Psybur has joined #ruby
banisterfiend has joined #ruby
bruce_lee has joined #ruby
ur5us has joined #ruby
InfinityFye has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
t0adst00l has quit [Ping timeout: 272 seconds]
ur5us has quit [Ping timeout: 268 seconds]
qba73 has quit [Remote host closed the connection]
uZiel has quit [Ping timeout: 272 seconds]
qba73 has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
qba73 has quit [Remote host closed the connection]
qba73 has joined #ruby
InfinityFye has quit [Ping timeout: 240 seconds]
InfinityFye has joined #ruby
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
t0adst00l has joined #ruby
dionysus69 has quit [Ping timeout: 265 seconds]
cschneid_ has quit [Ping timeout: 240 seconds]
alfiemax has quit [Remote host closed the connection]
iamarun has quit [Remote host closed the connection]
dviola has joined #ruby
Ishido has quit [Remote host closed the connection]
sawdustofmind has joined #ruby
<c-c>
I'm back to working on my little game engine. I'm in the process of making it into a open source project. I've tested the simple base and its run over 20 billion fames without crashing (52 hours of processor time). I'm convinced that to get anything happening I need +4 times more velocity for the project. I'm considering things like rewards for best contributors, seen any ruby projects that do that?
Ishido has joined #ruby
sawdustofmind has left #ruby [#ruby]
ta_ has quit [Remote host closed the connection]
sawdustofmind has joined #ruby
sawdustofmind has left #ruby [#ruby]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lightstalker has joined #ruby
jobewan has quit [Ping timeout: 248 seconds]
bmurt has joined #ruby
Sina has quit [Quit: Connection closed for inactivity]
Tempesta has quit [Quit: See ya!]
dionysus69 has joined #ruby
cschneid_ has quit [Ping timeout: 276 seconds]
chocoelho has joined #ruby
chocoelho has quit [Client Quit]
jrafanie has joined #ruby
jrafanie has quit [Client Quit]
cschneid_ has joined #ruby
voker57 has quit [Remote host closed the connection]
krawchyk has joined #ruby
Hien has quit [K-Lined]
sawdustofmind1 has joined #ruby
sawdustofmind1 has left #ruby [#ruby]
sawdustofmind1 has joined #ruby
jrafanie has joined #ruby
deafscribe has joined #ruby
wennefer0_ has joined #ruby
wennefer0_ has quit [Changing host]
wennefer0_ has joined #ruby
pastorinni has joined #ruby
qba73 has quit [Ping timeout: 240 seconds]
miskatonic has joined #ruby
polishdub has joined #ruby
jobewan has joined #ruby
voker57 has joined #ruby
voker57 has quit [Changing host]
voker57 has joined #ruby
wennefer0_ is now known as wennefer0
qba73 has joined #ruby
polishdub has left #ruby [#ruby]
xfbs has joined #ruby
fifty05 has joined #ruby
pastorinni has quit [Ping timeout: 268 seconds]
<MrArton>
Can someone explain me how catch and throw works, I do not understand.
<MrArton>
Et si quelqu'un peut le faire en francais ca serait cool
banisterfiend has joined #ruby
mikecmpbll has quit [Read error: Connection reset by peer]
<apeiros>
if you know begin/rescue/end + raise - exactly the same. just slightly different syntax. and you can throw about anything, not just exceptions.
<MrArton>
Ok, thx
miskatonic has quit [Remote host closed the connection]
miskaton` has joined #ruby
cschneid_ has quit [Ping timeout: 256 seconds]
miskaton` has quit [Client Quit]
miskatonic has joined #ruby
<havenwood>
c-c: Share a link to the code?
cschneid_ has joined #ruby
MrArton has quit [Quit: Page closed]
<c-c>
havenwood: I need to clean it up still and make the github
<havenwood>
c-c: ah, cool
<c-c>
I'm 95% certain on the license, too
<c-c>
Hm, need to make sure its ok to have rewards with github and this GPL 3 license, too
<c-c>
havenwood: ever contributed for reward, or "competed" for a reward in a open source project?
alfiemax has joined #ruby
xfbs has quit []
kculpis has joined #ruby
<havenwood>
c-c: Nope, I've never had a reward.
<havenwood>
c-c: I've won stuff at hackathons, but never around open source.
<dminuoso>
havenwood never had a reward!
<havenwood>
c-c: I know folk who did the Github challenge for a shirt - that's the only example I can think of.
<havenwood>
dminuoso: Never. ;-)
<dminuoso>
Not sure whether that speaks for his skills, or just his lack of participation in such adventures.
<dminuoso>
=P
mikecmpbll has quit [Read error: Connection reset by peer]
mikecmpb_ has joined #ruby
* havenwood
demands a reward
<dminuoso>
I'd send you a cookie, but I'd eat it before it gets wrapped.
<apeiros>
🍪
<apeiros>
and damn, the emoji search is localized. searched for "cookie", turned up empty. searched manually until I figured I should have searched for "keks" :-S
<dminuoso>
apeiros: You too should get Karabiner
<dminuoso>
λ
<dminuoso>
∀ ∃
<apeiros>
meh
<dminuoso>
=)
* c-c
hands havenwood a medal
<c-c>
havenwood: You are hereby heralded with an irc medal as a reward for your help and services.
<apeiros>
dminuoso: |H hilbert numbers? is that a thing?
<dminuoso>
apeiros: quaternions
<apeiros>
oh, hamilton
<dminuoso>
Yeah
<apeiros>
or at least I guess that's the source for the symbol resembling an H
tlaxkit has joined #ruby
jobewan has quit [Quit: jobewan]
fifty05 has quit [Ping timeout: 240 seconds]
zwliew has quit [Quit: Connection closed for inactivity]
Dimik has joined #ruby
Tempesta has joined #ruby
jobewan has joined #ruby
yeticry has quit [Ping timeout: 248 seconds]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yeticry has joined #ruby
<dminuoso>
apeiros: Thats my assumption as well, but I think its a safe bet.
chocoelho has joined #ruby
vipaca has joined #ruby
whippythellama has joined #ruby
<dminuoso>
I guess since ℚ was taken already, ℍ was a logical choice
vipaca has quit [Client Quit]
vipaca has joined #ruby
<dminuoso>
And next one added apeiros
<dminuoso>
¯\_(ツ)_/¯
<dminuoso>
=)
<dminuoso>
karabiner-elements is awesome.
InfinityFye has joined #ruby
rabajaj has quit [Quit: Leaving]
uZiel has quit [Ping timeout: 272 seconds]
kristian_on_linu has joined #ruby
<kristian_on_linu>
hi all
<kristian_on_linu>
I installed rvm and jekyll, now jekyll does not seem installed?
<kristian_on_linu>
I know this is probably something really simple that I must do
zautomata has quit [Ping timeout: 256 seconds]
kapil___ has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
qba73 has quit [Remote host closed the connection]
<apeiros>
kristian_on_linu: some possible reasons: a) you installed jekyll under a different ruby than you try to run it, b) you are in a directory with a Gemfile
Azure|dc has quit [Read error: Connection reset by peer]
qba73 has joined #ruby
zautomata has joined #ruby
bmurt has joined #ruby
Azure has joined #ruby
<kristian_on_linu>
hi apeiros
<apeiros>
hi
<kristian_on_linu>
I found two Gemfiles and renamed them both ... the problem persists
<kristian_on_linu>
and I'm 90% sure I ran jekyll in that exact directory
dionysus69 has quit [Quit: dionysus69]
<apeiros>
kristian_on_linu: can you please do the following and gist the session? `cd ~; rvm list; gem install jekyll; jekyll -v`
pastorinni has joined #ruby
pastorinni has quit [Remote host closed the connection]
conta has quit [Quit: conta]
pastorinni has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<kristian_on_linu>
is paste.ee okay?
<apeiros>
yes. generally gist.github.com is preferred
<kristian_on_linu>
dminuoso: you don't recommend using rvm?
<dminuoso>
kristian_on_linu: I dont have anything against rvm, but if you dont have any good reasons to use rvm or rbenv specifically, you are almost always better off with ruby-install for installing ruby versions, and chruby for switching between multiple ruby versions.
<apeiros>
dminuoso: so rbenv and co don't have a problem when you b0rk your PATH? how?
<dminuoso>
apeiros: Heh =P
<tcopeland>
rubycoder37: no, you still need to install bundler after installing ruby 2.5.0
<kristian_on_linu>
dminuoso: I'm a very low level user ... I just do jekyll and related task
<kristian_on_linu>
every guide I've seen says rvm makes it all easier ... but if that's not the case, I will avoid it next time
vipaca has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<kristian_on_linu>
apeiros: I think it works now, thanks
<apeiros>
yw
<dminuoso>
kristian_on_linu: Dont worry too much about it, rvm is fine until you start using rvm commands that do.. things.
dinfuehr has quit [Ping timeout: 268 seconds]
vipaca has joined #ruby
alfiemax has quit [Remote host closed the connection]
romankapitonov has joined #ruby
<rubycoder37>
what a shame, I was expecting bundler to be included on 2.5.0
guille-moe has joined #ruby
<dminuoso>
apeiros: So did you manage a release by the way?
<apeiros>
refresh my memory - a release of what?
beauby has joined #ruby
dinfuehr has joined #ruby
alfiemax has joined #ruby
<dminuoso>
Of some mysterious framework.
<apeiros>
ah
<apeiros>
no :(
<dminuoso>
:(
sspreitz has joined #ruby
vichib has joined #ruby
<dminuoso>
I kept fireworks from 3 days ago extra for this.
<apeiros>
postponed in favor of doing a mobile website for the spa I do spare time work
<dminuoso>
You give massages?
<apeiros>
I get massages
<apeiros>
saves me a couple grand a year doing their web stuff :)
<dminuoso>
I have a spa right next to my apartment.
<dminuoso>
Neato
mikecmpb_ has quit [Ping timeout: 264 seconds]
<apeiros>
ok, granted, I wouldn't go that often if I didn't get it for free.
<dminuoso>
Just wordpress it up and use the rest of the time to get.. a massage...
TomyLobo has joined #ruby
<apeiros>
no, hand crafted. target for the mobile site is to have it <200KB for initial load and viewable with low-res images. post-load is high-res images and probably webfont. maybe sound, not sure on that one though, since I hate websites with sound :)
oetjenj has joined #ruby
<rubycoder37>
are they going to rewrite the bundler tests for merging into ruby?
conta has joined #ruby
<rubycoder37>
bundler uses rspec for tests
[Butch] has joined #ruby
<tcopeland>
hm, interesting, I don’t know
[Butch]_ has joined #ruby
eckhardt has joined #ruby
alfiemax has quit [Ping timeout: 264 seconds]
vipaca has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood>
samort7: Not sure what you mean by "what does it mean" but it seems you're saying the Locale::first returns a Hash? Are you wondering how that gem implements ::first?
jamesaxl has quit [Quit: WeeChat 1.9.1]
kith has joined #ruby
alfiemax has quit [Ping timeout: 256 seconds]
ta_ has quit [Ping timeout: 248 seconds]
ta_ has joined #ruby
<samort7>
I'm very new to Ruby, are those optional parameters being passed to the Hash?