havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.0; 2.2.4; 2.1.8; 2.0.0-p648: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
<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]
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
intrigueD has joined #ruby
Xeago has joined #ruby
casadei_ has quit [Ping timeout: 276 seconds]
ilhami has quit [Quit: Leaving]
hays has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
idefine has quit [Remote host closed the connection]
marxarelli has quit [Quit: Textual IRC Client: www.textualapp.com]
themsay has quit [Ping timeout: 276 seconds]
idefine has joined #ruby
ur5us has joined #ruby
Xeago has quit [Remote host closed the connection]
groundnuty has joined #ruby
Xeago has joined #ruby
weemsledeux has joined #ruby
hakunin_ has joined #ruby
hakunin has quit [Read error: Connection reset by peer]
TheSpect1e has quit [Quit: Lost terminal]
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dlitvak has quit [Ping timeout: 240 seconds]
ur5us has quit [Ping timeout: 264 seconds]
davedev2_ has joined #ruby
B1n4r10 has quit [Ping timeout: 240 seconds]
Guest46635 is now known as BLuEGoD
dlitvak has joined #ruby
BLuEGoD is now known as Guest83661
askhat has quit [Ping timeout: 240 seconds]
nickjj has quit [Ping timeout: 252 seconds]
askhat has joined #ruby
kirillzh has joined #ruby
kirillzh has quit [Read error: Connection reset by peer]
davedev24 has quit [Ping timeout: 250 seconds]
rgtk has quit [Remote host closed the connection]
ss_much has joined #ruby
tubulife- has quit [Ping timeout: 250 seconds]
kirillzh has joined #ruby
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
idefine has quit [Remote host closed the connection]
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
millerti has joined #ruby
nickjj has joined #ruby
ElFerna_ has joined #ruby
FooMunki has quit [Quit: FooMunki]
Gnut has quit [Ping timeout: 256 seconds]
Youngmathimus0 has joined #ruby
stannard has quit [Remote host closed the connection]
cjbottaro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sinkensabe has joined #ruby
shazaum has joined #ruby
tulak has quit [Remote host closed the connection]
roshanavand has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
maikowblue has quit [Quit: .]
Snowy has quit []
baweaver has quit [Remote host closed the connection]
asccigcc has joined #ruby
TomPeed has joined #ruby
ElFerna_ has quit [Ping timeout: 265 seconds]
x77686d has joined #ruby
sinkensabe has quit [Ping timeout: 276 seconds]
infernix has quit [Quit: ZNC - http://znc.sourceforge.net]
ElFerna_ has joined #ruby
Xeago has quit [Remote host closed the connection]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rizenine has quit [Remote host closed the connection]
blackgoat has quit [Quit: WeeChat 1.3]
Bounga has quit [Ping timeout: 264 seconds]
therealtesseract has joined #ruby
therealtesseract has quit [Client Quit]
frozen3 has quit [Remote host closed the connection]
frozen3 has joined #ruby
dlitvak has quit [Ping timeout: 264 seconds]
learning has joined #ruby
cjbottaro has joined #ruby
skweek has quit [Ping timeout: 250 seconds]
karmatr0n has quit [Ping timeout: 265 seconds]
dlitvak has joined #ruby
DLSteve has joined #ruby
railsFor_ has quit [Ping timeout: 240 seconds]
Ebok has joined #ruby
skweek has joined #ruby
skweek has quit [Read error: Connection reset by peer]
rgtk has joined #ruby
solocshaw has joined #ruby
Channel6 has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk_ has joined #ruby
zeroDivisible has quit [Quit: WeeChat 1.3]
vdamewood has joined #ruby
Jardayn has quit [Quit: Leaving]
rgtk_ has quit [Read error: No route to host]
rgtk has joined #ruby
bklane has joined #ruby
cyclonis_ has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
tubulife- has joined #ruby
Damien22 has joined #ruby
unreal_ is now known as unreal
cyclonis has quit [Ping timeout: 240 seconds]
rgtk has quit [Read error: No route to host]
tvw has quit [Ping timeout: 264 seconds]
rgtk has joined #ruby
nickjj has quit [Quit: Leaving]
stannard has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
pawnbox has joined #ruby
rgtk has quit [Read error: No route to host]
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rgtk has joined #ruby
karapetyan has quit [Remote host closed the connection]
nickjj has joined #ruby
paradisaeidae has joined #ruby
rgtk has quit [Read error: No route to host]
ElFerna_ has quit [Ping timeout: 260 seconds]
stannard has quit [Ping timeout: 240 seconds]
rgtk has joined #ruby
asccigcc has quit [Quit: asccigcc]
darkf_ has joined #ruby
rgtk has quit [Read error: No route to host]
Spami has quit [Quit: This computer has gone to sleep]
pawnbox has quit [Ping timeout: 256 seconds]
rgtk has joined #ruby
darkf has quit [Ping timeout: 250 seconds]
rgtk has quit [Read error: No route to host]
rgtk_ has joined #ruby
platzhirsch has quit [Quit: Leaving.]
darkf_ is now known as darkf
blackmesa has quit [Ping timeout: 250 seconds]
rgtk_ has quit [Read error: No route to host]
rgtk has joined #ruby
ixti has quit [Quit: WeeChat 1.4]
MrSamuel has joined #ruby
<MrSamuel> Is there some way with a hash to write hash.with_value(key) {|value| …}
<MrSamuel> when value might be nil
<MrSamuel> the block is not invoked if has.include? key is false
rgtk has quit [Read error: Connection reset by peer]
<MrSamuel> kind of like the opporsite of hash.fetch
rgtk has joined #ruby
TomPeed has joined #ruby
bklane_ has joined #ruby
Guest83661 is now known as BLuEGoD
tubulife- has quit [Ping timeout: 250 seconds]
rgtk has quit [Read error: No route to host]
BLuEGoD is now known as Guest55108
Sucks has joined #ruby
rgtk has joined #ruby
nickjj has quit [Quit: Leaving]
idefine has joined #ruby
intrigueD has quit [Remote host closed the connection]
ur5us has joined #ruby
rgtk has quit [Read error: No route to host]
bklane has quit [Read error: Connection reset by peer]
rgtk has joined #ruby
nickjj has joined #ruby
Coldblackice has quit []
cjbottaro has quit [Read error: Connection reset by peer]
rgtk has quit [Read error: Connection reset by peer]
<Ox0dea> MrSamuel: If you're on 2.3, you might consider doing it with the safe navigation operator.
rgtk has joined #ruby
<Ox0dea> >> h = {a: 21}; [h&.[](:a) * 2, h&.[](:b)&.*(2)]
<ruby[bot]> Ox0dea: # => [42, nil] (https://eval.in/519178)
<Ox0dea> That's pretty gross, though.
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]
Billias has joined #ruby
<r4z3r> hays I believe https://www.igvita.com/2008/11/13/concurrency-is-a-myth-in-ruby/ was what helped me understand it better due to the images (I'm a visual learner)
<hays> hmm..
pawnbox has joined #ruby
<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]
BLuEGoD is now known as Guest38213
llua^_^AznSmile- is now known as llua
llua has joined #ruby
llua has quit [Changing host]
tilllt has quit [Client Quit]
tatsuo has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
<ropeney> sphex: no
rgtk has quit [Read error: No route to host]
spacemud has quit [Quit: ZNC - http://znc.in]
rgtk has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
jam_ has quit [Remote host closed the connection]
<sphex> Ropeney: ok
<ropeney> sphex: look into https://github.com/ruby-concurrency/concurrent-ruby if your interested
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?
DmitryBochkarev has joined #ruby
krz has joined #ruby
gix has quit [Ping timeout: 252 seconds]
Guest38213 is now known as BLuEGoD
stardiviner has joined #ruby
ledestin has joined #ruby
BLuEGoD is now known as Guest20428
pdoherty has quit [Ping timeout: 260 seconds]
<Ox0dea> sphex: They do different things: https://eval.in/519230
<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*.
darkf_ has joined #ruby
darkf has quit [Ping timeout: 260 seconds]
p1k has joined #ruby
roshanavand has quit [Ping timeout: 276 seconds]
solocshaw has quit [Ping timeout: 252 seconds]
sinkensabe has joined #ruby
dlitvak has quit [Ping timeout: 256 seconds]
houhoulis has joined #ruby
darkf_ has quit [Ping timeout: 260 seconds]
<sphex> Ox0dea: I must be using the wrong terms, I was thinking of this kind of behavior: https://gist.github.com/Math2/867c4f9ae8a49e0aa366
pickandmix has joined #ruby
<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…]
krz has joined #ruby
PaulCape_ has quit [Quit: .]
<Ox0dea> sphex: Our first encounter: http://logs.ryanbigg.com/ruby?date=2015-06-28#3492216
<Ox0dea> Good times. <3
PaulCapestany has joined #ruby
<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]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
ayonkhan has quit [Quit: Textual IRC Client: www.textualapp.com]
duncannz has joined #ruby
<shevy> perl 6 can look wild
lxsameer has joined #ruby
babblebre has quit [Quit: Connection closed for inactivity]
tulak has quit [Ping timeout: 252 seconds]
araujo has quit [Ping timeout: 272 seconds]
dubek has quit [Ping timeout: 248 seconds]
Macaveli has joined #ruby
ur5us has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
<baweaver> Is that what we're calling Ox0dea's code golfing now?
idefine has joined #ruby
jam_ has quit [Remote host closed the connection]
ur5us_ has joined #ruby
ur5us has quit [Read error: No route to host]
x77686d has quit [Quit: x77686d]
TomyLobo has joined #ruby
yardenbar has joined #ruby
houhoulis has quit [Remote host closed the connection]
srenatus has joined #ruby
dubek has joined #ruby
DEA7TH has quit [Quit: DEA7TH]
krz has quit [Ping timeout: 264 seconds]
solars has joined #ruby
blaxter has joined #ruby
<norc> Ox0dea: did you read about my idea yesterday?
Don_John has quit [Read error: Connection reset by peer]
<Ox0dea> norc: Must've missed it?
<norc> Ox0dea: My idea was to introduce trigraphs from C to Ruby.
<norc> Ox0dea: Obviously we do not want to exclude obscure EBCDIC users from writing beautiful Ruby code.
<Ox0dea> You're right.
last_staff has joined #ruby
<Ox0dea> Oh, Autoconf.
<norc> Ox0dea: Just think of code fragments like this: ??<_??(????)=>????>
<norc> Surely they fit well into your common gists.
<Ox0dea> My... common gists?
<norc> Yes!
<norc> Well..
<norc> :S
scepticulous has joined #ruby
<Ox0dea> I meant to show you this: https://glot.io/snippets/ebywlopdvk
<Ox0dea> You can define a method whose name clashes with any keyword, but that's the only one you can call.
<Ox0dea> Doesn't actually invoke your method, of course.
krz has joined #ruby
<norc> Big wtf.
<Ox0dea> Is it?
<norc> The fact that you can call not() - yes.
<Ox0dea> It's not actually a call.
<Ox0dea> It's just grouping.
<norc> Oh.
<Ox0dea> You could make it look like you were calling `and` and `or` as well if you had an LHS.
SOLDIERz has joined #ruby
idefine has quit [Read error: Connection reset by peer]
akkad has quit [Quit: Emacs must have died]
<Ox0dea> It's the only "unary keyword", so to speak.
karapetyan has quit [Remote host closed the connection]
<Ox0dea> norc: I found out how to get a method's default arguments without mucking about with bytecode. :)
tvw has joined #ruby
astrobunny has quit [Quit: Leaving...]
moeabdol2 has joined #ruby
karapetyan has joined #ruby
idefine has joined #ruby
Burgestrand has joined #ruby
sinkensabe has joined #ruby
<Ox0dea> Thoughts on what's going on here? https://eval.in/519286
<Ox0dea> Why should defining the keyword methods rob `true` of its #to_s?
Burgestrand has quit [Client Quit]
tilllt has joined #ruby
moeabdol has joined #ruby
karapetyan has quit [Remote host closed the connection]
moeabdol2 has quit [Ping timeout: 252 seconds]
amclain has quit [Quit: Leaving]
tilllt has quit [Client Quit]
Mutter has joined #ruby
colegatron has joined #ruby
Guest32458 is now known as BLuEGoD
roshanavand has joined #ruby
BLuEGoD is now known as Guest49244
william3 has joined #ruby
Mutter has quit [Remote host closed the connection]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
william3 has quit [Ping timeout: 250 seconds]
tjbiddle has joined #ruby
roshanavand has quit [Ping timeout: 264 seconds]
TomyLobo has quit [Ping timeout: 256 seconds]
troulouliou_div2 has joined #ruby
cih has joined #ruby
yonatankoren has quit [Ping timeout: 246 seconds]
last_staff has quit [Read error: Connection reset by peer]
last_staff has joined #ruby
firstdayonthejob has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
Prira has joined #ruby
perry has quit [Ping timeout: 240 seconds]
Biohazard_ has quit [Ping timeout: 256 seconds]
cih has quit [Ping timeout: 250 seconds]
zenergi has quit [Ping timeout: 272 seconds]
yqfvwal has quit [Ping timeout: 256 seconds]
mclee has quit [Ping timeout: 276 seconds]
janno has quit [Ping timeout: 276 seconds]
cyphactor has quit [Ping timeout: 240 seconds]
Radar has quit [Ping timeout: 240 seconds]
csaunders_ has quit [Ping timeout: 252 seconds]
p7r has quit [Remote host closed the connection]
ammar has quit [Remote host closed the connection]
p7r has joined #ruby
Suntzu has quit [Ping timeout: 276 seconds]
ammar has joined #ruby
gypsydave5 has joined #ruby
ekem has quit [Ping timeout: 250 seconds]
creat has quit [Ping timeout: 252 seconds]
roshanavand has joined #ruby
zenergi has joined #ruby
janno has joined #ruby
ruisantos has joined #ruby
hfp_work has quit [Ping timeout: 252 seconds]
Biohazard has joined #ruby
creat has joined #ruby
nlsun has joined #ruby
csaunders has joined #ruby
Biohazard is now known as Guest27566
cyphactor has joined #ruby
sandstrom has joined #ruby
mclee has joined #ruby
Radar has joined #ruby
last_staff has quit [Quit: last_staff]
Canar has quit [Ping timeout: 256 seconds]
yqfvwal has joined #ruby
Radar is now known as Guest99318
Suntzu has joined #ruby
hfp_work has joined #ruby
ekem has joined #ruby
isene has joined #ruby
perry has joined #ruby
perry has joined #ruby
Fridtjof has joined #ruby
async_prince has joined #ruby
Canar has joined #ruby
lsmola has joined #ruby
roshanavand has quit [Ping timeout: 264 seconds]
LoneHerm_ has joined #ruby
nofxx has quit [Ping timeout: 265 seconds]
idefine has quit [Remote host closed the connection]
LoneHerm_ has quit [Ping timeout: 240 seconds]
william3 has joined #ruby
bronson has quit [Remote host closed the connection]
jaiks has joined #ruby
t0ggah has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sandstrom has quit [Quit: My computer has gone to sleep.]
skade has joined #ruby
william3 has quit [Remote host closed the connection]
rgtk has joined #ruby
duncannz has quit [Remote host closed the connection]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Spami has joined #ruby
Macaveli has joined #ruby
troulouliou_div2 has quit [Ping timeout: 265 seconds]
<drbrain> Ox0dea: seems to be a pry bug
<drbrain> `ruby` doesn't have that problem
<Ox0dea> Nor `irb`.
infra-red has joined #ruby
<drbrain> I get "private method `class' called for #<CodeRay::Scanners::Ruby (uninitialized)>" if I try to do more things
<drbrain> bed time for me
SCHAAP137 has quit [Remote host closed the connection]
mlehrer has joined #ruby
ocbtec has joined #ruby
speakingcode has quit [Ping timeout: 256 seconds]
atmosx has joined #ruby
tatsuo has quit [Remote host closed the connection]
speakingcode has joined #ruby
tulak has joined #ruby
baweaver has quit [Remote host closed the connection]
idefine has joined #ruby
GinoManWorks has quit [Read error: Connection reset by peer]
<norc_> try this and watch it asplode.
<Ox0dea> Yes, that certainly does it.
<Ox0dea> And I found where Pry is explicitly doing that weird `true` printing, but I haven't figured out the root cause just yet.
<norc_> I have a feeling whats happening internally.
weemsledeux has joined #ruby
idefine has quit [Ping timeout: 264 seconds]
<Ox0dea> Do go on.
<Ox0dea> Mind, `def class; end` just the once is enough to make any subsequent interaction go pear-shaped.
<norc> Yup.
<norc> Thats what I just reduced it too.
Ishido has joined #ruby
Guest99318 is now known as Radar
sepp2k has joined #ruby
<norc> Ox0dea: Well, lets ignore the specific error messages, Im guessing these just happen while the keyword class was fucked up.
<Ox0dea> And, but, well, it's pretty obvious why redefining Object#class would wreak havoc.
<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 :(
antgel has joined #ruby
<Ox0dea> I... showed you how?
edwinvdgraaf has joined #ruby
<norc> Not that I can remember
einarj has joined #ruby
<norc> Clearly I must have not read the documentation about refinements carefully enough.
<Ox0dea> What makes you say so?
<norc> The eval.in snippet you showed me.
<norc> Nevermind.
<Ox0dea> RuntimeError: main.using is permitted only at toplevel
<Ox0dea> We have to trick Pry into thinking it's at the top level.
<norc> Ox0dea: Please to rename that method to memcpy though. :p
<Ox0dea> I wanted to so bad!
<Ox0dea> You don't even know.
oqsljs has joined #ruby
Guest49244 is now known as BLuEGoD
BLuEGoD is now known as Guest31975
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
juddey has quit [Ping timeout: 276 seconds]
symm- has joined #ruby
rgtk has quit [Remote host closed the connection]
anisha has joined #ruby
ilhami has joined #ruby
<ilhami> shevy, sup ?
firstdayonthejob has quit [Ping timeout: 260 seconds]
andikr has joined #ruby
Dimik has quit [Ping timeout: 250 seconds]
t0ggah has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<solars> hi guys, can anyone help me out of quotes hell: source[2].inspect
<solars> err
<solars> hi guys, can anyone help me out of quotes hell: https://gist.github.com/solars/9dc5ace440d5962cf0e8 I'm trying to change this to "normal" quotes, but have no idea how to escape that for .sub
<Ox0dea> Oof.
<solars> haha
patchedmonkey has joined #ruby
astrobunny has joined #ruby
t0ggah has joined #ruby
roshanavand has joined #ruby
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]
Xeago has joined #ruby
Snowy has quit []
kp666 has quit [Ping timeout: 260 seconds]
spm_draget has left #ruby ["part"]
kerunaru has quit [Quit: Textual IRC Client: www.textualapp.com]
infernix has quit [Ping timeout: 240 seconds]
<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.
sandstrom has joined #ruby
dmolina has joined #ruby
tubulife- has joined #ruby
<flughafen> hey peoples;
<Ox0dea> >> require 'net/http'; Array.new(3) { Net::HTTP::Get.new('/')['User-Agent'].__id__ } # claw
<ruby[bot]> Ox0dea: # => [549178920, 549178610, 549178300] (https://eval.in/519329)
<Ox0dea> That demonstrates that it's a different object each time. :/
yqfvwal has quit [Quit: Leaving]
rbennacer has quit [Remote host closed the connection]
<Ox0dea> More user-friendly HTTP libraries are liable to provide some mechanism for setting it, though, as adaedra has suggested.
araujo has joined #ruby
araujo has quit [Max SendQ exceeded]
<claw> generic_request.rb: self['User-Agent'] ||= 'Ruby'
<claw> there it is
<Ox0dea> That'd be the one.
<claw> but changing net/http is ugly
<Ox0dea> How do you mean?
krz has quit [Ping timeout: 260 seconds]
<claw> its part of the initialize method of Net::HTTPGenericRequest
Gnut has quit [Ping timeout: 240 seconds]
<Ox0dea> claw: https://eval.in/519332
swistak35 has joined #ruby
<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
<ruby[bot]> Ox0dea: # => ["FOO"] (https://eval.in/519340)
<Ox0dea> There's a distillation of what jhass intended to convey.
ohaibbq has quit [Remote host closed the connection]
n00bdev has quit [Remote host closed the connection]
<voidDotClass> jhass, sample returns an array doesn't it?
<jhass> voidDotClass: only if you pass it an argument
tvw has joined #ruby
cschorn has left #ruby [#ruby]
<voidDotClass> good to know, thanks
tulak has quit [Remote host closed the connection]
<voidDotClass> anyway, so why does tag.capitalize then also capitalizes Account::TAGS[i] where i is index of tag?
<jhass> it doesn't
<jhass> tag[0] = is what changes it
tulak has joined #ruby
<jhass> >> TAGS = ["foo", "bar"]; tag = TAGS.sample; [tag.object_id, TAGS.map(&:object_id)]
<ruby[bot]> jhass: # => [546983250, [546983260, 546983250]] (https://eval.in/519349)
andrewvos has joined #ruby
<jhass> there's no copy
<jhass> you change the object
nettoweb has joined #ruby
mahk has joined #ruby
tomchapin has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
<mikecmpbll> anyone know how i can set the mtime & ctime of a file/directory in ruby?
trinaldi has joined #ruby
<Ox0dea> voidDotClass: Sure you're not using `capitalize!`?
<voidDotClass> Yes
<jhass> Ox0dea: they tag[0] =
<Ox0dea> Oh, I see what's happening.
tatsuo has joined #ruby
<Ox0dea> He's assigning to an individual character.
mdw has quit [Quit: Sleeping Zzzzz]
<mikecmpbll> ah, i guess you can't set the ctime, that's cool. and there's File::utime which was what i was after!
<mikecmpbll> not sure why google failed me so hard on that one.
<adaedra> Because you need to use Bing now.
* adaedra is already outside.
MrSamuel has quit [Quit: MrSamuel]
<Ox0dea> Did you mean DDG?
<mikecmpbll> :D
benlieb has quit [Quit: benlieb]
tulak_ has joined #ruby
platzhirsch has joined #ruby
pickandmix has quit [Quit: WeeChat 1.4]
ElFerna_ has joined #ruby
tulak has quit [Ping timeout: 240 seconds]
dajobat has joined #ruby
<dajobat> Morning everyone
evidex has joined #ruby
arlek has joined #ruby
<jhass> morning
Mon_Ouie has joined #ruby
Bloomer has joined #ruby
tubulife- has joined #ruby
blackgoat has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
andrewvos has quit [Ping timeout: 248 seconds]
resin has quit [Quit: leaving]
MrSamuel has joined #ruby
resin has joined #ruby
MrSamuel has quit [Client Quit]
Mon_Ouie has quit [Ping timeout: 250 seconds]
tatsuo has quit [Remote host closed the connection]
bMalum has joined #ruby
MrSamuel has joined #ruby
zenlot1 is now known as zenlot
Guest25913 is now known as BLuEGoD
nerium has quit [Quit: nerium]
BLuEGoD is now known as Guest89278
tatsuo has joined #ruby
element_zer0 has joined #ruby
joonty has joined #ruby
araujo has joined #ruby
araujo has quit [Max SendQ exceeded]
bahar has quit [Ping timeout: 260 seconds]
araujo has joined #ruby
Dios is now known as Dios|afk
tomchapin has joined #ruby
bahar has joined #ruby
andrewvos has joined #ruby
clauswitt has joined #ruby
blackmesa has joined #ruby
nixmaniack has joined #ruby
Dios|afk has quit [Ping timeout: 252 seconds]
vikas027 has joined #ruby
vikas027 has quit [Client Quit]
nixmaniack has quit [Client Quit]
mdw has joined #ruby
swills has quit [Remote host closed the connection]
evidex has quit [Read error: Connection reset by peer]
ldnunes has joined #ruby
evidex has joined #ruby
dlitvak has joined #ruby
jam_ has joined #ruby
y2mq37 has joined #ruby
Xeago has joined #ruby
blackmesa has quit [Quit: WeeChat 1.4]
jam_ has quit [Ping timeout: 265 seconds]
ElFerna_ has quit [Ping timeout: 256 seconds]
andrewvos has quit [Ping timeout: 272 seconds]
Xeago_ has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
UtkarshRay has quit [Remote host closed the connection]
tilllt has quit [Quit: http://www.kiwiirc.com/ - A hand-crafted IRC client]
tvw has quit [Ping timeout: 276 seconds]
clauswitt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Bloomer has quit [Remote host closed the connection]
clauswitt has joined #ruby
davedev24 has quit [Remote host closed the connection]
symm- has joined #ruby
jaiks has quit [Ping timeout: 260 seconds]
Xeago_ has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
oqsljs has quit [Remote host closed the connection]
last_staff has joined #ruby
spiman has joined #ruby
<platzhirsch> How can I make a StringIO readable by IO.foreach?
UtkarshRay has joined #ruby
tubulife- has quit [Ping timeout: 260 seconds]
andrewvos has joined #ruby
rbennace_ has joined #ruby
marcon has joined #ruby
baweaver has joined #ruby
<heftig> platzhirsch: use IO#each_line instead of IO.foreach
rbennace_ has quit [Ping timeout: 264 seconds]
tvw has joined #ruby
Damien22 has quit [Ping timeout: 265 seconds]
<platzhirsch> that wouldn't work with filenames anymore though, would it
dlitvak_ has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
<platzhirsch> guess I need to change the pass in type
dlitvak has quit [Ping timeout: 248 seconds]
<platzhirsch> yeah that works perfectly fine then
<platzhirsch> thanks heftig
aganov has joined #ruby
rdark has joined #ruby
dlitvak_ has quit [Ping timeout: 250 seconds]
andrewvos has quit [Ping timeout: 260 seconds]
dlitvak has joined #ruby
element_zer0 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
millerti has joined #ruby
Guest89278 is now known as BLuEGoD
krz has joined #ruby
BLuEGoD is now known as Guest77869
mahk has quit [Ping timeout: 252 seconds]
astrobunny has quit [Remote host closed the connection]
duoi has quit [Ping timeout: 240 seconds]
dlitvak has quit [Ping timeout: 240 seconds]
Tempesta has joined #ruby
mahk has joined #ruby
dlitvak has joined #ruby
duoi has joined #ruby
Shaboum has joined #ruby
t0ggah has joined #ruby
LoneHerm_ has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
f4cl3y has quit [Remote host closed the connection]
skade has joined #ruby
themsay2 has quit [Quit: AtomicIRC: The nuclear option.]
LoneHerm_ has quit [Ping timeout: 264 seconds]
dexter_ has quit [Ping timeout: 264 seconds]
william3 has quit [Remote host closed the connection]
william3 has joined #ruby
Bloomer has joined #ruby
Rickmasta has quit [Quit: Textual IRC Client: www.textualapp.com]
syath has joined #ruby
spiman has quit []
Xeago has joined #ruby
Macaveli has joined #ruby
andrewvos has joined #ruby
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]
scepticulous has joined #ruby
BSab has joined #ruby
bkxd has joined #ruby
Ishido has quit [Ping timeout: 252 seconds]
dlitvak_ has quit [Ping timeout: 240 seconds]
dlitvak has joined #ruby
BrunoSaboia has quit [Ping timeout: 256 seconds]
BSaboia has quit [Ping timeout: 256 seconds]
BSaboia has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
dajobat has quit [Ping timeout: 265 seconds]
dlitvak_ has joined #ruby
dlitvak has quit [Ping timeout: 256 seconds]
bronson has joined #ruby
tlaxkit has joined #ruby
rdark has joined #ruby
blackmesa has joined #ruby
andrewvos has joined #ruby
bkxd has quit [Ping timeout: 248 seconds]
JDiPierro has joined #ruby
arbys has left #ruby ["Leaving"]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JDiPierro has quit [Remote host closed the connection]
JDiPierro has joined #ruby
melter has quit [Read error: Connection reset by peer]
bronson has quit [Ping timeout: 256 seconds]
cdg has joined #ruby
mwlang has joined #ruby
blackgoat has quit [Quit: WeeChat 1.3]
t0ggah has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ljames has joined #ruby
zacstewart has quit [Ping timeout: 265 seconds]
openstruct has joined #ruby
moeabdol has quit [Ping timeout: 250 seconds]
p1k has quit [Ping timeout: 276 seconds]
Macaveli has joined #ruby
dextertzu has quit [Read error: Connection reset by peer]
ElFerna_ has quit [Ping timeout: 272 seconds]
t0ggah has joined #ruby
dextertzu has joined #ruby
doublemalt_ has quit [Remote host closed the connection]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djcp has joined #ruby
t0ggah has quit [Ping timeout: 252 seconds]
solars has quit [Ping timeout: 260 seconds]
rbennacer has joined #ruby
sgambino has joined #ruby
pawnbox has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
Tempesta has quit [Quit: See ya!]
mary5030 has joined #ruby
the_drow has joined #ruby
moeabdol has joined #ruby
mary5030 has quit [Remote host closed the connection]
rbennacer has quit [Ping timeout: 256 seconds]
sankaber has joined #ruby
mary5030 has joined #ruby
tomchapin has quit [Read error: Connection reset by peer]
dlitvak has joined #ruby
dlitvak_ has quit [Ping timeout: 265 seconds]
sergey_makagon has joined #ruby
akem has joined #ruby
stardiviner has quit [Ping timeout: 256 seconds]
saneax_AFK is now known as saneax
unl0ckd has joined #ruby
blackms has joined #ruby
solars has joined #ruby
dlitvak has quit [Ping timeout: 252 seconds]
sankaber has quit [Remote host closed the connection]
sankaber has joined #ruby
KensoDev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
whippythellama has joined #ruby
railsForDaiz has joined #ruby
KensoDev has joined #ruby
KensoDev has quit [Client Quit]
sandstrom has quit [Ping timeout: 276 seconds]
Guest52615 is now known as BLuEGoD
stannard has joined #ruby
BLuEGoD is now known as Guest72401
sandstrom has joined #ruby
xxneolithicxx has joined #ruby
xxneolithicxx has quit [Max SendQ exceeded]
dlitvak has joined #ruby
jaiks has joined #ruby
xxneolithicxx has joined #ruby
xapak has joined #ruby
<xapak> Hello.
naftilos76 has quit [Quit: Αποχώρησε]
<sergey_makagon> Hi
blackmesa has quit [Read error: Connection reset by peer]
flughafen_ has joined #ruby
xapak has left #ruby [#ruby]
millerti has quit [Quit: Textual IRC Client: www.textualapp.com]
M-Kodo has quit [Remote host closed the connection]
sinkensabe has quit []
sandstrom has quit [Read error: Connection reset by peer]
flughafen_ has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
stardiviner has joined #ruby
sandstrom has joined #ruby
flughafen_ has joined #ruby
asprillia has joined #ruby
hadronzoo has quit [Ping timeout: 256 seconds]
quaristice has joined #ruby
hadronzoo has joined #ruby
polishdub has joined #ruby
tubulife- has joined #ruby
aegis3121 has joined #ruby
cpup has quit [Ping timeout: 250 seconds]
stardiviner has quit [Client Quit]
tulak_ has quit [Ping timeout: 256 seconds]
Imlerith has quit [Ping timeout: 252 seconds]
<havenwood> sergey_makagon: hi
cpup has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
<platzhirsch> How can I utilize case/when if the argument is already a class?
<platzhirsch> case DateTime; when…
<adaedra> what do you want to do?
<havenwood> platzhirsch: when what? I'm not following how you're comparing it.
hayden_ has joined #ruby
william3 has quit [Remote host closed the connection]
M-shine has joined #ruby
weemsledeux has joined #ruby
akem has quit [Remote host closed the connection]
<adaedra> >> Date === Date
<ruby[bot]> adaedra: # => uninitialized constant Date ...check link for more (https://eval.in/519602)
xxneolithicxx has quit [Quit: Leaving.]
<adaedra> ugh.
<adaedra> >> String === String
<ruby[bot]> adaedra: # => false (https://eval.in/519603)
<adaedra> So no, not possible.
<platzhirsch> >> 'Test' === String
<ruby[bot]> platzhirsch: # => false (https://eval.in/519604)
<platzhirsch> Hm, but it works if you pass the value to case
tomchapin has joined #ruby
<adaedra> Because it's the other way around.
skade has quit [Quit: Computer has gone to sleep.]
<adaedra> >> String === 'Hello'
<ruby[bot]> adaedra: # => true (https://eval.in/519605)
<platzhirsch> >> case 'Hello Darling'; when String; puts 'victory'; end
<ruby[bot]> platzhirsch: # => victory ...check link for more (https://eval.in/519606)
n00bdev has joined #ruby
<platzhirsch> oh
<platzhirsch> nice one
<adaedra> case uses #=== internally.
andrewvos has quit [Ping timeout: 240 seconds]
<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.
n00bdev has quit [Ping timeout: 252 seconds]
fourq is now known as fourq|away
<Papierkorb> >> [ (String === "foo"), ("foo" === String) ].join ', '
<ruby[bot]> Papierkorb: # => "true, false" (https://eval.in/519614)
<ljarvis> you should forget all that and just know that it's a method defined on Module
<adaedra> It's the magic behind case. Also, you should not be using #=== yourself.
<ljarvis> %ri Module#===
<ljarvis> &ri Module#===
<adaedra> :)
<platzhirsch> >> [ (String === "foo"), ("foo" === String) ]
<ruby[bot]> platzhirsch: # => [true, false] (https://eval.in/519615)
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
<ruby[bot]> jhass: # => "Don't actually do this" (https://eval.in/519620)
railsForDaiz has joined #ruby
rcvalle has joined #ruby
<Papierkorb> >> Proc.instance_method(:===) == Proc.instance_method(:call)
<ruby[bot]> Papierkorb: # => true (https://eval.in/519621)
mlehrer has quit [Ping timeout: 276 seconds]
solars has quit [Quit: WeeChat 0.4.2]
dubek has quit [Ping timeout: 250 seconds]
rikkipitt has joined #ruby
ledestin has joined #ruby
maikowblue has joined #ruby
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]
dlitvak has joined #ruby
sergey_makagon has quit []
jordanm has quit [Quit: Konversation terminated!]
cjbottaro has joined #ruby
scepticulous has quit [Ping timeout: 250 seconds]
M-shine has joined #ruby
bmurt has quit [Quit: Textual IRC Client: www.textualapp.com]
JDiPierro has joined #ruby
rodfersou|lunch is now known as rodfersou
dlitvak has quit [Remote host closed the connection]
JDiPierr_ has joined #ruby
JDiPierro has quit [Read error: Connection reset by peer]
mlehrer has joined #ruby
idefine has joined #ruby
tonios57 has joined #ruby
pdoherty has quit [Ping timeout: 276 seconds]
adgtl has joined #ruby
cschneid_ has joined #ruby
NET||abuse has left #ruby ["Leaving"]
dotix has joined #ruby
dotix has joined #ruby
gidlf has quit [Ping timeout: 265 seconds]
Mutter has joined #ruby
bMalum has quit [Ping timeout: 272 seconds]
nofxx has joined #ruby
babblebre has joined #ruby
M-Kodo has joined #ruby
dlitvak has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
dotix has quit [Remote host closed the connection]
nerium has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
Mutter has quit [Ping timeout: 250 seconds]
p1k has quit [Ping timeout: 272 seconds]
idefine has quit [Remote host closed the connection]
tomchapin has quit [Read error: Connection reset by peer]
asccigcc has joined #ruby
nerium has quit [Client Quit]
idefine has joined #ruby
rikkipitt has quit [Quit: Leaving...]
dlitvak has quit [Remote host closed the connection]
mg^ has quit [Quit: Leaving]
Guest75939 is now known as BLuEGoD
BLuEGoD is now known as Guest29490
n00bdev has joined #ruby
Sucks has quit [Ping timeout: 264 seconds]
suchness has quit [Ping timeout: 246 seconds]
tonios57 has quit [Quit: Textual IRC Client: www.textualapp.com]
kirillzh has joined #ruby
ziyadb has joined #ruby
dlitvak has joined #ruby
wldcordeiro has quit [Ping timeout: 256 seconds]
Azure|dc has joined #ruby
railsForDaiz has quit [Ping timeout: 250 seconds]
jespada has quit [Quit: WeeChat 1.5-dev]
mark4 has quit [Quit: Leaving.]
<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.
<havenwood> adaedra: Yup!
aegis3121 has joined #ruby
adaedra changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.0; 2.2.4; 2.1.8: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
<diegoviola> havenwood: cool
PedramT has joined #ruby
M-shine has quit [Remote host closed the connection]
M-Kodo has quit [Remote host closed the connection]
benlieb has joined #ruby
tubuliferous_ has quit [Quit: ZNC - http://znc.in]
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."
jottr has joined #ruby
wldcordeiro has joined #ruby
mickey_mouse_2 has joined #ruby
rkazak has joined #ruby
idefine has joined #ruby
frozen3 has quit [Remote host closed the connection]
cih has quit [Read error: Connection reset by peer]
aganov has quit [Remote host closed the connection]
cih has joined #ruby
elifoster has joined #ruby
<havenwood> TomyLobo: Or you might prefer creating an ext/protobuf.rb extension with the Awesome Print gem: https://github.com/michaeldv/awesome_print#readme
ElFerna_ has quit [Ping timeout: 240 seconds]
frozen3 has joined #ruby
mickey_mouse has quit [Ping timeout: 260 seconds]
amclain has joined #ruby
adgtl has joined #ruby
volty has joined #ruby
andikr has quit [Remote host closed the connection]
tlaxkit has quit [Quit: ¡Adiós!]
rkazak has quit [Ping timeout: 265 seconds]
toretore has joined #ruby
frozen3_ has joined #ruby
einarj has quit [Remote host closed the connection]
joonty has quit [Ping timeout: 250 seconds]
tomchapi_ has joined #ruby
frozen3 has quit [Ping timeout: 250 seconds]
<TomyLobo> hmm, i think i'll go on with trying to post-process that mess :)
x77686d has quit [Quit: x77686d]
mdw has quit [Quit: Sleeping Zzzzz]
pawnbox has quit [Remote host closed the connection]
<adaedra> jhass: havenwood said it was done!
frozen3 has joined #ruby
pawnbox has joined #ruby
marxarelli has joined #ruby
<jhass> did they?
tvon has joined #ruby
<havenwood> adaedra: I said a week from tomorrow!
<adaedra> oh.
haylon has joined #ruby
frozen3_ has quit [Ping timeout: 248 seconds]
idefine_ has joined #ruby
dretnx has joined #ruby
devbug has quit [Ping timeout: 272 seconds]
davedev24 has joined #ruby
patchedmonkey has quit [Ping timeout: 240 seconds]
<TomyLobo> is there really no way to inspect an object structure automatically and print it in a pretty way?
adaedra changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.0; 2.2.4; 2.1.8; 2.0.0-p648: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
<adaedra> All my excuses, then, jhass.
synthroid has joined #ruby
idefine has quit [Ping timeout: 248 seconds]
<jhass> no worries ;)
<adaedra> TomyLobo: p, or pp
<adaedra> &ri p pp
<adaedra> mmh, this second one is not the right one.
frozen3 has quit [Ping timeout: 272 seconds]
<TomyLobo> p and pp both print a single line
SCHAAP137 has joined #ruby
symm- has joined #ruby
<apeiros> TomyLobo: uh, no
LoneHerm_ has joined #ruby
<TomyLobo> according to wc -l, yes
<shevy> pp will break things up when it is longer than the threshold, you can try it on an Array increase the size TomyLobo
<apeiros> pp only prints a single line if you a) have a short output or b) fucked up inspect
<TomyLobo> 5029 characters
baweaver has joined #ruby
rbennacer has joined #ruby
pawnbox has quit [Remote host closed the connection]
<apeiros> since default length is 80 iirc, that means that you did something which prevents it from splitting up
SOLDIERz has quit [Ping timeout: 250 seconds]
pawnbox has joined #ruby
<volty> >> pp class Test; def initialize(); @x = 1, @y = 2; end; end.new()
<ruby[bot]> volty: # => undefined method `new' for :initialize:Symbol ...check link for more (https://eval.in/519676)
<TomyLobo> inspect returns empty string
frozen3 has joined #ruby
<volty> >> pp (class Test; def initialize(); @x = 1, @y = 2; end; end)new()
<ruby[bot]> volty: # => /tmp/execpad-ec9041cf0fc1/source-ec9041cf0fc1:2: syntax error, unexpected tIDENTIFIER, expecting key ...check link for more (https://eval.in/519677)
railsForDaiz has quit [Ping timeout: 276 seconds]
<adaedra> >> class Test; def initialize; @x, @y = 1, 2; end; end; pp Test.new
<ruby[bot]> adaedra: # => undefined method `pp' for main:Object ...check link for more (https://eval.in/519678)
<adaedra> huhu
<adaedra> >> require 'pp'; class Test; def initialize; @x, @y = 1, 2; end; end; pp Test.new
<ruby[bot]> adaedra: # => #<Test:0x40e7f3c0 @x=1, @y=2> ...check link for more (https://eval.in/519679)
<adaedra> That's what you wanted, volty
<adaedra> class block don't return the class
<volty> thx :) my eyes fingers are out of sync, and my eyes need and elephant screen right now, @ adaedra
railsForDaiz has joined #ruby
<adaedra> Bed.new.tap do |bed| bed << volty; end
<shevy> stop tapdancing in your bed when you should sleep!
mfb2 has quit [Remote host closed the connection]
<volty> adaedra: right, but if I go to bed now I'll be keeping out-of-sync sleeping. I must resist :)
Snowy is now known as snowbro
baweaver has quit [Ping timeout: 250 seconds]
rbennacer has quit [Ping timeout: 252 seconds]
underplank has quit [Ping timeout: 240 seconds]
RalfJ has quit [Remote host closed the connection]
ico has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
<adaedra> Well then.
tubulife- has joined #ruby
ico has quit [Client Quit]
_ht has joined #ruby
skade has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
mfb2 has joined #ruby
skade has quit [Client Quit]
RalfJ has joined #ruby
idritg has quit [Remote host closed the connection]
maletor has joined #ruby
<volty> i was fuzzy
<volty> >> require 'pp'; pp class Test; def initialize(); @x = 1, @y = 2; end; self; end.new
<ruby[bot]> volty: # => #<Test:0x408572a4 @x=[1, 2], @y=2> ...check link for more (https://eval.in/519680)
<volty> forgot that that everything returns the last expression
sneakerhax has joined #ruby
mfb2 has quit [Remote host closed the connection]
<adaedra> Welcome to Ruby
<shevy> volty not every method!
<volty> But I was to Ruby for long time, though intermittently
Ox0dea has quit [Ping timeout: 240 seconds]
<volty> shevy, shevy, do not torture me now :)
<shevy> volty see it refuses to return 33 https://gist.github.com/shevegen/75502e24a9339e90fc82
<shevy> well actually
<shevy> you are right!
<shevy> it returns the last expression :D
<shevy> hmm wait... let me try with 42 last
<volty> .... executed
edwinvdgraaf has quit [Remote host closed the connection]
<volty> do you know xrvg, anybody played with it ?
JDiPierro has joined #ruby
<shevy> I know srvg
<shevy> does that count too?
<shevy> or svrg... I can never remember
<volty> will give it a look, thx
snowbro has quit [Remote host closed the connection]
last_staff has joined #ruby
<shevy> nah I don't know if it has anything to do with xrvg sorry, other than the name
moeabdol has quit [Ping timeout: 260 seconds]
<volty> yap :) saw it
denym_` has quit [Ping timeout: 264 seconds]
saneax_AFK is now known as saneax
andrewvos has joined #ruby
matled has joined #ruby
PaulCapestany has quit [Quit: .]
baweaver has joined #ruby
toretore has quit [Ping timeout: 240 seconds]
Guest29490 is now known as BLuEGoD
wnd has quit [Quit: Caught sigterm, terminating...]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
BLuEGoD is now known as Guest12801
infra-red has joined #ruby
PaulCapestany has joined #ruby
stannard_ has quit [Ping timeout: 256 seconds]
Spleeze has quit [Ping timeout: 240 seconds]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tubulife- has quit [Ping timeout: 248 seconds]
stannard has joined #ruby
moos3 has quit [Ping timeout: 250 seconds]
moos3 has joined #ruby
zz_denym_ has joined #ruby
cpup has quit [Ping timeout: 250 seconds]
baweaver has quit [Remote host closed the connection]
dexter_ has quit [Ping timeout: 265 seconds]
cpup has joined #ruby
<dretnx> how's the speed of newest ruby version?
<dretnx> is it slower than php?
sgambino has joined #ruby
eljimmy has quit [Quit: Leaving]
eljimmy has joined #ruby
tubulife- has joined #ruby
moos3 has quit [Ping timeout: 256 seconds]
yqt has joined #ruby
openstruct has joined #ruby
<shevy> dretnx hey mr. webchatter
dajobat has joined #ruby
rbennacer has joined #ruby
<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?
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
mfaeh has joined #ruby
icarus has joined #ruby
icarus has quit [Changing host]
icarus has joined #ruby
<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
<Inv1s1ble> ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) \ bad response Service Unavailable 503 (https://api.rubygems.org/api/v1/dependencies?gems=jekyll-watch)
<hbr-br> one of the main concerns is transfer.
<Inv1s1ble> hmm..everything is up. Must be just me
<hbr-br> Ill take a look on this options.
<jhass> depending on your structure, things like using bson, protobuf or msgpack instead can also help somewhat
<jhass> but I expect gzip to give bigger gains actually
moos3 has quit [Ping timeout: 248 seconds]
<Inv1s1ble> hmm..I can install other gems, it's only jekyll-multisite that gives me a 503
bithon has quit [Quit: WeeChat 1.4]
william3 has quit [Ping timeout: 248 seconds]
spider-mario has joined #ruby
yatish27 has joined #ruby
Guest12801 is now known as BLuEGoD
william3 has joined #ruby
BLuEGoD is now known as Guest98175
dajobat has quit [Ping timeout: 265 seconds]
dangerousdave has joined #ruby
icarus has quit [Quit: Lost terminal]
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
yqt has quit [Ping timeout: 256 seconds]
patchedmonkey has joined #ruby
Zai00 has joined #ruby
codecop has joined #ruby
troulouliou_div2 has quit [Ping timeout: 265 seconds]
trinaldi has quit [Quit: WeeChat 1.5-dev]
moos3 has joined #ruby
tomchapi_ has quit [Ping timeout: 265 seconds]
idefine has joined #ruby
baweaver has joined #ruby
edwinvdgraaf has joined #ruby
zapata has quit [Quit: WeeChat 1.4]
zapata has joined #ruby
jxs_ has joined #ruby
shadeslayer has quit [Ping timeout: 276 seconds]
volty has quit [Quit: Konversation terminated!]
DmitryBochkarev has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dotix has joined #ruby
dotix has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
tildes has quit [Ping timeout: 256 seconds]
shadeslayer has joined #ruby
Derailed has quit [Quit: ZNC - http://znc.in]
openstruct has quit [Ping timeout: 276 seconds]
mfb2 has joined #ruby
pdoherty has joined #ruby
Derailed has joined #ruby
mfb2 has quit [Remote host closed the connection]
akem has joined #ruby
baweaver has joined #ruby
openstruct has joined #ruby
openstruct has joined #ruby
yatish27 has quit [Remote host closed the connection]
PedramT has joined #ruby
baweaver has quit [Remote host closed the connection]
firstdayonthejob has quit [Quit: WeeChat 1.4-dev]
baweaver has joined #ruby
firstdayonthejob has joined #ruby
baweaver has quit [Remote host closed the connection]
stannard has quit [Remote host closed the connection]
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
PaulCapestany has quit [Quit: .]
PedramT has quit [Ping timeout: 250 seconds]
mdw has quit [Ping timeout: 256 seconds]
PaulCapestany has joined #ruby
tomchapi_ has joined #ruby
ixti has quit [Read error: Connection reset by peer]
Cohedrin has joined #ruby
unl0ckd has joined #ruby
moeabdol has joined #ruby
shadoi has joined #ruby
<aep> can i convert some uknonw 8bit text into utf8 ignoring the characters that aren't valid ascii/
flughafen_ has quit [Ping timeout: 240 seconds]
<aep> ?
infra-red has quit [Read error: Connection reset by peer]
hahuang65 has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
mhoungbo has joined #ruby
stannard has joined #ruby
PD028300 has joined #ruby
<al2o3-cr> aep: #force_encoding("UTF-8") ?
darkf has joined #ruby
<aep> err nah, not from a literal
<aep> ah thanks1
<aep> damnit. shift key broke
baweaver has joined #ruby
bascht has joined #ruby
infra-red has joined #ruby
<al2o3-cr> ok
haylon has quit [Ping timeout: 252 seconds]
beanHolez has quit [Remote host closed the connection]
gambl0re has left #ruby [#ruby]
LoneHerm_ has quit [Remote host closed the connection]
yqt has joined #ruby
stannard has quit [Ping timeout: 252 seconds]
ocbtec has quit [Quit: leaving]
jottr_ has joined #ruby
lsmola has quit [Ping timeout: 265 seconds]
PaulCapestany has quit [Quit: .]
<al2o3-cr> >> ["\xE9\x80\x92foo".force_encoding("utf-8"), "\xE9\x80\x92foo".scrub, String.new("\xE9\x80\x92foo", encoding: "utf-8")]
<ruby[bot]> al2o3-cr: # => ["递foo", "递foo", "递foo"] (https://eval.in/519756)
hahuang65 has quit [Read error: Connection reset by peer]
tildes has joined #ruby
<aep> uh
moeabdol has quit [Ping timeout: 250 seconds]
PaulCapestany has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
<aep> yeah that didnt help remove invalid ascii
<aep> i still get an undefinedconversationerror
<apeiros> because it's all valid utf-8
<aep> yeah
<aep> but i have random text with unknown encoding
<aep> so i cant just force utf8
hahuang65 has joined #ruby
<apeiros> if you got undefinedconversationerror, then you didn't force
<apeiros> since force doesn't convert
infra-re_ has joined #ruby
wnd has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> why do you want to convert to utf-8 if you only want ascii?
arlek has quit [Ping timeout: 256 seconds]
<aep> nah activerecord does that
solocshaw has quit [Ping timeout: 250 seconds]
underplank has joined #ruby
asprillia has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<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
<apeiros> zackzorman: what's with it?
tomchapin has quit [Quit: Textual IRC Client: www.textualapp.com]
<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?
Guest33 has left #ruby [#ruby]
PaulCapestany has quit [Quit: .]
<doctorly> Thanks in advance
<norc_> zotherstupidguy, I can tell you quite accurately how many people are developing Ruby on windows.
<norc_> zotherstupidguy, nobody in their right mind.
edwinvdgraaf has joined #ruby
<doctorly> norc_: lmao
Azure|dc has quit [Ping timeout: 265 seconds]
sauvin has quit [Read error: Connection reset by peer]
<doctorly> greate time for me to show up
<doctorly> great*
Azure has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
dotix has quit [Remote host closed the connection]
<apeiros> norc_: zotherstupidguy didn't ask that, zackzorman did ;-)
PaulCapestany has joined #ruby
<al2o3-cr> aep: you could also use #encode "\xE9\x80\x92foo".encode(Encoding.find("ascii"), {invalid: :replace, undef: :replace, :replace => ''})
shadoi has quit [Ping timeout: 265 seconds]
jottr_ has quit [Ping timeout: 248 seconds]
<aep> oh nice
SaintAardvark has quit [Ping timeout: 240 seconds]
infra-red has joined #ruby
stannard has quit [Ping timeout: 256 seconds]
hxegon has joined #ruby
<al2o3-cr> or whatever you want to replace them with
shadoi has joined #ruby
frozen3 has quit [Remote host closed the connection]
dlitvak has joined #ruby
renderful has quit [Ping timeout: 240 seconds]
krobzaur has joined #ruby
tubulife- has joined #ruby
infra-re_ has quit [Ping timeout: 248 seconds]
flughafen_ has joined #ruby
MuffinPimp has joined #ruby
codecop has quit [Remote host closed the connection]
shadoi has quit [Ping timeout: 260 seconds]
moos3 has quit [Quit: leaving]
shadoi has joined #ruby
krobzaur has quit [Client Quit]
nicoulaj_ has joined #ruby
patchedmonkey has joined #ruby
underplank has quit [Quit: underplank]
FernandoBasso has joined #ruby
ElFerna_ has quit [Ping timeout: 265 seconds]
devbug has joined #ruby
mfb2 has joined #ruby
frem has joined #ruby
tubulife- has quit [Ping timeout: 240 seconds]
bithon has joined #ruby
mustmodify_ has joined #ruby
frozen3 has joined #ruby
<mustmodify_> Can anyone tell me why this regex isn't stripping out the whitespace at the end of the first line?
<mustmodify_> " white space after line: \rstuff".gsub(/ *\z/, '').split(/[\r\n]/)
<mustmodify_> > " white space after line: \rstuff".gsub(/ *\z/, '').split(/[\r\n]/)
PD028300 is now known as haylon
<mustmodify_> Oh... hm... how do you get that bot to run?
<hxegon> mustmodify_ just a guess here: \z is end of string, not end of line. I would have to see the string to be certain
stannard has joined #ruby
<hxegon> > p "like this"
felixfortis has joined #ruby
<mustmodify_> d'Oh!
<hxegon> ... or not? it's been a minute since I was here
podman has joined #ruby
<hxegon> >> p 'like this?'
<ruby[bot]> hxegon: # => "like this?" ...check link for more (https://eval.in/519779)
<shlomo> Replace \z with $
hahuang65 has quit [Quit: WeeChat 1.4]
mdw has quit [Quit: Sleeping Zzzzz]
cdg has quit [Remote host closed the connection]
Guest98175 is now known as BLuEGoD
<mustmodify_> >> " white space after line: \rstuff".gsub(/ *$/, '').split(/[\r\n]/)
BLuEGoD is now known as Guest94796
Xeago has joined #ruby
<mustmodify_> oh
baweaver has quit [Remote host closed the connection]
<mustmodify_> >> p " white space after line: \rstuff".gsub(/ *$/, '').split(/[\r\n]/)
<mustmodify_> geez
<mustmodify_> I give up
mhoungbo has quit [Ping timeout: 240 seconds]
<hxegon> rubybot must not be feeling well :[
Dios has quit [Ping timeout: 252 seconds]
ElFerna_ has joined #ruby
stannard has quit [Ping timeout: 264 seconds]
n00bdev has quit []
<mustmodify_> >> p 'like this?'
<al2o3-cr> >> 1
<ruby[bot]> al2o3-cr: # => 1 (https://eval.in/519780)
<al2o3-cr> mustmodify_: try with the `p`
abrin has joined #ruby
<al2o3-cr> *without
mdw has joined #ruby
tildes has quit [Ping timeout: 252 seconds]
<mustmodify_> >> 1
<mustmodify_> RubyBot hates me.
<mustmodify_> unfortunate.
mustmodify_ is now known as mustmodify
<mustmodify> >> 1
<ruby[bot]> mustmodify: # => 1 (https://eval.in/519782)
<mustmodify> Hm...
mustmodify is now known as mustmodify_
<mustmodify_> >> 1
<ruby[bot]> mustmodify_: # => 1 (https://eval.in/519783)
Xeago has quit [Ping timeout: 260 seconds]
<mustmodify_> strange.
<mustmodify_> >> " white space after line: \rstuff".gsub(/ *$/, '').split(/[\r\n]/)
<shlomo> mustmodify_: you have to use \r in the first regex to match it: " white space after line: \rstuff".gsub(/ *([\r\n])/, '\1').split(/[\r\n]/)
<ruby[bot]> mustmodify_: # => [" white space after line: ", "stuff"] (https://eval.in/519785)
felixfortis has quit [Quit: Konversation terminated!]
<shlomo> I think it's better to split first: " white space after line: \rstuff".split(/[\r\n]/).map(&:rstrip)
rgtk has quit [Remote host closed the connection]
<shlomo> It seems /$/ only matches \n, not \r.
replay has joined #ruby
<eam> shlomo: $ should match $\
<eam> >> $\
<ruby[bot]> eam: # => nil (https://eval.in/519786)
idefine has quit [Remote host closed the connection]
dstarh has joined #ruby
<mustmodify_> shlomo: That's true for small strings. I'm just doing the split to see the result... I'm doing the gsub on a rather large string.
MuffinPimp has quit [Quit: ZNC - http://znc.in]
<al2o3-cr> >> $/
<ruby[bot]> al2o3-cr: # => "\n" (https://eval.in/519787)
roshanavand has quit [Remote host closed the connection]
LoneHerm_ has quit [Remote host closed the connection]
bronson has joined #ruby
arlek has joined #ruby
MuffinPimp has joined #ruby
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 256 seconds]
godzillaenlacasa has quit [Quit: ZZZZZ....]
Xeago has joined #ruby
<shlomo> eam: what do you mean? (I said that the regex /$/ matches "\n" in a string)
unl0ckd has quit [Quit: I've gone to sleep. ZZZzzz…]
mfb2 has quit [Remote host closed the connection]
<shlomo> mustmodify_: does this work for you: " white space after line: \rstuff".gsub(/ *([\r\n])/, '\1')
intrigueD has joined #ruby
<shlomo> >> " white space after line: \rstuff".gsub(/ *([\r\n])/, '\1')
<ruby[bot]> shlomo: # => " white space after line:\rstuff" (https://eval.in/519791)
dhollinger has joined #ruby
mhoungbo has joined #ruby
nicoulaj_ has quit [Quit: nicoulaj_]
<apeiros> shlomo: $ does not match \n, it matches before it and before end of string
infra-re_ has joined #ruby
dmr8 has joined #ruby
blackmesa has joined #ruby
<apeiros> mustmodify_: you have to be registered to use ruby[bot]'s eval feature.
dlitvak_ has joined #ruby
roshanavand has joined #ruby
<shlomo> apeiros: right. but it doesn't match before \r
infra-r__ has joined #ruby
infra-red has quit [Ping timeout: 276 seconds]
<al2o3-cr> >> " white space after line: \rstuff".gsub(/ *([\r\n])/, '\1'); $~
casadei has quit [Remote host closed the connection]
<ruby[bot]> al2o3-cr: # => #<MatchData " \r" 1:"\r"> (https://eval.in/519799)
<EvilRoey> ahlan shlomo
stannard has joined #ruby
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
DanKnox^ has quit [Quit: ZNC - http://znc.in]
mustmodify_ has left #ruby [#ruby]
maverous has joined #ruby
hxegon is now known as hxegon_AFK
<havenwood> TomyLobo: headers: { 'CURLOPT_UPLOAD' => 'Expect: 100-Continue' }
<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?
<TomyLobo> CURLOPT_UPLOAD is not a header
<TomyLobo> it's a curl option (hence "CURLOPT")
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Grays0n has joined #ruby
gizmore has joined #ruby
Guest33 has joined #ruby
Guest33 has left #ruby [#ruby]
karmatr0n has joined #ruby
ponga has quit [Quit: Connection closed for inactivity]
stannard has joined #ruby
RegulationD has joined #ruby
syath has quit [Quit: WeeChat 1.2]
x77686d has quit [Quit: x77686d]
LoneHerm_ has joined #ruby
<apeiros> maverous: Hash#find
<apeiros> maverous: if you do that often, you maybe should reconsider the way you structure your data
aryaching has quit [Ping timeout: 240 seconds]
Guest33 has joined #ruby
Grays0n has quit [Ping timeout: 252 seconds]
Guest33 has quit [Client Quit]
underplank has joined #ruby
beanHolez has joined #ruby
freerobby has quit [Quit: Leaving.]
aryaching has joined #ruby
MrSamuel has joined #ruby
hxegon_AFK is now known as hxegon
freerobby has joined #ruby
freerobby has quit [Client Quit]
blandflakes has joined #ruby
karmatr0n has quit [Ping timeout: 276 seconds]
asmodlol has quit [Ping timeout: 248 seconds]
freerobby has joined #ruby
underplank has quit [Client Quit]
<maverous> apeiros: thanks!
mdw has quit [Quit: Sleeping Zzzzz]
bascht has left #ruby ["undefined"]
tubulife- has joined #ruby
sonOfRa has quit [Read error: Connection reset by peer]
sonOfRa has joined #ruby
maverous has quit [Quit: programming]
mhoungbo has joined #ruby
shlomo has quit [Quit: WeeChat 1.4]
krz has quit [Quit: WeeChat 1.2]
tubulife- has quit [Ping timeout: 250 seconds]
goodcodeguy has joined #ruby
mdw has joined #ruby
Asher has joined #ruby
Coldblackice has joined #ruby
karmatr0n has joined #ruby
x77686d has joined #ruby
Guest94796 is now known as BLuEGoD
dstarh has quit [Quit: Textual IRC Client: www.textualapp.com]
BLuEGoD is now known as Guest41442
baweaver has joined #ruby
stannard has quit [Remote host closed the connection]
DexterLB has quit [Read error: Connection reset by peer]
stannard has joined #ruby
Dimik has joined #ruby
Deas has joined #ruby
<Deas> hi, is there a problem with rubygems? i can't install stuff w/ gem install
<Deas> if i change to http instead of https, i can install stuff but then it complains about openssl
lemur has joined #ruby
<havenwood> Deas: The dependency API currently has partially degraded performance it seems at the moment. ^
asprillia has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
asmodlol has joined #ruby
<Deas> havenwood: what does that mean? i'm not famuliure with that word
<Deas> well- not just the word, but as a whole
<Deas> sentence
DexterLB has joined #ruby
<Deas> so i guess ill have to wait then?
sandstrom has quit [Quit: My computer has gone to sleep.]
baweaver has quit [Ping timeout: 272 seconds]
<havenwood> Deas: gist and show us the result of: gem install hola --debug
stannard has quit [Ping timeout: 240 seconds]
symm- has quit [Quit: Leaving...]
DanKnox_ has joined #ruby
tomchapi_ has quit [Read error: Connection reset by peer]
moeabdol has joined #ruby
DanKnox has joined #ruby
tomchapin has joined #ruby
dlitvak has joined #ruby
dlitvak has quit [Read error: Connection reset by peer]
dlitvak has joined #ruby
devbug has quit [Ping timeout: 272 seconds]
<Deas> havenwood: https://p.teknik.io/ZreGR
lemur has quit [Ping timeout: 252 seconds]
<Deas> with openssl installed from http rubygems instead of https
ElFerna_ has quit [Ping timeout: 264 seconds]
Grays0n has joined #ruby
<Deas> havenwood: with openssl gem uninstalled: https://p.teknik.io/lPRN6
baweaver has joined #ruby
skade has joined #ruby
<havenwood> Deas: Install OpenSSL then rebuild Ruby against it so it can dynamically link.
<Deas> i recompiled ruby with ssl because i wasnt sure before
dlitvak__ has quit [Ping timeout: 272 seconds]
<havenwood> Deas: It doesn't seem you successfully linked against openssl.
weemsledeux has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> Deas: Just to confirm?: ruby -ropenssl -e "0"
stannard has joined #ruby
<havenwood> Deas: "Unable to require openssl, install OpenSSL and rebuild ruby"
devbug has joined #ruby
<Deas> no such file
cpruitt has joined #ruby
Youngmathimus0 has joined #ruby
stannard has quit [Remote host closed the connection]
stannard has joined #ruby
ElFerna_ has joined #ruby
<Deas> is there a page which points me to how to compile w/ openssl correctly? i did --with-openssl-dir=$(which openssl)
aryaching has quit []
<Deas> which is probably wrong, but that's what i found by googleing
tubulife- has joined #ruby
sepp2k has quit [Quit: Leaving.]
baweaver has quit [Remote host closed the connection]
TomPeed has joined #ruby
floatingpoint has joined #ruby
dopie has joined #ruby
asprillia has joined #ruby
TomPeed has quit [Client Quit]
TomPeed has joined #ruby
tubulife- has quit [Ping timeout: 265 seconds]
edwinvdgraaf has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
nerium has quit [Quit: nerium]
yfeldblum has quit [Ping timeout: 240 seconds]
duderonomy has quit [Ping timeout: 240 seconds]
TomPeed has quit [Read error: Connection reset by peer]
nerium has joined #ruby
TomPeed has joined #ruby
ElFerna_ has quit [Ping timeout: 250 seconds]
ilhami has quit [Quit: Leaving]
despai has joined #ruby
ElFerna_ has joined #ruby
openstruct has quit [Remote host closed the connection]
tatsuo has joined #ruby
cdg has joined #ruby
benlieb has quit [Quit: benlieb]
tomaz_b has joined #ruby
Shaboum has quit [Quit: WeeChat 1.4]
bithon has quit [Ping timeout: 248 seconds]
sandstrom has joined #ruby
cpruitt has quit [Quit: cpruitt]
symm- has joined #ruby
karapetyan has joined #ruby
idefine has quit [Remote host closed the connection]
mfb2 has joined #ruby
lxsameer has quit [Quit: Leaving]
baweaver has joined #ruby
dagda1 has quit [Quit: Textual IRC Client: www.textualapp.com]
edwinvdg_ has joined #ruby
johnmilton has quit [Quit: Namaste]
benlieb has joined #ruby
mfb2 has quit [Client Quit]
benlieb has quit [Client Quit]
mfb2 has joined #ruby
idefine has joined #ruby
<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]
rdark has quit [Ping timeout: 265 seconds]
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<shevy> yes!
<shevy> "2832 programs are registered in our cookbooks as of 16.02.2016."
<Deas> o_o
<shevy> only glibc scares me
<Deas> what kind of cookbook is that? xD.
<Deas> does it make tasty food? xD hehe
blandflakes has joined #ruby
norc_ has quit [Ping timeout: 256 seconds]
afaris has joined #ruby
dmr8 has quit [Quit: Leaving]
LoneHerm_ has joined #ruby
tubulife- has joined #ruby
rikkipitt has joined #ruby
paha80 has joined #ruby
BSaboia has joined #ruby
zackzorman has quit [Ping timeout: 265 seconds]
shazaum_ has joined #ruby
paha80 has quit [Client Quit]
Guest41442 is now known as BLuEGoD
BLuEGoD is now known as Guest77025
ghr has quit [Ping timeout: 276 seconds]
_ht has quit [Remote host closed the connection]
ghr has joined #ruby
_ht has joined #ruby
DanKnox_ has quit [Ping timeout: 272 seconds]
DanKnox has quit [Ping timeout: 272 seconds]
paha80 has joined #ruby
paha80 has quit [Client Quit]
zackzorman has joined #ruby
trinaldi has joined #ruby
avenj has quit [Ping timeout: 240 seconds]
bMalum has joined #ruby
gigetoo has quit [Ping timeout: 260 seconds]
mdw has quit [Quit: Sleeping Zzzzz]
tomchapin has quit [Read error: Connection reset by peer]
<shevy> Deas it has recipes!
zacstewart has joined #ruby
Jackneill has quit [Read error: Connection reset by peer]
asprillia has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
TomPeed has quit [Ping timeout: 250 seconds]
<al2o3-cr> shevy: what kind of recipes?
<shevy> al2o3-cr well sorta like LFS and BLFS really http://www.linuxfromscratch.org/lfs/view/development/chapter06/gcc.html but not as information rich yet
srenatus has quit [Quit: Connection closed for inactivity]
<al2o3-cr> shevy: phaha i was thinking food :P
<shevy> hah
<shevy> machomebrew
<shevy> everything has to do with foods and drinks
<shevy> mozzarella ... pizzaops ... waffles ... well he is not here right now
mfb2 has quit [Remote host closed the connection]
frozen3 has joined #ruby
<shevy> I track their progress every now and then https://github.com/Homebrew/homebrew/commits/master/Library/Formula
<pizzaops> WHY HAVE YOU SUMMONED ME!?
<shevy> you have a tasty nick!
<pizzaops> This is acceptable.
blackgoat has joined #ruby
<Deas> hehe :p funny
idefine has quit [Remote host closed the connection]
atmosx has quit [Quit: This is aparting message!]
<diegoviola> hi
<shevy> hi violadiego
chipotle_ has joined #ruby
DEA7TH has quit [Quit: DEA7TH]
_ht has quit [Quit: Konversation terminated!]
idefine has joined #ruby
<Eiam> did this end up being an issue for anyone here? https://cmcenroe.me/2016/02/16/el-capitan-gem-brick.html
al2o3-cr is now known as givemetandoorich
givemetandoorich is now known as al2o3-cr
chipotle has quit [Ping timeout: 250 seconds]
frozen3 has quit [Ping timeout: 250 seconds]
<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?
patchedmonkey has quit [Quit: Textual IRC Client: www.textualapp.com]
ElFerna_ has quit [Quit: WeeChat 1.3]
<shevy> no real clue
<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 :)
tomchapin has joined #ruby
<Eiam> recommend
<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
idefine has joined #ruby
x77686d has quit [Quit: x77686d]
stevemackinnon has joined #ruby
<jimeh> Oh, skimming the readme I saw "doesn't auto switch"... Didn't skim deep enough I guess... lol
greynetic has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LoneHerm_ has quit [Remote host closed the connection]
<shevy> jimeh havenwood is busy adding things to all of them!
ElFerna has quit [Ping timeout: 265 seconds]
<jimeh> Apologies, doesn't auto-switch by default >_<
<shevy> "Switched to TravisCI container-based infrastructure."
zotherstupidguy has quit [Quit: WeeChat 1.3]
rikkipitt has quit [Quit: Leaving...]
<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
<al2o3-cr> *bundle sorry
karmatr0n has quit []
<zach2825> i get "bundler is /usr/local/bin/bundler"
<zach2825> bundle is /usr/local/bin/bundle
<zach2825> bundle is /usr/bin/bundle
peteyg_ has joined #ruby
amclain_ has joined #ruby
MrSamuel has quit [Quit: MrSamuel]
ta_ has joined #ruby
pwnd_nsfw` has joined #ruby
Cohedrin_ has joined #ruby
e4xit has joined #ruby
<zach2825> i've been at this for hours. im out of ideas
intrigueD has quit [Remote host closed the connection]
saneax_AFK is now known as saneax
ghoti_ has joined #ruby
sjums_ has joined #ruby
<Ox0dea> `rvm implode`
nibbo has quit [Ping timeout: 240 seconds]
jord_ has joined #ruby
avahey_ has joined #ruby
netwoodle has joined #ruby
pfg_ has joined #ruby
bjeanes_ has joined #ruby
sideshowcoder_ has joined #ruby
chrisseaton_ has joined #ruby
halfdan_ has joined #ruby
baweaver has quit [Remote host closed the connection]
<zach2825> i've tried that. should i also remove the bundler and bundle packages
crowell_ has joined #ruby
Zai00_ has joined #ruby
<zach2825> ok that command is done
sponjii__ has joined #ruby
sami___ has joined #ruby
kellabyte_ has joined #ruby
bttf_ has joined #ruby
zenergi_ has joined #ruby
Ralf_J has joined #ruby
rethi_ has joined #ruby
jtdowney_ has joined #ruby
jzigmund_ has joined #ruby
casadei_ has joined #ruby
agentmee1kat has joined #ruby
bihi has joined #ruby
hinbody_ has joined #ruby
unreal_ has joined #ruby
kappy_ has joined #ruby
sushi_- has joined #ruby
cardoni_ has joined #ruby
sarbs_ has joined #ruby
frode15243_ has joined #ruby
rflot_ has joined #ruby
adambeynon_ has joined #ruby
skmp_ has joined #ruby
deimos_ has joined #ruby
twodayslate_ has joined #ruby
meinside___ has joined #ruby
frankS2_ has joined #ruby
Rush_ has joined #ruby
cstrahan_ has joined #ruby
andersh_ has joined #ruby
Rush_ is now known as Guest15707
<zach2825> aegis3121, i think this is the problem https://gist.github.com/zach2825/fc1c557fba7195d6d945
camilasann has joined #ruby
<jhass> zach2825: https://rvm.io/support/troubleshooting the second to last entry
d10n-work_ has joined #ruby
ziyadb_ has joined #ruby
machty_ has joined #ruby
bgresham has joined #ruby
kkirsche has joined #ruby
ramblinpeck_ has joined #ruby
rideh- has joined #ruby
denym_` has joined #ruby
sjohnsen- has joined #ruby
spacemud_ has joined #ruby
TakumoKatekari has joined #ruby
okdas_ has joined #ruby
TakumoKatekari has joined #ruby
j2k_ has joined #ruby
joconcepts_ has joined #ruby
C0deMaver1ck has joined #ruby
mighty_gorilla has joined #ruby
<jhass> zach2825: then install RVM as a regular user, not as root
Plas has joined #ruby
C0deMaver1ck is now known as Guest49360
<jhass> then make sure to open a new login shell for that user
mary5030 has joined #ruby
ur5us_ has joined #ruby
<jhass> install ruby 2.0 (or yet better something not EOL in a week from now), gem install bundler and you should be good
<zach2825> ok that command is done
c0ncealed has quit [*.net *.split]
ta has quit [*.net *.split]
agentmeerkat has quit [*.net *.split]
ur5us has quit [*.net *.split]
d10n-work has quit [*.net *.split]
Cohedrin has quit [*.net *.split]
akem has quit [*.net *.split]
Zai00 has quit [*.net *.split]
zz_denym_ has quit [*.net *.split]
RalfJ has quit [*.net *.split]
amclain has quit [*.net *.split]
ziyadb has quit [*.net *.split]
nofxx has quit [*.net *.split]
dubek has quit [*.net *.split]
arthropododo has quit [*.net *.split]
blackms has quit [*.net *.split]
spacemud has quit [*.net *.split]
zenergi has quit [*.net *.split]
beawesomeinstead has quit [*.net *.split]
r4z3r has quit [*.net *.split]
rideh has quit [*.net *.split]
avahey has quit [*.net *.split]
sarbs has quit [*.net *.split]
peteyg has quit [*.net *.split]
unreal has quit [*.net *.split]
Trieste has quit [*.net *.split]
sponjii has quit [*.net *.split]
Domaldel has quit [*.net *.split]
shevy has quit [*.net *.split]
crayfishx has quit [*.net *.split]
bodgix has quit [*.net *.split]
jazzonmymind has quit [*.net *.split]
x0f has quit [*.net *.split]
whiteline has quit [*.net *.split]
sjohnsen has quit [*.net *.split]
mprelude_ has quit [*.net *.split]
joconcepts has quit [*.net *.split]
rethi has quit [*.net *.split]
camilasan has quit [*.net *.split]
okdas has quit [*.net *.split]
al2o3-cr has quit [*.net *.split]
Timberwo|f has quit [*.net *.split]
Takumo has quit [*.net *.split]
hinbody has quit [*.net *.split]
Guest61600 has quit [*.net *.split]
PlasmaStar has quit [*.net *.split]
e4xit_ has quit [*.net *.split]
sorah_ has quit [*.net *.split]
crowell has quit [*.net *.split]
mrsolo has quit [*.net *.split]
bjeanes has quit [*.net *.split]
hanmac has quit [*.net *.split]
bttf has quit [*.net *.split]
frankS2 has quit [*.net *.split]
sushii has quit [*.net *.split]
kellabyte has quit [*.net *.split]
twodayslate has quit [*.net *.split]
cstrahan has quit [*.net *.split]
cardoni has quit [*.net *.split]
sjums has quit [*.net *.split]
sami has quit [*.net *.split]
jzigmund has quit [*.net *.split]
j2k has quit [*.net *.split]
johnny56_ has quit [*.net *.split]
RushPL has quit [*.net *.split]
iamdevnul has quit [*.net *.split]
sideshowcoder has quit [*.net *.split]
skmp has quit [*.net *.split]
err_ok has quit [*.net *.split]
AckZ has quit [*.net *.split]
ramblinpeck has quit [*.net *.split]
ddfreyne has quit [*.net *.split]
demophoon has quit [*.net *.split]
hollywood has quit [*.net *.split]
ghoti has quit [*.net *.split]
jtdoncas has quit [*.net *.split]
St1gma has quit [*.net *.split]
kappy has quit [*.net *.split]
lele has quit [*.net *.split]
Nanuq has quit [*.net *.split]
chris2 has quit [*.net *.split]
DrCode has quit [*.net *.split]
cjk101010 has quit [*.net *.split]
pwnd_nsfw has quit [*.net *.split]
jtdowney has quit [*.net *.split]
cookiez has quit [*.net *.split]
modin has quit [*.net *.split]
apipkin has quit [*.net *.split]
machty has quit [*.net *.split]
andersh has quit [*.net *.split]
jord has quit [*.net *.split]
chrisseaton has quit [*.net *.split]
rflot has quit [*.net *.split]
amitchellbullard has quit [*.net *.split]
meinside_ has quit [*.net *.split]
Luna_Moonfang has quit [*.net *.split]
zrl has quit [*.net *.split]
halfdan has quit [*.net *.split]
pfg has quit [*.net *.split]
danzilio has quit [*.net *.split]
yo61 has quit [*.net *.split]
deimos has quit [*.net *.split]
adambeynon has quit [*.net *.split]
Zai00_ is now known as Zai00
kkirsche is now known as r4z3r
beawesomeinstead has joined #ruby
netwoodle is now known as noodle
spacemud_ is now known as spacemud
sarbs_ is now known as sarbs
bgresham is now known as demophoon
sideshowcoder_ is now known as sideshowcoder
lele has joined #ruby
avahey_ is now known as avahey
x0f has joined #ruby
kirun has quit [Remote host closed the connection]
adambeynon_ is now known as adambeynon
Liothen has joined #ruby
Xeago has joined #ruby
Plas is now known as PlasmaStar
jord_ is now known as jord
<zach2825> same problem. my system is using ruby 2.0.0p648 but bundle install is using something 1.9.1
cardoni_ is now known as cardoni
frode15243_ is now known as frode15243
<zach2825> nothing i do makes bundle use ruby 2.0.0
bjeanes_ is now known as bjeanes
err_ok has joined #ruby
Liothen has quit [Changing host]
Liothen has joined #ruby
d10n-work_ is now known as d10n-work
chrisseaton_ is now known as chrisseaton
ziyadb_ is now known as ziyadb
Luna_Moonfang has joined #ruby
<jhass> you installed RVM as a user, ruby 2.0 within it, selected it, installed bundler then and retried within 2 minutes?
<jhass> sorry if I don't believe that
sorah_ has joined #ruby
rkazak has joined #ruby
Evan^ has quit [Ping timeout: 272 seconds]
skmp_ is now known as skmp
rflot_ is now known as rflot
kellabyte_ is now known as kellabyte
<zach2825> i have a lot of band width and a pretty good server
ramblinpeck_ is now known as ramblinpeck
twodayslate_ is now known as twodayslate
amitchellbullard has joined #ruby
sjohnsen- has quit [Ping timeout: 250 seconds]
cstrahan_ is now known as cstrahan
<jhass> what does rvm current say?
Freeaqingme has quit [Ping timeout: 250 seconds]
Evan_ has joined #ruby
andersh_ is now known as andersh
halfdan_ is now known as halfdan
pfg_ is now known as pfg
danzilio has joined #ruby
<zach2825> im running the command to install 2.0.0 right now. maybe switching from 2.0.0p648 to just 2.0.0 will resolve something
bttf_ is now known as bttf
deimos_ is now known as deimos
frankS2_ is now known as frankS2
<zach2825> i used "rvm install ruby-2.0.0"
nofxx has joined #ruby
nofxx has joined #ruby
mprelude_ has joined #ruby
mrsolo has joined #ruby
iamdevnul has joined #ruby
c0ncealed has joined #ruby
jtdoncas has joined #ruby
<zach2825> this one is a bit slower. still compiling..
al2o3-cr has joined #ruby
dubek has joined #ruby
whiteline has joined #ruby
nibbo has joined #ruby
hanmac has joined #ruby
wolffles has joined #ruby
AckZ has joined #ruby
Guest28968 is now known as BLuEGoD
baweaver has joined #ruby
sondr3 has joined #ruby
BLuEGoD is now known as Guest53489
rkazak has quit [Ping timeout: 276 seconds]
Domaldel has joined #ruby
cjk101010 has joined #ruby
shevy has joined #ruby
Nanuq has joined #ruby
bodgix has joined #ruby
ddfreyne has joined #ruby
jazzonmymind has joined #ruby
6A4AB3XQ1 has joined #ruby
blackms has joined #ruby
akem has joined #ruby
cookiez has joined #ruby
crayfishx has joined #ruby
arthropododo has joined #ruby
6A4AB3XQ1 has quit [Changing host]
6A4AB3XQ1 has joined #ruby
saneax is now known as saneax_AFK
modin has joined #ruby
shevy has left #ruby ["I'll be back ... maybe"]
shevy has joined #ruby
6A4AB3XQ1 has quit [Max SendQ exceeded]
yo61 has joined #ruby
DrCode has joined #ruby
<shevy> huh what happened, netsplit?
St1gma has joined #ruby
avenj has joined #ruby
Trieste has joined #ruby
aegis3121 has quit [Ping timeout: 276 seconds]
Guest12896 has joined #ruby
<zach2825> im here
replay has quit [Ping timeout: 240 seconds]
machty_ is now known as machty
c355e3b has quit [Ping timeout: 260 seconds]
meinside___ has quit []
malconis has quit [Ping timeout: 252 seconds]
meinside has joined #ruby
dlitvak has joined #ruby
zackzorman has quit [Ping timeout: 240 seconds]
JDiPierro has joined #ruby
c355e3b has joined #ruby
kam270 has joined #ruby
Xeago has quit [Remote host closed the connection]
johnny56_ has joined #ruby
johnmilton has joined #ruby
<mg^> I made an MRuby plugin for HexChat... https://github.com/mgcaret/hexchat-mruby
kam270 has quit [Max SendQ exceeded]
kam270 has joined #ruby
casadei_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
shanemcd has quit [Remote host closed the connection]
SCHAAP137 has quit [Remote host closed the connection]
<TomyLobo> you're telling me that on #ruby while i'm using hexchat
firstdayonthejob has quit [Ping timeout: 250 seconds]
cschneid_ has quit [Remote host closed the connection]