<platzhirsch>
Well I think they are there to implement higher-level concurrency primitives?
<platzhirsch>
for instance TwoFibres
<drale2k>
sphex: ok thanks
tubulife- has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sphex>
shevy: they're more lightweight threads pretty much. much less crazy to implement than full continuations. but the thing is, Fibers are used automatically when using enumerators in a certain way (which is awesome), but also they seem to hide away the thread-local storage because of that IIUC, which is super annoying...
andrewvos has quit [Ping timeout: 272 seconds]
<sphex>
drale2k: if you keep receiving data on those sockets, eventually the kernel-side buffer will fill up, and the sender will have to slow down and stop, so there's a limit to how much memory will be wasted for each socket. it won't just keep building up because you're not reading them.
frog0909 has quit [Remote host closed the connection]
<drale2k>
sphex: i am receiving GPS data in binary form and i need to figure out how to do this properly
frozen3 has joined #ruby
firstdayonthejob has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
<drale2k>
atm i have a TCPServer started with a Thread which loops
idefine has joined #ruby
avenj has quit [Ping timeout: 252 seconds]
blur3d has quit [Quit: blur3d]
idefine has quit [Read error: Connection reset by peer]
<sphex>
drale2k: that's one connection at a time right?
<drale2k>
so the TCPServer runs forever but i close the Thread
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sphex>
oh ok
<drale2k>
well multiple GPS devices can send at once
replay has quit [Ping timeout: 250 seconds]
idefine has joined #ruby
<drale2k>
i have never done anything like this
<drale2k>
if 3 devices start sending data, will they all use the same TCPServer (all send to the same port) or will they use 3 sockets?
<sphex>
drale2k: maybe let the thread close the socket itself when it is done, then terminate by itself
<sphex>
drale2k: yeah, each accept() gets you a new socket, which can be used concurrently
kirillzh has joined #ruby
<drale2k>
so basically 1 socket per GPS device
<drale2k>
hm
kirillzh has quit [Client Quit]
symm- has quit [Ping timeout: 250 seconds]
ur5us has quit [Remote host closed the connection]
themsay2 has joined #ruby
intrigueD has quit [Read error: Connection reset by peer]
kirillzh has quit [Read error: Connection reset by peer]
rgtk has quit [Read error: No route to host]
kirillzh has joined #ruby
rgtk has joined #ruby
sinkensabe has joined #ruby
casadei has joined #ruby
<Ox0dea>
`yield self[key] if key? key` is a fine definition for Hash#with_value if you really want it.
floror has joined #ruby
pickandmix has joined #ruby
diegoviola has quit [Quit: WeeChat 1.4]
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
Coldblackice has joined #ruby
bklane has joined #ruby
sinkensabe has quit [Ping timeout: 264 seconds]
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
bklane_ has quit [Ping timeout: 240 seconds]
johnmilton has joined #ruby
floror has quit [Client Quit]
floror has joined #ruby
floror has left #ruby [#ruby]
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
nerium has joined #ruby
Youngmathimus0 has quit [Ping timeout: 276 seconds]
rgtk has quit [Read error: No route to host]
nickjj has quit [Ping timeout: 252 seconds]
baweaver has joined #ruby
devbug has quit [Ping timeout: 250 seconds]
rgtk has joined #ruby
jackjackdripper1 has joined #ruby
rgtk has quit [Read error: No route to host]
nerium has quit [Client Quit]
marr has quit [Ping timeout: 250 seconds]
rgtk has joined #ruby
jam_ has joined #ruby
nerium has joined #ruby
idefine has quit [Remote host closed the connection]
<MrSamuel>
What does the safe navigaiton operator give on nil entries?
<MrSamuel>
e.g. {x: nil}
<Ox0dea>
?try
<ruby[bot]>
Why don't you try it and see for yourself?
jackjackdripper has quit [Ping timeout: 265 seconds]
Xeago has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
nickjj has joined #ruby
idefine has joined #ruby
rgtk has quit [Read error: No route to host]
baweaver has quit [Ping timeout: 260 seconds]
rgtk has joined #ruby
jam_ has quit [Ping timeout: 256 seconds]
tjbiddle has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
bklane_ has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
swills has joined #ruby
goodcodeguy has joined #ruby
bklane has quit [Ping timeout: 264 seconds]
rgtk has quit [Read error: No route to host]
karmatr0n has joined #ruby
dlitvak has quit [Ping timeout: 276 seconds]
openstruct has quit [Ping timeout: 264 seconds]
rgtk has joined #ruby
pawnbox has joined #ruby
rgtk has quit [Read error: No route to host]
juanfra has quit [Ping timeout: 240 seconds]
rgtk has joined #ruby
dlitvak has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
Xeago has quit [Ping timeout: 252 seconds]
dexter_ has quit [Ping timeout: 265 seconds]
TomPeed has quit [Ping timeout: 276 seconds]
pawnbox has quit [Ping timeout: 240 seconds]
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
tubulife- has joined #ruby
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
karmatr0n has quit [Ping timeout: 264 seconds]
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
bklane_ has quit [Ping timeout: 250 seconds]
cih has quit [Remote host closed the connection]
bklane has joined #ruby
rgtk has quit [Read error: No route to host]
openstruct has joined #ruby
rgtk has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
avenj has joined #ruby
avenj has joined #ruby
shazaum_ has joined #ruby
shazaum_ has quit [Remote host closed the connection]
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
PaulCapestany has quit [Ping timeout: 240 seconds]
shazaum has quit [Ping timeout: 252 seconds]
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
baweaver has joined #ruby
rgtk has quit [Read error: No route to host]
bklane has quit [Ping timeout: 240 seconds]
houhoulis has joined #ruby
rgtk has joined #ruby
mrmargolis has joined #ruby
vdamewood has quit [Quit: Life beckons.]
rgtk has quit [Read error: No route to host]
juanfra has joined #ruby
rgtk has joined #ruby
stevemackinnon has joined #ruby
bklane has joined #ruby
jam_ has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
underplank has quit [Quit: underplank]
PaulCapestany has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
karapetyan has joined #ruby
rgtk has quit [Read error: No route to host]
infernix has joined #ruby
roshanavand has quit [Remote host closed the connection]
rgtk has joined #ruby
houhoulis has quit []
roshanavand has joined #ruby
dlitvak_ has joined #ruby
rgtk has quit [Read error: No route to host]
avahey has joined #ruby
rgtk has joined #ruby
bklane has quit [Ping timeout: 256 seconds]
underplank has joined #ruby
underplank has quit [Client Quit]
dlitvak has quit [Ping timeout: 252 seconds]
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
bklane has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
houhoulis has joined #ruby
dlitvak has joined #ruby
rgtk has quit [Read error: No route to host]
roshanavand has quit [Ping timeout: 250 seconds]
rgtk has joined #ruby
dlitvak_ has quit [Ping timeout: 240 seconds]
rgtk has quit [Read error: No route to host]
bklane has quit [Read error: Connection reset by peer]
rgtk has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 1.3]
mikecmpbll has quit [Ping timeout: 252 seconds]
Guest55108 is now known as BLuEGoD
rgtk has quit [Read error: No route to host]
kirillzh has joined #ruby
BLuEGoD is now known as Guest50247
rgtk has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
bklane_ has joined #ruby
bithon has quit [Quit: WeeChat 1.4]
polishdub has quit [Ping timeout: 250 seconds]
ss_much has quit [Quit: Connection closed for inactivity]
rgtk has quit [Read error: Connection reset by peer]
rgtk has joined #ruby
ur5us has quit [Read error: No route to host]
ur5us has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
rgtk has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
pawnbox has joined #ruby
sauvin has joined #ruby
bklane_ has quit [Read error: Connection reset by peer]
paradisaeidae has quit [Quit: ChatZilla 0.9.92 [Firefox 44.0.2/20160210153822]]
rgtk has quit [Read error: No route to host]
darkf_ has joined #ruby
rgtk has joined #ruby
darkf has quit [Ping timeout: 260 seconds]
darkf_ is now known as darkf
dlitvak has quit [Ping timeout: 250 seconds]
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
rkazak has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
pdoherty has quit [Read error: Connection reset by peer]
pawnbox has quit [Ping timeout: 240 seconds]
pdoherty has joined #ruby
rgtk has joined #ruby
p1k has joined #ruby
rideh- has quit [Quit: quit]
rideh has joined #ruby
rideh has quit [Changing host]
rideh has joined #ruby
dlitvak has joined #ruby
tulak has joined #ruby
zacstewart has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk_ has joined #ruby
stevemackinnon has quit [Remote host closed the connection]
kies^ has quit [Quit: baaaaiiiiiiiiiii~]
rgtk_ has quit [Read error: No route to host]
rgtk has joined #ruby
learning has quit []
rgtk has quit [Read error: No route to host]
stevemackinnon has joined #ruby
rgtk has joined #ruby
tulak has quit [Ping timeout: 240 seconds]
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
whippythellama has quit [Quit: WeeChat 1.4]
kies^ has joined #ruby
yfeldblum has quit [Remote host closed the connection]
rgtk has quit [Read error: No route to host]
yfeldblum has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rgtk has joined #ruby
baweaver has quit [Remote host closed the connection]
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
openstruct has quit [Remote host closed the connection]
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
karmatr0n has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
openstruct has joined #ruby
openstruct has quit [Changing host]
openstruct has joined #ruby
<sphex>
hey. what do you guys think of "service locator/registry" / "inversion of control containers" patterns and the like? is there a better way to do it in ruby?
rgtk has quit [Read error: No route to host]
juanfra has quit [Ping timeout: 240 seconds]
underplank has joined #ruby
rideh has quit [Quit: quit]
rgtk has joined #ruby
rideh has joined #ruby
rgtk has quit [Read error: No route to host]
Mr0rris0 has quit [Read error: Connection reset by peer]
jam_ has quit [Remote host closed the connection]
rgtk has joined #ruby
kirillzh has joined #ruby
cih has joined #ruby
rgtk has quit [Read error: No route to host]
karmatr0n has quit [Ping timeout: 276 seconds]
openstruct has quit [Remote host closed the connection]
rgtk has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rkazak has quit [Quit: Sleep.....ing....]
rgtk has quit [Read error: No route to host]
jackjackdripper1 has quit [Quit: Leaving.]
Billias has quit [Ping timeout: 240 seconds]
rgtk has joined #ruby
frozen3 has quit [Remote host closed the connection]
jam_ has joined #ruby
cih has quit [Ping timeout: 252 seconds]
rgtk has quit [Read error: No route to host]
rgtk_ has joined #ruby
<hays>
why jruby? like what is its use case
stevemackinnon has quit [Remote host closed the connection]
Sucks has quit [Ping timeout: 264 seconds]
underplank has quit [Quit: underplank]
rgtk_ has quit [Read error: No route to host]
nisstyre has joined #ruby
mrmargolis has quit []
rideh has quit [Quit: quit]
rideh has joined #ruby
rgtk has joined #ruby
fedexo has joined #ruby
cyclonis_ has quit [Quit: leaving]
johnmilton has quit [Ping timeout: 272 seconds]
underplank has joined #ruby
<r4z3r>
hays logstash uses it to get true multithreading to avoid the GIL
rgtk has quit [Read error: Connection reset by peer]
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
<r4z3r>
GIL == Global interpreter lock
<Ox0dea>
Interoperability with such a massive ecosystem as Java's is nothing to scoff at, either.
<r4z3r>
basically makes multithreaded ruby single threaded again
rgtk has joined #ruby
<r4z3r>
that too Ox0dea
nisstyre has quit [Changing host]
nisstyre has joined #ruby
<hays>
Ox0dea: hmm ok but C is pretty interoperable, no?
pickandmix has quit [Quit: WeeChat 1.4]
<Ox0dea>
hays: Certainly.
<hays>
i should learn more about this GIL
rgtk has quit [Read error: Connection reset by peer]
rgtk has joined #ruby
davedev2_ has quit [Ping timeout: 240 seconds]
JoshL has quit [Quit: ZNC 1.6.1+deb1~ubuntu14.04.0 - http://znc.in]
<r4z3r>
if it doesn't help, feel free to ignore it
davedev24 has joined #ruby
<sphex>
do they plan on making MRI GIL-free eventually? or at least making it more granular...
JoshL has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
stevemackinnon has joined #ruby
rgtk has joined #ruby
<r4z3r>
sphex I believe it was something that came up for Ruby 3
rgtk has quit [Read error: No route to host]
<r4z3r>
it's a major undertaking though
jam_ has quit [Remote host closed the connection]
rgtk has joined #ruby
<hays>
seems like it could break a lot too since the GIL looks to provide some protection against poor thread safety
chendry has left #ruby [#ruby]
<sphex>
r4z3r: okay
<r4z3r>
hays yep — things like race conditions are easy program killers
rgtk has quit [Read error: No route to host]
juanfra has joined #ruby
<r4z3r>
it's why languages like Go who focus on concurrency (without immutability) include things like "-race" when compiling to check for dangerous concurrency patterns
<hays>
onw just has to teach their philosophers how to dine properly
<r4z3r>
though it's harder in Ruby to protect like that
rgtk has joined #ruby
pawnbox has quit [Ping timeout: 264 seconds]
rgtk has quit [Read error: No route to host]
Mr0rris0 has joined #ruby
r4z3r has quit [Max SendQ exceeded]
r4z3r has joined #ruby
rgtk has joined #ruby
<sphex>
hey.. one thing I'm not sure of: when using built-in classes like Array, Hash, String, etc, is it OK to assume that they do their own locking and that most of their methods could be called directly from different threads?
sinkensabe has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk_ has joined #ruby
devbug has joined #ruby
bithon has joined #ruby
jam_ has joined #ruby
rgtk_ has quit [Read error: No route to host]
rgtk has joined #ruby
rgtk has quit [Read error: No route to host]
Youngmathimus0 has joined #ruby
rgtk has joined #ruby
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sinkensabe has quit [Ping timeout: 248 seconds]
houhoulis has quit [Remote host closed the connection]
rgtk has quit [Read error: No route to host]
tilllt has joined #ruby
rgtk has joined #ruby
Guest50247 is now known as BLuEGoD
stevemackinnon has quit [Remote host closed the connection]
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
rgtk has quit [Ping timeout: 248 seconds]
B1n4r10 has joined #ruby
dlitvak has quit [Ping timeout: 250 seconds]
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
<sphex>
Ropeney: oh, neat. thanks.
DmitryBochkarev has joined #ruby
<sphex>
Ropeney: hey, any idea if it has a thing that lets you have thread/fiber-local variables that are "inherited" by other threads/fibers? the built-in thread/fiber locals all disappear in the sub-threads/fibers and I'm trying to workaround that.
freerobby has quit [Quit: Leaving.]
<sphex>
hrm maybe I'm approaching this the wrong way though, maybe there's a better thing in concurrent-ruby...
<hays>
then there is rubinius
<hays>
no macport though
stevemackinnon has joined #ruby
<hays>
just homebrew
Ebok has quit [Read error: Connection reset by peer]
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karmatr0n has joined #ruby
dlitvak has joined #ruby
underplank has quit [Quit: underplank]
elifoster has quit [Ping timeout: 252 seconds]
Ebok has joined #ruby
Ebok has quit [Client Quit]
<ropeney>
hays, that doesn't make your code thread safe though? and sphex I don't have an answer for you sorry.
baweaver has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
roshanavand has joined #ruby
tjbiddle has joined #ruby
polishdub has joined #ruby
baweaver has quit [Ping timeout: 256 seconds]
pawnbox has joined #ruby
stevemackinnon has quit [Remote host closed the connection]
casadei has quit [Remote host closed the connection]
stevemac_ has joined #ruby
juanfra has quit [Ping timeout: 240 seconds]
roshanavand has quit [Ping timeout: 264 seconds]
pawnbox has quit [Ping timeout: 250 seconds]
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
Sucks has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zast has quit [Quit: Leaving.]
underplank has joined #ruby
cih has joined #ruby
roshanavand has joined #ruby
kirillzh has joined #ruby
bronson has quit [Remote host closed the connection]
braincrash has quit [Quit: bye bye]
bronson has joined #ruby
treaki_ has quit [Ping timeout: 240 seconds]
treaki_ has joined #ruby
cih has quit [Ping timeout: 260 seconds]
MrSamuel has quit [Quit: MrSamuel]
dlitvak has quit [Ping timeout: 276 seconds]
roshanavand has quit [Ping timeout: 260 seconds]
stannard has joined #ruby
idefine has quit [Remote host closed the connection]
braincrash has joined #ruby
kalz has quit [Ping timeout: 260 seconds]
howdoi has joined #ruby
stevemac_ has quit [Remote host closed the connection]
stannard has quit [Ping timeout: 250 seconds]
juanfra has joined #ruby
norc_ has joined #ruby
DmitryBochkarev has joined #ruby
jam_ has joined #ruby
coyo has quit []
DmitryBochkarev has quit [Client Quit]
dlitvak has joined #ruby
AlphaAtom has joined #ruby
bronson has quit [Remote host closed the connection]
kalz has joined #ruby
<sphex>
hey so when writing a class-level DSL-style module, it seems like the convention is to make it work when "include"d rather than requiring it to be "extend"ed into the using class. is that what one should do?
<sphex>
Ox0dea: yeah, but you can make them do lots of stuff by hooking into "included" and "extended".
<Ox0dea>
sphex: Use exactly as much complexity as needed and no more. :)
gix has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<sphex>
but it seems to me that lots of DSL modules do that. they let you "include" them and then they define class-level helper methods from there.
sdothum has joined #ruby
bronson has joined #ruby
sdothum has quit [Client Quit]
<Ox0dea>
sphex: Do you have an example to hand?
zacstewart has quit [Ping timeout: 250 seconds]
krz has quit [Ping timeout: 250 seconds]
sdothum has joined #ruby
<Ox0dea>
Hooking Module#included to manually do what Module#extend does seems a little silly.
p1k has quit [Ping timeout: 250 seconds]
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sphex>
hrm. actually I guess most DSLs let you inherit from them, so it extends and includes at the same time sort of. I guess. I checked so many examples I'm starting to confuse them all.
hakunin_ has quit [Read error: Connection reset by peer]
hakunin has joined #ruby
<sphex>
Ox0dea: the thing is.. you sometimes need both to define instance methods, and helper class methods, and if you want to provide that as a mixin, AFAIU you'd have to do some extending from included, or some including from extended. :/
tulak has joined #ruby
<Ox0dea>
sphex: That's true, but the pertinence of those details to your question have only just come to light. :P
<Ox0dea>
You could just as well ask users to #include and #extend your thing, but that's not very nice, and is possibly a smell.
skweek has joined #ruby
karapetyan has joined #ruby
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
stevemackinnon has joined #ruby
<sphex>
ah yeah.. by bundling the class-level and instance-level methods in the same module? yeah, not very neat. reminds me of those "extend self" I have seen.
Sucks has quit [Ping timeout: 264 seconds]
<Ox0dea>
We have #module_function for that nowadays.
tulak has quit [Ping timeout: 252 seconds]
<Ox0dea>
I didn't mean to imply that there aren't perfectly valid use cases for getting fancy in an inclusion hook, mind.
krz has joined #ruby
<sphex>
Ox0dea: alright. the "module_function" is a shortcut right? It won't "flow-through" an include or otherwise be magic?
B1n4r10 has quit [Ping timeout: 265 seconds]
tomchapin has joined #ruby
<Ox0dea>
sphex: #include will never bring along singleton methods.
twintail has joined #ruby
agentmeerkat has quit [Ping timeout: 240 seconds]
stevemackinnon has quit [Remote host closed the connection]
Youngmathimus0 has quit [Read error: Connection reset by peer]
stevemackinnon has joined #ruby
<sphex>
Ox0dea: ok. yeah. only ordinary inheritance does that?
abra0 is now known as tichy
<Ox0dea>
sphex: No, singleton methods have to be manually "grafted".
tichy is now known as abra0
darkf has quit [Ping timeout: 250 seconds]
tjbiddle has quit [Quit: tjbiddle]
darkf has joined #ruby
perrier_ has quit [Remote host closed the connection]
perrier has joined #ruby
perrier is now known as Guest9703
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
roshanavand has joined #ruby
<sphex>
dammit. I thought I understood that stuff. I had to stop using ruby for a while and now this is all confusing me *again*.
<Ox0dea>
sphex: Ah, gotcha. I only had eyes for #include and #extend, which also fit under the umbrella of inheritance.
sinkensabe has quit [Ping timeout: 256 seconds]
<Ox0dea>
That's a great name for a method on A, by the way. :P
darkf has joined #ruby
<sphex>
oh yeah.. I remember. they also show up in "ancestors". it's inheritance too. and modifying a module after it has been included will still affect the module that included it...
norc_ has quit [Ping timeout: 256 seconds]
frozen3 has joined #ruby
<Ox0dea>
Right. Method resolution is much simpler than it might at first seem.
william3 has joined #ruby
<sphex>
eh.
<sphex>
hey thanks Ox0dea
krz has quit [Ping timeout: 260 seconds]
<Ox0dea>
No worries.
fedexo has quit [Ping timeout: 252 seconds]
PaulCape_ has joined #ruby
PaulCapestany has quit [Ping timeout: 252 seconds]
frozen3 has quit [Ping timeout: 250 seconds]
<sphex>
you've been answering my questions since forever on this channel!
william3 has quit [Ping timeout: 276 seconds]
<sphex>
hrm possibly even exactly these questions :/
adgtl has joined #ruby
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sphex>
haha. huh. mildly disturbing. I'm still not fully mentally prepared for 1984.
<Ox0dea>
You have always been at war with publicity.
tilllt has joined #ruby
Channel6 has quit [Quit: Leaving]
Guest20428 is now known as BLuEGoD
tilllt has quit [Client Quit]
BLuEGoD is now known as Guest89231
kam270 has quit [Quit: Leaving]
LoneHerm_ has joined #ruby
dexter_ has joined #ruby
karapetyan has quit [Remote host closed the connection]
benlieb has joined #ruby
<Ox0dea>
sphex: Can't speak to your C fluency, but this was the presentation that really clarified everything for me: https://youtu.be/NlPxvRSUVQI?t=749
y2mq37 has quit [Ping timeout: 264 seconds]
saneax_AFK is now known as saneax
<sphex>
Ox0dea: oh yeah this should help. I'll watch that later for sure. thanks!
<Ox0dea>
Sure thing. :)
<sphex>
RClass sure looks *alot* cleaner than Perl's SVs
<Ox0dea>
Definitely.
<Ox0dea>
Not sure what Perl 6 looks like under the hood, but my bet's on "scary".
astrobunny has quit [Read error: Connection reset by peer]
adgtl has quit [Remote host closed the connection]
idefine has joined #ruby
underplank has quit [Quit: underplank]
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
astrobunny has joined #ruby
Bloodshot has quit []
hakunin has quit []
baweaver has joined #ruby
Bloomer has joined #ruby
cih has joined #ruby
stardiviner has quit [Ping timeout: 272 seconds]
stardiviner has joined #ruby
skweek has quit [Ping timeout: 276 seconds]
podman has quit [Quit: Connection closed for inactivity]
idefine_ has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
adgtl has joined #ruby
kp666 has quit [Ping timeout: 256 seconds]
cih has quit [Ping timeout: 252 seconds]
_djbkd has joined #ruby
idefine has quit [Ping timeout: 260 seconds]
astrobunny has quit [Read error: Connection timed out]
sinkensabe has joined #ruby
karapetyan has joined #ruby
astrobunny has joined #ruby
idefine_ has quit [Remote host closed the connection]
kp666 has joined #ruby
benlieb has quit [Quit: benlieb]
arthropododo has quit [Remote host closed the connection]
ayonkhan has joined #ruby
neanderslob has quit [Remote host closed the connection]
dlitvak has joined #ruby
Youngmathimus0 has joined #ruby
idefine has joined #ruby
_djbkd has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
_djbkd has joined #ruby
benlieb has joined #ruby
dlitvak has quit [Ping timeout: 256 seconds]
karmatr0n has quit [Ping timeout: 252 seconds]
pawnbox has joined #ruby
chipotle has joined #ruby
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
_djbkd has quit [Ping timeout: 256 seconds]
bithon has quit [Ping timeout: 265 seconds]
neanderslob has joined #ruby
neanderslob has quit [Remote host closed the connection]
neanderslob_ has joined #ruby
neanderslob_ has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
polishdub has quit [Ping timeout: 265 seconds]
cpup has quit [Ping timeout: 248 seconds]
framling has joined #ruby
Don_John has joined #ruby
cpup has joined #ruby
Guest89231 is now known as BLuEGoD
BLuEGoD is now known as Guest32458
Macaveli has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
fourq is now known as fourq|away
fourq|away is now known as fourq
sinkensabe has joined #ruby
jimbeaudoin has quit [Quit: Connection closed for inactivity]
roshanavand has joined #ruby
the_drow has joined #ruby
beawesomeinstead has quit [Ping timeout: 250 seconds]
beawesomeinstead has joined #ruby
norc_ has joined #ruby
idefine has quit [Read error: Connection reset by peer]
roshanavand has quit [Ping timeout: 256 seconds]
tulak has joined #ruby
araujo_ has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
<norc>
And that basically prevents pry from working.
<Ox0dea>
>> def class; end; 42.class
<ruby[bot]>
Ox0dea: # => /tmp/execpad-d9f0831991c7/source-d9f0831991c7:4:in `rescue in <main>': private method `class' called ...check link for more (https://eval.in/519299)
<Ox0dea>
Derp.
<norc>
Oh.
<Ox0dea>
Classes don't specialize #class, and why would they?
<norc>
I completely forgot about #class method.
<Ox0dea>
Heh.
troulouliou_div2 has joined #ruby
<Ox0dea>
Too much MRI; not enough Ruby.
<norc>
By the way, I still want to use refinements in pry :(
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
aufi has joined #ruby
spacemud has joined #ruby
Xeago has joined #ruby
t0ggah has quit [Read error: Connection reset by peer]
chooky has joined #ruby
kerunaru has joined #ruby
jam_ has joined #ruby
LoneHerm_ has joined #ruby
Xeago has quit [Remote host closed the connection]
minimalism has quit [Quit: minimalism]
sandstrom has joined #ruby
jaiks has quit [Quit: Leaving]
jam_ has quit [Ping timeout: 265 seconds]
bronson has joined #ruby
Snowy has joined #ruby
LoneHerm_ has quit [Ping timeout: 276 seconds]
Imlerith has joined #ruby
mdw has joined #ruby
mdw has quit [Read error: Connection reset by peer]
drptbl has joined #ruby
mdw has joined #ruby
<Imlerith>
i m new to ruby and i gone through the basic tutorials on ruby can anyone tell what should i do next so that i get more comfortable in ruby , can u tell me any good projects to start with.
tesuji has joined #ruby
tesuji has quit [Changing host]
tesuji has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
<adaedra>
read more advanced tutorial, find ruby projects (github is your friend) and try to read code, or even better contribute, do some small tools you may need.
<Ox0dea>
adaedra: It's a troll.
<ilhami>
Ox0dea, how do you know?
<Ox0dea>
Their nick is an anagram of "I'm Hitler".
<adaedra>
wow.
<Ox0dea>
¯\_(ツ)_/¯
<ilhami>
lololol
<ilhami>
are you kidding me?
<Ox0dea>
Aw, jeeze. Sorry.
rbennacer has joined #ruby
<Ox0dea>
It's a Witcher 3 reference. :/
<Ox0dea>
My apologies, Imlerith. Start by scratching an itch.
<adaedra>
How do you even see those things.
<Eising>
lol, that escalated quickly
<Imlerith>
Ox0dea , never saw that " I'm Hitler "
<Ox0dea>
#2spooky4me
<ilhami>
Ox0dea, you are crazy man.
<Ox0dea>
ilhami: Could you clarify?
cih has joined #ruby
tomchapin has quit [Read error: Connection reset by peer]
mark4 has joined #ruby
ur5us_ has quit [Remote host closed the connection]
<Ox0dea>
Imlerith: What sort of programs have you written so far?
SCHAAP137 has joined #ruby
<ilhami>
Ox0dea, :D:D:D
jaiks has joined #ruby
kuba_kaz has joined #ruby
kuba_kaz has left #ruby [#ruby]
tvw has quit [Remote host closed the connection]
tulak has quit [Remote host closed the connection]
baweaver has joined #ruby
pandaant has joined #ruby
symm- has quit [Ping timeout: 250 seconds]
norc has quit [Quit: Page closed]
norc_ has quit [Quit: Page closed]
<ddv>
I didn't know Hitler was a good Ruby programmer
baweaver has quit [Ping timeout: 256 seconds]
infernix has joined #ruby
Snowy has joined #ruby
kp666 has joined #ruby
tatsuo has joined #ruby
MrSamuel has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
wwwbukolaycom has joined #ruby
<ilhami>
ddv, then you didn't know him enough. :P
rvchangue has quit [Ping timeout: 276 seconds]
rvchangue has joined #ruby
tilllt has joined #ruby
araujo_ has quit [Quit: Leaving]
f4cl3y has joined #ruby
drptbl has quit [Ping timeout: 248 seconds]
william3 has joined #ruby
idefine has joined #ruby
UtkarshRay has joined #ruby
tilllt has quit [Client Quit]
drptbl has joined #ruby
resin has joined #ruby
chooky has quit [Quit: Leaving]
blackmesa has joined #ruby
blur3d has joined #ruby
Guest31975 is now known as BLuEGoD
FooMunki has joined #ruby
BLuEGoD is now known as Guest25913
Gnut has joined #ruby
kam270 has joined #ruby
william3 has quit [Ping timeout: 276 seconds]
idefine has quit [Ping timeout: 264 seconds]
tubulife- has quit [Ping timeout: 250 seconds]
sandstrom has quit [Ping timeout: 240 seconds]
<claw>
hey everyone, is there a way to alter the useragent (http) globally ? i coundn't find anything. it defaults to 'Ruby' i guess that shoulb be stored *somewhere*
william3 has joined #ruby
<adaedra>
using what? Net::HTTP?
Dios has joined #ruby
marr has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
tomchapin has joined #ruby
the_drow has joined #ruby
mhoungbo has joined #ruby
<claw>
adaedra: actually using anything thas uses Net::HTTP so also gems. I would like to alter the default
<Ox0dea>
claw: It's per-request object.
rodfersou has joined #ruby
<adaedra>
Other gems may have a different way of setting it.
<Ox0dea>
Ruby loves you and wants you to be happy.
Youngmathimus0 has quit [Ping timeout: 276 seconds]
<claw>
Ox0dea: magic
<claw>
Ox0dea: thank you very much
<Ox0dea>
Happy to help.
<claw>
i should lookup what this does :D
<Ox0dea>
Definitely.
cih_ has joined #ruby
rbennacer has joined #ruby
Bloomer has quit [Read error: Connection reset by peer]
darkf has quit [Quit: Leaving]
rbennacer has quit [Remote host closed the connection]
Bloomer has joined #ruby
sandstrom has quit [Read error: Connection reset by peer]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hounddog has joined #ruby
cih has quit [Ping timeout: 240 seconds]
tilllt has joined #ruby
Macaveli has joined #ruby
tulak has joined #ruby
cschorn has joined #ruby
voidDotClass has joined #ruby
<voidDotClass>
I'm having a really weird issue.
<jhass>
cool, thanks for the info
<voidDotClass>
doing tag = Account::TAGS.sample(1)[0], that works. but then if i do: tag[0] = tag[0].capitalize to capitalize the first letter, this then also capitalizes Account::TAGS[0]
<jhass>
well sure, ruby is pass by reference
Bloomer has quit [Ping timeout: 260 seconds]
<jhass>
and strings are mutable
tatsuo has quit [Remote host closed the connection]
tubulife- has quit [Ping timeout: 248 seconds]
<jhass>
why don't you just tag = Account::TAGS.sample.capitalize ?
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea>
a = ['foo']; a[0].upcase!; a # voidDotClass
<Ox0dea>
Derp.
<Ox0dea>
>> a = ['foo']; a[0].upcase!; a # voidDotClass
cih_ has quit [Read error: Connection reset by peer]
krz has quit [Ping timeout: 248 seconds]
cih has joined #ruby
william3 has quit [Remote host closed the connection]
bronson has joined #ruby
infra-re_ has joined #ruby
devbug has quit [Read error: Connection reset by peer]
cih has quit [Remote host closed the connection]
cih has joined #ruby
nopolitica has joined #ruby
infra-red has quit [Ping timeout: 240 seconds]
dtordable has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
william3 has joined #ruby
sandstrom has joined #ruby
casadei has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xeago has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
BSaboia has joined #ruby
last_staff1 has joined #ruby
davedev24 has joined #ruby
n00bdev has joined #ruby
naftilos76 has joined #ruby
last_staff has quit [Ping timeout: 256 seconds]
last_staff1 is now known as last_staff
nopolitica has quit [Quit: leaving]
fox2 has joined #ruby
krz has joined #ruby
dexter_ has joined #ruby
<fox2>
hi
<jhass>
hi
<fox2>
I got there or not, ruby help room)))
andrewvos has quit [Ping timeout: 250 seconds]
<jhass>
yes
davedev24 has quit [Ping timeout: 260 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<fox2>
Ollaaaaa, at last))))
n00bdev has quit [Ping timeout: 276 seconds]
BrunoSaboia has joined #ruby
jaiks has joined #ruby
<fox2>
could someone with Ukraine?
idritg has joined #ruby
<fox2>
or not?
<jhass>
?english
<ruby[bot]>
Please use english in this channel. If you need another language, you can find a list of alternative channels on http://ruby-community.com/pages/channels
rgtk has joined #ruby
<fox2>
I just said, I can in the English
marcon has quit [Ping timeout: 272 seconds]
<fox2>
it's not a problem
sgambino has joined #ruby
platzhirsch has quit [Ping timeout: 272 seconds]
mdw has quit [Quit: Sleeping Zzzzz]
Mon_Ouie has joined #ruby
roshanavand has quit [Remote host closed the connection]
atmosx has quit [Quit: This is aparting message!]
roshanavand has joined #ruby
AlexRussia has quit [Ping timeout: 248 seconds]
tatsuo has quit [Remote host closed the connection]
bithon has joined #ruby
<jhass>
so, if you have any question, just ask it
dlitvak has quit [Ping timeout: 252 seconds]
hostess has quit [Remote host closed the connection]
hostess has joined #ruby
Coldblackice has quit [Ping timeout: 265 seconds]
<fox2>
ok, Yes of course, I'm still not used to irssi, the first day of use
<jhass>
no worries
saneax is now known as saneax_AFK
<fox2>
)))
zotherstupidguy has quit [Ping timeout: 250 seconds]
andrewvos has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sdothum has joined #ruby
blackmesa has joined #ruby
<fox2>
I not so long ago started using the ruby, its first project wrote not so long ago, it is the second.
<fox2>
And there was a question sechas add Backbone, and I have no idea how best to make the search page
platzhirsch has joined #ruby
<fox2>
search page must be like airbnb.com/s
<jhass>
are you actually talking about rails?
<fox2>
yes
<jhass>
?rails
<ruby[bot]>
Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
Guest77869 is now known as BLuEGoD
<fox2>
ok sorry, if offtop
BLuEGoD is now known as Guest33653
fox2 has left #ruby [#ruby]
dlitvak has joined #ruby
stevemackinnon has quit [Remote host closed the connection]
framling has quit [Ping timeout: 240 seconds]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
william3 has quit [Remote host closed the connection]
johnmilton has joined #ruby
CloCkWeRX has quit [Ping timeout: 264 seconds]
nettoweb has joined #ruby
MrSamuel has quit [Quit: MrSamuel]
danielpk has joined #ruby
dlitvak has quit [Ping timeout: 250 seconds]
godzillaenlacasa has joined #ruby
andrewvos has quit [Ping timeout: 256 seconds]
dlitvak has joined #ruby
Zai00 has joined #ruby
Bloomer has quit []
dlitvak has quit [Ping timeout: 272 seconds]
greynetic has joined #ruby
danielpk has quit [Quit: danielpk]
Jardayn has joined #ruby
ElFerna_ has joined #ruby
dlitvak has joined #ruby
jam_ has joined #ruby
Xeago has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
paha80 has joined #ruby
adgtl has quit [Remote host closed the connection]
ElFerna_ has quit [Ping timeout: 250 seconds]
sgambino has joined #ruby
t0ggah has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jam_ has quit [Ping timeout: 276 seconds]
paha80 has quit [Client Quit]
andrewvos has joined #ruby
aryaching has joined #ruby
paha80 has joined #ruby
frozen3 has joined #ruby
paha80 has quit [Client Quit]
freerobby has joined #ruby
dexter_ has quit [Ping timeout: 260 seconds]
last_staff has quit [Quit: last_staff]
t0ggah has joined #ruby
joonty has quit [Ping timeout: 260 seconds]
paha80 has joined #ruby
paha80 has quit [Client Quit]
paha80 has joined #ruby
william3 has joined #ruby
ElFerna_ has joined #ruby
symm- has quit [Ping timeout: 252 seconds]
JDiPierro has joined #ruby
scepticulous has quit [Ping timeout: 276 seconds]
n00bdev has joined #ruby
valera has joined #ruby
william3 has quit [Remote host closed the connection]
william3 has joined #ruby
JDiPierro has quit [Remote host closed the connection]
JDiPierro has joined #ruby
DEA7TH has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
Xeago has joined #ruby
joonty has joined #ruby
paha80 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rickmasta has joined #ruby
jaiks has quit [Ping timeout: 240 seconds]
n00bdev has quit [Ping timeout: 240 seconds]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rdark has quit [Quit: WeeChat 1.0.1]
synthroid has joined #ruby
nfk has joined #ruby
duckpuppy has joined #ruby
Zai00 has quit [Quit: Zai00]
Jackneill has joined #ruby
zacstewart has joined #ruby
pawnbox has quit [Ping timeout: 256 seconds]
f4cl3y has joined #ruby
aufi has quit [Ping timeout: 256 seconds]
blackmesa has quit [Ping timeout: 250 seconds]
LoneHerm_ has joined #ruby
Ishido has quit [Read error: Connection reset by peer]
Ishido has joined #ruby
JDiPierro has quit [Remote host closed the connection]
LoneHerm_ has quit [Ping timeout: 240 seconds]
Guest33653 is now known as BLuEGoD
BLuEGoD is now known as Guest52615
goodcodeguy has joined #ruby
Mia has quit [Read error: Connection reset by peer]
ramortegui has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
codecop has joined #ruby
malconis has joined #ruby
malconis has quit [Remote host closed the connection]
bahar has quit [Changing host]
bahar has joined #ruby
blur3d has quit [Quit: blur3d]
mdw has joined #ruby
ledestin has joined #ruby
andrewvos has quit [Ping timeout: 248 seconds]
Macaveli has joined #ruby
malconis has joined #ruby
dlitvak_ has joined #ruby
dlitvak has quit [Ping timeout: 264 seconds]
ledestin has quit [Client Quit]
arbys has joined #ruby
millerti has joined #ruby
ziyadb has quit [Quit: Connection closed for inactivity]
<platzhirsch>
yeah, didn't realize it's .. what's the mathematical terms when you can swap the sides
<adaedra>
for your case, you may use the class names.
<adaedra>
(as strings.)
william3 has joined #ruby
<platzhirsch>
that it's not symmetric
<platzhirsch>
yeah, I guess so
<Papierkorb>
platzhirsch: #=== is not commutative
<Papierkorb>
platzhirsch: (that's the term you were thinking of though)
<platzhirsch>
commutative
<platzhirsch>
ah it's different because it's not a relation ? Papierkorb
ElFerna_ has joined #ruby
<Papierkorb>
platzhirsch: I'd say (on thin ice though) that it's a relation, but "foo" is related to a String, whereas String may not be related to "foo". (Don't quote me on that Oo; )
<adaedra>
#=== meaning depends on the object you call it on.
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
last_staff has joined #ruby
jespada has joined #ruby
<ljarvis>
honestly everything else is superfluous. The behaviour *could* be anything. It's an implementation detail and it's merely a method call. You can change it, if you'd like
<adaedra>
3D-3D-3D
forgottenleaf has joined #ruby
zast has joined #ruby
zast has left #ruby [#ruby]
fourq|away is now known as fourq
railsForDaiz has quit [Ping timeout: 250 seconds]
kedare has quit [Ping timeout: 248 seconds]
<Papierkorb>
it did confuse me at first when I had something like "case foo.class; when String ..."
M-Kodo has joined #ruby
pandaant has quit [Remote host closed the connection]
suchness has joined #ruby
senayar_ has joined #ruby
<jhass>
>> case String; when ->(k) { k == String }; "Don't actually do this"; end
askhat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Ping timeout: 240 seconds]
ledestin has quit [Ping timeout: 250 seconds]
AlphaAtom has joined #ruby
arthropododo has joined #ruby
last_staff has quit [Quit: last_staff]
underplank has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kam270 has quit [Ping timeout: 248 seconds]
sgambino has joined #ruby
andrewvos has joined #ruby
x77686d has joined #ruby
jaiks has quit [Ping timeout: 264 seconds]
dlitvak has quit [Ping timeout: 240 seconds]
askhat has joined #ruby
rbennacer has joined #ruby
forgottenleaf has quit [Ping timeout: 264 seconds]
arlek has quit [Ping timeout: 256 seconds]
baweaver has joined #ruby
underplank has quit [Quit: underplank]
p1k has joined #ruby
ponga has joined #ruby
rikkipitt has quit [Quit: Leaving...]
rippa has joined #ruby
mlehrer has joined #ruby
aufi has joined #ruby
dlitvak has joined #ruby
anisha has quit [Quit: Leaving]
BSaboia has quit [Ping timeout: 276 seconds]
BSab has quit [Ping timeout: 276 seconds]
rodfersou is now known as rodfersou|lunch
idefine has joined #ruby
rbennacer has quit [Ping timeout: 240 seconds]
M-mistake has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
dexter_ has joined #ruby
jaiks has joined #ruby
clauswitt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tvw has quit []
mfb2 has joined #ruby
dlitvak has quit [Remote host closed the connection]
Sucks has joined #ruby
M-shine has quit [Quit: node-irc says goodbye]
casadei has quit [Remote host closed the connection]
railsForDaiz has quit [Read error: Connection reset by peer]
tomchapin has quit [Read error: Connection reset by peer]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ElFerna_ has quit [Ping timeout: 240 seconds]
mfb2 has quit [Remote host closed the connection]
skade has joined #ruby
mfb2 has joined #ruby
synthroid has quit [Remote host closed the connection]
axisys has quit [Read error: Connection reset by peer]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
Guest72401 is now known as BLuEGoD
BLuEGoD is now known as Guest75939
railsForDaiz has joined #ruby
mfb2 has quit [Remote host closed the connection]
sandstrom has quit [Quit: My computer has gone to sleep.]
mfb2 has joined #ruby
Rickmasta has joined #ruby
yardenbar has quit [Ping timeout: 250 seconds]
flughafen_ has quit [Ping timeout: 240 seconds]
unl0ckd has quit [Quit: I've gone to sleep. ZZZzzz…]
norc_ has joined #ruby
pdoherty has joined #ruby
dlitvak has joined #ruby
solocshaw has joined #ruby
sandstrom has joined #ruby
andrewvos has quit [Ping timeout: 240 seconds]
tjohnson has joined #ruby
__apr__ has joined #ruby
__apr__ has joined #ruby
<__apr__>
hi @all, quick question: Why this "double ckeck"? params[:force].nil? && params['force'].nil?
sgambino has joined #ruby
<__apr__>
isn't that the same as params[:force].nil? ?
diegoviola has joined #ruby
<havenwood>
__apr__: twice, but unless it changes between the first and the second it's the same ;)
<oz>
__apr__: assuming Rails/ActiveSupport, params is a Hash where :force and 'force' are the same key.
pawnbox has quit [Ping timeout: 252 seconds]
<__apr__>
havenwood, heh, yeah, it shouldn't change
casadei has joined #ruby
<__apr__>
oz, then any clue why the dev wrote that?
<havenwood>
__apr__: ah, we shouldn't assume Rails - I didn't notice the first was a Symbol and second was a String on first glance.
<__apr__>
havenwood, it's not rails, pure ruby
<oz>
__apr__: like havenwood wrote, we shouldn't assume Rails. :)
dlitvak has quit [Client Quit]
<__apr__>
params is a Hash
tubulife- has quit [Ping timeout: 240 seconds]
<__apr__>
but not related with rails in any way
<havenwood>
__apr__: Rails has ActiveSupport::HashWithIndifferentAccess but Ruby Hashes treat Symbols and Strings as different.
<havenwood>
__apr__: It seems the key might be a Symbol or a String. I dunno why.
<__apr__>
havenwood, ah! was completely unaware of that
dlitvak has joined #ruby
<__apr__>
havenwood, well, makes sense, I'm reading the source code for a library. The lib developer might want to support the user providing params as string or symbol
infra-re_ has quit [Remote host closed the connection]
<__apr__>
ok, thanks for the clarification
<oz>
that's probably the best explanation :)
<__apr__>
ruby has some strange stuff... I come from python and these things are mind bending ;)
dubek has joined #ruby
M-mistake has quit [Remote host closed the connection]
M-Kodo has quit [Remote host closed the connection]
decoponio has joined #ruby
FooMunki has quit [Quit: FooMunki]
FooMunki has joined #ruby
__apr__ has quit [Quit: Leaving]
DmitryBochkarev has joined #ruby
zotherstupidguy has joined #ruby
flughafen_ has joined #ruby
AlexRussia has joined #ruby
underplank has joined #ruby
saneax is now known as saneax_AFK
aegis3121 has quit [Ping timeout: 272 seconds]
mfb2 has quit [Read error: Connection reset by peer]
mfb2 has joined #ruby
freerobby has quit [Quit: Leaving.]
stannard_ has joined #ruby
freerobby has joined #ruby
tomchapin has joined #ruby
bronson has joined #ruby
codecop has quit [Remote host closed the connection]
nettoweb has joined #ruby
arlek has joined #ruby
Zai00 has joined #ruby
idefine has quit [Remote host closed the connection]
agentmeerkat has joined #ruby
stannard has quit [Ping timeout: 256 seconds]
wprice has joined #ruby
M-shine has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
idefine has joined #ruby
chouhoulis has joined #ruby
ixti has joined #ruby
mlehrer has quit [Ping timeout: 250 seconds]
my_cool_nick has joined #ruby
sneakerhax has quit [Quit: back later]
jaiks has quit [Quit: Leaving]
jaiks has joined #ruby
moos3_ has joined #ruby
moos3_ has quit [Client Quit]
moos3 has joined #ruby
lxsameer has quit [Quit: Leaving]
moos3 has quit [Client Quit]
rikkipitt has joined #ruby
gidlf has joined #ruby
moos3 has joined #ruby
moos3 has quit [Client Quit]
casadei has quit []
M-shine has quit [Remote host closed the connection]
beanHolez has joined #ruby
moos3 has joined #ruby
beanHolez has left #ruby [#ruby]
beanHolez has joined #ruby
chouhoulis has quit [Ping timeout: 248 seconds]
<beanHolez>
I am trying to determine the best stylistic choice between two ways of passing some arbitrary arguments. I most often see calls with hashes that identify what the option/arg is: some_method({a: 1, b:2})
chouhoulis has joined #ruby
TomyLobo has joined #ruby
aufi has quit [Ping timeout: 260 seconds]
dlitvak has quit [Remote host closed the connection]
cjbottaro has joined #ruby
<beanHolez>
I have a method that will take many different kinds of arguments, and have implemented a case expression to which all arguments are passed, and they are identified in that way. That leaves you with the ability to pass the arguments in any order you'd like
cjbottaro has quit [Max SendQ exceeded]
idefine has quit [Ping timeout: 250 seconds]
JDiPierro has quit [Remote host closed the connection]
dlitvak has joined #ruby
dlitvak has quit [Remote host closed the connection]
<jhass>
beanHolez: given only supporting ruby 2.1+ is no issue, I prefer keyword args these days
Azure has quit [Ping timeout: 256 seconds]
<adaedra>
kwargs are love, kwargs are life.
<jhass>
guessing which argument is meant as what only gives headaches and a harder to use and understand interface in the long run, IME
mlehrer has quit [Quit: Leaving]
railsForDaiz has joined #ruby
<beanHolez>
Sold, thanks all
pawnbox has joined #ruby
jaiks has quit [Quit: Leaving]
jaiks has joined #ruby
<havenwood>
Speaking of 2.0... EoL a week from tomorrow!
* havenwood
chants KWARGS, KWARGS!
<havenwood>
And goodbye patch levels as part of the version.
skade has quit [Quit: Computer has gone to sleep.]
<diegoviola>
havenwood: there won't be ruby with patchlevels anymore, or just for the 2.0 version?
<adaedra>
havenwood: 2.0 EOL?
<adaedra>
In that case
<havenwood>
diegoviola: Ruby versions used to include the patch level. When Ruby adopted semantic versioning they stopped putting the patch level in the version.
cih has quit [Read error: Connection reset by peer]
agentmeerkat has quit [Ping timeout: 248 seconds]
JDiPierr_ has quit [Remote host closed the connection]
ElFerna_ has joined #ruby
tomchapin has joined #ruby
cih has joined #ruby
jaiks has quit [Ping timeout: 260 seconds]
devbug has joined #ruby
Pumukel has joined #ruby
Macaveli has joined #ruby
underplank has joined #ruby
benlieb has quit [Ping timeout: 252 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
<jhass>
adaedra: uh well, we still have a week or so
<jhass>
24th I think?
atmosx has joined #ruby
senayar_ has quit [Read error: Connection reset by peer]
openstruct has quit [Remote host closed the connection]
<havenwood>
"Ruby 2.0.0 is now under the state of the security maintenance phase, until Feb. 24th, 2016. After the date, maintenance of Ruby 2.0.0 will be ended."
adgtl has quit [Remote host closed the connection]
UtkarshRay has quit [Quit: Leaving]
minimalism has joined #ruby
openstruct has joined #ruby
Don_John has joined #ruby
<shevy>
die old ruby, die!
aegis3121 has quit [Ping timeout: 256 seconds]
william3 has quit [Remote host closed the connection]
benlieb has joined #ruby
idefine has quit [Remote host closed the connection]
<Terens>
test
<havenwood>
Terens: hi
<shevy>
Terens worked!
<shevy>
most tests here failed
<shevy>
but yours one was finally one that has worked
<TomyLobo>
i'm using pp on a complex protobuf structure and it ends up in one line. what's a better way to dump those in a readable way?
mfb2 has quit [Remote host closed the connection]
<shevy>
I think you can control the pp output through some threshold value ... do you have an example for the structure? you mean the @ivars output by the way?
pdoherty has joined #ruby
antgel has quit [Ping timeout: 240 seconds]
Ishido has joined #ruby
mfb2 has joined #ruby
openstruct has quit [Ping timeout: 250 seconds]
<havenwood>
TomyLobo: You could define a pretty_print(pp) method in the protobuf structure class. "It takes an argument pp which is an instance of the class PP. The method should use PP#text, PP#breakable, PP#nest, PP#group and PP::PPMethods#pp to print the object."
<eam>
is ruby a good language for attracting venture capital?
dlitvak has quit [Remote host closed the connection]
rakm has joined #ruby
dopie has joined #ruby
railsForDaiz has quit [K-Lined]
Ox0dea has joined #ruby
<shevy>
github says yes!
sandstrom has joined #ruby
<volty>
it's the ideas that attract the capital, not the language in itself
wprice has quit [Ping timeout: 272 seconds]
Shaboum has quit [Quit: WeeChat 1.4]
Sucks has joined #ruby
Shaboum has joined #ruby
valera has quit [Quit: leaving]
wnd has joined #ruby
wprice has joined #ruby
Ox0dea has quit [Ping timeout: 240 seconds]
elifoster has quit [Ping timeout: 250 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
<tubbo>
volty: it's the execution that attract the capital, not the idea in itself.
<tubbo>
attracts*
andrewvos has quit [Ping timeout: 272 seconds]
<volty>
execution of what ?
DoubleMalt has joined #ruby
adgtl has quit [Remote host closed the connection]
Dios|afk has joined #ruby
firstdayonthejob has joined #ruby
KensoDev has joined #ruby
ElFerna_ has joined #ruby
<tubbo>
execution of an idea
<volty>
you need money for the execution
casadei has joined #ruby
platzhirsch has left #ruby [#ruby]
dretnx has quit [Quit: Page closed]
railsForDaiz has joined #ruby
moos3 has joined #ruby
mhoungbo has quit [Quit: Quitte]
goodcodeguy has joined #ruby
Sucks has quit [Read error: Connection reset by peer]
rbennacer has quit [Remote host closed the connection]
evidex has quit [Ping timeout: 248 seconds]
araujo has quit [Quit: Leaving]
BSaboia has joined #ruby
Sucks has joined #ruby
cih has quit [Remote host closed the connection]
moos3 has quit [Ping timeout: 240 seconds]
finisherr has joined #ruby
Don_John has quit [Read error: Connection reset by peer]
moos3 has joined #ruby
aegis3121 has joined #ruby
<TomyLobo>
pp my_protobuf_object.to_hash
<TomyLobo>
that worked :)
<aegis3121>
Hey all. I'm attempting to override a module method, and having a hard time of it. I'm not trying to override it as an instance method, but as an actual module level method. I recognize what I'm doing is...very shady (and probably shouldn't be done). https://gist.github.com/jon2992/bac594422a8ed33ceb62
dmolina has quit [Ping timeout: 260 seconds]
aibot has quit [Ping timeout: 260 seconds]
s00pcan_ has quit [Remote host closed the connection]
s00pcan_ has joined #ruby
chouhoulis has quit [Remote host closed the connection]
Ox0dea has joined #ruby
chouhoulis has joined #ruby
Don_John has joined #ruby
<volty>
so ?
<aegis3121>
It doesn't use my method?
moeabdol has joined #ruby
dopamean_ has joined #ruby
<volty>
who doesn't use it ?
<aegis3121>
If I call I18n.localize, it continues to use the method built into I18n.
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
[BNC]WizJin has joined #ruby
<jhass>
aegis3121: module_function creates a copy and I guess does nothing when called a second time
PedramT has quit [Ping timeout: 250 seconds]
<aegis3121>
Does anyone know of a way to re-define a method with the module as the receiver?
<volty>
aegis3121: you should module ....; def self.localize()
dopie has quit [Quit: This computer has gone to sleep]
openstruct has quit [Remote host closed the connection]
<volty>
>> module I18n; def self.localize(*args); puts 'I can do other things too'; end; end; I18n.localize
<ruby[bot]>
volty: # => I can do other things too ...check link for more (https://eval.in/519717)
mfb2 has joined #ruby
PedramT has joined #ruby
PedramT has quit [Remote host closed the connection]
* aegis3121
facepalms
Spleeze has joined #ruby
Dios has joined #ruby
<aegis3121>
Thanks, I'll see if that resolves in our situation.
<volty>
for sure & yw
rgtk has quit [Remote host closed the connection]
moos3 has quit [Ping timeout: 248 seconds]
synthroid has quit [Remote host closed the connection]
Dios|afk has quit [Ping timeout: 252 seconds]
<mfaeh>
#javascipt
rgtk has joined #ruby
mfb2 has quit [Ping timeout: 252 seconds]
<shevy>
do not submit to the evil
sgambino has joined #ruby
casadei has quit [Remote host closed the connection]
tildes has joined #ruby
aibot has joined #ruby
yatish27 has joined #ruby
moeabdol has quit [Ping timeout: 265 seconds]
hbr-br has joined #ruby
idefine_ has quit [Remote host closed the connection]
wnd has quit [Ping timeout: 240 seconds]
casadei has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 1.3]
mfaeh has quit []
pdoherty has quit [Ping timeout: 276 seconds]
mfaeh has joined #ruby
Hounddog has quit [Ping timeout: 250 seconds]
<hbr-br>
Hello All, I have a small question, and I´d like to know if somebody could help with a (ruby + json) issue.
Mon_Ouie has joined #ruby
openstruct has joined #ruby
mfaeh has quit [Remote host closed the connection]
mfaeh has joined #ruby
<hbr-br>
First of all, Im pretty much newbie in Ruby, just having my first contact with it.
tubulife- has quit [Ping timeout: 272 seconds]
<shevy>
best is to give it a try and just ask hbr-br - also apeiros speaks your native language possibly!
<jhass>
?ask
<ruby[bot]>
Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
nettoweb has quit [Max SendQ exceeded]
shlomo has joined #ruby
<shlomo>
p
<jhass>
q
<shevy>
r
<hbr-br>
Im trying to fix a problem in we found out with an app we have it here. I have data to be dispatched to remote clients . This is currently done with JSON. However, depending on the way the app is configured this JSon objets can increases a lot (300Mb for instance).
<volty>
and do not write a whole book with all the premises before asking, your state of spirit, what you have eat & drink etc etc
<shevy>
volty don't give them new ideas :D
<jhass>
?json_object
<ruby[bot]>
jhass: I don't know anything about json_object
<jhass>
mh
<jhass>
?jsonobject
<ruby[bot]>
there is no such thing as a JSON object. You either have a String containing serialized JSON, or you have ruby objects (usually Hashes/Arrays/Strings). Which is it?
Zai00 has quit [Quit: Zai00]
<shevy>
the bot talks like jhass...
<jhass>
!fact ln json_object jsonobject
<ruby[bot]>
jhass: I already know that jsonobject is there is no such thing as a JSON object. You either have a String containing serialized JSON, or you have ruby objects (usually Hashes/Arrays/Strings). Which is it?
<hbr-br>
it is a string. sorry, I huge string
<jhass>
!fact ln jsonobject json_object
<ruby[bot]>
jhass: I will remember that jsonobject is also called json_object.
nettoweb has joined #ruby
<jhass>
do you generate the string or read it from somewhere?
yatish27 has quit [Remote host closed the connection]
<jhass>
do you need to parse it in any way or just pass on?
mdw has joined #ruby
BSaboia has quit [Ping timeout: 252 seconds]
<hbr-br>
I generate that string
kirun has joined #ruby
<jhass>
I haven't seen a streaming JSON builder for ruby, so I'm afraid you have to live with that memory usage
<hbr-br>
it is actually a job information Im passing to clients to perform that job.
<jhass>
unless you can for example keep the data in a database and let the job itself fetch it
x77686d has joined #ruby
moos3 has joined #ruby
william3 has joined #ruby
<jhass>
if your concern is transfer speed, gzip can be quite effective on json data
<jhass>
but that won't help anything for memory usage, probably on the contrary
Asher has quit [Quit: Leaving.]
<eam>
jhass: I haven't used it but I've seen yajl ruby bindings
<jhass>
oh that has streaming APIs?
<eam>
yeah (at least the C lib does)
<jhass>
nice
Inv1s1ble has joined #ruby
<Inv1s1ble>
Is the ruby gems API down? I'm getting 503s
<aep>
even if i told it not to, it would still store useless characters in some random coding
<aep>
well thats what i'm doing now anyway :/
goodcodeguy has joined #ruby
<apeiros>
ok, let's start at the beginning - how come you don't know the encoding of your string?
LoneHerm_ has joined #ruby
<aep>
i dont want to go there. thanks tho
infra-red has quit [Ping timeout: 256 seconds]
patchedmonkey has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros>
ok. here's how you break your data: str.force_encoding('utf-8').gsub(/[\x80-\xff]+/, '')
<baweaver>
?xy
<ruby[bot]>
it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
Jet4Fire has joined #ruby
Jet4Fire has quit [Client Quit]
zackzorman has joined #ruby
<apeiros>
IMO a bad idea to do, but seems to me you don't care about having an actually proper solution. the above will get rid of non-ascii chars as asked.
<aep>
cool, thanks
<zackzorman>
What's with Rails development on Windows
<zackzorman>
I'm wondering how many people are deving on Windows?
<zackzorman>
I'm writing an article on Ruby on Rails Development, Industry, and Windows
synthroid has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
<apeiros>
you can try and ask in the actual rails channel (#rubyonrails)
<apeiros>
I wouldn't be surprised if nobody has such a statistic at hand, though
<zackzorman>
It's pretty empty
mdw has joined #ruby
<apeiros>
600 people is pretty empty?
doctorly has joined #ruby
blaxter has quit [Quit: foo]
stannard has joined #ruby
Guest33 has joined #ruby
nettoweb has joined #ruby
<doctorly>
Hello, I am sending in an application for a first job. I need to send ruby samples as part of the prescreening process. I have two that I can choose from, can someone look over these two examples and tell me which would be a better candidate?
dangerousdave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aibot has quit [Read error: Connection reset by peer]
saneax is now known as saneax_AFK
dlitvak has quit [Ping timeout: 256 seconds]
dlitvak__ has joined #ruby
saneax_AFK is now known as saneax
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aibot has joined #ruby
godzillaenlacasa has joined #ruby
infra-re_ has quit [Ping timeout: 264 seconds]
roshanavand has quit [Ping timeout: 240 seconds]
akkad has joined #ruby
beanHolez has joined #ruby
sgambino has joined #ruby
CloCkWeRX has quit [Remote host closed the connection]
railsForDaiz has quit [Ping timeout: 252 seconds]
stannard has quit [Ping timeout: 276 seconds]
dlitvak_ has quit [Ping timeout: 276 seconds]
Sucks has quit [Remote host closed the connection]
tulak has joined #ruby
RegulationD has quit [Remote host closed the connection]
nerium has joined #ruby
ur5us has joined #ruby
beanHolez has quit [Ping timeout: 264 seconds]
doctorly_ has joined #ruby
juddey has joined #ruby
doctorly has quit [Ping timeout: 240 seconds]
TomPeed has joined #ruby
rodfersou has quit [Quit: leaving]
doublemalt_ has joined #ruby
mhoungbo has quit [Ping timeout: 260 seconds]
railsForDaiz has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
karmatr0n has joined #ruby
d10n-work has joined #ruby
yfeldblum has joined #ruby
ur5us has quit [Ping timeout: 264 seconds]
hbr-br has quit [Quit: ChatZilla 0.9.92 [Firefox 44.0.2/20160209234642]]
doctorly has joined #ruby
DoubleMalt has quit [Ping timeout: 250 seconds]
rgtk has joined #ruby
doctorly_ has quit [Ping timeout: 250 seconds]
saneax is now known as saneax_AFK
roshanavand has joined #ruby
doublemalt_ has quit [Ping timeout: 250 seconds]
idefine has joined #ruby
ldnunes has quit [Ping timeout: 276 seconds]
infra-red has joined #ruby
stannard has joined #ruby
casadei has joined #ruby
cih has joined #ruby
dotix has joined #ruby
mfaeh has quit []
dotix has left #ruby [#ruby]
gregf has quit [Quit: WeeChat 1.4]
infra-r__ has quit [Ping timeout: 240 seconds]
asprillia has joined #ruby
roshanavand has quit [Ping timeout: 250 seconds]
pdoherty has quit [Ping timeout: 250 seconds]
doctorly has quit [Quit: leaving]
ur5us has joined #ruby
peitera has quit [Quit: acy]
roshanavand has joined #ruby
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gregf has joined #ruby
karmatr0n has quit [Ping timeout: 264 seconds]
pawnbox has quit [Remote host closed the connection]
haylon has quit [Quit: WeeChat 1.3]
<TomyLobo>
i'm trying to use httparty to put a file somewhere. unfortunately, it seems to require CURLOPT_UPLOAD, which tells it to use an "Expect: 100-Continue" header. is there any way to do that in ruby?
arlek has quit [Read error: Connection reset by peer]
stannard has quit [Ping timeout: 264 seconds]
<TomyLobo>
preferably with httparty as i have everything else set up for that
<havenwood>
TomyLobo: Something like that ^, see HTTParty docs
arlek has joined #ruby
<TomyLobo>
that doesnt look right
<al2o3-cr>
seems about right
<maverous>
If I have a hashmap where my values are arrays of ints (nonrepeating), how can I find the key which has the array that contains a certain int?
<shevy>
Deas I usually recompile openssl into /usr prefix ./config --prefix=/usr --openssldir=/etc/ssl --libdir=lib shared zlib-dynamic && make && make install
<shevy>
then recompile ruby into /usr prefix too; in theory you could try to just go into ext/openssl and try to run the Makefile again though
dlitvak has quit [Remote host closed the connection]
edwinvdgraaf has quit [Ping timeout: 272 seconds]
moeabdol has quit [Ping timeout: 264 seconds]
LoneHerm_ has quit [Remote host closed the connection]
MrSamuel has quit [Quit: MrSamuel]
rbennacer has joined #ruby
jxs_ has quit [Remote host closed the connection]
<Deas>
...yay? more stuff to build then..
<Deas>
kinda confusing because i already have openssl, pretty outdated sure, but should work anyway :S
synthroid has quit [Remote host closed the connection]
<Deas>
shevy: config or configure?
<Deas>
just makin' sure
juddey has quit [Ping timeout: 264 seconds]
<shevy>
they use some custom config script rather than oldschool configure
<Deas>
is that for ruby or ssl ?
edwinvdg_ has quit [Remote host closed the connection]
bithon has joined #ruby
<shevy>
for ssl
frozen3 has quit [Remote host closed the connection]
<shevy>
the ruby people are using oldschool configure :)
<Deas>
ah
<shevy>
python folks too... perl folks are a bit weird... ./configure.gnu --prefix=/usr -Dusedevel -Dstatic_ext='Data/Dumper Fcntl IO POSIX'
MrSamuel has joined #ruby
<Deas>
^_^
<Deas>
sounds like you have a whole arsenal of build scripts there ;o
infra-red has quit [Remote host closed the connection]
<jimeh>
Eiam: nope, I use rbenv to install my own versions of Ruby and never actually use the system one...
<Eiam>
jimeh: yeah my initial response to this article is "don't use system libraries"
<Eiam>
jimeh: so I was just curious if it ended up actually being a big deal for anyone else
<jimeh>
Eiam: probably just for people who rarely uses Ruby I'd imagine...
tatsuo has quit [Remote host closed the connection]
<jimeh>
Eiam: most people I know who uses Ruby a lot or do Ruby for work, install specific versions via rbenv or rvm, including myself... And I'd never heard of that issue till now... lol :)
<shevy>
makes you wonder why apple restricted the superuser account altogether
elifoster has joined #ruby
<Eiam>
shevy: because people gave away the keys to the kingdom without a second thought?
<Eiam>
thereby indicating that people should generally not be trusted with the keys because they don't understand what they are giving up. In exchange, if you are savvy you can go get the keys and do as you wish. but its much more conscious
<jimeh>
Apple have been doing weird shit with osx for about 5 years now at least...
<Eiam>
jimeh: right I mean, I used rvm for years and now chruby
idefine has quit [Remote host closed the connection]
<Eiam>
jimeh: so the article was a bit like "well, duh, same goes for Python.. don't use system versions.."
<jimeh>
Yeah, so true... lol
<shevy>
it would almost fit to debian + system packages too! :)
<jimeh>
And I haven't heard of chruby before, I'll have to check it out :)
<Eiam>
i moved from rvm to chruby a few months ago
mfb2 has joined #ruby
<jimeh>
Personally I'm pretty sure I'll eventually need to move away from osx at some point when it's essentially becomes a mouse driven iOS version that totally forsakes power users, thankfully the move is happening slowly for now... lol
<jimeh>
Thanks havenwood
ElFerna has joined #ruby
<jimeh>
Eiam: right, it's even more basic than rbenv... More or less same thing as nvm is for Node.js :)
toretore has joined #ruby
tatsuo has joined #ruby
<shevy>
jimeh \o/
<shevy>
as long as you are comfortable with the commandline
<shevy>
and perhaps ruby scripts to help
<jimeh>
I think I'll stick to rbenv for the time being at least, specially since I like it's auto switching which chruby doesn't seem to have....
mfb2 has quit [Remote host closed the connection]
hxegon is now known as hxegon_AFK
<havenwood>
jimeh: chruby supports autoswitching with .ruby-version files
<shevy>
"Merge pull request #3616 from jgaskins/jruby-9050"
<shevy>
he is everywhere!
<jimeh>
I'll give it a when I got some free time... Would force me sort out envs in my Emacs setup too, as right now I add rbenv's shim path to the exec-path :P
<shevy>
I don't know how he manages, I am way out with keeping my own projects up to date myself, yet alone assist others with their projects :(
bronson has quit [Remote host closed the connection]
<jimeh>
Haha... So he is shevy :)
idefine has quit [Ping timeout: 276 seconds]
<jimeh>
Agreed, I'm way behind on my own projects too...
openstruct has joined #ruby
openstruct has quit [Changing host]
openstruct has joined #ruby
symm- has quit [Quit: Leaving...]
RobertBirnie has joined #ruby
htmldrum has joined #ruby
RobertBirnie has quit [Client Quit]
<jimeh>
And top thing I want to do atm is sort out a decent Rubocop autocorrect thing for Emacs... Which means one more project to eventually fall behind on... lol
agentmeerkat has joined #ruby
<jimeh>
</rant>
<jimeh>
:P
wprice_ has joined #ruby
rikkipitt has joined #ruby
openstruct has quit [Remote host closed the connection]
pawnbox has joined #ruby
s00pcan_ has quit [Ping timeout: 265 seconds]
bMalum has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roshanavand has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wprice has quit [Ping timeout: 250 seconds]
wprice_ is now known as wprice
idefine has joined #ruby
bithon has quit [Ping timeout: 248 seconds]
x77686d has joined #ruby
s00pcan_ has joined #ruby
ta has quit [Read error: Connection reset by peer]
arlek_ has joined #ruby
ta has joined #ruby
<shevy>
I hope for the day until someone tells me how to easily customize rubocop
arlek has quit [Ping timeout: 256 seconds]
ramortegui has quit [Remote host closed the connection]
postmodern has joined #ruby
pawnbox has quit [Ping timeout: 272 seconds]
symm- has joined #ruby
<jimeh>
Yeah, that'd be nice...
railsForDaiz has quit [Ping timeout: 272 seconds]
wldcordeiro has quit [Ping timeout: 265 seconds]
idefine has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<jimeh>
For now I don't really need to care though, my new client has a established Rubocop config some godly being created, and all code needs to adhere to it the CI build breaks... So Rubocop's autocorrect feature has become my best friend... lol
yfeldblum has quit [Remote host closed the connection]
tatsuo has quit [Read error: Connection reset by peer]
<jimeh>
*or the CI build breaks
tatsuo_ has joined #ruby
helpa has quit [Remote host closed the connection]
ICantCook has quit [Quit: bye]
helpa has joined #ruby
bMalum has joined #ruby
JDiPierro has quit [Remote host closed the connection]
ICantCook has joined #ruby
tatsuo_ has quit [Remote host closed the connection]
tatsuo has joined #ruby
bMalum has quit [Client Quit]
crdpink2 has quit [Quit: q term]
resin has quit [Quit: leaving]
hxegon_AFK has quit [Quit: BRB]
<shevy>
yeah it's the thing I like about rubocop
william3 has quit [Remote host closed the connection]
JDiPierro has joined #ruby
crdpink has joined #ruby
BSaboia has quit [Ping timeout: 256 seconds]
zenlot1 has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LoneHermit has joined #ruby
zenlot has quit [Ping timeout: 265 seconds]
JDiPierro has quit [Ping timeout: 265 seconds]
duckpuppy has quit [Ping timeout: 250 seconds]
william3 has joined #ruby
mickey_mouse_3 has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
pibby has quit [Quit: leaving]
baweaver has joined #ruby
polishdub has quit [Quit: Leaving]
beanHolez has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 260 seconds]
Guest77025 is now known as BLuEGoD
skade has joined #ruby
casadei has quit [Remote host closed the connection]
BLuEGoD is now known as Guest28968
mfb2 has joined #ruby
mickey_mouse_2 has quit [Ping timeout: 264 seconds]
<pizzaops>
How does one get a Ruby hash from a Psych::Nodes::Document object?
FernandoBasso has quit [Quit: Leaving]
<pizzaops>
I have YAML as a string, and I see that I can get a hash directory by doing YAML::load(mystringinthisvar)
zacstewart has quit [Ping timeout: 250 seconds]
<pizzaops>
But when I do YAML.parse(mystringinthisvar) i get a Psych::Nodes::Document, and I'm just curious how one would in theory get a hash from it.
mfb2 has quit [Remote host closed the connection]
Pumukel has quit [Quit: ChatZilla 0.9.92 [Firefox 44.0.2/20160210153822]]
william3 has quit [Ping timeout: 272 seconds]
baweaver has quit [Ping timeout: 240 seconds]
mfb2 has joined #ruby
pdoherty has joined #ruby
dopamean_ has quit [Ping timeout: 250 seconds]
stannard has quit [Remote host closed the connection]
wldcordeiro has joined #ruby
rikkipitt has quit [Quit: Leaving...]
mfb2 has quit [Remote host closed the connection]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
railsForDaiz has joined #ruby
Grays0n has quit [Ping timeout: 260 seconds]
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
hxegon has joined #ruby
dhollinger has quit [Quit: WeeChat 1.4]
shanemcd has joined #ruby
mfb2 has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
CihanKaygusuz has quit [Quit: Connection closed for inactivity]
karapetyan has quit [Remote host closed the connection]
dravine has quit [Ping timeout: 250 seconds]
baweaver has joined #ruby
stannard has joined #ruby
mfb2 has quit [Remote host closed the connection]
c0ncealed has quit [Remote host closed the connection]
<darix>
pizzaops: if my yaml is a hash
<darix>
i get hash back
<darix>
hmm works with load_file but not with parse
<darix>
pizzaops: YAML.load does what you want. but you should look in the API docs. there was something security related to the API difference
stannard has quit [Remote host closed the connection]
mg^ has joined #ruby
stannard has joined #ruby
tomaz_b has quit [Ping timeout: 252 seconds]
c0ncealed has joined #ruby
<al2o3-cr>
pizzaops: you could use #to_ruby
yfeldblum has joined #ruby
<pizzaops>
@al2o3-cr <3
edwinvdgraaf has joined #ruby
<al2o3-cr>
but it defeats the object really :p
BSaboia has joined #ruby
<pizzaops>
al2o3-cr: I was just curious. Also lol at it being called "to_ruby".
edwinvdgraaf has quit [Client Quit]
rbennacer has quit [Ping timeout: 248 seconds]
Xeago has quit [Remote host closed the connection]
stannard has quit [Ping timeout: 240 seconds]
despai has quit [Quit: This computer has gone to sleep]
yfeldblum has quit [Remote host closed the connection]
spider-mario has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
robbyoconnor has quit [Changing host]
robbyoconnor has joined #ruby
robbyoconnor has quit [Client Quit]
rbennacer has joined #ruby
shanemcd has quit [Remote host closed the connection]
bronson has joined #ruby
railsForDaiz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mfb2 has joined #ruby
shanemcd has joined #ruby
symm- has quit [Quit: Leaving...]
idefine has joined #ruby
zach2825 has joined #ruby
<zach2825>
hi
<zach2825>
nybody here know how to tell bundler to use ruby version 2.0.0 no matter what i do it tries to use 1.9 which is breaking things.
greynetic has joined #ruby
<zach2825>
does anybody here know how to tell bundler to use ruby version 2.0.0 no matter what i do it tries to use 1.9 which is breaking things.
<aegis3121>
Are you using anything like rvm/rbenv/others to manage your ruby versions?
<zach2825>
rvm
<jhass>
zach2825: post your rvm info to a gist
bronson has quit [Ping timeout: 256 seconds]
<jhass>
also append the output of type -a bundler
<jhass>
or type -a bundle rather
despai has joined #ruby
BSaboia has quit [Read error: Connection reset by peer]
<zach2825>
when i try to run bundle -a i get "Unknown switches '-a' "
Eiam_ has joined #ruby
<aegis3121>
He meant, literally "type -a bundle" as your command (I believe)
<al2o3-cr>
zach2825: `type -a bundler` is a command