apeiros_ changed the topic of #ruby to: Ruby 2.2.0; 2.1.5; 2.0.0-p598; 1.9.3-p551: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
Megtastique has joined #ruby
atomicalloy has quit [Ping timeout: 250 seconds]
nii236|irssi has quit [Quit: leaving]
nii236|irssi has joined #ruby
CpuID2 has quit [Client Quit]
zachrab has quit [Ping timeout: 250 seconds]
ponga has joined #ruby
tier has joined #ruby
bricker has quit [Quit: leaving]
<bradland> is facets any good?
cajone has quit [Remote host closed the connection]
<bradland> as in, will it make people hate me later if i use it now?
<bradland> like hashie
bogdanteleaga has quit [Ping timeout: 245 seconds]
Yzguy has joined #ruby
serivich has joined #ruby
<jhass> as far as questions in #ruby goes, it's my new rails
ponga has quit [Read error: No route to host]
serivich has quit [Read error: Connection reset by peer]
ponga has joined #ruby
cajone has joined #ruby
<jhass> people drop in, claim it's plain ruby and then you slowly figure out why it's behaving so strangely
freerobby has joined #ruby
chipotle has joined #ruby
<jhass> same for chef and a bit for puppet, though puppet users usually give away that they're using puppet right in the question
Megtastique has quit []
<jhass> or maybe I mistake facets for that facter stuff
<jhass> it all confuses me
Musashi007 has joined #ruby
freerobby has quit [Client Quit]
skj3gg has quit [Quit: ZZZzzz…]
nii236|irssi has quit [Remote host closed the connection]
bwilson has joined #ruby
<bradland> i'm in the same boat. i hardly understand ruby. more extensions just make me more confused.
<Nilium> I just don't try to figure out Rails-related problems.
jottr has quit [Ping timeout: 240 seconds]
<jhass> but for that you have to figure out it's Rails(or Chef or Puppet)-related first!
iceden has quit [Read error: Connection reset by peer]
iMe has quit [Ping timeout: 255 seconds]
<Nilium> It's usually obvious when you see active record mentioned anywhere, which it usually is
tier has quit [Remote host closed the connection]
ponga has quit [Quit: Leaving...]
jlast has joined #ruby
Yzguy has quit [Quit: I'm sleeping, go away.]
iMe has joined #ruby
sudog has quit [Ping timeout: 250 seconds]
jaequery has joined #ruby
<shevy> anyone knows if there are any major changes in ruby upcoming?
sudog has joined #ruby
lioninawhat has quit [Read error: Connection reset by peer]
lioninawhat has joined #ruby
<zenspider> facets?!?! that isn't dead/banned/murdered&buried yet?
jlast has quit [Ping timeout: 265 seconds]
mikecmpbll has quit [Quit: ciao.]
<bradland> shevy: depends on your definition of major
jlast has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
multi_io has joined #ruby
ixti has quit [Quit: WeeChat 1.1.1]
<shevy> bradland hmm. I kinda want to see like just an overview of what is going on
<shevy> like the status of refinements
ismaelga has joined #ruby
zorak8 has joined #ruby
raphaelss has quit [Quit: leaving]
multi_io_ has quit [Ping timeout: 245 seconds]
jlast has quit [Ping timeout: 265 seconds]
phoo1234567 has quit [Quit: Leaving]
freerobby has joined #ruby
startupality has quit [Quit: startupality]
CpuID2 has joined #ruby
iceden has joined #ruby
inteq has joined #ruby
oo_ has joined #ruby
dfinninger has joined #ruby
iMe has quit [Ping timeout: 250 seconds]
CpuID2 has quit [Quit: This computer has gone to sleep]
oleo is now known as Guest75895
oleo__ has joined #ruby
iMe has joined #ruby
oo_ has quit [Remote host closed the connection]
dfinninger has quit [Remote host closed the connection]
dorei has quit []
sent1nel has quit [Remote host closed the connection]
oo_ has joined #ruby
Guest75895 has quit [Ping timeout: 264 seconds]
boombadaroomba has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
nii236|irssi has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
roolo has quit [Quit: Leaving...]
gwillickers has left #ruby ["spoop!"]
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ismaelga has quit [Remote host closed the connection]
ismaelga has joined #ruby
tier has joined #ruby
ishikawa91 has joined #ruby
Fire-Dragon-DoL has quit []
sevenseacat has joined #ruby
iMe has quit [Ping timeout: 252 seconds]
jaequery has joined #ruby
CpuID2 has joined #ruby
iMe has joined #ruby
bruno- has joined #ruby
Musashi007 has quit [Quit: Musashi007]
last_staff has quit [Quit: last_staff]
bruno- has quit [Ping timeout: 250 seconds]
Megtastique has joined #ruby
jbw__ has joined #ruby
Takle has joined #ruby
iamninja has joined #ruby
blackmesa has quit [Quit: WeeChat 1.1.1]
charliesome has joined #ruby
jbw_ has quit [Ping timeout: 255 seconds]
CpuID2 has quit [Quit: This computer has gone to sleep]
tier has quit [Remote host closed the connection]
bruno- has joined #ruby
Takle has quit [Ping timeout: 264 seconds]
bruno- is now known as Guest97322
Megtastique has quit []
kaspertidemann has quit []
CpuID2 has joined #ruby
ptrrr has joined #ruby
<starless> How can I spawn a bunch of threads that run a long method that returns some data such that (1) I can access that data from the spawning thread and (2) I can efficiently process the data from each thread as they finish?
<starless> I'm assuming continuously checking if each thread is alive is not the best way to accomplish (2).
speakingcode has quit [Read error: Connection reset by peer]
Yzguy has joined #ruby
Guest97322 has quit [Ping timeout: 255 seconds]
marr has quit [Ping timeout: 250 seconds]
<waxjar> something like threads = Array.new(10) { Thread.new { some_method } }; threads.map(&:value)?
iwishiwerearobot has joined #ruby
<starless> waxjar: righto, just found mythread.value. What's the & mean in this context?
ptrrr has quit [Ping timeout: 250 seconds]
<waxjar> it's short for threads.map { |thread| thread.value }
<starless> waxjar: beautiful. didn't know that. thanks.
sankaber has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<waxjar> google for symbol to proc in ruby for a detailed explanation, there are plenty of articles on it :)
zorak8 has quit [Ping timeout: 246 seconds]
<starless> waxjar: but this will block on the threads sequentially, won't it?
CpuID2 has quit [Quit: This computer has gone to sleep]
bruno-_ has joined #ruby
<waxjar> yeah, but they'll all finish close to each other, since they're running in the background :)
zorak8 has joined #ruby
jlast has joined #ruby
jaequery has joined #ruby
<Scient> ruby keeps on segfaulting for me when installing from source... with /usr/local/lib/ruby/2.2.0/psych.rb:370: [BUG] Segmentation fault at 0x00000014333fe0
<Scient> basically no matter WHAT I do
<Scient> same for 2.1.5
iwishiwerearobot has quit [Ping timeout: 256 seconds]
<starless> waxjar: well, they're doing networking operations, so I expect some stagger. but thank you anyway!
blizzy is now known as _blizzy
iMe has quit [Ping timeout: 245 seconds]
_blizzy is now known as _blizzy_
zorak_ has joined #ruby
zorak8 has quit [Read error: Connection reset by peer]
<Scient> anyone got any clue a bout this?
<waxjar> just to clarify, it'll stall the main thread until all threads are done, but they're executing concurrently :)
CustosL1men has quit [Ping timeout: 240 seconds]
jonr22 has quit [Remote host closed the connection]
jonr22 has joined #ruby
jlast has quit [Ping timeout: 250 seconds]
iMe has joined #ruby
<starless> waxjar: yep, but the thing is the main thread then does work with their data, and it's relevant to the performance of my program that the data is processed as soon as it's ready (as opposed to perhaps waiting for the first thread when the last is done)
Deele has quit [Ping timeout: 245 seconds]
jlast has joined #ruby
<jhass> starless: sounds like it's independent of the other results, why not do that processing inside the thread then?
<jhass> why do you have to pass it back to the main thread
ponga has joined #ruby
<jhass> or in other worker threads for that matter
<starless> the main thread is writing to a stream, and that stream can't be shared between threads for obvious reasons
shaquile has quit [Ping timeout: 255 seconds]
agrinb_ has quit [Read error: Connection reset by peer]
<jhass> it can, you just need to lock it with a mutex
<Scient> cant really find anything on this segfault either
<Scient> great...
agrinb has joined #ruby
<jhass> starless: check the monitor mixin in stdlib, very useful to write a thread safe wrapper around things
<starless> jhass: I suppose I could do that. And I'll look into monitor as well. Thanks.
shaquile has joined #ruby
jonr22 has quit [Ping timeout: 265 seconds]
yfeldblu_ has joined #ruby
lucianosousa has joined #ruby
Sawbones has joined #ruby
jlast has quit [Ping timeout: 265 seconds]
apeiros_ has quit [Remote host closed the connection]
Deele has joined #ruby
<waxjar> i think i remember reading IO#write is safe to use from threads, but i might be wrong
CustosL1men has joined #ruby
<Scient> anyone got a clue about the segfault? has maybe seen it before?
FooMunki_ has quit [Quit: FooMunki_]
apeiros_ has joined #ruby
speakingcode has joined #ruby
Yzguy has quit [Quit: I'm sleeping, go away.]
<jhass> waxjar: per call safe maybe, but then you need to make sure to only do a single call
yfeldblum has quit [Ping timeout: 264 seconds]
<jhass> often you want to synchronize over multiple calls when it comes to IO
nobitanobi has joined #ruby
<jhass> Scient: you should tell when you crosspost ;)
<Scient> not really if im not getting any response here :)
arescorpio has joined #ruby
<jhass> no response in IRC terms means 12-24 hours ;)
systemd0wn_ has quit [Read error: Connection reset by peer]
systemd0wn has joined #ruby
<jhass> also you probably should make a gist with the full output
nii236|irssi is now known as nii236
systemd0wn has quit [Read error: Connection reset by peer]
<Scient> well.. it segfaults in psych, what else is there to see really :P
systemd0wn has joined #ruby
systemd0wn has quit [Read error: Connection reset by peer]
systemd0wn has joined #ruby
<jhass> things you may overlook, libyaml versions, silly loaded libraries, stuff like that
<jhass> there must be something unusual in your system when it comes to a release like that and works on thousands of machines flawlessly
systemd0wn has quit [Read error: Connection reset by peer]
systemd0wn has joined #ruby
<sevenseacat> no problem with ruby 2.1.5 or 2.2.0 here :)
<Scient> i cant really see why it would fail there specifically
systemd0wn has quit [Read error: Connection reset by peer]
<sevenseacat> even knowing your OS might be a good start
systemd0wn has joined #ruby
<Scient> i mean it installs fine.. and then when it starts installing gems, specifically bundler, it shits the bed
bMalum has quit [Quit: bMalum]
tunaCanBruh has joined #ruby
systemd0wn has quit [Read error: Connection reset by peer]
systemd0wn has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jhass> Scient: you can never provide too many details, so that argument is void anyways
iMe has quit [Ping timeout: 256 seconds]
systemd0wn has quit [Read error: Connection reset by peer]
systemd0wn has joined #ruby
<Scient> fell back to 2.1.5 from scratch, after a blanked package update and disabling ffi
<Scient> seems to work, idk
<Scient> fuck .20
<Scient> 2.2.0 that is
<Scient> jhass: sure, but if there is zero response, im not really going to scramble for extra info
Sawbones has quit [Remote host closed the connection]
systemd0wn has quit [Read error: Connection reset by peer]
systemd0wn has joined #ruby
<jhass> or maybe there's zero response because of the lack of that extra info
<Scient> i guess thats too bad then
<jhass> and as said, it's not unusual to take up to 12 hours until somebody pops in that has the response
<sevenseacat> too bad for you :P
tkuchiki has joined #ruby
iMe has joined #ruby
systemd0wn has quit [Read error: Connection reset by peer]
<Scient> yeah im not up for waiting 12 hours
jerius has quit []
<Scient> thats just not reasonable
<Scient> thats my point
Sawbones has joined #ruby
<Scient> no response at all = fuck it
systemd0wn has joined #ruby
tunaCanBruh has quit [Ping timeout: 264 seconds]
versatiletech has joined #ruby
techietrash has joined #ruby
systemd0wn has quit [Read error: Connection reset by peer]
<Scient> its not like im not going to get it work, it might save some time if its an issue that someone has encountered before - especially if its somewhat of a corner case (based on going thru bug reports)
systemd0wn has joined #ruby
* sevenseacat gets popcorn
<Scient> :9
<jhass> sevenseacat: you have to thrive it forward for that, I'm having enough of the whining
<Scient> im not whining
<Scient> you are
systemd0wn has quit [Read error: Connection reset by peer]
<Scient> pretty annoying to be honest
systemd0wn has joined #ruby
speakingcode has quit [Remote host closed the connection]
<Scient> you respond with nothing. at. all. then you start something about "cross posting" and having to wait 12-24 hours and whatnot
systemd0wn has quit [Read error: Connection reset by peer]
<Scient> so why not just keep ignoring me, obviously im not going to wait and you are not being of any help for me
<Scient> plus, i have it solved now
systemd0wn has joined #ruby
<jhass> yes you're right. I'm annoying and you know everything better than me. Sorry for responding to your request of help.
systemd0wn has quit [Read error: Connection reset by peer]
<sevenseacat> so you should be! bad jhass!
<Scient> if only you would responded to the request of help
<Scient> jesus
jaequery has joined #ruby
* sevenseacat bops jhass on the nose with a newspaper
systemd0wn has joined #ruby
jaequery has quit [Client Quit]
<jhass> you still have a newspaper?
<Scient> this is why i avoid asking anything on irc besides on a couple of specific channels
jaequery has joined #ruby
<Scient> there is always someone who will treat you like a 5 year old and act all self righteous in the process
jaequery has quit [Client Quit]
<Scient> fuck that. for real.
systemd0wn has quit [Read error: Connection reset by peer]
systemd0wn has joined #ruby
<Scient> if you dont know the answer, say so. if you want more info, say so.
<Scient> just dont start shit about nothing
systemd0wn has quit [Read error: Connection reset by peer]
zachrab has joined #ruby
systemd0wn has joined #ruby
<jhass> mh, yeah, IRC is really nothing I can recommend if you're offended that easily
systemd0wn has quit [Read error: Connection reset by peer]
systemd0wn has joined #ruby
<zenspider> Scient: I dunno about whiny as I only have so much backlog, but you sure are coming off as entitled to me. You didn't seem to provide enough details and now you're upset that you're not getting a solution on a silver platter.
* Scient facepalms
<zenspider> yup. keep up the righteous indignation. I'm sure it'll work for you... somewhere.
Sawbones has quit [Remote host closed the connection]
<zenspider> starless: may I see?
dixie__ has quit [Quit: later guys!]
<Scient> funny how everyone is suddenly here and "ready to give advice" now
<starless> zenspider: yeah, lemme just try one more fix.
<starless> zenspider: I had a multiprocess implementation and I'm trying to make it multithreaded and now it's megafucked
zachrab has quit [Ping timeout: 252 seconds]
<zenspider> Scient: ok. I can confirm the whiny part now. I'll stop with you, so you can have the last word since you seem that type.
<zenspider> starless: why go from multiprocess to multithreaded? need more sharing?
<Scient> smart move
<zenspider> multiprocess is beautiful from a thread safety perspective. :)
<starless> zenspider: yeah, I know. I'm just gonna roll back, actually.
<zenspider> well... let's take a look first
swgillespie has quit [Max SendQ exceeded]
<starless> alright...but be warned; I know there's a better way to do this
<zenspider> haha. fair warning
swgillespie has joined #ruby
speakingcode has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
<shevy> sevenseacat don't eat popcorn, it's not good for a cat!
<sevenseacat> but so tasty
<zenspider> really? I had a cat that would eat popcorn periodically... tho he preferred tortilla chips
<shevy> really??
<shevy> hmm I am a bit scared to try
<sevenseacat> i had a cat once that liked vegemite. true story.
<shevy> she is like 14 years or so soon, can't scare an old cat like that
<zenspider> vegemite? damn... sodium deficiency ?
<sevenseacat> dunno, but she loved it
<eam> cat food is mostly corn anyway right
<shevy> ah that sounds ok, vegemite is bread-like or? I've seen some cats eat parts of bread sometimes, depends on what type
<shevy> eam beef!
robustus|Off has joined #ruby
robustus|Off is now known as robustus
<sevenseacat> it was one of those things where the cat always hangs around trying to eat human food so we were all like 'you think so, cat? try this'
<sevenseacat> <cat> omnomnom
<eam> shevy: not sure I call those parts of the animal "beef"
diegoviola has quit [Read error: Connection reset by peer]
<sevenseacat> <us> ....wtf
CpuID2 has joined #ruby
bufferloss has joined #ruby
phutchins has quit [Ping timeout: 245 seconds]
inteq has quit []
<eam> http://www.naturallyloriel.com/wp-content/uploads/2013/11/purina-cat-chow-naturals.jpg (also, lol @ GMO fearmongering in that google image search'd image)
juancaman has quit [Quit: ThrashIRC v2.9 sic populo comunicated]
CpuID2 has quit [Client Quit]
<eam> based on "vegemite" I'm pretty sure sevenseacat isn't from the USA in which case food might actually not be corn-based
<eam> but that's all we eat here, humans, cats or otherwise
<sevenseacat> correct, we dont live on a diet of corn here in australia :P
systemd0wn has quit [Read error: Connection reset by peer]
<bufferloss> I like corn
<eam> just dingos and drop-bears
<sevenseacat> they taste like chicken.
systemd0wn has joined #ruby
<starless> zenspider: is my code at least readable?
<eam> I've never eaten a dingo :(
kt2 has quit [Quit: ...]
iMe has quit [Ping timeout: 245 seconds]
systemd0wn has quit [Read error: Connection reset by peer]
<zenspider> starless: yup. reading through it now. what's the original problem?
VBlizzard has joined #ruby
systemd0wn has joined #ruby
VBlizzard is now known as blizzy
systemd0wn has quit [Read error: Connection reset by peer]
<starless> zenspider: well I had a pretty stable build that worked fine. I wanted to optimize so I wanted to go from multiprocess to multithreading
systemd0wn has joined #ruby
iMe has joined #ruby
<zenspider> hard to beat multiprocess on a good OS.
riceandbeans has joined #ruby
<zenspider> unless you're spawning a shit-tonne
systemd0wn has quit [Read error: Connection reset by peer]
systemd0wn has joined #ruby
<starless> zenspider: Guess I'll be rolling back, then
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
systemd0wn has quit [Read error: Connection reset by peer]
_blizzy_ has quit [Disconnected by services]
blizzy is now known as _blizzy_
systemd0wn has joined #ruby
systemd0wn has quit [Read error: Connection reset by peer]
systemd0wn has joined #ruby
<zenspider> starless: don't think you _need_ to, but I see nothing wrong with a multiprocess design for this type of tool as long as you're not trying to exhaust system resources.
<zenspider> at that point, you'd need the spawner to maintain a pool of active processes
<zenspider> same with threads at that point tho
systemd0wn has quit [Read error: Connection reset by peer]
diegoviola has joined #ruby
<starless> zenspider: well, I'd really only be rolling back because I had a stable build
vasuvi has quit [Quit: Konversation terminated!]
systemd0wn has joined #ruby
<starless> it was damn reliable
<zenspider> *nod* what were you trying to optimize?
systemd0wn has quit [Read error: Connection reset by peer]
<bufferloss> starless, you know that MRI ruby has a global thread lock right?
systemd0wn has joined #ruby
<starless> bufferloss: so? I have race conditions up the butt right now
<bufferloss> starless, threads vs forking won't solve that
mikepack has quit [Read error: Connection reset by peer]
<jhass> bufferloss: not around most of the IO stuff
mikepack has joined #ruby
<starless> zenspider: I just got it in my head that threads would be faster than processes; I originally did processes so I could have a different PWD for each repository, but then I realized you could tell git which dir to work in
<starless> bufferloss: yes it will. watch.
* starless rolls back.
<starless> bang, it works
<zenspider> haha
<bufferloss> starless, that doesn't fix your inability to program concurrency correctly
<zenspider> throwing around "global thread lock" without specific context means roughly nothing
<bufferloss> starless, all it does is basically make your system non concurrent
<starless> says the guy who suggested the global thread lock
<jhass> bufferloss, I'm not following what you're getting at either
jefus has quit [Ping timeout: 250 seconds]
blackthor has quit [Ping timeout: 256 seconds]
<starless> he just wanted to take this opportunity to insinuate that I can't write multithreaded programs
<bufferloss> which you can't, obviously
wallerdev has joined #ruby
<jhass> bufferloss: seriously, shut up
<starless> well thanks, you've been very helpful
<bufferloss> any time
<boombadaroomba> jhass, i still like you
<starless> I can't resist saying that I fucking implemented sync primitives last semester
<starless> implemented.
<bufferloss> semester... I see, you're in school, that explains a lot
<zenspider> starless: don't take the bait. he's a cock. simple as that
<bufferloss> but apparently you already know all the things about concurrent programming, which is why your system works so well
<jhass> time for everybody to learn their clients ignore feature
<starless> my system /does/ work. but the strain of refactoring from two totally different designs was too much
<zenspider> apeiros/apeiros_ : oi
<starless> anyways, you're right, zenspider
<starless> sorry for feeding the troll
<jhass> zenspider: 3am here, doubt it
Megtastique has joined #ruby
geefolk has joined #ruby
jlast has joined #ruby
<bufferloss> starless, yeah, that's not uncommon, better you learn these things the hard way when you're in school so that you program it right when you get in to the real world
* sevenseacat hands around popcorn for the rest of the class
<shevy> starless haha I even have difficulties unifying two different classes... one is called "Mounted", the other "Mountpoints"... both essentially just show mounted devices, though slightly differently
<bufferloss> mmmm, popcorn
<zenspider> bufferloss: where "the hard way" means dealing with dickheads like you? I'm pretty sure he has better resources availabel
<zenspider> available...
<bufferloss> zenspider, nope
<shevy> so refactoring two different designs sounds like having to tweak a lot of files - at least I only have two .rb files here
<bufferloss> hard way means race conditions, which he already has
Megtastique has quit [Client Quit]
wldcordeiro has joined #ruby
jlast has quit [Ping timeout: 250 seconds]
hamakn has joined #ruby
PanzerModern has joined #ruby
jlast has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
kt2 has joined #ruby
iMe has quit [Ping timeout: 250 seconds]
hamakn_ has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TgMts has quit [Ping timeout: 246 seconds]
iMe has joined #ruby
TgMts has joined #ruby
jefus has joined #ruby
boombadaroomba has quit [Ping timeout: 245 seconds]
jlast has quit [Ping timeout: 250 seconds]
sent1nel has joined #ruby
nonnatus has joined #ruby
fabrice31 has joined #ruby
pontiki has joined #ruby
kt2 has quit [Quit: ...]
kt2 has joined #ruby
fabrice31 has quit [Ping timeout: 252 seconds]
phutchins has joined #ruby
starless has quit [Quit: Leaving]
bufferloss has quit [Quit: Leaving]
raphaelss has joined #ruby
Sawbones has joined #ruby
boombadaroomba has joined #ruby
iMe has quit [Ping timeout: 264 seconds]
iMe has joined #ruby
kr1shnak has quit [Quit: bye bye]
penzur has joined #ruby
penzur has quit [Read error: Connection reset by peer]
awerush has quit [Ping timeout: 250 seconds]
versatiletech has quit [Quit: versatiletech]
pu22l3r has joined #ruby
ChoiKyuSang has quit [Quit: Going offline, see ya! (( www.adiirc.com )]
Lewix has quit [Remote host closed the connection]
phutchins has quit [Ping timeout: 252 seconds]
geefolk has quit [Read error: Connection timed out]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
geefolk has joined #ruby
geefolk has quit [Max SendQ exceeded]
geefolk has joined #ruby
n008f4g_ has quit [Ping timeout: 264 seconds]
CpuID2 has joined #ruby
CpuID2 has quit [Changing host]
CpuID2 has joined #ruby
iMe has quit [Ping timeout: 245 seconds]
crazymykl has joined #ruby
iwishiwerearobot has joined #ruby
iMe has joined #ruby
gwillickers has joined #ruby
skj3gg has joined #ruby
starless has joined #ruby
ChoiKyuSang has joined #ruby
apeiros_ has quit [Ping timeout: 252 seconds]
gwillickers has quit [Quit: spoop!]
iwishiwerearobot has quit [Ping timeout: 265 seconds]
aef has quit [Remote host closed the connection]
DonOtreply has joined #ruby
DonOtreply has quit [Client Quit]
jonr22 has joined #ruby
zorak_ has quit [Ping timeout: 264 seconds]
mikepack has quit [Remote host closed the connection]
turtil has quit [Quit: WeeChat 1.1.1]
jonr22 has quit [Ping timeout: 250 seconds]
<zenspider> well THAT shut down the dialog in here...
karmatr0n has joined #ruby
iMe has quit [Ping timeout: 252 seconds]
jlast has joined #ruby
Lewix has joined #ruby
icbm has quit [Quit: Leaving]
iMe has joined #ruby
TgMts has quit [Ping timeout: 244 seconds]
jlast has quit [Ping timeout: 250 seconds]
jlast has joined #ruby
paolooo has joined #ruby
speakingcode has quit [Read error: Connection reset by peer]
magic__ has joined #ruby
paolooo has quit [Client Quit]
jlast has quit [Ping timeout: 250 seconds]
tunaCanBruh has joined #ruby
luriv_ has quit [Ping timeout: 252 seconds]
iMe has quit [Ping timeout: 265 seconds]
jaequery has joined #ruby
nobitanobi has quit [Remote host closed the connection]
tunaCanBruh has quit [Ping timeout: 252 seconds]
iMe has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
<eam> just in case it wasn't incredibly obvious, the GIL isn't relevant between *processes*
<eam> only between threads (and then, only sometimes)
tus has quit []
* sevenseacat has no opinion or comment on multithreading and related issues
wallerdev has quit [Quit: wallerdev]
<eam> sevenseacat: none?
<sevenseacat> none.
<eam> well what can we talk about then
zachrab has joined #ruby
<shevy> about cats
wallerdev has joined #ruby
<eam> shevy: if you run cat it's a separate process
<shevy> my cats are always running
decreasedsales has joined #ruby
ajaiswal has joined #ruby
ponga has quit [Remote host closed the connection]
nobitanobi has joined #ruby
decreasedsales has quit [Remote host closed the connection]
zachrab has quit [Ping timeout: 250 seconds]
skj3gg has joined #ruby
oo_ has quit [Remote host closed the connection]
Sawbones has quit [Remote host closed the connection]
joshbamboo1 has quit [Quit: Leaving]
iMe has quit [Ping timeout: 240 seconds]
shum has quit [Quit: WeeChat 1.1.1]
oo_ has joined #ruby
gwillickers has joined #ruby
iMe has joined #ruby
pu22l3r has quit [Remote host closed the connection]
Megtastique has joined #ruby
amystephen has quit [Quit: amystephen]
vdamewood has joined #ruby
pu22l3r has joined #ruby
ptrrr has joined #ruby
yfeldblum has joined #ruby
tkuchiki_ has joined #ruby
pu22l3r has quit [Remote host closed the connection]
pu22l3r has joined #ruby
yfeldblu_ has quit [Ping timeout: 246 seconds]
tkuchiki has quit [Ping timeout: 246 seconds]
ptrrr has quit [Ping timeout: 256 seconds]
<weaksauce> aww man I missed the concurrency debate... shucks
iMe has quit [Ping timeout: 245 seconds]
hesco has quit [Ping timeout: 256 seconds]
Megtastique has quit []
iMe has joined #ruby
braincrash has quit [Quit: bye bye]
ssidelnikov has joined #ruby
gokul has joined #ruby
diegoviola has quit [Quit: WeeChat 1.1.1]
Xiti has quit [Ping timeout: 244 seconds]
braincrash has joined #ruby
razieliyo has quit [Ping timeout: 264 seconds]
tjohnson has quit [Quit: Connection closed for inactivity]
ssidelnikov has left #ruby [#ruby]
Lewix has quit [Remote host closed the connection]
skj3gg has quit [Quit: ZZZzzz…]
jlast has joined #ruby
ssidelnikov has joined #ruby
lucianosousa has quit [Quit: lucianosousa]
fabrice31 has joined #ruby
jhebden has quit [Read error: No route to host]
piotrj has joined #ruby
<shevy> hmm
iMe has quit [Ping timeout: 256 seconds]
jlast has quit [Ping timeout: 265 seconds]
hesco has joined #ruby
karmatr0n has quit [Remote host closed the connection]
jlast has joined #ruby
SpikeMaster has joined #ruby
iMe has joined #ruby
fabrice31 has quit [Ping timeout: 245 seconds]
karmatr0n has joined #ruby
Salve has quit []
kyb3r_ has joined #ruby
jlast has quit [Ping timeout: 250 seconds]
zacts has joined #ruby
Soda has quit [Remote host closed the connection]
posixpascal has joined #ruby
piotrj has quit [Remote host closed the connection]
Megtastique has joined #ruby
piotrj has joined #ruby
iamninja has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iMe has quit [Ping timeout: 240 seconds]
adriancb has quit [Remote host closed the connection]
iMe has joined #ruby
SpikeMaster has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
Megtastique has quit []
ponga has joined #ruby
skj3gg has joined #ruby
speakingcode has joined #ruby
nobitanobi has quit [Remote host closed the connection]
goshdarnyou has joined #ruby
nobitanobi has joined #ruby
ponga has quit [Ping timeout: 250 seconds]
nobitanobi has quit [Ping timeout: 250 seconds]
cpt_yossarian has quit [Ping timeout: 245 seconds]
goodenough has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
iwishiwerearobot has joined #ruby
hmsimha has quit [Ping timeout: 252 seconds]
hmsimha has joined #ruby
zachrab has joined #ruby
work_op has joined #ruby
yfeldblum has joined #ruby
iMe has quit [Ping timeout: 265 seconds]
iwishiwerearobot has quit [Ping timeout: 245 seconds]
iMe has joined #ruby
oo_ has quit [Remote host closed the connection]
towski_ has joined #ruby
tkuchiki has joined #ruby
willharrison has quit [Quit: Textual IRC Client: www.textualapp.com]
zachrab has quit [Ping timeout: 256 seconds]
jonr22 has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tkuchiki_ has quit [Ping timeout: 245 seconds]
starless has quit [Quit: Leaving]
gr33n7007h has quit [Ping timeout: 252 seconds]
jonr22 has quit [Ping timeout: 250 seconds]
ponga has joined #ruby
jenrzzz has joined #ruby
oo_ has joined #ruby
ponga has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
cpt_yossarian has joined #ruby
it0a has quit [Ping timeout: 246 seconds]
Lemur has quit [Read error: Connection reset by peer]
CustosL1men has quit [Ping timeout: 246 seconds]
Lemur has joined #ruby
freerobby has quit [Quit: Leaving.]
kp666 has joined #ruby
arescorpio has quit [Excess Flood]
charliesome has quit [Quit: zzz]
adriancb has joined #ruby
iMe has quit [Ping timeout: 252 seconds]
CustosL1men has joined #ruby
iMe has joined #ruby
ponga has joined #ruby
bunbury_ has joined #ruby
adriancb has quit [Ping timeout: 265 seconds]
ponga has quit [Read error: Connection reset by peer]
joufflu has joined #ruby
ponga has joined #ruby
tunaCanBruh has joined #ruby
jlast has joined #ruby
Megtastique has joined #ruby
towski_ has quit [Remote host closed the connection]
Mia has quit [Read error: Connection reset by peer]
tunaCanBruh has quit [Ping timeout: 245 seconds]
tchebb has quit [Ping timeout: 255 seconds]
jlast has quit [Ping timeout: 265 seconds]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jlast has joined #ruby
havenwood has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
wallerdev has quit [Quit: wallerdev]
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wallerdev has joined #ruby
jlast has quit [Ping timeout: 250 seconds]
techietrash has quit [Quit: Bye! <(^_^<)]
goodenough has quit [Remote host closed the connection]
oo_ has joined #ruby
jhankins has joined #ruby
oo_ has quit [Remote host closed the connection]
iMe has quit [Ping timeout: 250 seconds]
pu22l3r has quit [Remote host closed the connection]
n88_ is now known as n88
iMe has joined #ruby
it0a has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
sumark has quit [Remote host closed the connection]
sumark has joined #ruby
pu22l3r_ has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
tchebb has joined #ruby
Takle has joined #ruby
oo_ has joined #ruby
wldcordeiro has quit [Ping timeout: 265 seconds]
amystephen has joined #ruby
shaquile has quit [Ping timeout: 250 seconds]
Takle has quit [Ping timeout: 252 seconds]
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
shaquile has joined #ruby
jaequery has joined #ruby
iMe has quit [Ping timeout: 240 seconds]
jhankins has quit [Ping timeout: 246 seconds]
ptrrr has joined #ruby
Megtastique has quit []
iMe has joined #ruby
phutchins has joined #ruby
boombadaroomba has quit [Ping timeout: 246 seconds]
josephcs has joined #ruby
JBreit has joined #ruby
<mozzarella> do you guys put spaces around the range operators?
red_horned_rihno has joined #ruby
Channel6 has quit [Quit: Leaving]
<ssidelnikov> mozzarella: I don’t
ptrrr has quit [Ping timeout: 250 seconds]
JBreit has left #ruby [#ruby]
phutchins has quit [Ping timeout: 255 seconds]
pierre1_ has quit [Ping timeout: 245 seconds]
gwillickers has quit [Quit: spoop!]
mistermocha has joined #ruby
ismaelga has quit [Remote host closed the connection]
sieve has joined #ruby
iMe has quit [Ping timeout: 245 seconds]
apurcell has joined #ruby
maletor has joined #ruby
boombadaroomba has joined #ruby
bluOxigen has joined #ruby
iMe has joined #ruby
Xiti has joined #ruby
QualityAddict has joined #ruby
fabrice31 has joined #ruby
Megtastique has joined #ruby
jhankins has joined #ruby
karmatr0n has quit [Remote host closed the connection]
timonv has joined #ruby
apurcell has quit [Ping timeout: 252 seconds]
karmatr0n has joined #ruby
sieve has quit [Quit: Leaving.]
<softinio> What's a good tutorial or book for experienced programmer to learn ruby quickly
atomical has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fabrice31 has quit [Ping timeout: 252 seconds]
jlast has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
iMe has quit [Ping timeout: 246 seconds]
karmatr0n has quit [Remote host closed the connection]
mistermocha has quit [Remote host closed the connection]
red_horned_rihno has quit [Ping timeout: 255 seconds]
iMe has joined #ruby
jlast has quit [Ping timeout: 250 seconds]
karmatr0n has joined #ruby
jlast has joined #ruby
pico-pete has quit []
tobago has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
sent1nel has quit [Remote host closed the connection]
apurcell has joined #ruby
anarang has joined #ruby
sent1nel has joined #ruby
jlast has quit [Ping timeout: 250 seconds]
<havenwood> softinio: The Ruby Programming Language is a good book. No recent updates but the post-1.9 changes aren't too much to catch up on.
apurcell has quit [Ping timeout: 250 seconds]
<havenwood> softinio: The Well-Grounded Rubyist, Second Edition is a bit more up-to-date.
agrinb has quit [Remote host closed the connection]
agrinb has joined #ruby
zyxelthrone has quit [Quit: Going offline, see ya! (www.adiirc.com)]
duncannz has joined #ruby
iMe has quit [Ping timeout: 252 seconds]
<havenwood> 1.9 End-of-Life is just a week away!
kapil__ has joined #ruby
iMe has joined #ruby
havenwood has quit []
agrinb has quit [Ping timeout: 265 seconds]
zacts has quit [Ping timeout: 245 seconds]
swgillespie has joined #ruby
riotjones has joined #ruby
tagrudev has joined #ruby
iwishiwerearobot has joined #ruby
aganov has joined #ruby
zachrab has joined #ruby
riotjones has quit [Ping timeout: 246 seconds]
iwishiwerearobot has quit [Ping timeout: 245 seconds]
mroach has quit [Quit: mroach]
aganov has quit [Read error: Connection reset by peer]
aganov has joined #ruby
hvxgr has quit [Ping timeout: 264 seconds]
tchebb has quit [Ping timeout: 245 seconds]
zachrab has quit [Ping timeout: 240 seconds]
jonr22 has joined #ruby
ptrrr has joined #ruby
JBreit has joined #ruby
jonr22 has quit [Ping timeout: 240 seconds]
ptrrr has quit [Ping timeout: 246 seconds]
ishikawa91 has quit [Quit: Connection closed for inactivity]
timonv has quit [Ping timeout: 264 seconds]
JoshGlzBrk has joined #ruby
ethanwilkins has joined #ruby
ismaelga has joined #ruby
JoshGlzBrk has quit [Client Quit]
JoshGlzBrk has joined #ruby
agrinb has joined #ruby
riotjones has joined #ruby
josephcs_ has joined #ruby
ismaelga has quit [Ping timeout: 245 seconds]
tunaCanBruh has joined #ruby
geefolk has quit [Read error: Connection reset by peer]
ethanwilkins has left #ruby ["WeeChat 1.0.1"]
agrinb has quit [Ping timeout: 250 seconds]
last_staff has joined #ruby
Mon_Ouie has quit [Ping timeout: 255 seconds]
josephcs has quit [Ping timeout: 252 seconds]
betacz has joined #ruby
josephcs_ is now known as josephcs
The_Phoenix has joined #ruby
tunaCanBruh has quit [Ping timeout: 246 seconds]
jhankins has quit [Ping timeout: 246 seconds]
posixpascal has joined #ruby
<certainty> moin
sevvie has quit [Ping timeout: 246 seconds]
JoshGlzB_ has joined #ruby
wottam has joined #ruby
hvxgr has joined #ruby
bluehavana has joined #ruby
ki0 has joined #ruby
odigity has joined #ruby
bal has joined #ruby
<odigity> why am I getting a rational when subtracting one Date from another?
jlast has joined #ruby
lessless has joined #ruby
JoshGlzBrk has quit [Ping timeout: 246 seconds]
posixpascal has quit [Remote host closed the connection]
arup_r has joined #ruby
posixpascal has joined #ruby
sevvie has joined #ruby
MasterPiece has joined #ruby
jlast has quit [Ping timeout: 250 seconds]
polysics has quit [Quit: Leaving.]
jlast has joined #ruby
JoshGlzBrk has joined #ruby
djellemah has joined #ruby
User458764 has joined #ruby
JoshGlzB_ has quit [Ping timeout: 250 seconds]
allenn has joined #ruby
fantazo has joined #ruby
jlast has quit [Ping timeout: 246 seconds]
DonOtreply has joined #ruby
goshdarnyou has quit [Quit: Connection closed for inactivity]
nii236 has quit [Quit: leaving]
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
davejacobs has joined #ruby
flaccid__ has quit [Quit: flaccid__]
doobi-sham has joined #ruby
fabrice31 has joined #ruby
davejacobs has quit [Ping timeout: 240 seconds]
doobi-sham-95717 has joined #ruby
<odigity> yeah, I found it. pretty disappointing. I was expecting some kind of fancy duration object that I could call methods on to get the year component...
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djellemah has quit [Quit: Leaving]
<odigity> ruby and activesupport have spoiled me. I assume I can find exactly what I need most of the time :)
bal has quit [Quit: bal]
djellemah has joined #ruby
sent1nel has quit [Remote host closed the connection]
bal has joined #ruby
goodenough has joined #ruby
jenrzzz has joined #ruby
Soda has joined #ruby
<odigity> piotrj, going to use this instead: https://github.com/abhidsm/time_diff
<piotrj> odigity: cool, just take into account that this gem has not been updated for over a year
polysics has joined #ruby
polysics has left #ruby [#ruby]
<odigity> piotrj, I had noticed that. however, I've been googling for a good solution for nearly an hour, and it's the best I can find
<odigity> kind of shocked. the date functionality in ruby/rails is otherwise so thorough
ta has quit [Remote host closed the connection]
<piotrj> odigity: and what you need to achive. The number of days you get by simple Date - Date is not good enough?
ki0 has quit [Remote host closed the connection]
ki0 has joined #ruby
<odigity> piotrj, days is not easily converted to years because of leap years
<odigity> it's best to avoid doing your own date/time math whenever possible
last_staff has quit [Quit: last_staff]
thatslifeson has quit [Ping timeout: 255 seconds]
iMe has quit [Ping timeout: 264 seconds]
terlar has joined #ruby
nii236|irssi has joined #ruby
iMe has joined #ruby
ghostlines has joined #ruby
amclain has quit [Quit: Leaving]
agrinb has joined #ruby
tchebb has joined #ruby
ghostlines has joined #ruby
happyface has quit [Quit: Connection closed for inactivity]
agrinb has quit [Ping timeout: 265 seconds]
ismaelga has joined #ruby
vdamewood has joined #ruby
bMalum has joined #ruby
Morkel has joined #ruby
strixd has joined #ruby
claptor has quit [Quit: this channel is bakas]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ismaelga has quit [Ping timeout: 245 seconds]
Takle has joined #ruby
iMe has quit [Ping timeout: 250 seconds]
systemd0wn_ has joined #ruby
CustosL1men has quit [Ping timeout: 265 seconds]
iMe has joined #ruby
crazysim has quit [Ping timeout: 246 seconds]
duncannz has quit [Ping timeout: 250 seconds]
systemd0wn has quit [Ping timeout: 250 seconds]
crazysim has joined #ruby
Takle has quit [Ping timeout: 240 seconds]
jso has quit [Ping timeout: 246 seconds]
razieliyo has joined #ruby
amundj has joined #ruby
andikr has joined #ruby
DEA7TH has joined #ruby
msgodf has joined #ruby
jlast has joined #ruby
jso has joined #ruby
selu has joined #ruby
helpa has quit [Remote host closed the connection]
CpuID2 has quit [Quit: Leaving]
erichmenge has quit [Ping timeout: 264 seconds]
lioninawhat has quit [Read error: Connection reset by peer]
thomas has quit [Remote host closed the connection]
thomas has joined #ruby
lioninawhat has joined #ruby
jlast has quit [Ping timeout: 255 seconds]
lessless has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby
helpa has joined #ruby
fantazo has quit [Quit: Verlassend]
jlast has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
LetErikTry has quit [Quit: sleep]
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
lioninawhat has quit [Read error: Connection reset by peer]
lioninawhat has joined #ruby
peteyg has quit [Ping timeout: 245 seconds]
erichmenge has joined #ruby
Megtastique has quit []
jlast has quit [Ping timeout: 255 seconds]
tesuji has joined #ruby
Guest123 has joined #ruby
peteyg has joined #ruby
Nilium has quit [Ping timeout: 245 seconds]
lidaaa has quit [Ping timeout: 246 seconds]
antgel has joined #ruby
duncannz has joined #ruby
iwishiwerearobot has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jaequery has joined #ruby
CustosL1men has joined #ruby
zachrab has joined #ruby
iwishiwerearobot has quit [Ping timeout: 244 seconds]
karmatr0n has quit [Remote host closed the connection]
Zai00 has joined #ruby
livathinos has joined #ruby
User458764 has joined #ruby
einarj has joined #ruby
mxrguspxrt has joined #ruby
iMe has quit [Ping timeout: 245 seconds]
Nilium has joined #ruby
zachrab has quit [Ping timeout: 256 seconds]
crazysim has quit [Ping timeout: 250 seconds]
jonr22 has joined #ruby
ghostlines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iMe has joined #ruby
qba73 has joined #ruby
Evan_ has quit [Ping timeout: 244 seconds]
wottam has quit [Read error: No route to host]
ghostlines has joined #ruby
SixiS has joined #ruby
jonr22 has quit [Ping timeout: 250 seconds]
svoop has joined #ruby
_blizzy_ has quit [Ping timeout: 256 seconds]
xrlabs has quit [Ping timeout: 255 seconds]
jso has quit [Ping timeout: 240 seconds]
shredding has joined #ruby
Evan_ has joined #ruby
phansch has joined #ruby
Zai00 has quit [Ping timeout: 252 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
crazysim has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zacts has joined #ruby
Zai00 has joined #ruby
mkaesz has joined #ruby
arup_r has quit [Remote host closed the connection]
Macaveli has joined #ruby
jso has joined #ruby
agrinb has joined #ruby
jimms has joined #ruby
User458764 has joined #ruby
lioninawhat has quit [Read error: Connection reset by peer]
mathie has joined #ruby
lioninawhat has joined #ruby
Gate_ has quit [Ping timeout: 244 seconds]
tunaCanBruh has joined #ruby
agrinb has quit [Ping timeout: 250 seconds]
gregf_ has joined #ruby
exadeci has joined #ruby
xrlabs has joined #ruby
mxrguspxrt has quit [Remote host closed the connection]
tunaCanBruh has quit [Ping timeout: 264 seconds]
iMe has quit [Ping timeout: 245 seconds]
siso has joined #ruby
helpa has quit [Remote host closed the connection]
svoop has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
helpa has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
davedev24_ has quit [Remote host closed the connection]
User458764 has joined #ruby
ismaelga has joined #ruby
iMe has joined #ruby
siso has quit [Read error: Connection reset by peer]
Gate has joined #ruby
ghostlines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chthon has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
alex88 has joined #ruby
arup_r has joined #ruby
arup_r_ has joined #ruby
ismaelga has quit [Ping timeout: 252 seconds]
dumdedum has joined #ruby
ghostlines has joined #ruby
fantazo has joined #ruby
aphprentice__ has quit [Remote host closed the connection]
Motoservo has joined #ruby
arup_r_ has quit [Client Quit]
arup_r_ has joined #ruby
arup_r_ has quit [Client Quit]
mkaesz has quit [Read error: No route to host]
arup_r has quit [Ping timeout: 252 seconds]
ta has joined #ruby
nii236|irssi has quit [Ping timeout: 246 seconds]
Takle has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
marr has joined #ruby
sevenseacat has quit [Remote host closed the connection]
msgodf has quit [Ping timeout: 250 seconds]
ghr has joined #ruby
mxrguspxrt has joined #ruby
avril14th has joined #ruby
Sgeo has quit [Ping timeout: 244 seconds]
jlast has joined #ruby
mxrguspxrt has quit [Remote host closed the connection]
tuxdna has joined #ruby
tmtwd has joined #ruby
magic__ has quit [Quit: Leaving]
<avril14th> yo
mkaesz has joined #ruby
posixpascal has quit [Quit: Textual IRC Client: www.textualapp.com]
lolmaus has quit [Ping timeout: 240 seconds]
mxrguspxrt has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
jlast has quit [Ping timeout: 265 seconds]
jlast has joined #ruby
lsmola has joined #ruby
duncannz has quit [Ping timeout: 264 seconds]
siso has joined #ruby
Lemur has quit [Remote host closed the connection]
Lemur has joined #ruby
jlast has quit [Ping timeout: 250 seconds]
joonty has joined #ruby
goodenough has quit []
iMe has quit [Ping timeout: 245 seconds]
Lemur has quit [Ping timeout: 250 seconds]
arup_r has joined #ruby
lucyinthesky has joined #ruby
lucyinthesky has left #ruby ["Leaving"]
iMe has joined #ruby
Soda has quit [Remote host closed the connection]
olivier_bK has joined #ruby
lucyinthesky has joined #ruby
garethrees has joined #ruby
wottam has joined #ruby
sevvie has quit [Ping timeout: 255 seconds]
wottam has quit [Client Quit]
betacz has quit [Remote host closed the connection]
mkaesz has quit [Read error: Connection reset by peer]
ghr has quit [Ping timeout: 250 seconds]
mxrguspxrt has quit [Remote host closed the connection]
lucyinthesky has left #ruby ["Leaving"]
OrbitalKitten has joined #ruby
ptrrr has joined #ruby
psy_ has quit [Ping timeout: 246 seconds]
Timgauthier has joined #ruby
WhereIsMySpoon has quit [Disconnected by services]
mkaesz has joined #ruby
mxrguspxrt has joined #ruby
mxrguspxrt has quit [Remote host closed the connection]
WhereIsMySpoon_ has joined #ruby
i3lifee has joined #ruby
Hobogrammer has quit [Ping timeout: 252 seconds]
OrbitalKitten has quit [Ping timeout: 245 seconds]
ptrrr has quit [Ping timeout: 244 seconds]
sevvie has joined #ruby
aganov has quit [Quit: Leaving]
aganov has joined #ruby
arup_r has quit [Remote host closed the connection]
msgodf has joined #ruby
Mon_Ouie has joined #ruby
agrinb has joined #ruby
mxrguspxrt has joined #ruby
arup_r has joined #ruby
mxrguspxrt has quit [Read error: Connection reset by peer]
mxrguspxrt has joined #ruby
agrinb has quit [Ping timeout: 246 seconds]
leafybasil has quit [Remote host closed the connection]
timonv has joined #ruby
i3lifee_ has joined #ruby
mxrguspx_ has joined #ruby
mxrguspxrt has quit [Read error: Connection reset by peer]
rdark has joined #ruby
lioninawhat has quit [Read error: Connection reset by peer]
Tamae has joined #ruby
mxrguspx_ has quit [Remote host closed the connection]
thebastl has joined #ruby
jimms has quit [Remote host closed the connection]
i3lifee has quit [Ping timeout: 255 seconds]
lioninawhat has joined #ruby
n008f4g_ has joined #ruby
Sembei has quit [Read error: No route to host]
josephcs has quit [Remote host closed the connection]
josephcs has joined #ruby
speakingcode has quit [Read error: Connection reset by peer]
iMe has quit [Ping timeout: 246 seconds]
antgel has quit [Ping timeout: 252 seconds]
iMe has joined #ruby
antgel has joined #ruby
aapole has joined #ruby
ismaelga has joined #ruby
jespada has joined #ruby
leafybasil has joined #ruby
sieve has joined #ruby
withnale_ has joined #ruby
i3lifee_ has quit [Read error: Connection reset by peer]
<withnale_> Is there a way to get the name of the class of the current method? When subclassing, object.class gives you the name of base class, but if I run a method in the superclass, I want to know the superclass name programatically...
<zenspider> withnale_: why?
ismaelga has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
n008f4g_ has quit [Ping timeout: 256 seconds]
<withnale_> I need to merge some class objects from the superclass into the subclass.
<zenspider> "if I run a method in the superclass, I want to know the superclass name" ... specifically that... why?
zacts has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<zenspider> "merge some class objects"? that means what?
<withnale_> There are some objects assocaited with @options in the superclass.
jimms has joined #ruby
<withnale_> i.e. associated with the class not the instance.
<zenspider> really sounds like you're doing some hinkey shit. or you're just doing a shitty job describing your problem
<withnale_> I'm using someone elses framework so I don't want to change the underlying methods that access/work with it
<zenspider> what do you have so far?
mxrguspxrt has joined #ruby
mathie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<withnale_> At the moment in the superclass initialiser I am doing self.class.options = MySuperClass.options.merge(self.class.options)
<withnale_> I'd prefer not to have to specify MySuperClass by name.
m8 has joined #ruby
rap has joined #ruby
hmsimha has quit [Quit: Leaving]
starfox_sf has quit [Ping timeout: 252 seconds]
<ponga> n
luriv has joined #ruby
<zenspider> withnale_: there's nothing wrong with specifying it by name, but self.class.superclass is always the superclass
Gate has quit [Ping timeout: 250 seconds]
<withnale_> but that's not quite the same. If there was another level of subclassing in between, it would use that. Is there no way to get the classname of the current method?
jlast has joined #ruby
last_staff has joined #ruby
Pupeno has joined #ruby
iwishiwerearobot has joined #ruby
<zenspider> withnale_: you're going about this the wrong way
TgMts has joined #ruby
<zenspider> also: you suck at describing problems... which usually means you're not clear on what you need
mathie has joined #ruby
bweston92 has joined #ruby
tens0r has joined #ruby
aapole has quit [Ping timeout: 264 seconds]
zachrab has joined #ruby
gfawcettpq has quit [Ping timeout: 265 seconds]
jlast has quit [Ping timeout: 250 seconds]
iwishiwerearobot has quit [Ping timeout: 250 seconds]
<withnale_> As I said, I'm using an existing framework, which is why I'm describing the 'tiny' problem I'm trying to solve. The superclass I mentioned inherits from another class, which itself includes mixins - which are both generated elsewhere. Hence the desire to have a one liner fix in the initialiser rather than reimplement all the associated methods.
jlast has joined #ruby
iMe has quit [Ping timeout: 240 seconds]
<withnale_> Personally, I think I've described it pretty well. No worries. I can live with the workaround. Just thought there would be an easy method call that gave me the name of the actual class the methods was in rather than the base class.
<withnale_> nvm!
wallerdev has quit [Quit: wallerdev]
SixiS has quit [Quit: SixiS]
starfox_sf has joined #ruby
iMe has joined #ruby
Jetchisel has joined #ruby
zachrab has quit [Ping timeout: 250 seconds]
jonr22 has joined #ruby
lolmaus has joined #ruby
jlast has quit [Ping timeout: 250 seconds]
lolmaus has quit [Client Quit]
starfox_sf has quit [Ping timeout: 240 seconds]
lolmaus has joined #ruby
sevenseacat has joined #ruby
jonr22 has quit [Ping timeout: 250 seconds]
Takle has quit [Remote host closed the connection]
joufflu has quit [Quit: Peace]
sieve has quit [Quit: Leaving.]
FooMunki_ has joined #ruby
<zenspider> include Enumerable doesn't seem to define #to_a if there is one in the ancestry? or am I misinterpreting? How do I make this work? https://gist.github.com/839ca494cfbd65bddd20
<arup_r> withnale_: I just joined.. can you tell me what you are looking for? And avoid people who will demotivate you..
<zenspider> I'm looking at enum.c and there's nothing special about the method
tkuchiki has quit [Ping timeout: 252 seconds]
roolo has joined #ruby
mxrguspxrt has quit [Remote host closed the connection]
<arup_r> >> class A; def meth; 12 ;end;end ; A.new.method(:meth).owner
<eval-in__> arup_r => A (https://eval.in/286958)
<arup_r> withnale_: ^^
<arup_r> Is this what you are looking for ?
<withnale_> arup_r - think so. checking
<arup_r> sure
Morkel has quit [Quit: Morkel]
Takle has joined #ruby
iMe has quit [Ping timeout: 264 seconds]
agrinb has joined #ruby
CustosL1men has quit [Remote host closed the connection]
CustosL1men has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
gokul has quit [Quit: Leaving]
Mia has joined #ruby
tunaCanBruh has joined #ruby
iMe has joined #ruby
<apeiros_> zenspider: huh? what? did you forget to actually include Enumerable?
agrinb has quit [Ping timeout: 250 seconds]
piotrj has quit [Remote host closed the connection]
<apeiros_> ah, you inherit from Struct
iMe has quit [Max SendQ exceeded]
Takle has quit [Remote host closed the connection]
iMe has joined #ruby
susmus_ has left #ruby [#ruby]
<waxjar> without using a Struct it seems to work fine :/ https://gist.github.com/britishtea/f55d6ace8993b640ded0
<zenspider> apeiros_: please tell me my code sample didn't forget include...
tunaCanBruh has quit [Ping timeout: 245 seconds]
<apeiros_> you don't have an include in it, but Struct already has Enumerable included
* apeiros_ just got up, so still a bit fuzzy :-)
piotrj has joined #ruby
<zenspider> I _do_ have include Enumerable!
<zenspider> but fuck if I knew that Struct already had Enumerable. ugh.
<zenspider> I wish I could just push Enumerable down
<apeiros_> heh, but your gist does not have the include :)
<apeiros_> aaah
<apeiros_> darn, in your subclass
<apeiros_> wow, I'm really still fuzzy
<waxjar> it's included in the X class :)
<zenspider> you were starting to make me feel insane
sieve has joined #ruby
<apeiros_> hmmm, *that* would be an amazing check on the "achievement unlocked" wall xD
<zenspider> huh. yeah. it isn't even hitting my each method, which I suspect is the real problem.
Takle has joined #ruby
<zenspider> should I have said "more insane"?
Mia has quit [Read error: Connection reset by peer]
jespada has quit [Ping timeout: 245 seconds]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
ValicekB has quit [Ping timeout: 246 seconds]
<zenspider> without using my horrible 'uninherit', there's no good way around this?
bunbury_ has quit [Ping timeout: 264 seconds]
<apeiros_> zenspider: you just want Enumerable's to_a?
<apeiros_> can't you use define_method :to_a, Enumerable.instance_method(:to_a)?
zcreative has joined #ruby
crazydiamond has joined #ruby
tens0r has quit [Quit: tens0r]
tens0r has joined #ruby
AlexRussia has quit [Ping timeout: 256 seconds]
<zenspider> apeiros_: there we go! man... I'm tired.
<apeiros_> I wonder whether there isn't a nicer way :-/
<zenspider> still not sure why it isn't hitting my #each override... but I don't care at this point
vtunka has joined #ruby
davedev24_ has joined #ruby
ValicekB has joined #ruby
mikecmpbll has joined #ruby
ismaelga has joined #ruby
arup_r has quit [Remote host closed the connection]
iMe has quit [Ping timeout: 250 seconds]
Pupeno has quit [Quit: Leaving...]
jespada has joined #ruby
sieve has quit [Quit: Leaving.]
iMe has joined #ruby
ismaelga has quit [Ping timeout: 255 seconds]
arup_r has joined #ruby
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
keen__________65 has joined #ruby
thebastl has quit [Quit: Leaving...]
keen__________64 has quit [Ping timeout: 255 seconds]
amacou has joined #ruby
mxrguspxrt has joined #ruby
fabrice31 has quit [Ping timeout: 245 seconds]
jlast has joined #ruby
Takle has quit [Remote host closed the connection]
Fire-Dragon-DoL has joined #ruby
Doow has joined #ruby
NightMonkey has quit [Ping timeout: 272 seconds]
gfawcettpq has joined #ruby
Doow has quit [Client Quit]
queequeg1 has quit [Ping timeout: 240 seconds]
jlast has quit [Ping timeout: 250 seconds]
Doow has joined #ruby
queequeg1 has joined #ruby
fabrice31 has joined #ruby
jlast has joined #ruby
tvw has joined #ruby
jespada has quit [Ping timeout: 264 seconds]
ssidelnikov has quit [Ping timeout: 255 seconds]
rsavage has joined #ruby
awerush has joined #ruby
ssidelnikov has joined #ruby
lidaaa has joined #ruby
NightMonkey has joined #ruby
jlast has quit [Ping timeout: 265 seconds]
keen__________66 has joined #ruby
warprobot has joined #ruby
jespada has joined #ruby
keen__________65 has quit [Ping timeout: 256 seconds]
jimms has quit [Remote host closed the connection]
lidaaa has quit [Ping timeout: 264 seconds]
iMe has quit [Ping timeout: 264 seconds]
warprobot has quit [Remote host closed the connection]
reinaldob has joined #ruby
oo_ has quit [Remote host closed the connection]
shredding has quit [Quit: shredding]
iMe has joined #ruby
ssidelnikov has quit [Read error: Connection reset by peer]
ssidelnikov has joined #ruby
Timgauthier has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
agrinb has joined #ruby
Timgauthier has joined #ruby
mxrguspxrt has quit [Remote host closed the connection]
spider-mario has quit [Read error: Connection reset by peer]
Takle has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
blizzy has joined #ruby
startupality has joined #ruby
mathie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ssidelnikov has quit [Ping timeout: 265 seconds]
blizzy has quit [Ping timeout: 256 seconds]
Azure has quit [Quit: My MBP went to sleep.]
mathie has joined #ruby
workmad3 has joined #ruby
workmad3 has quit [Client Quit]
jespada has quit [Ping timeout: 246 seconds]
chthon has quit [Ping timeout: 246 seconds]
ajaiswal has quit [Remote host closed the connection]
lightstalker has quit [Ping timeout: 250 seconds]
paradoja has joined #ruby
vdamewood has joined #ruby
vtunka has quit [Quit: Leaving]
vtunka has joined #ruby
livathin_ has joined #ruby
sieve has joined #ruby
p7r_ is now known as p7r
Timgauthier has quit [Read error: Connection reset by peer]
Timgauthier has joined #ruby
livathinos has quit [Ping timeout: 245 seconds]
Pharaoh2 has joined #ruby
zorak_ has joined #ruby
hyperdrive has quit [Changing host]
hyperdrive has joined #ruby
hyperdrive is now known as hdrv
jespada has joined #ruby
piotrj has quit [Remote host closed the connection]
joonty has quit [Quit: joonty]
Doow has quit [Quit: Leaving]
edwardly has quit [Max SendQ exceeded]
edwardly has joined #ruby
sptq has left #ruby ["WeeChat 1.0.1"]
iwishiwerearobot has joined #ruby
ismaelga has joined #ruby
arup_r has quit [Remote host closed the connection]
adriancb has joined #ruby
bruno-_ has quit [Quit: Lost terminal]
zachrab has joined #ruby
iwishiwerearobot has quit [Ping timeout: 265 seconds]
ismaelga has quit [Ping timeout: 265 seconds]
adriancb has quit [Ping timeout: 250 seconds]
starfox_sf has joined #ruby
Beoran_ has quit [Ping timeout: 244 seconds]
Dopagod has quit [Quit: WeeChat 0.4.1]
zachrab has quit [Ping timeout: 255 seconds]
joonty has joined #ruby
arup_r has joined #ruby
jonr22 has joined #ruby
thomas has quit [Quit: leaving]
zorak_ has quit [Quit: Leaving]
thomas has joined #ruby
zorak_ has joined #ruby
zorak_ has quit [Client Quit]
zorak_ has joined #ruby
zorak_ has quit [Read error: Connection reset by peer]
starfox_sf has quit [Ping timeout: 255 seconds]
zorak8 has joined #ruby
shum has joined #ruby
jlast has joined #ruby
Timgauthier is now known as timgauthier_away
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
piotrj has joined #ruby
jonr22 has quit [Ping timeout: 250 seconds]
Takle has quit [Remote host closed the connection]
livathin_ has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 250 seconds]
livathinos has joined #ruby
startupality_ has joined #ruby
piotrj has quit [Remote host closed the connection]
shredding has joined #ruby
jlast has joined #ruby
startupality has quit [Ping timeout: 244 seconds]
startupality_ is now known as startupality
strixd has quit [Quit: 500]
Takle has joined #ruby
Beoran_ has joined #ruby
jlast has quit [Ping timeout: 265 seconds]
agrinb has joined #ruby
piotrj has joined #ruby
Timgauthier has joined #ruby
daynaskully has quit [Quit: quit]
Morkel has joined #ruby
arup_r has quit [Remote host closed the connection]
tunaCanBruh has joined #ruby
sieve has quit [Quit: Leaving.]
bruno- has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
jonr22 has joined #ruby
strixd has joined #ruby
__chris has joined #ruby
tunaCanBruh has quit [Ping timeout: 252 seconds]
bMalum_ has joined #ruby
bruno- has quit [Ping timeout: 246 seconds]
bwilson has quit [Quit: bwilson]
arup_r has joined #ruby
joonty has quit [Quit: joonty]
mxrguspx_ has joined #ruby
mxrguspx_ has quit [Remote host closed the connection]
bMalum has quit [Ping timeout: 250 seconds]
bMalum_ is now known as bMalum
pandaant has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
chthon has joined #ruby
iMe has quit [Ping timeout: 255 seconds]
BaNzoune1 is now known as BaNzoun3t
Timgauthier has quit [Read error: Connection reset by peer]
Timgauthier has joined #ruby
iMe has joined #ruby
ArchRogem has joined #ruby
<shevy> cool
<shevy> I kinda followed the old saying
<shevy> "rescue all the exceptions that should be rescued but not the others"
last_staff has quit [Quit: last_staff]
<shevy> so far I found 3 different ones for a small script:
<shevy> Errno::ECONNREFUSED, Errno::ETIMEDOUT, Errno::ENETUNREACH
last_staff has joined #ruby
<shevy> now I begin to understand why "rescue Exception" may instead be used ;)
<shevy> also got two more to add to that list!
<shevy> Zlib::BufError
<shevy> OpenURI::HTTPError
last_staff has quit [Client Quit]
<Timgauthier> shevy did you get my ping the other day?
<shevy> especially that zlib error confuses me, the others at least seem related to network-connection
<shevy> Timgauthier the php horror link?
<Timgauthier> ya
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> yeah you make me sad
centrx has joined #ruby
<shevy> but at least you are married so that makes me happy
<certainty> shevy: gzip compression in http?
<shevy> certainty oh that can be, interesting
<shevy> certainty I don't trust my computer
<certainty> :)
<certainty> the question is which exceptions are you willing to handle at the level you're looking at
Soda has joined #ruby
<certainty> and able to handle
<certainty> in a meaningful way
<shevy> hmm. that script checks a remote homepage for activity. as in, which users logged in. This dataset can then be lateron demonstrated to see peak activity per day and such
ArchRogem has quit [Remote host closed the connection]
madhatter has quit [Ping timeout: 246 seconds]
ArchRogem has joined #ruby
<ddv> shevy: a lot of different exceptions can be thrown with networking errors, I gave up and used StandardError
<shevy> hehe
<shevy> hmm. StandardError is better than Exception in this case?
<ddv> shevy: never use Exception directly
<shevy> I mean, I now have 5 different exceptions ... I can understand that different errors may require different responses, but yeah... I am tempted to replace those 5 different lines just with one rescue instead
__chris has quit [Quit: This computer has gone to sleep]
<shevy> I don't think I have used StandardError before
coinrookie has joined #ruby
<waxjar> rescue from StandardError, if you rescue from exception you'll catch things you can't handle
mxrguspxrt has joined #ruby
Timgauthier has quit [Read error: Connection reset by peer]
<waxjar> like signal exceptions, parse errors, etc.
rapind has joined #ruby
Timgauthier has joined #ruby
<djellemah> shevy: this is a legal rescue clause: rescue Errno::ECONNREFUSED, Errno::ETIMEDOUT, Errno::ENETUNREACH, Zlib::BufError, OpenURI::HTTPError
<certainty> +1 for StandardError
Timgauthier has quit [Max SendQ exceeded]
mxrguspxrt has quit [Remote host closed the connection]
cpt_yossarian has quit [Ping timeout: 250 seconds]
senayar has joined #ruby
Timgauthier has joined #ruby
terlar has quit [Ping timeout: 252 seconds]
DaniG2k has joined #ruby
mxrguspxrt has joined #ruby
rapind has quit [Client Quit]
rapind has joined #ruby
<ddv> djellemah: it will throw even more exceptions, trust me
<shevy> djellemah oh I know that you can stack them; the problem is, what do you report to the user? 5 different reasons in detail?
codecop has joined #ruby
rapind has quit [Client Quit]
KC9YDN has quit [Ping timeout: 245 seconds]
sieve has joined #ruby
it0a has quit [Quit: WeeChat 1.1.1]
mxrguspxrt has quit [Remote host closed the connection]
chthon has quit [Ping timeout: 246 seconds]
iMe has quit [Ping timeout: 246 seconds]
KC9YDN has joined #ruby
shum has quit [Quit: WeeChat 1.1.1]
nolic has joined #ruby
shum has joined #ruby
dblessing has joined #ruby
fantazo has quit [Quit: Verlassend]
sigurding has joined #ruby
crome has quit [Quit: leaving]
iMe has joined #ruby
jimms has joined #ruby
siso has quit [Read error: Connection reset by peer]
tier has joined #ruby
<ddv> shevy: report 1 reason, networking error/failure bla bla, for you the developer maybe more specific errors
blackmesa has joined #ruby
<ddv> shevy: service not available, try again later or something like that?
<ddv> if problem persists contact shevy <3
mxrguspxrt has joined #ruby
BTRE has quit [Remote host closed the connection]
ismaelga has joined #ruby
<certainty> shevy: generally (if applicable) it's good to distinguish 3 types of consumers for error messages. you have to adjust the content accordingly, those are 1) enduser 2) administrator 3) developer
<certainty> they all demand different details
m8 has quit [Quit: Sto andando via]
BTRE has joined #ruby
mxrguspxrt has quit [Remote host closed the connection]
joonty has joined #ruby
javaserver has joined #ruby
blizzy has joined #ruby
sameerynho has joined #ruby
javaserver has quit [Remote host closed the connection]
bruno- has joined #ruby
ismaelga has quit [Ping timeout: 264 seconds]
oo_ has quit [Remote host closed the connection]
lxsameer has quit [Ping timeout: 264 seconds]
mxrguspxrt has joined #ruby
mxrguspxrt has quit [Remote host closed the connection]
tier_ has joined #ruby
tier has quit [Ping timeout: 245 seconds]
arup_r has quit []
chthon has joined #ruby
bruno- has quit [Ping timeout: 246 seconds]
<djellemah> shevy: Hash of exception class to user-friendly error message, or a case inside the rescue. And then re-raise.
mxrguspxrt has joined #ruby
jlast has joined #ruby
bunbury has joined #ruby
bruno- has joined #ruby
Takle has joined #ruby
tier_ has quit [Remote host closed the connection]
tier has joined #ruby
startupality has quit [Read error: No route to host]
brb3 has joined #ruby
mostlybadfly has joined #ruby
joonty has quit [Quit: joonty]
jlast has quit [Ping timeout: 250 seconds]
startupality has joined #ruby
oleo has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
agrinb has joined #ruby
jlast has joined #ruby
craigp has joined #ruby
mathie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fella6s has joined #ruby
oleo__ has quit [Ping timeout: 246 seconds]
bweston92 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<sieve> Hi - How can I get this script to exit with the exit code of curl?
charliesome has joined #ruby
sankaber has joined #ruby
aclearman037 has joined #ruby
agrinb has quit [Ping timeout: 250 seconds]
iMe has quit [Ping timeout: 245 seconds]
fella7s has quit [Ping timeout: 246 seconds]
jlast has quit [Ping timeout: 256 seconds]
freerobby has joined #ruby
<jhass> exit $?.exitcode
<jhass> or whatever the attribute was
iamninja has joined #ruby
<sieve> jhass, the output of the command is being put into the "output" variabl.
<jhass> sieve: btw replace those += with <<
<sieve> jhass: I guess I should fork it first :
pygospa has quit [Ping timeout: 264 seconds]
bodgix_wrk has joined #ruby
iMe has joined #ruby
<jhass> fork what?
<sieve> This is not my git
<jhass> oh, right
kp666 has quit [Read error: Connection reset by peer]
<jhass> well, you didn't really expect to achieve that without code modifications, right? ;)
timonv has quit [Ping timeout: 246 seconds]
<sieve> jhass: Im happy to modify some code, I just forked it.
<sieve> jhass:
<sieve> exit $?.exitcode
tens0r has quit [Quit: tens0r]
digifiv5e has joined #ruby
bruno- has joined #ruby
digifiv5e is now known as Guest67070
<jhass> $? is the Process::Status for the last command executed by, ` or system
<sieve> jhass, sweet. Ill have a look
mxrguspxrt has quit [Remote host closed the connection]
<alex88> hi guys, how can I output a variable content preserving its \n chars in erb?
Takle has quit [Remote host closed the connection]
<sieve> jhass: I get error "metrics-curl.rb:74: syntax error, unexpected tIDENTIFIER, expecting end-of-input"
joonty has joined #ruby
<sieve> I put "exit $.exitcode" as the last line of the script
startupality has quit [Quit: startupality]
<jhass> alex88: "preserving"?
centrx has quit [Quit: Shutting down, Please wait...]
bruno- has quit [Ping timeout: 250 seconds]
<jhass> >> $.exitcode
<eval-in__> jhass => /tmp/execpad-ce26feb047d7/source-ce26feb047d7:2: syntax error, unexpected tIDENTIFIER, expecting keyword_end (https://eval.in/287045)
<jhass> yup, should syntax error
workmad3 has joined #ruby
josephcs has quit [Quit: (null)]
iamjarvo has joined #ruby
<alex88> jhass: s = "someline\nnewline" - <%= s %> actually outputs the newline as newline in erb output, I want it to print \n
iamjarvo has quit [Max SendQ exceeded]
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<jhass> alex88: so not preserve at all
<jhass> use .inspect
josephcs has joined #ruby
mxrguspxrt has joined #ruby
tesuji_ has joined #ruby
tesuji has quit [Ping timeout: 265 seconds]
artgoeshere has quit [Ping timeout: 265 seconds]
iamjarvo has joined #ruby
<sieve> jhass: Im struggling to find an example of this on the google
bruno- has joined #ruby
mathie has joined #ruby
<jhass> sieve: my example was not enough?
ghostlines has quit [Ping timeout: 246 seconds]
epochwolf has quit [Excess Flood]
<jhass> try docs for Kernel#system, Kernel#` and Processs::Status then
artgoeshere has joined #ruby
epochwolf has joined #ruby
<bradland> sieve: are you talking about docs for the global $? or just examples in general?
pandaant has joined #ruby
<bradland> i'm not sure if this is the definitive name, but when i'm looking for info on Ruby's $ variables, I google "ruby special globals" (sans quotes)
terlar has joined #ruby
<sieve> bradland: Examples of how I can capture the exitcode of a command that is being run in the script and then make that the exitcode of the script.
<sieve> bradland: so we can make a curl wrapper script for monitoring applications
DaniG2k has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Remote host closed the connection]
<sieve> bradland: exit $?.exitstatus
<jhass> exit $?.exitcode
<jhass> oh status :P
FooMunki_ has quit [Quit: FooMunki_]
mitchellhenke has joined #ruby
<jhass> I can never remember
mitchellhenke has quit [Client Quit]
<sieve> jhass: both exitstatus and exitcode give me : metrics-curl.rb:74: syntax error, unexpected tIDENTIFIER, expecting end-of-input
DouweM has joined #ruby
<jhass> yeah
bruno- has quit [Ping timeout: 246 seconds]
<bradland> damn, yeah
<jhass> you're probably still doing $.
<jhass> the variable is called $?, not $
<bradland> one of the easiest ways to find this kind of thing out is to fire up a pry session
<bradland> ls $?
ych4k3r has joined #ruby
startupality has joined #ruby
<sieve> jhass: you are wise
connor_goodwolf has quit [Ping timeout: 255 seconds]
<sieve> jhass: I was missing the question mark
<sieve> jhass: but now I have "metrics-curl.rb:74:in `<main>': undefined method `exitstatus' for "$":String (NoMethodError)"
<jhass> was it exitcode then?
<jhass> check Process::Status for a more reliable resource on the names there ;P
joonty has quit [Quit: joonty]
<jhass> the docs of that I mean
terlar has quit [Ping timeout: 256 seconds]
<sieve> jhass: I tried both
pygospa has joined #ruby
<jhass> will you check the docs?
<jhass> or do I have to read them aloud to you?
workmad3 has quit [Ping timeout: 264 seconds]
connor_goodwolf has joined #ruby
tuxdna has quit [Ping timeout: 255 seconds]
<jhass> wait
<jhass> "$" string?
<jhass> why is it a string all of the sudden?
<jhass> did you place the question mark in front?
pierre1_ has joined #ruby
<jhass> >> ?$
<eval-in__> jhass => "$" (https://eval.in/287047)
<jhass> you need to pay attention to detail!
<sieve> jhass: I have "exit ?$.exitstatus" at the end of the file
<jhass> $?
<jhass> is it that hard?
<sieve> jhass: oh shit man
joonty has joined #ruby
<jhass> I mean, that was like the 10th time I wrote it
bruno- has joined #ruby
<sieve> jhass: sorry, this is my first time in ruby land
<jhass> yap
<sieve> jhass, I now have "exit $?.exitstatus"
<sieve> and see error: metrics-curl.rb:74:in `<main>': undefined method `exitstatus' for nil:NilClass (NoMethodError)
<jhass> well, reading $? and then writing $. still doing it after being pointed out it's $? not $ and then after being pointed out again writing ?$ instead, not sure how that's unique to ruby tbh
terlar has joined #ruby
<sieve> jhass, sorry, I was flustered
<strixd> lol
* sieve takes a cup of camomile tea
AlexRussia has joined #ruby
<jhass> so, nil means it was reset in the mean time
<jhass> or the command wasn't called yet when it reaches your code
<jhass> since that's in a class I guess the later
<jhass> (I don't know sensu)
bruno- has quit [Ping timeout: 246 seconds]
<sieve> Ah, so this should be in the class then with the output bit. ok, that makes sense
serivich has joined #ruby
senayar_ has joined #ruby
<bradland> sieve: fwiw, if i'm writing full blown classes as wrappers for shell utilities, i tend to use open3
paulfm has joined #ruby
piotrj has quit [Remote host closed the connection]
<bradland> globals are fine for scripts, but open3 (and friends) provide a lot more fine grained control over what is captured and where it is stored
piotrj has joined #ruby
<sieve> bradland. Ill keep an eye
yeticry has quit [Ping timeout: 252 seconds]
<sieve> jhass: thanks for your patience!
pierre1_ has quit [Ping timeout: 244 seconds]
iwishiwerearobot has joined #ruby
jerius has joined #ruby
senayar has quit [Ping timeout: 252 seconds]
yeticry has joined #ruby
<alex88> joast: inspect worked, however it also adds double quotes around the string, another solution? use a regex and replace \n with \\n?
arez has joined #ruby
zachrab has joined #ruby
<Timgauthier> why /n ?
apurcell has joined #ruby
<alex88> Timgauthier: /n?
<arez> is there a way to replace multiple characters and not do gsub().gsub().gsub()
<Timgauthier> \n
<Timgauthier> i suck at keyboard
gr33n7007h has joined #ruby
<alex88> Timgauthier: since I want the string to be in one line and with \n escaped instead of actual newlines
<Timgauthier> i gud wit maus
<Timgauthier> why not add the \n programattically?
<Timgauthier> i didn't read everything
iwishiwerearobot has quit [Ping timeout: 255 seconds]
<jhass> arez: if it's single characters, check String#tr
<alex88> since dotenv parses VAR: "\n" in some way and VAR: \n in another
<shevy> arez you could perhaps use an array
<shevy> %w( all patterns to get rid if ).each
<shevy> or a hash, with key -> value connotation to apply the pattern you desire
starfox_sf has joined #ruby
artgoeshere has quit [Ping timeout: 250 seconds]
<jhass> arez: if it's not single characters, there are other methods and ways to call gsub, but you would need to be a bit more detailed
epochwolf has quit [Excess Flood]
<arez> jhass: no thx it worked
hostess has quit [Quit: No Ping reply in 180 seconds.]
epochwolf has joined #ruby
mjulian has quit [Ping timeout: 244 seconds]
tunaCanBruh has joined #ruby
zachrab has quit [Ping timeout: 246 seconds]
DouweM has quit [Quit: Leaving...]
joonty has quit [Quit: joonty]
fantazo has joined #ruby
artgoeshere has joined #ruby
jimms has quit [Remote host closed the connection]
hostess has joined #ruby
jen__ has joined #ruby
<jhass> alex88: curious, how does it parse it differently?
timonv has joined #ruby
<jen__> Can anyone point to reference on how to install Ruby on my server? I need to do bundle exec ruby
<jhass> jen__: there are a myriad of ways
starfox_sf has quit [Ping timeout: 252 seconds]
<jhass> what's your distribution?
<roolo> jen__: Tell us something about your server
<jhass> and what do you need it for?
Morkel has quit [Quit: Morkel]
<alex88> jhass: seems that without quotes, it replaces \n with \\n
apurcell has quit [Ping timeout: 246 seconds]
<jhass> and yo want that?
<alex88> in the ENV variable, and so settingslogic gem picks it up with the \n correctly
pierre1_ has joined #ruby
yeticry has quit [Ping timeout: 245 seconds]
<alex88> jhass: the dotenv file is generated with the erb thing that I was talking it before
<roolo> jen__: Check file Gemfile if there is something about some particular Ruby version
<alex88> so doing <%= @var.inspect %> doesn't work as it outputs \n as char, but it also wrap things around quotes
tunaCanBruh has quit [Ping timeout: 265 seconds]
yeticry has joined #ruby
sameerynho has quit [Quit: Leaving]
piotrj has quit [Remote host closed the connection]
ismaelga has joined #ruby
Timgauthier has quit [Read error: Connection reset by peer]
jimms has joined #ruby
Timgauthier has joined #ruby
<alex88> jhass: ended up using value.split("\n").join('\n')
iMe has quit [Ping timeout: 246 seconds]
<jhass> eh, just .tr or .gsub
vjt has quit [Ping timeout: 265 seconds]
<jhass> >> "\n".gsub("\n", "\\n")
<eval-in__> jhass => "\\n" (https://eval.in/287056)
jerius has quit []
ismaelga has quit [Ping timeout: 245 seconds]
Takle has joined #ruby
MasterPiece has quit [Remote host closed the connection]
iMe has joined #ruby
agrinb has joined #ruby
hiyosi has joined #ruby
jlast has joined #ruby
josephcs has quit [Quit: (null)]
Takle has quit [Remote host closed the connection]
nonnatus has left #ruby [#ruby]
agrinb has quit [Ping timeout: 265 seconds]
nolic has quit [Remote host closed the connection]
Timgauthier has quit [Read error: Connection reset by peer]
jlast has quit [Ping timeout: 265 seconds]
maximski has joined #ruby
timonv has quit [Quit: WeeChat 1.1.1]
Timgauthier has joined #ruby
maximski has quit [Max SendQ exceeded]
timonv has joined #ruby
jlast has joined #ruby
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
maximski has joined #ruby
chinmay_dd has joined #ruby
sevenseacat has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 250 seconds]
<jen__> jhass: sorry, I was on the phone.
tus has joined #ruby
epochwolf has quit [Excess Flood]
epochwolf has joined #ruby
ki0 has quit [Remote host closed the connection]
suy|BNC is now known as disperso
<avril14th> >> Regexp.quote '\n'
<eval-in__> avril14th => "\\\\n" (https://eval.in/287067)
<avril14th> >> Regexp.quote "\n"
<eval-in__> avril14th => "\\n" (https://eval.in/287068)
ki0 has joined #ruby
mathie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
codeurge has joined #ruby
<jhass> avril14th: that does a lot more than just that though
marr has quit [Ping timeout: 250 seconds]
DaniG2k has joined #ruby
ta has quit [Remote host closed the connection]
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aclearman037 has joined #ruby
Guest67070 has quit [Changing host]
Guest67070 has joined #ruby
Guest67070 is now known as daynaskully
mathie has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
JohnBat26 has joined #ruby
blackmesa has joined #ruby
<jhass> jen__: that's no problem, just answer the questions when you have time
yfeldblum has joined #ruby
Takle has joined #ruby
Timgauthier has quit [Read error: Connection reset by peer]
crazydiamond has quit [Ping timeout: 250 seconds]
Timgauthier has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
vjt has joined #ruby
<jen__> jhass: we’re trying to install a bundler and it’s going to take a bit more than IRC. I’m afraid I’ll need to hire someone to get this ruby script running. Anyone interested in doing this for me, please PM me.
<jhass> jen__: it's no open source app you're installing?
Jinxed- has joined #ruby
kapil__ has quit [Quit: Connection closed for inactivity]
<jen__> it’s a Google Adwords API used for offline tracking
<Jinxed-> Does ruby have an easy way to communicate with a serial ASCII device?
<jhass> jen__: doesn't answer the question though
fabrice31 has quit [Remote host closed the connection]
ponga has quit [Remote host closed the connection]
<jhass> Jinxed-: nothing in stdlib I'm aware of, but there should be several gems iirc
ponga has joined #ruby
ponga has quit [Remote host closed the connection]
ponga has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
<wasamasa> which also lists this as alternative: https://github.com/hybridgroup/rubyserial
DonOtreply has quit [Quit: DonOtreply]
sieve has quit [Quit: Leaving.]
joonty has joined #ruby
krz has joined #ruby
sieve has joined #ruby
aryaching has joined #ruby
fabrice31 has joined #ruby
avril14th has quit [Remote host closed the connection]
fryguy9 has joined #ruby
senayar_ has quit [Remote host closed the connection]
vt102 has joined #ruby
devdazed has joined #ruby
hamakn_ has quit [Remote host closed the connection]
Macaveli has quit [Ping timeout: 256 seconds]
rubytor has joined #ruby
mathie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mathie has joined #ruby
mathie has quit [Remote host closed the connection]
iMe has quit [Ping timeout: 264 seconds]
yokel_ has quit [Quit: leaving]
Megtastique has joined #ruby
iMe has joined #ruby
<shevy> Jinxed- I guess there is ports-related where you can grab or send raw characters
<shevy> I also think there is something in stdlib but I don't remember the name. I remember reading it in the old pickaxe book
jefus has quit [Ping timeout: 252 seconds]
<arez> can I use interfaces or abstract classes in ruby or other kinds to force methods on classes?
it0a has joined #ruby
<apeiros_> arez: you can use respond_to?, but it's generally not done.
tunaCanBruh has joined #ruby
startupality has quit [Quit: startupality]
ArchRogem has quit [Read error: Connection reset by peer]
senayar has joined #ruby
triple_b has joined #ruby
fryguy91 has joined #ruby
aapole has joined #ruby
skj3gg has joined #ruby
Mon_Ouie has quit [Ping timeout: 246 seconds]
zyxelthrone has joined #ruby
karmatr0n has joined #ruby
fryguy9 has quit [Ping timeout: 250 seconds]
mitchellhenke has joined #ruby
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<certainty> arez: you mean like template methods?
<arez> certainty: hmm, like interfaces in java
<arez> I wanna type check if some object is an abstract from e.g. a Car Class
<certainty> arez: well you can not force it at the type level or something but you can create a base-class that implements the methods that define your interface with raise NotImplementedError
n008f4g_ has joined #ruby
<certainty> not exactly pretty
mitchellhenke has quit [Client Quit]
craigp has quit [Remote host closed the connection]
oo_ has joined #ruby
<certainty> but as apeiros_ said, in ruby we're not so much concerned about types. we just care about how a a thing quacks (which methods it responds to)
<arez> certainty: yes, I saw that on stackoverlow, but it's really not pretty
jonr22 has quit [Remote host closed the connection]
<arez> certainty: kay, so I think I will use respond_to
<jhass> arez: try not doing it at all for a while
livathinos has quit [Read error: Connection reset by peer]
<jhass> just assume whatever you have responds to the method
livathin_ has joined #ruby
mitchellhenke has joined #ruby
<jhass> let it run into the NoMethodError's
speakingcode has joined #ruby
<certainty> the rationale being that you most likely will raise an error that says the same if you implement it in the case of respond_to? returning false
apurcell has joined #ruby
<certainty> (i suspect)
agrinb has joined #ruby
Jinxed- has quit [Ping timeout: 246 seconds]
ismaelga has joined #ruby
<arez> certainty: I think I go with the respond_to so I can make sure it's implemented, thx guys
bruno- has joined #ruby
jonr22 has joined #ruby
mitchell_ has joined #ruby
bMalum has quit [Quit: bMalum]
lioninawhat has quit [Remote host closed the connection]
__chris has joined #ruby
adriancb has joined #ruby
davzie has joined #ruby
roolo has quit [Remote host closed the connection]
roolo has joined #ruby
<jhass> arez: really, just try it for a while without
<certainty> chicken typing ftw :D
phutchins has joined #ruby
<jhass> you only save effort for now and if you really don't like that can just spend that effort later then
apurcell has quit [Ping timeout: 255 seconds]
agrinb has quit [Ping timeout: 250 seconds]
ismaelga has quit [Ping timeout: 252 seconds]
Soda has quit [Remote host closed the connection]
mitchellhenke has quit [Ping timeout: 264 seconds]
adriancb has quit [Ping timeout: 250 seconds]
sambao21 has joined #ruby
jlast has joined #ruby
aclearman037 has joined #ruby
__chris has quit [Ping timeout: 246 seconds]
<apeiros_> I find chicken typing ok if you check an argument which is stored and the call is delayed
dmbennett has joined #ruby
mitchell_ has quit [Quit: Computer has gone to sleep.]
yokel has quit [Remote host closed the connection]
iMe has quit [Ping timeout: 264 seconds]
tobago has quit [Remote host closed the connection]
Guest15 has joined #ruby
yokel has joined #ruby
nfk has joined #ruby
__chris has joined #ruby
coinrookie has quit [Quit: Leaving]
iMe has joined #ruby
jlast has quit [Read error: No route to host]
jlast has joined #ruby
aapole has quit [Ping timeout: 252 seconds]
qba73 has quit [Remote host closed the connection]
qba73 has joined #ruby
brb3 has quit [Quit: ZZZzzz…]
pontiki has quit [Ping timeout: 250 seconds]
blackmesa has joined #ruby
rippa has joined #ruby
tagrudev has quit [Remote host closed the connection]
crazydiamond has joined #ruby
aganov has quit [Remote host closed the connection]
mxrguspxrt has quit []
lanemeyer has joined #ruby
brb3 has joined #ruby
livingstn has joined #ruby
agrinb has joined #ruby
Macaveli has joined #ruby
Takle has quit [Remote host closed the connection]
mjulian has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
TgMts has quit [Ping timeout: 244 seconds]
jlast has quit [Ping timeout: 250 seconds]
Morkel has joined #ruby
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
zachrab has joined #ruby
diegoviola has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
Kricir has joined #ruby
crazydiamond has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
davidhq has joined #ruby
mathie has joined #ruby
gsd has joined #ruby
cocotton has joined #ruby
davidhq has quit [Client Quit]
zachrab has quit [Ping timeout: 240 seconds]
enebo has joined #ruby
fryguy9 has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
marr has joined #ruby
oo_ has quit [Remote host closed the connection]
DonOtreply has joined #ruby
startupality has joined #ruby
skj3gg has joined #ruby
mitchellhenke has joined #ruby
ta has joined #ruby
fryguy91 has quit [Ping timeout: 250 seconds]
mitchellhenke has quit [Read error: Connection reset by peer]
coinrookie has joined #ruby
blackmesa has quit [Quit: WeeChat 1.1.1]
iamninja has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
charliesome has quit [Quit: zzz]
iamninja has joined #ruby
mitchellhenke has joined #ruby
nolic has joined #ruby
n008f4g_ has quit [Ping timeout: 246 seconds]
zorak8 has quit [Ping timeout: 252 seconds]
iwishiwerearobot has joined #ruby
amystephen has quit [Quit: amystephen]
ixti has joined #ruby
amystephen has joined #ruby
ixti has joined #ruby
bMalum has joined #ruby
dmbennett has quit [Remote host closed the connection]
iwishiwerearobot has quit [Ping timeout: 250 seconds]
ismaelga has joined #ruby
Timgauthier has quit [Read error: Connection reset by peer]
sigurding has quit [Quit: sigurding]
Timgauthier has joined #ruby
starfox_sf has joined #ruby
User458764 has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
amacou has quit [Remote host closed the connection]
User458764 has joined #ruby
yellowgh0st has joined #ruby
Freelusion has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
Takle has joined #ruby
glen has joined #ruby
<glen> is this right way to call method with two args: procs = LsofHelper.filter_deleted(lsof, /libglib-2.0/)
Freelusion is now known as lel
lel is now known as Guest5052
rbennacer has joined #ruby
<glen> it'\s defined as: 14>> def self.filter_deleted(results, pattern)
starfox_sf has quit [Ping timeout: 252 seconds]
marr has quit [Ping timeout: 240 seconds]
<glen> i mean, i get errors, so i'm super confused
pu22l3r has joined #ruby
<apeiros_> glen: yes, you're passing two arguments to filter_deleted
<glen> ah. found my mistake. there was one more call to that method
diegoviola has quit [Remote host closed the connection]
skj3gg has quit [Quit: ZZZzzz…]
greenbagels has joined #ruby
<arez> anyone infos about nokogiri parsing with documents that have umlaut?
snath has quit [Ping timeout: 265 seconds]
lmickh has joined #ruby
<ddv> arez: shouldn't be a problem?
<ddv> ask jhass
yellowgh0st has quit [Quit: yellowgh0st]
<glen> ok. but i have next problem. i'm filtering some array with .filter() but as a result i want to have [:name] key of the elements
bal has quit [Quit: bal]
<glen> .map { |f| f[:fd] == "txt" && f[:name] } inside the loop?
dfinninger has joined #ruby
bal has joined #ruby
<arez> ddv: I get "invalid byte sequence in UTF-8"
ta has quit [Remote host closed the connection]
<glen> i need to .map and .select together, so i should chain them or is there method that can do both in same block?
bal has quit [Client Quit]
riotjones has quit [Remote host closed the connection]
jheg has joined #ruby
<jheg> o/
<jhass> arez: your problem is reading your input in the correct encoding
<waxjar> glen: inject?
freerobby has quit [Quit: Leaving.]
<jheg> If I have a string like …
<jheg> "Hi welcome to the forum' 1@£!@£$@£$ "
<jhass> glen: I'd say chain them
ta has joined #ruby
<jhass> glen: some do .compact after the map, but I prefer to chain
<jheg> how do I get rid of everything other than letters, numbers and whitespace
<glen> as this i've come up so far: process.files.select { |f| f[:fd] == "txt" }.map { |f| f[:name] }
<jheg> and replace whitespace with a dash but limit subsequent dashes to one and never on the end
Channel6 has joined #ruby
allenn has quit [Remote host closed the connection]
<jheg> so far I have str.gsub(/[\W]/, ‘-‘)
<jheg> but that doesnt deal with chaining a load of dashes
phutchins has quit [Ping timeout: 252 seconds]
hamakn has joined #ruby
<jhass> jheg: .(r)strip and .squeeze out the whitespace
yellowgh0st has joined #ruby
blizzy has quit [Ping timeout: 250 seconds]
zyxelthrone has quit [Quit: WeeChat 1.1.1]
spyderman4g63 has joined #ruby
Morkel has quit [Quit: Morkel]
<jheg> jhass: thanks what is the r in there?
dfinninger has quit [Remote host closed the connection]
fabrice31 has quit [Remote host closed the connection]
<glen> jhass: this gives me totally unexpected results: process.files.map { |f| f[:fd] == "txt" && f[:name] }.compact
DouweM has joined #ruby
<jhass> jheg: there's .lstrip, .rstrip and .strip
fabrice31 has joined #ruby
spyderma_ has joined #ruby
<glen> i thought map returkls f[f:name]
fabrice31 has quit [Remote host closed the connection]
<jhass> glen: it would be f[:name] if f[:fd] ...
<jhass> but as said I prefer the chain variant you had earlier
DaniG2k has quit [Read error: Connection reset by peer]
<glen> yes, i got that
DaniG2k has joined #ruby
<glen> looks like i need .uniq too, so i will go for .compact
willharrison has joined #ruby
hamakn has quit [Ping timeout: 250 seconds]
Guest5052 has quit [Quit: Guest5052]
<jheg> thanks again jhass - havent quite managed to get that working exactly (leaving a rogue ‘-‘ on the end)
spyderman4g63 has quit [Ping timeout: 250 seconds]
DaniG2k has quit [Client Quit]
<jheg> I got it working like this but not sure how good of an solution it is?
<jheg> str.gsub(/[\W]/, '-').squeeze.downcase[0..-2]
snath has joined #ruby
<jheg> it’s for slugging basically
<jhass> I thought of .squeeze(' ').strip.gsub
systemd0wn_ has quit [Read error: Connection reset by peer]
systemd0wn has joined #ruby
mikepack has joined #ruby
Freelusion has joined #ruby
adriancb has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 256 seconds]
jlast has joined #ruby
adriancb has quit [Ping timeout: 250 seconds]
FifthWall_ is now known as FifthWall
Freelusion has quit [Quit: Freelusion]
glen has left #ruby [#ruby]
startupality has quit [Quit: startupality]
Freelusion has joined #ruby
Freelusion has quit [Client Quit]
Freelusion has joined #ruby
Freelusion has quit [Client Quit]
Macaveli has joined #ruby
jlast has quit [Ping timeout: 250 seconds]
Guest15 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pu22l3r has quit [Remote host closed the connection]
startupality has joined #ruby
jlast has joined #ruby
nonnatus has joined #ruby
eoconnell has joined #ruby
crazydiamond has joined #ruby
livathinos has joined #ruby
fumk has quit [Ping timeout: 264 seconds]
yellowgh0st_ has joined #ruby
fryguy91 has joined #ruby
yellowgh0st has quit [Ping timeout: 245 seconds]
jlast has quit [Ping timeout: 250 seconds]
fryguy9 has quit [Ping timeout: 250 seconds]
riotjones has joined #ruby
livathin_ has quit [Ping timeout: 256 seconds]
dblessing has joined #ruby
livathinos has quit [Ping timeout: 255 seconds]
nobitanobi has joined #ruby
jherbst has joined #ruby
<daxroc> evening
willharrison has quit [Ping timeout: 255 seconds]
<daxroc> Should Socket.ip_address_list return data as a non privileged user ? It seems to return garbage as non root ?
keen__________67 has joined #ruby
tunaCanBruh has quit [Ping timeout: 246 seconds]
agrinb has quit [Remote host closed the connection]
aclearman037 has quit [Quit: I'm out!]
agrinb has joined #ruby
keen__________66 has quit [Ping timeout: 252 seconds]
tunaCanBruh has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
vtunka has quit [Quit: Leaving]
ki0 has quit [Ping timeout: 264 seconds]
einarj has quit [Remote host closed the connection]
cocotton has quit [Remote host closed the connection]
last_staff has joined #ruby
dfinninger has joined #ruby
cocotton has joined #ruby
dfinninger has quit [Remote host closed the connection]
agrinb has quit [Ping timeout: 245 seconds]
psy_ has joined #ruby
chinmay_dd has quit [Quit: Connection closed for inactivity]
willharrison has joined #ruby
nolic has quit [Remote host closed the connection]
riceandbeans has quit [Changing host]
riceandbeans has joined #ruby
Vivex has quit [Read error: Connection reset by peer]
adriancb has joined #ruby
defrang has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
lolmaus has quit [Remote host closed the connection]
mistermocha has joined #ruby
geefolk has joined #ruby
lolmaus has joined #ruby
geefolk has quit [Max SendQ exceeded]
<gregf_> jheg: %q{Hi welcome to the forum 1@£!@£$@£$ }.gsub(/[^\w\s]+/,"").capitalize
<gregf_> a bit too late :/
perturbation has joined #ruby
CustosL1men has quit [Ping timeout: 264 seconds]
geefolk has joined #ruby
EasyCo has quit [Quit: Connection closed for inactivity]
ych4k3r_ has joined #ruby
geefolk has quit [Max SendQ exceeded]
geefolk has joined #ruby
<jheg> thanks gregf_ almost what im after except whitespace needs to be ‘-‘ and downcase
<jheg> the downcase I can fix :)
geefolk has quit [Max SendQ exceeded]
<jheg> I have it working pretty much but your method looks like it has the potential to be shorter
<jheg> I have
<jheg> str.gsub(/[\W,'_']/, '-').squeeze.chop.downcase
geefolk has joined #ruby
sent1nel has joined #ruby
ych4k3r has quit [Ping timeout: 252 seconds]
agrinb has joined #ruby
zorak8 has joined #ruby
mmoretti has joined #ruby
phansch has quit [Ping timeout: 246 seconds]
ta has quit [Remote host closed the connection]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest15 has joined #ruby
disperso has left #ruby ["Communi 3.4.0 - http://communi.github.com"]
tunaCanBruh has quit [Ping timeout: 256 seconds]
DouweM has quit [Read error: Connection reset by peer]
AlexRussia has quit [Ping timeout: 264 seconds]
Freelusion has joined #ruby
blizzy has joined #ruby
rbennacer has quit [Remote host closed the connection]
kaspertidemann has joined #ruby
AlexRussia has joined #ruby
jenrzzz has joined #ruby
anomaly has joined #ruby
Hobogrammer has joined #ruby
tunaCanBruh has joined #ruby
cocotton has quit [Read error: Connection reset by peer]
towski_ has joined #ruby
cocotton has joined #ruby
<jhass> jheg: , is in \W already
<jheg> ,?
<jheg> Dont I need the comma to pass in two args?
Channel6 has quit [Quit: Leaving]
<jhass> no, a regex character group just lists the characters that it should consist of
alex88 has quit []
<jhass> it's not a method call or anything
Freelusion has quit [Quit: leaving]
sambao21 has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
<jheg> so should be ...
<jheg> str.gsub(/[\W'_']/, '-').squeeze.chop.downcase
<jheg> ?
<gregf_> nope, just [\W_]
strixd has quit [Quit: 500]
<jhass> ' is too in \W and no reason to list it twice
apurcell has joined #ruby
psy_ has quit [Ping timeout: 252 seconds]
kallisti5 has quit [Read error: Connection reset by peer]
hollywood has joined #ruby
<jheg> great stuff thanks
agrinb has quit [Remote host closed the connection]
claw has joined #ruby
senayar has quit [Remote host closed the connection]
banister has joined #ruby
antgel has quit [Ping timeout: 250 seconds]
agrinb has joined #ruby
qba73 has quit [Remote host closed the connection]
swgillespie has joined #ruby
Timgauthier has quit [Read error: Connection reset by peer]
senayar has joined #ruby
Timgauthier has joined #ruby
<ghormoon> hi, is it normal, that webrick server doesn't react to sigterm? am I doing something wrong or should I just always sigkill it?
craigp has joined #ruby
senayar has quit [Remote host closed the connection]
bMalum has quit [Quit: bMalum]
chrishough has joined #ruby
psy_ has joined #ruby
kirun has joined #ruby
Lewix has joined #ruby
senayar has joined #ruby
craigp has quit [Remote host closed the connection]
agrinb has quit [Ping timeout: 250 seconds]
ptrrr has joined #ruby
craigp has joined #ruby
senayar has quit [Remote host closed the connection]
swgillespie has quit [Client Quit]
apurcell has quit [Ping timeout: 252 seconds]
Timgauthier has quit [Max SendQ exceeded]
<shevy> ghormoon it reacts to sigterm here just fine I think
<shevy> sigterm is ctrl-c?
senayar_ has joined #ruby
aclearman037 has joined #ruby
Timgauthier has joined #ruby
joonty has quit [Quit: joonty]
<shevy> oh wait
<shevy> I use sigint
<shevy> Signal.trap('SIGINT') { exit }
<shevy> how do you trigger sigterm?
senayar_ has quit [Remote host closed the connection]
shredding has quit [Quit: shredding]
<jhass> plain kill / killall / pkill
senayar_ has joined #ruby
<ghormoon> yup
bMalum has joined #ruby
<jhass> for example Ctrl+Z, kill %1
<ghormoon> neither kill or stopping the service works (well, stopping the service works as after timeout it sigkills, but that's not correct :))
geefolk has quit [Quit: Leaving]
ta has joined #ruby
<jen__> roolo:
<jen__> hi
geefolk has joined #ruby
<roolo> jen__: Hi
nobitanobi has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 250 seconds]
Timgauthier is now known as timgauthier_away
DonOtreply has quit [Quit: DonOtreply]
timgauthier_away has quit [Max SendQ exceeded]
<jhass> ghormoon: maybe just use another appserver :P
jlast has joined #ruby
<jhass> unicorn and puma can be recommended
zachrab has joined #ruby
aclearman037 has quit [Quit: I'm out!]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
timonv has quit [Ping timeout: 265 seconds]
Kricir_ has joined #ruby
Dopagod has joined #ruby
Akagi201_ has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
slester has joined #ruby
ta has quit [Remote host closed the connection]
Akagi201 has joined #ruby
Morkel has joined #ruby
dipnlik has joined #ruby
jlast has quit [Ping timeout: 250 seconds]
agrinb has joined #ruby
zachrab has quit [Ping timeout: 245 seconds]
fumk has joined #ruby
Jackneill has joined #ruby
<dipnlik> hi. i have a gem that has really big fixtures (400mb+ currently). one of the consequences is that when I bundle other projects that include this gem, it takes a long time downloading these unneeded fixtures. any ideas to solve this issue?
jlast has joined #ruby
GGMethos has quit [Quit: WeeChat 1.0.1]
workmad3 has quit [Ping timeout: 245 seconds]
dys has quit [Remote host closed the connection]
Dopagod has quit [Quit: WeeChat 0.4.1]
jefus has joined #ruby
Dopagod has joined #ruby
willharrison has quit [Quit: Textual IRC Client: www.textualapp.com]
centrx has joined #ruby
Guest15 has quit [Read error: Connection reset by peer]
Cache_Money has quit [Remote host closed the connection]
withnale_ has quit [Ping timeout: 245 seconds]
Cache_Money has joined #ruby
jimms has quit [Read error: Connection timed out]
jlast has quit [Ping timeout: 240 seconds]
jimms has joined #ruby
FooMunki has joined #ruby
tunaCanBruh has quit [*.net *.split]
blizzy has quit [*.net *.split]
ych4k3r_ has quit [*.net *.split]
perturbation has quit [*.net *.split]
last_staff has quit [*.net *.split]
nonnatus has quit [*.net *.split]
amystephen has quit [*.net *.split]
Kricir has quit [*.net *.split]
lanemeyer has quit [*.net *.split]
karmatr0n has quit [*.net *.split]
Beoran_ has quit [*.net *.split]
rsavage has quit [*.net *.split]
davedev24_ has quit [*.net *.split]
Mia has quit [*.net *.split]
arez has quit [*.net *.split]
jso has quit [*.net *.split]
apeiros_ has quit [*.net *.split]
razieliyo has quit [*.net *.split]
odigity has quit [*.net *.split]
robustus has quit [*.net *.split]
sivoais has quit [*.net *.split]
jayne_ has quit [*.net *.split]
speaking1ode has quit [*.net *.split]
Kamilion has quit [*.net *.split]
chishiki has quit [*.net *.split]
ghormoon has quit [*.net *.split]
malcolmva has quit [*.net *.split]
bigkevmcd has quit [*.net *.split]
FifthWall has quit [*.net *.split]
ahuman has quit [*.net *.split]
graft has quit [*.net *.split]
mahlon has quit [*.net *.split]
b1nd has quit [*.net *.split]
rfi_ has quit [*.net *.split]
Igneous has quit [*.net *.split]
RTG` has quit [*.net *.split]
gremax has quit [*.net *.split]
SirFunk has quit [*.net *.split]
strsep has quit [*.net *.split]
MiracleBlue has quit [*.net *.split]
sssilver| has quit [*.net *.split]
SHyx0rmZ has quit [*.net *.split]
mclee_ has quit [*.net *.split]
seanmarcia has quit [*.net *.split]
zalmoxes has quit [*.net *.split]
gut has quit [*.net *.split]
coco_ has quit [*.net *.split]
zewelor has quit [*.net *.split]
DrShoggoth has quit [*.net *.split]
robert_ has quit [*.net *.split]
mhenrixon has quit [*.net *.split]
Karunamon has quit [*.net *.split]
yasu has quit [*.net *.split]
dandrade has quit [*.net *.split]
tommylommykins has quit [*.net *.split]
voronika has quit [*.net *.split]
pizzaops has quit [*.net *.split]
Silex has quit [*.net *.split]
genpaku has quit [*.net *.split]
timmow_ has quit [*.net *.split]
xtsee has quit [*.net *.split]
go|dfish has quit [*.net *.split]
monsieurp has quit [*.net *.split]
marahin has quit [*.net *.split]
dredozubov has quit [*.net *.split]
phreax_ has quit [*.net *.split]
skinny_much has quit [*.net *.split]
rtl_ has quit [*.net *.split]
musl has quit [*.net *.split]
IceDragon has quit [*.net *.split]
clocKwize has quit [*.net *.split]
Jamo has quit [*.net *.split]
AlyssaDaemon has quit [*.net *.split]
irk has quit [*.net *.split]
hasB4K has quit [*.net *.split]
David_Miller has quit [*.net *.split]
sfiggins has quit [*.net *.split]
jtperreault has quit [*.net *.split]
eoconnell has left #ruby [#ruby]
yellowgh0st_ has quit [Quit: yellowgh0st_]
jaequery has joined #ruby
mathie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
GGMethos has joined #ruby
psy_ has quit [Ping timeout: 252 seconds]
gfawcettpq has quit [Remote host closed the connection]
mathie has joined #ruby
startupality has quit [Quit: startupality]
senayar_ has quit []
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Akagi201_ has joined #ruby
<jhass> dipnlik: include a rake task that downloads them, but don't bundle them into the gem
triple_b has joined #ruby
iwishiwerearobot has joined #ruby
<jhass> dipnlik: and maybe make it a file task and have your test runner task have that as a requirement
tunaCanBruh has joined #ruby
_blizzy_ has joined #ruby
ych4k3r_ has joined #ruby
perturbation has joined #ruby
last_staff has joined #ruby
chishiki has joined #ruby
Kamilion has joined #ruby
robert_ has joined #ruby
Mia has joined #ruby
karmatr0n has joined #ruby
davedev24_ has joined #ruby
rsavage has joined #ruby
lanemeyer has joined #ruby
SirFunk has joined #ruby
rfi_ has joined #ruby
Silex has joined #ruby
arez has joined #ruby
ahuman has joined #ruby
speaking1ode has joined #ruby
gremax has joined #ruby
odigity has joined #ruby
RTG` has joined #ruby
strsep has joined #ruby
voronika has joined #ruby
amystephen has joined #ruby
sivoais has joined #ruby
FifthWall has joined #ruby
graft has joined #ruby
Beoran_ has joined #ruby
MiracleBlue has joined #ruby
gut has joined #ruby
jayne_ has joined #ruby
sssilver| has joined #ruby
apeiros_ has joined #ruby
nonnatus has joined #ruby
Igneous has joined #ruby
malcolmva has joined #ruby
razieliyo has joined #ruby
ghormoon has joined #ruby
bigkevmcd has joined #ruby
jso has joined #ruby
mahlon has joined #ruby
robustus has joined #ruby
b1nd has joined #ruby
David_Miller has joined #ruby
skinny_much has joined #ruby
irk has joined #ruby
AlyssaDaemon has joined #ruby
jtperreault has joined #ruby
dandrade has joined #ruby
Karunamon has joined #ruby
mclee_ has joined #ruby
pizzaops has joined #ruby
zalmoxes has joined #ruby
dredozubov has joined #ruby
sfiggins has joined #ruby
coco_ has joined #ruby
clocKwize has joined #ruby
phreax_ has joined #ruby
IceDragon has joined #ruby
SHyx0rmZ has joined #ruby
DrShoggoth has joined #ruby
timmow_ has joined #ruby
monsieurp has joined #ruby
xtsee has joined #ruby
yasu has joined #ruby
musl has joined #ruby
mhenrixon has joined #ruby
seanmarcia has joined #ruby
zewelor has joined #ruby
rtl_ has joined #ruby
tommylommykins has joined #ruby
go|dfish has joined #ruby
genpaku has joined #ruby
Jamo has joined #ruby
hasB4K has joined #ruby
marahin has joined #ruby
FooMunki has quit [Remote host closed the connection]
kaspertidemann has quit []
__chris has quit [Ping timeout: 256 seconds]
sivoais has quit [Max SendQ exceeded]
genpaku has quit [Max SendQ exceeded]
<jhass> honestly, I probably wouldn't have put them into the repository
sivoais has joined #ruby
devdazed has quit [Read error: Connection reset by peer]
genpaku has joined #ruby
<_blizzy_> well.
devdazed_ has joined #ruby
Akagi201 has quit [Ping timeout: 252 seconds]
jimms has quit [Remote host closed the connection]
__chris has joined #ruby
<dipnlik> jhass: they were put in the repo because they weren’t so big, but now we need to remove them
<jhass> well, git never forgets, so that part is probably lost
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sambao21 has quit [Quit: Computer has gone to sleep.]
<jhass> but for the .gem I'd go the rake task to download it way
psy_ has joined #ruby
iwishiwerearobot has quit [Ping timeout: 246 seconds]
mikecmpbll has quit [Ping timeout: 246 seconds]
<theRoUS> i'm building a gem and all the documentation is in markdown for yard. when i install it, however, 'gem install' does *not* say anything about building the yri docs. is there a step i'm missing somewhere? haven't found clews online yet..
<theRoUS> thanks!
<dipnlik> jhass: good idea, definitely. will look into that. thanks!
<dipnlik> jhass: would you store them in S3?
geefolk has quit [Ping timeout: 250 seconds]
sambao21 has joined #ruby
<jhass> if you have no other own or rented hardware where it fits, that's a good option, yeah
iMe has quit [Ping timeout: 252 seconds]
diegoviola has joined #ruby
starfox_sf has joined #ruby
iMe has joined #ruby
msgodf has quit [Ping timeout: 252 seconds]
roolo has quit [Remote host closed the connection]
roolo has joined #ruby
<jhass> theRoUS: no real need to build yard docs on gem install, just gem install yard and yard server -g
athan has quit [Ping timeout: 246 seconds]
<theRoUS> jhass: mostly curious because i see *other* gems doing it on install.
mmoretti has quit [Quit: Leaving...]
havenwood has joined #ruby
mikecmpbll has joined #ruby
starfox_sf has quit [Ping timeout: 255 seconds]
mkaesz has quit [Read error: Connection reset by peer]
ponga has quit [Quit: Leaving...]
mkaesz has joined #ruby
sieve has quit [Quit: Leaving.]
aclearman037 has joined #ruby
psy_ has quit [Ping timeout: 250 seconds]
serivich has quit [Quit: Leaving]
<jheg> why is this method returning nil?
Pharaoh2 has joined #ruby
ponga has joined #ruby
<Fire-Dragon-DoL> Are there any way to let ruby sleep() sleep forever but terminate cleanly when Ctrl+C is sent?
<Fire-Dragon-DoL> terminate cleanly: not raise
Pharaoh2 has quit [Max SendQ exceeded]
maximski has quit []
Dopagod has quit [Quit: WeeChat 0.4.1]
<yxhuvud> jheg: I don't see how downcase could return nil, so I don't see how that is possible unless someone has defined method_missing on nil or some other atrocity. What can return nil however is gsub!, but that would usually emit a stack trace and not a nil.
Alina-malina has quit [Ping timeout: 245 seconds]
Pharaoh2 has joined #ruby
Dopagod has joined #ruby
bMalum has quit [Quit: bMalum]
<jheg> hmm thanks yxhuvud i’ll look into it further
ponga has quit [Client Quit]
craigp_ has joined #ruby
adriancb has quit [Remote host closed the connection]
craigp has quit [Ping timeout: 252 seconds]
dopie has quit [Remote host closed the connection]
monod has joined #ruby
jheg has quit [Quit: jheg]
Alina-malina has joined #ruby
mary5030 has joined #ruby
bMalum has joined #ruby
awerush has quit [Ping timeout: 252 seconds]
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
__chris has quit [Ping timeout: 252 seconds]
__chris has joined #ruby
nobitanobi has joined #ruby
Hobogrammer has quit [Ping timeout: 240 seconds]
dopie has joined #ruby
KC9YDN has quit [Ping timeout: 245 seconds]
KC9YDN has joined #ruby
chthon has quit [Ping timeout: 256 seconds]
bMalum has quit [Ping timeout: 252 seconds]
<jhass> dipnlik: oh, you should tell if you crosspost
__chris has quit [Client Quit]
<dipnlik> jhass: didn’t know that rule, sorry
iMe has quit [Ping timeout: 245 seconds]
<jhass> at least inform other channels of provided solutions ;)
crazydiamond has quit [Remote host closed the connection]
__chris has joined #ruby
sankaber has quit [Read error: Connection reset by peer]
sankaber has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
iMe has joined #ruby
Dopagod has quit [Ping timeout: 256 seconds]
gsd has joined #ruby
triple_b has quit [Ping timeout: 244 seconds]
vire has joined #ruby
wallerdev has joined #ruby
phutchins has joined #ruby
bootstrappm has joined #ruby
Takle has quit [Remote host closed the connection]
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
apurcell has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sigurding has joined #ruby
n008f4g_ has joined #ruby
fryguy9 has joined #ruby
__chris has quit [Quit: This computer has gone to sleep]
DEA7TH has quit [Ping timeout: 265 seconds]
sigurding has quit [Client Quit]
fryguy91 has quit [Ping timeout: 264 seconds]
paradoja has quit [Ping timeout: 256 seconds]
turtil has joined #ruby
jobewan has joined #ruby
anarang has quit [Quit: Leaving]
psy_ has joined #ruby
Takle has joined #ruby
zorak8 has quit [Ping timeout: 252 seconds]
jack_rabbit has joined #ruby
blackmesa has joined #ruby
hesco has quit [Ping timeout: 264 seconds]
northfurr has joined #ruby
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
DEA7TH has joined #ruby
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
hesco has joined #ruby
iamjarvo has joined #ruby
Takle has quit [Ping timeout: 245 seconds]
starfox_sf has joined #ruby
tesuji_ has quit [Ping timeout: 264 seconds]
zorak8 has joined #ruby
Eiam has joined #ruby
shadoi has joined #ruby
DrShoggoth has quit [Quit: Leaving]
__chris has joined #ruby
garethrees has quit [Ping timeout: 246 seconds]
jlast has joined #ruby
dys has joined #ruby
rap has quit [Read error: Connection reset by peer]
tunaCanBruh has quit [Ping timeout: 255 seconds]
iMe has quit [Ping timeout: 240 seconds]
andikr has quit [Remote host closed the connection]
svoop has joined #ruby
quazimod1 has joined #ruby
quazimodo has quit [Ping timeout: 252 seconds]
iMe has joined #ruby
<shevy> we want to learn too!
jlast has quit [Ping timeout: 265 seconds]
jack_rabbit has quit [Ping timeout: 250 seconds]
Freelusion has joined #ruby
jlast has joined #ruby
mathie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
psy__ has joined #ruby
psy__ has quit [Max SendQ exceeded]
DonOtreply has joined #ruby
psy__ has joined #ruby
davidhq has joined #ruby
Freelusion has quit [Client Quit]
Freelusion has joined #ruby
jonr22 has quit [Remote host closed the connection]
phoo1234567 has joined #ruby
Freelusion has quit [Client Quit]
roolo has quit [Remote host closed the connection]
Freelusion has joined #ruby
jlast has quit [Ping timeout: 250 seconds]
havenwood has quit [Quit: Leaving]
nobitanobi has quit [Remote host closed the connection]
roolo has joined #ruby
phoo1234567 has quit [Max SendQ exceeded]
havenwood has joined #ruby
dopie has quit [Remote host closed the connection]
Pharaoh2 has joined #ruby
Freelusion has quit [Client Quit]
dixie` has joined #ruby
dopie has joined #ruby
phoo1234567 has joined #ruby
Freelusion has joined #ruby
m8 has joined #ruby
Crisix has joined #ruby
melmouss has joined #ruby
dixie` has quit [Remote host closed the connection]
nobitanobi has joined #ruby
melmouss has quit [Max SendQ exceeded]
daynaskully has quit [Ping timeout: 256 seconds]
Freelusion has quit [Client Quit]
DonOtreply has quit [Quit: DonOtreply]
dixie__ has joined #ruby
Freelusion has joined #ruby
enebo has quit [Quit: enebo]
Freelusion has quit [Client Quit]
Lewix has quit [Remote host closed the connection]
mathie has joined #ruby
hesco has quit [Read error: Connection reset by peer]
davejacobs has joined #ruby
Azure has joined #ruby
Deithrian has joined #ruby
aphprentice has quit [Remote host closed the connection]
dorei has joined #ruby
pierre1_ has quit [Ping timeout: 252 seconds]
__chris has quit [Ping timeout: 240 seconds]
codeurge has quit [Quit: Textual IRC Client: www.textualapp.com]
davejacobs has quit [Ping timeout: 250 seconds]
Rhainur1 is now known as Rhainur
terlar has quit [Ping timeout: 240 seconds]
__chris has joined #ruby
__chris has quit [Client Quit]
versatiletech has joined #ruby
codeurge has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skj3gg has joined #ruby
iMe has quit [Ping timeout: 245 seconds]
Crisix has quit [Read error: Connection reset by peer]
MasterPiece has joined #ruby
nonnatus has left #ruby [#ruby]
startupality has joined #ruby
ghr has joined #ruby
mathie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ki0 has joined #ruby
iMe has joined #ruby
djellemah has quit [Quit: Leaving]
enebo has joined #ruby
ki0 has quit [Client Quit]
zomg has joined #ruby
zomg has left #ruby [#ruby]
shredding has joined #ruby
jenrzzz has joined #ruby
codeurge has quit [Quit: Textual IRC Client: www.textualapp.com]
enebo has quit [Client Quit]
codeurge has joined #ruby
ghr has quit [Ping timeout: 252 seconds]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
pierre1_ has joined #ruby
kyb3r_ has joined #ruby
kaspertidemann has joined #ruby
Pongles has joined #ruby
amacou has joined #ruby
hesco has joined #ruby
lidaaa has joined #ruby
odin22 has joined #ruby
ych4k3r has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
odin22 has quit [Client Quit]
<odigity> I just called .last on an exclusive date range and got the last date, even though it should have been the day before that, because it's an exclusive range
<odigity> .max does return the correct date -- the one I expected .last to return
Alayde_ has joined #ruby
dipnlik has quit [Quit: dipnlik]
<havenwood> >> (1...10).last
<eval-in__> havenwood => 10 (https://eval.in/287237)
<havenwood> indeed
ych4k3r_ has quit [Ping timeout: 255 seconds]
pengin has joined #ruby
<Pongles> >> 'hallo'.upcase!
<eval-in__> Pongles => "HALLO" (https://eval.in/287238)
amacou has quit [Ping timeout: 245 seconds]
__chris has joined #ruby
dmbennett has joined #ruby
<havenwood> >> (1...10).exclude_end?
<eval-in__> havenwood => true (https://eval.in/287239)
<Pongles> >> (1..100).chomp
<eval-in__> Pongles => undefined method `chomp' for 1..100:Range (NoMethodError) ... (https://eval.in/287240)
<Pongles> >> (1..100).to_s.chomp?
<eval-in__> Pongles => undefined method `chomp?' for "1..100":String (NoMethodError) ... (https://eval.in/287241)
<Pongles> >> (1..100).to_s.chomp
<eval-in__> Pongles => "1..100" (https://eval.in/287242)
<Pongles> I have no idea what I am doing
<havenwood> odigity: This is long-standing behavior but the docs were only updated with an explanation in 2.0: http://ruby-doc.org//core-2.2.0/Range.html#method-i-last
rdark has quit [Quit: leaving]
Takle has joined #ruby
craigp_ has quit [Remote host closed the connection]
<odigity> havenwood, that's really ugly. but thanks for the tip. I just tested it, and I can achieve the result I want with r.last(1)[0]
<odigity> havenwood, I'm stuck in a terrible position. I've decided to use the postgres daterange type to represent a membership period, which can be unbounded for a lifetime membership, which I'm representing with the infinity value. however, postgres only supports date ranges with infinity ends if the range is exclusive on the upper bound. which then gets loaded by rails, and then I run into the ruby Range problem in the opposite direction
Synthead has joined #ruby
DouweM has joined #ruby
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
aapole has joined #ruby
<havenwood> odigity: does lifetime membership support immortals? that could get expensive.
mitchellhenke has quit [Read error: Connection reset by peer]
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
ghr has joined #ruby
jaequery has joined #ruby
mitchellhenke has joined #ruby
<odigity> havenwood, :)
dmbennett has quit [Remote host closed the connection]
<pipework> havenwood: What if they heroku'd that shit? Made it like a gym membership, where if you don't use it, it doesn't cause problems for the gym?
<havenwood> odigity: 120 years is a safe bet for 100% mortality, at least these days
<eam> it's super odd that postgres would support daterange intervals of that length
<eam> seeing as how they're unmeasurable
mkaesz has quit [Read error: No route to host]
craigp has joined #ruby
pengin has quit [Remote host closed the connection]
dmbennett has joined #ruby
__chris has quit [Read error: Connection reset by peer]
<odigity> havenwood, called .last(1) on a range with infinity crashes ruby :)
DouweM has quit [Read error: Connection reset by peer]
<odigity> so annoying!
mkaesz has joined #ruby
zachrab has joined #ruby
shredding has quit [Quit: shredding]
svoop has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
riceandbeans has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
DouweM has joined #ruby
triple_b has joined #ruby
<odigity> havenwood, I'm going to have to monkey-patch in my own method that checks for infinty
ghr has quit [Ping timeout: 252 seconds]
<pipework> odigity: Just reverse the range and call .first. :P
<havenwood> pipework: hehe
<odigity> pipework, I assume you're joking, so I don't think that can work
workmad3 has joined #ruby
Kricir_ has quit [Remote host closed the connection]
<pipework> odigity: Yes, I'm joking.
dumdedum has quit [Quit: foo]
alexherbo2 has quit [Ping timeout: 256 seconds]
<odigity> this is really terrible. I don't understand why no one else is stumbling on this
iMe has quit [Ping timeout: 250 seconds]
ItSANgo_ has quit [Quit: Leaving...]
<pipework> They usually don't have problems with infinite ranges and trying to get the last item in them?
<eam> is last(0) trying to enumerate the infinite range?
<eam> looks like it
skj3gg has quit [Quit: ZZZzzz…]
zachrab has quit [Ping timeout: 246 seconds]
mathie has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
__chris has joined #ruby
anomaly has quit [Quit: Leaving]
iMe has joined #ruby
jefus has quit [Ping timeout: 265 seconds]
<eam> >> (0..Float::INFINITY).to_a
<eval-in__> eam => (https://eval.in/287251)
<eam> now, is that a bug?
workmad3 has quit [Ping timeout: 255 seconds]
OrbitalKitten has joined #ruby
<eam> or is it just "don't do that"
Alayde_ has left #ruby ["WeeChat 1.0"]
<odigity> eam, I think the Range object is supposed to be agnostic to the type of range, and just use the <=> and succ methods. it knows no other way
ghr has joined #ruby
DouweM has quit [Read error: Connection reset by peer]
jonathanwallace has joined #ruby
Crazy_Atheist has quit [Ping timeout: 250 seconds]
<eam> odigity: interally it constructs an Array when asked for the last element
<weaksauce> eam it's like writing bubble sort... don't
DouweM has joined #ruby
<odigity> eam, so basically, Ruby doesn't have what I need yet. I need to moneypatch in my own pair of methods for getting first/last dates of a date range with support for infinity
tunaCanBruh has joined #ruby
Rayford has joined #ruby
CustosL1men has joined #ruby
<pipework> odigity: Rather than monkeypatch, why not just not monkeypatch and just introduce an object?
<eam> odigity: or just don't deal with infinite time periods
<eam> the time related structures will be rendered meaningless even just a few hundred years out due to definition issues
shredding has joined #ruby
<pipework> Or alternately, don't deal with getting the last of ranges.
<eam> not to mention, lifetime memberships won't ever last that long :D
<odigity> I obviously wouldn't be doing this if my application didn't necessitate infinity membership periods and accessing the last date
sinkensabe has joined #ruby
<havenwood> odigity: 120 years ;)
jlast has joined #ruby
<eam> 120 we can beat
<odigity> pipework, if I introduced a new object, I'd have to override Rails to use it when loading and storing that field
<eam> 1200 oughta do it though
<odigity> magic values are bad design. infinity is the correct way to express the data
<pipework> odigity: Or you'd not have to override anything and provide your own object somewhere without overriding things.
<eam> odigity: the thing is there's not really any such concept
<pipework> Most of the time, there's a way to do that.
<eam> because time itself has a limited definition
dereck has joined #ruby
<pipework> eam: It's the lifetime of the universe.
<eam> it's not though
dereck is now known as jefus
<eam> and there are periods in between which aren't yet defined
<havenwood> eam: If you have to be 18 to enter into the contract, 120 gives you age 138. Of course not future-proof but nobody is quite that old right now.
<eam> havenwood: we don't know the time 120 years into the future
<eam> it's currently undefined
<pipework> Maybe consider either extending a class, or placing your own object in between what you get from rails and your application code that tries to call #last on infinite ranges.
<eam> havenwood: 120 years from now UTC may differ by up to 5 minutes :)
<havenwood> eam: If we achieve biological immortality, I'd expect the courts would modify lifetime warranties to something somewhat shorter.
enebo has joined #ruby
<pipework> So the customer will be upset that their 120 year membership will be 5 minutes short?
<havenwood> eam: Good point!
<eam> pipework: 120 years is probably no big deal, but infinity means an infinite amount of skew :)
<pipework> eam: Sounds like an infinite amount of rather unnecessary time wasted on discussing a pretty simple problem to fix either way.
DouweM has quit [Read error: Connection reset by peer]
<eam> not to mention we don't really have any rules for adjusting solar time if either the earth or the sun cease to exist
<eam> since that's what we sync UTC relative to
iwishiwerearobot has joined #ruby
<shevy> eam is hyper-active today
<pipework> I'm not sure anyone will care in that case.
jlast has quit [Ping timeout: 250 seconds]
<eam> I just ate a huge bowl of ice cream and fudge
<shevy> we could move to other suns!
siso has joined #ruby
tuxdna has joined #ruby
tunaCanBruh has quit [Ping timeout: 250 seconds]
<shevy> don't tell me all the energy is just going to dissipate away
<pipework> shevy - star snuggler extraordinaire!
<shevy> yay
<shevy> let's reboot life
<havenwood> and when bulge dragging tidally locks the earth to the moon...
<eam> pipework: ultimately I'm just forming an argument that "a long ways out" is just as valid as "infinity"
<eam> just add a thousand years
<havenwood> no more spinny
leafybasil has quit [Remote host closed the connection]
tunaCanBruh has joined #ruby
alexherbo2 has joined #ruby
pu22l3r has joined #ruby
jlast has joined #ruby
<pipework> eam: What if a lifetime doesn't start today, but started infinitely prior to now?
<pipework> Shouldn't the range be -Infinity..Infinity ?
<shevy> cells originate from cells!
<shevy> so there must have always been cells!!!
<pipework> shevy: Cell phones aren't that old though.
<shevy> see this part I don't understand
<eam> pipework: the way we measure time is relative to our current time, so we can't accurately enumerate values after a certain point
Hanmac has quit [Ping timeout: 250 seconds]
<shevy> what is the difference between normal Infinity and -Infinity
<pipework> eam: My lifetime started before now.
aclearma_ has joined #ruby
<pipework> shevy: a sign
<pipework> One keystroke.
aclearma_ has quit [Client Quit]
<shevy> yeah
<shevy> but aside from that
<pipework> One heads in one direction of a one-dimensional plane infinitely, the other in the other?
siso has quit [Client Quit]
<shevy> I never understood the difference between 0/0 and 1/0
yellowgh0st has joined #ruby
<eam> ok uh, while we were talking I left (0..Float::INFINITY).to_a running and damn near crashed my laptop
Rayford has quit [Quit: Rayford]
<shevy> so now we know
<pipework> eam: So don't enumerate, silly.
<shevy> chuck norris > eam's laptop
iwishiwerearobot has quit [Ping timeout: 252 seconds]
<shevy> .to_a is scary
jen__ has left #ruby [#ruby]
<eam> last() does to_a internally though
perturbation has quit [Ping timeout: 255 seconds]
<pipework> #map can be scarier
<shevy> really?
galeido_ has quit [Ping timeout: 244 seconds]
<eam> yes
yellowgh0st has left #ruby [#ruby]
aclearman037 has quit [Ping timeout: 245 seconds]
<shevy> does .last crash too?
DouweM has joined #ruby
<eam> yes
<eam> last(0)
<pipework> Isn't the 0 kinda implicit?
<pipework> same as 1?
<pipework> >> (0..Infinity).last(1)
<eval-in__> pipework => uninitialized constant Infinity (NameError) ... (https://eval.in/287259)
jlast has quit [Ping timeout: 250 seconds]
<pipework> Oh right, gotta require
pu22l3r has quit [Ping timeout: 246 seconds]
<eam> see the rb_Array() call?
<eam> that's what kills it
<eam> it could be done without it, probably no one cares
wallerdev has quit [Quit: wallerdev]
<pipework> >> require 'bignum'; (0..INFINITY).last
<eval-in__> pipework => cannot load such file -- bignum (LoadError) ... (https://eval.in/287260)
<pipework> damnit, whatever.
lolmaus has quit [Quit: Konversation terminated!]
Dopagod has joined #ruby
monod has quit [Ping timeout: 240 seconds]
<havenwood> >> (0..Float::INFINITY).last(1)
<eval-in__> havenwood => (https://eval.in/287261)
yellowgh0st_ has joined #ruby
davidhq has quit [Ping timeout: 245 seconds]
<eam> last is OK because it doesn't turn the Range into an Array
phoo1234567 has quit [Quit: Leaving]
<eam> last(x) does though
<eam> kinda feel like this should have a guard
ItSANgo has joined #ruby
Lemur has joined #ruby
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
C0deMaver1ck has joined #ruby
skj3gg has joined #ruby
maximski has joined #ruby
davidhq has joined #ruby
<odigity> pipework, havenwood eam -- I did it: https://gist.github.com/odigity/045bd5d6fe674f1e6074
davidhq has quit [Max SendQ exceeded]
leat has quit [Remote host closed the connection]
<pipework> odigity: Very good job on not monkey patching! :D
leat1 has joined #ruby
davidhq has joined #ruby
JBreit has left #ruby ["Leaving"]
<odigity> pipework, luckily I just read up and started using value objects yesterday
bruno- has quit [Ping timeout: 265 seconds]
<eam> >> Time.new("2015-02-16 11:33:43") + 86400 * 365 * 2 # this value will change within 6 months
<eval-in__> eam => 2016-12-31 00:00:00 +0000 (https://eval.in/287270)
<pipework> odigity: Very good, sir!
mailo has joined #ruby
Hanmac has joined #ruby
sevvie has quit [Ping timeout: 256 seconds]
skj3gg has quit [Quit: ZZZzzz…]
iMe has quit [Ping timeout: 252 seconds]
jen__ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<jen__> can someone help me with OpenSSL error. PLease PM me.
roolo has quit [Ping timeout: 244 seconds]
<pipework> jen__: Just ask your whole question in one line here. Optionally, use a gist if you need to paste code or something lengthy.
mary5030 has quit [Remote host closed the connection]
<jen__> pipework:
mathie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sambao21 has joined #ruby
jen__ has left #ruby [#ruby]
jen__ has joined #ruby
<centrx> SSLv3 disabled
Morkel has quit [Quit: Morkel]
<jen__> sorry, I just lost connection…did someone say something?
iceden has quit [Ping timeout: 256 seconds]
iMe has joined #ruby
__chris has quit [Quit: Leaving]
<centrx> jen__, One possibility is that your old version of Ruby (1.8) is trying to connect with SSLv3 but SSLv3 is disabled on the site you are trying to connect to
skj3gg has joined #ruby
<jen__> ah.. centrx
<jen__> let me check on this.
<jen__> would this be in WHM?
<centrx> Or possibly you need to setup Faraday to handle the site's SSL certificates
fryguy9 has quit [Quit: Leaving.]
<jen__> is there a way to disable cert checking for this connection?
<jen__> we have SSLs installed for specific domains
adriancb has joined #ruby
sevvie has joined #ruby
ellisTAA has joined #ruby
<centrx> I don't know
<jen__> this is a good start..centrx
<ellisTAA> can someone take a look at this and tell me why it isn’t working?
fryguy9 has joined #ruby
<centrx> ellisTAA, what is array(idx + 1)
<centrx> ellisTAA, array[idx + 1]
<jhass> ellisTAA: because you don't indent it properly
ghostpl_ has joined #ruby
<ellisTAA> ahhhh fuck!
<ellisTAA> jhass: thanks
oetjenj has joined #ruby
Pharaoh2_ has joined #ruby
<jhass> ellisTAA: also avoid variable names like array, k, v, x
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
<ellisTAA> jhass: alright thanks for that too
<pipework> Yeah, use the cool letters, like q, j, and ∆
<jen__> hey jhass any ideas why we are getting this error:? http://pastie.org/9954676
<jhass> ellisTAA: try to find variable names describing what the data represents
WildBamboo-Josh has joined #ruby
Spami has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<jhass> jen__: that error says that the certificate of the host your script is connecting to couldn't be verified. That's either because Ruby (or more specifically the library making that http call) can't find your systems CA bundle or because it uses a self-signed or otherwise invalid certificate
Pharaoh2 has quit [Ping timeout: 255 seconds]
MasterPiece has quit [Quit: Bye!]
<jhass> jen__: side not: Ruby 1.8.7 is EOL, there will be no updates for it, regular nor security wise
<jhass> *note
User458764 has joined #ruby
ghostpl_ has quit [Remote host closed the connection]
jenrzzz has joined #ruby
<jen__> we tried installing 2.2 but quite a bit of errors
<shevy> try 2.1.5 :)
livathin_ has joined #ruby
oetjenj has quit [Client Quit]
livathin_ has quit [Client Quit]
tjohnson has joined #ruby
<jhass> 1.9.3 has no EOL date yet, so might be a compromise if it works there
<centrx> jen__, You have to get off 1.8 sometimes and update the syntax/fix incompatibilities
<centrx> jen__, Especially as you are doing networking things, it's a security risk
<jen__> guys I know nothing of ruby...
<jhass> oh wait, actually 1.9.3 will EOL this month
chrishough has joined #ruby
<jen__> so 2.1.5?
<centrx> 2.2.0 is the latest
<waxjar> oh? that's pretty quick, isn't it?
<jen__> how do I remove 1.8.7?
nunayerBeezwax has joined #ruby
shredding has quit [Quit: shredding]
<pipework> jen__: What kinds of errors for 2.2?
<jen__> didn’t save any logs
User458764 has quit [Ping timeout: 246 seconds]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DouweM has quit [Read error: Connection reset by peer]
mkaesz has quit [Read error: No route to host]
<jhass> apeiros_: ^ might want to drop 1.9.3 from the topic
blackmesa has quit [Quit: WeeChat 1.1.1]
Sgeo has joined #ruby
mkaesz has joined #ruby
blackmesa has joined #ruby
<jhass> I thought I saw a news for it, but couldn't find it, thanks
<waxjar> good to know :)
<nunayerBeezwax> hey, have an ActiveRecord validations question... we want to write a custom error message, by writing on the model "validates :name, presence: { :message => 'custom message'}"... the "custom message" does display to the page, but ActiveRecord adds "Payments credit card Name" to the front of it, and i can't figure out how to kill that. i want to fully define the message, and not have ANY default stuff added... anybody?
apeiros_ changed the topic of #ruby to: Ruby 2.2.0; 2.1.5; 2.0.0-p598: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
<jhass> ty
crome has joined #ruby
<havenwood> nunayerBeezwax: The best place for Rails questions is #RubyOnRails. Nick registration is required: https://freenode.net/faq.shtml#nicksetup
<nunayerBeezwax> thanks, sorry
defrang has quit [Quit: defrang]
jonathanwallace has quit [Ping timeout: 250 seconds]
ghostpl_ has joined #ruby
maximski has quit []
jonathanwallace has joined #ruby
CustosLimen has quit [Read error: Connection reset by peer]
blackmesa has quit [Client Quit]
blackmesa has joined #ruby
blackmesa has quit [Client Quit]
leafybasil has joined #ruby
blackmesa has joined #ruby
unreal_ is now known as unreal
markfletcher has joined #ruby
maximski has joined #ruby
Pharaoh2_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jbw_ has joined #ruby
<jen__> trying to install ruby v 2.2.0 do I need to manually remove 1.8.7?
zachrab has joined #ruby
wallerdev has joined #ruby
<jen__> sorry for these rather silly questions
jbw__ has quit [Ping timeout: 246 seconds]
jen__ has quit [Quit: jen__]
hollywood has quit [Quit: Leaving]
jheg has joined #ruby
cocotton has quit [Quit: Leaving...]
chrishough has quit [Ping timeout: 246 seconds]
Lewix has joined #ruby
bruno- has joined #ruby
goodenough has joined #ruby
shredding has joined #ruby
duncannz has joined #ruby
zachrab has quit [Ping timeout: 246 seconds]
JoshGlzBrk has joined #ruby
wallerdev has quit [Quit: wallerdev]
raphaelss has quit [Quit: leaving]
shredding has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
wallerdev has joined #ruby
tvw has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
havenwood has quit [Remote host closed the connection]
C0deMaver1ck has quit [Read error: Connection reset by peer]
DadoCe has joined #ruby
timanema has joined #ruby
adriancb has quit [Remote host closed the connection]
jlast has joined #ruby
chrishough has joined #ruby
leat1 has quit [Ping timeout: 265 seconds]
yfeldblum has quit [Ping timeout: 244 seconds]
C0deMaver1ck has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonr22 has quit [Ping timeout: 265 seconds]
ta has joined #ruby
duncannz has quit [Ping timeout: 252 seconds]
DadoCe has quit [Ping timeout: 265 seconds]
jlast has quit [Ping timeout: 265 seconds]
hiyosi has joined #ruby
jlast has joined #ruby
monod has joined #ruby
Soda has joined #ruby
ta has quit [Ping timeout: 245 seconds]
ghr has quit [Ping timeout: 250 seconds]
kaspertidemann has quit []
timanema has quit [Quit: leaving]
jlast has quit [Ping timeout: 265 seconds]
C0deMaver1ck has quit [Quit: ZNC - 1.6.0 - http://znc.in]
C0deMaver1ck has joined #ruby
longfeet has joined #ruby
rsavage has quit [Remote host closed the connection]
CustosLimen has joined #ruby
kaspertidemann has joined #ruby
bodgix_wrk has left #ruby [#ruby]
lioninawhat has joined #ruby
perturbation has joined #ruby
kaspergrubbe has quit [Quit: leaving]
kaspergrubbe has joined #ruby
claw has quit [Ping timeout: 245 seconds]
claw_ has joined #ruby
kaspergrubbe has quit [Client Quit]
kaspergrubbe has joined #ruby
li0ninawhat has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
_Andres has joined #ruby
gkra_ has joined #ruby
gkra_ is now known as gkra
markfletcher has left #ruby [#ruby]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
craigp has quit [Remote host closed the connection]
blackmesa has quit [Quit: WeeChat 1.1.1]
lioninawhat has quit [Ping timeout: 265 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
craigp has joined #ruby
ellisTAA has quit [Quit: ellisTAA]
blackmesa has joined #ruby
olivier_bK has quit [Ping timeout: 252 seconds]
triple_b has joined #ruby
blackmesa has quit [Client Quit]
blackmesa has joined #ruby
vire has quit [Ping timeout: 240 seconds]
aclearman037 has joined #ruby
sevvie has quit [Ping timeout: 245 seconds]
sevvie has joined #ruby
craigp has quit [Ping timeout: 256 seconds]
diegoviola has quit [Remote host closed the connection]
spider-mario has joined #ruby
olivier_bK has joined #ruby
binary1985 has quit []
DouweM has joined #ruby
dblessing has joined #ruby
sinkensabe has quit [Remote host closed the connection]
jespada has quit [Quit: Leaving]
perturbation has quit [Ping timeout: 252 seconds]
vire has joined #ruby
Megtastique has quit []
ecksit has joined #ruby
diegoviola has joined #ruby
defrang has joined #ruby
<ecksit> hey, i am attempting to use an instance variable in order to create a connection and then reuse it - https://gist.github.com/jacobbednarz/6e714cbfc75995587b0b - however i cannot access `@client` from any other methods? can someone tell me why?
davejacobs has joined #ruby
davejacobs has quit [Remote host closed the connection]
davejacobs has joined #ruby
<crome> ecksit: show some example code where you try to access it
<crome> and the error you see
lolmaus has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
<ecksit> it doesn't error as such, it's just not returning the value i expect (which is the value from the build_connection method)
skj3gg has quit [Quit: ZZZzzz…]
<ecksit> it is returning nil instead of that block value.
rvchangu- has quit [Read error: Connection reset by peer]
<crome> put a debugger in there and see what that faraday block does
<ecksit> it builds as expected
penguinpowernz has quit [Quit: Lost terminal]
decoponio has quit [Quit: Leaving...]
<crome> interesting
<crome> you assign @client twice but that's not the problem
workmad3 has joined #ruby
<ecksit> oh of course. let me fix that
einarj has joined #ruby
<ecksit> updated to remove the assignment in the initialise
mkaesz has quit [Ping timeout: 265 seconds]
<crome> I would keep the assignment there and remove it from the method
<crome> you pass in options anyway
<ecksit> ok
zorak_ has joined #ruby
zorak8 has quit [Read error: Connection reset by peer]
Aswebb_ has joined #ruby
<crome> I don't really see why the accessor would return nil, though
tvw has joined #ruby
starfox_sf has quit [Ping timeout: 246 seconds]
rvchangue has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
<crome> what do you see if you inspect the class instance?
Synthead has quit [Remote host closed the connection]
<ecksit> here is another dump of the variable - one inside the initialise using pry and one outside - https://gist.github.com/jacobbednarz/404a90aeba408e2cda69
mloveless has joined #ruby
mathie has joined #ruby
perturbation has joined #ruby
Synthead has joined #ruby
lidaaa has quit [Quit: Leaving]
lidaaa has joined #ruby
shum has quit [Quit: WeeChat 1.1.1]
ghr has joined #ruby
shum has joined #ruby
lidaaa has quit [Client Quit]
lidaaa has joined #ruby
avahey has joined #ruby
shum has quit [Client Quit]
vire has quit [Read error: Connection reset by peer]
lkba has joined #ruby
shum has joined #ruby
lidaaa has quit [Client Quit]
vire has joined #ruby
lidaaa has joined #ruby
iwishiwerearobot has joined #ruby
einarj_ has joined #ruby
ecksit has quit [Ping timeout: 264 seconds]
dmbennett has quit [Ping timeout: 256 seconds]
mkaesz has joined #ruby
ghr has quit [Ping timeout: 244 seconds]
einarj has quit [Ping timeout: 250 seconds]
mary5030 has joined #ruby
dfinninger has joined #ruby
digifiv5e has joined #ruby
jheg has quit [Quit: jheg]
digifiv5e is now known as Guest39742
Megtastique has joined #ruby
perturbation has quit [Quit: Leaving]
Dopagod has quit [Ping timeout: 250 seconds]
einarj has joined #ruby
einarj_ has quit [Read error: Connection reset by peer]
iwishiwerearobot has quit [Ping timeout: 256 seconds]
aryaching has quit []
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jonr22 has joined #ruby
sambao21 has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jlast has joined #ruby
faitswulff has joined #ruby
faitswulff has left #ruby [#ruby]
zorak8 has joined #ruby
Lildirt has quit [Read error: Connection reset by peer]
einarj_ has joined #ruby
zorak_ has quit [Read error: Connection reset by peer]
Lildirt has joined #ruby
Jackneill has quit [Remote host closed the connection]
dixie__ has quit [Quit: getting run out of the coffee shop. (snow in nashville.)]
jlast has quit [Ping timeout: 265 seconds]
einarj has quit [Ping timeout: 252 seconds]
einarj has joined #ruby
jlast has joined #ruby
wald0 has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
einarj_ has quit [Ping timeout: 255 seconds]
einarj_ has joined #ruby
kerrick_ has joined #ruby
<kerrick_> Noob question: how do I convert an array to a string, e.g. [1, 2, 3] would become '[1, 2, 3]'?
jlast has quit [Ping timeout: 250 seconds]
<Pro|_> .to_s
Dopagod has joined #ruby
einarj has quit [Ping timeout: 244 seconds]
<Pro|_> >> [1,2,3].to_s
<eval-in__> Pro|_ => "[1, 2, 3]" (https://eval.in/287316)
pontiki has joined #ruby
fryguy91 has joined #ruby
<kerrick_> Pro|_, thanks, that worked!
Takle has quit [Remote host closed the connection]
fryguy9 has quit [Ping timeout: 264 seconds]
jaequery has quit [Remote host closed the connection]
skj3gg has joined #ruby
craigp has joined #ruby
jaequery has joined #ruby
monod has quit [Quit: Sto andando via]
paulfm has quit [Ping timeout: 264 seconds]
einarj_ has quit [Ping timeout: 250 seconds]
einarj has joined #ruby
JDiPierro has joined #ruby
pontiki has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
last_staff has quit [Read error: Connection reset by peer]
dfinninger has quit [Remote host closed the connection]
davejacobs has quit []
zachrab has joined #ruby
jarjar_prime has quit [Quit: Ready? Set? Go!]
jarjar_prime has joined #ruby
zorak8 has quit [Ping timeout: 246 seconds]
zorak_ has joined #ruby
wookiehangover has quit [Ping timeout: 250 seconds]
b4rbz has quit [Quit: WeeChat 0.4.2]
mathie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Aswebb_ has quit [Remote host closed the connection]
sargas has joined #ruby
Aswebb_ has joined #ruby
Aswebb_ has quit [Remote host closed the connection]
zachrab has quit [Ping timeout: 256 seconds]
jaredrhine_ has quit [Remote host closed the connection]
wookiehangover has joined #ruby
bengalo has joined #ruby
ghr has joined #ruby
rbennacer has joined #ruby
Guest39742 has quit [Changing host]
Guest39742 has joined #ruby
Guest39742 is now known as daynaskully
Pongles has quit [Read error: Connection reset by peer]
goodenough has quit [Remote host closed the connection]
workmad3 has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
danzilio has joined #ruby
rbennacer has quit [Ping timeout: 245 seconds]
ghr has quit [Ping timeout: 264 seconds]
mkaesz has quit [Remote host closed the connection]
yfeldblum has joined #ruby
jayne_ is now known as jayne
mkaesz has joined #ruby
mkaesz has quit [Remote host closed the connection]
jobewan has quit [Remote host closed the connection]
DEA7TH has quit [Ping timeout: 252 seconds]
triple_b has joined #ruby
slester has quit [Remote host closed the connection]
Axy has joined #ruby
Axy has joined #ruby
Mia has quit [Read error: Connection reset by peer]
quazimod1 has quit [Ping timeout: 252 seconds]
sanguisdex has joined #ruby
ta has joined #ruby
sanguisdex has quit [Client Quit]
goodenough has joined #ruby
jobewan has joined #ruby
ta has quit [Remote host closed the connection]
ta has joined #ruby
mary5030 has quit [Remote host closed the connection]
ellisTAA has joined #ruby
ellisTAA has quit [Quit: ellisTAA]
ych4k3r has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
diegovio1 has joined #ruby
diegoviola is now known as Guest35733
diegovio1 is now known as diegoviola
sargas has quit [Quit: This computer has gone to sleep]
Guest35733 has quit [Ping timeout: 256 seconds]
einarj has quit [Ping timeout: 252 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
jobewan has quit [Remote host closed the connection]
LBRapid has quit [Ping timeout: 250 seconds]
Tuxero has quit [Quit: Tuxero]
einarj has joined #ruby
brb3 has quit [Remote host closed the connection]
aapole has quit [Ping timeout: 256 seconds]
JDiPierro has quit [Remote host closed the connection]
LBRapid has joined #ruby
Motoservo has quit [Remote host closed the connection]
phutchins has quit [Ping timeout: 264 seconds]
elaptics is now known as elaptics_away
<shevy> my brain is not quite working
<shevy> if i include a module into a class, can I invoke some methods, without having to specify these in the class?
<pipework> shevy: We've still loved you the same all these years.
<pipework> shevy: Sure.
jobewan has joined #ruby
<shevy> something like... and I am aware that I could remodel this with subclasses, but just as example...
<pipework> >> my_module = Module.new { def hi; :hi; end}; Class.new { include my_module}.new.hi
<eval-in__> pipework => :hi (https://eval.in/287353)
<shevy> module Animal; end; class Dog; include Animal; end
<bradland> shevy: yeah, that's the basis of mixins
<shevy> my example is not yet complete
<shevy> hmm
cpt_yossarian has joined #ruby
<shevy> I need to put this down to paper or something what I need, my head is not working right now ;)
<bradland> i recommend a text editor and keyboard.
<shevy> that's what you'd think!
<bradland> paper is very difficult to send to an interpreter these days
aclearman037 has quit [Quit: I'm out!]
<shevy> but my brain is less efficient when before a computer :(
danzilio has quit [Quit: Baiii!]
<shevy> the best ideas I ever had was while jogging actually
jlast has joined #ruby
<workmad3> shevy: dictate them to your phone? :)
adriancb has joined #ruby
<bradland> the only thing worse than my writing is my speaking, haha
EasyCo has joined #ruby
ghostlines has joined #ruby
nateberkope has joined #ruby
<shevy> lol
Crazy_Atheist has joined #ruby
nateberkopec has quit [Read error: Connection reset by peer]
ghostlines has quit [Client Quit]
Mia has joined #ruby
Axy has quit [Read error: Connection reset by peer]
skj3gg has joined #ruby
jlast has quit [Ping timeout: 250 seconds]
agrinb has quit [Read error: Connection reset by peer]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kaspertidemann has quit []
josephndenton has joined #ruby
jlast has joined #ruby
agrinb has joined #ruby
JoshGlzBrk has joined #ruby
codecop has quit [Remote host closed the connection]
sargas has joined #ruby
agrinb has quit [Read error: Connection reset by peer]
jlast has quit [Ping timeout: 265 seconds]
agrinb has joined #ruby
mary5030 has joined #ruby
robbyoconnor has joined #ruby
spyderma_ has quit [Ping timeout: 250 seconds]
nb_bez___ has joined #ruby
maximski has quit []
jenrzzz has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
shum has quit [Quit: WeeChat 1.1.1]
vire has quit [Ping timeout: 240 seconds]
skj3gg has quit [Quit: ZZZzzz…]
flaccid_ has joined #ruby
drkush has quit [Ping timeout: 250 seconds]
fantazo has quit [Quit: Verlassend]
it0a has quit [Quit: WeeChat 1.1.1]
turtil has quit [Read error: Connection reset by peer]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
comma8 has quit [Quit: YourBNC - (https://yourbnc.co.uk)]
turtil has joined #ruby
einarj_ has joined #ruby
einarj has quit [Ping timeout: 245 seconds]
DouweM has quit [Read error: Connection reset by peer]
livingstn has quit [Ping timeout: 256 seconds]
Megtastique has quit []
jen_ has joined #ruby
drkush has joined #ruby
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
skj3gg has joined #ruby
meatchicken has joined #ruby
ghr has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dfinninger has joined #ruby
defrang has left #ruby [#ruby]
havenwood has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
olivier_bK has quit [Ping timeout: 252 seconds]
jimms has joined #ruby
mitchellhenke has quit [Quit: Computer has gone to sleep.]
chrishough has joined #ruby
ghr has quit [Ping timeout: 265 seconds]
jen_ has quit [Quit: jen_]
dfinninger has quit [Ping timeout: 240 seconds]
gsd has joined #ruby
comma8 has joined #ruby
Charliebr73 has joined #ruby
nunayerBeezwax has quit [Quit: Leaving...]
russt has joined #ruby
ptrrr has quit [Quit: ptrrr]
Charliebr73 has quit [Client Quit]
einarj_ has quit [Read error: Connection reset by peer]
flaccid_ has quit [Quit: flaccid_]
einarj has joined #ruby
iwishiwerearobot has joined #ruby
russt has quit [Client Quit]
shum has joined #ruby
russt has joined #ruby
snath has quit [Ping timeout: 246 seconds]
athan has joined #ruby
jen_ has joined #ruby
Tuxero has joined #ruby
jen_ has left #ruby [#ruby]
jen_ has joined #ruby
jheg has joined #ruby
<jen_> I need help updating ruby 1.8x to 1.8.30
iwishiwerearobot has quit [Ping timeout: 252 seconds]
<jen_> I am a front end coder, this backend stuff is not for me!
triple_b has joined #ruby
russt has quit [Client Quit]
marr has joined #ruby
russt has joined #ruby
adriancb has quit [Remote host closed the connection]
<shevy> this sounds strange
<shevy> 1.8.30
<shevy> how can this be jen_
<shevy> oh I see
<shevy> you did not mean ruby
<shevy> you meant "rubygems"
<havenwood> jen_: RubyGems ships with Ruby but has a different version from Ruby. I think you're right though that you want RubyGems 1.8.X for Ruby 1.8, if you really must use Ruby 1.8 which is past End-of-Life.
dopiee has joined #ruby
einarj has quit [Remote host closed the connection]
<havenwood> jen_: What do you get from the command line for: gem which rubygems
snath has joined #ruby
Rhainur has quit [Read error: Connection reset by peer]
jheg has quit [Ping timeout: 264 seconds]
Evan_ has quit [Ping timeout: 256 seconds]
bunbury has quit [Quit: No Ping reply in 180 seconds.]
kirun has quit [Quit: Client exiting]
bunbury has joined #ruby
Rhainur has joined #ruby
dopie has quit [Ping timeout: 256 seconds]
Evan_ has joined #ruby
aef has joined #ruby
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
arez has quit [Remote host closed the connection]
babykosh has joined #ruby
jaequery has joined #ruby
sambao21 has joined #ruby
jlast has joined #ruby
Deithrian_ has joined #ruby
tier has quit [Remote host closed the connection]
devdazed_ has quit [Quit: Computer has gone to sleep.]
sambao21 has quit [Client Quit]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fedora_newb has joined #ruby
Deithrian has quit [Ping timeout: 244 seconds]
riotjone_ has joined #ruby
<fedora_newb> http://pastebin.com/txKmXdkA I cant seem to install redis-dump and not sure what to do, new to ruby here :)
riotjones has quit [Ping timeout: 246 seconds]
jlast has quit [Ping timeout: 252 seconds]
Deithrian_ has quit [Ping timeout: 244 seconds]
tunaCanBruh has quit [Ping timeout: 250 seconds]
jlast has joined #ruby
phutchins has joined #ruby
kaspertidemann has joined #ruby
kaspertidemann has quit [Remote host closed the connection]
m8 has quit [Quit: Sto andando via]
TgMts has joined #ruby
mary5030 has quit [Remote host closed the connection]
zachrab has joined #ruby
versatiletech has quit [Quit: versatiletech]
workmad3 has quit [Quit: leaving]
jlast has quit [Ping timeout: 250 seconds]
charliesome has joined #ruby
<jen_> hi havenwood I was on the phone. Let me check
nfk has quit [Quit: yawn]
<jen_> havenwood: 1.8.7
<jen_> I have rvm havenwood
flaccid_ has joined #ruby
zachrab has quit [Ping timeout: 246 seconds]
Takle has joined #ruby
<havenwood> jen_: On OS X?
<jen_> no, CentOS server
<havenwood> jen_: yum install ca-certificates
<jen_> sec
tunaCanBruh has joined #ruby
<havenwood> jen_: I've just written a quick Gist for a manual install (but nicer to use the package manager I think): https://gist.github.com/havenwood/9cd08a0b66b75d726ef6
<jen_> i am following the original gist. i downloaded teh rubygems-update-1.8.30.gem
<jen_> now do gem install ...
nilobject has joined #ruby
<havenwood> jen_: The original gist is really for Windows.
<fedora_newb> Anyone able to give me any pointers on why that wont install for me?
iMe has quit [Ping timeout: 264 seconds]
<havenwood> jen_: Though I suppose it should work.
<havenwood> jen_: The recommended way for linux is to install the ca-certificates pacakge. Or on OS X you could: rvm osx-ssl-certs update all
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Zai00 has quit [Quit: Zai00]
Lemur has quit [Remote host closed the connection]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iMe has joined #ruby
<fedora_newb> Getting an issue installing yajl-ruby
<fedora_newb> REport make failed
<fedora_newb> Reporting*
<fedora_newb> Which is a dependency of this redis-dump
joast has quit [Quit: Leaving.]
<babykosh> hello Ruby gods
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fryguy91 has quit [Ping timeout: 255 seconds]
yellowgh0st_ has quit [Quit: yellowgh0st_]
mostlybadfly has quit [Quit: Connection closed for inactivity]
skj3gg has quit [Quit: ZZZzzz…]
flaccid_ has quit [Quit: flaccid_]
skj3gg has joined #ruby
<jen_> havenwood: I’ve gotten to step 3 here: ruby -e "open(`gem which rubygems`.sub(/\.rb\s*\z/, '/ssl_certs/AddTrustExternalCARoot-2048.pem'), 'wb').write %(-----BEGIN
<jen_> CERTIFICATE-----\nMIIENjCCAx6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBvMQswCQYDVQQGEwJTRTEU\nMBIGA1UEChMLQWRkVHJ1c3QgQUIxJjAkBgNVBAsTHUFkZFRydXN0IEV4dGVybmFs\nIFRUUCBOZXR3b3JrMSIwIAYDVQQDExlBZGRUcnVzdCBFeHRlcm5hbCBDQSBSb290\nMB4XDTAwMDUzMDEwNDgzOFoXDTIwMDUzMDEwNDgzOFowbzELMAkGA1UEBhMCU0Ux\nFDASBgNVBAoTC0FkZFRydXN0IEFCMSYwJAYDVQQLEx1BZGRUcnVzdCBFeHRlcm5h\nbCBUVFAgTmV0d29yazEiMCAGA1UEAxMZQWRkVHJ1c3QgRXh0ZXJuYWwgQ0EgUm9v\ndDCCASIwDQYJKoZIhvcNAQEBBQ
<jen_> EPADCCAQoCggEBALf3GjPm8gAELTngTlvt\nH7xsD821+iO2zt6bETOXpClMfZOfvUq8k+0DGuOPz+VtUFrWlymUWoCwSXrbLpX9\nuMq/NzgtHj6RQa1wVsfwTz/oMp50ysiQVOnGXw94nZpAPA6sYapeFI+eh6FqUNzX\nmk6vBbOmcZSccbNQYArHE504B4YCqOmoaSYYkKtMsE8jqzpPhNjfzp/haW+710LX\na0Tkx63ubUFfclpxCDezeWWkWaCUN/cALw3CknLa0Dhy2xSoRcRdKn23tNbE7qzN\nE0S3ySvdQwAl+mG5aWpYIxG3pzOPVnVZ9c0p10a3CitlttNCbxWyuHv77+ldU9U0\nWicCAwEAAaOB3DCB2TAdBgNVHQ4EFgQUrb2YejS0Jvf6xCZU7wO94CTLVBowCwYD\nVR0PBAQD
<jen_> A8GA1UdEwEB/wQFMAMBAf8wgZkGA1UdIwSBkTCBjoAUrb2YejS0\nJvf6xCZU7wO94CTLVBqhc6RxMG8xCzAJBgNVBAYTAlNFMRQwEgYDVQQKEwtBZGRU\ncnVzdCBBQjEmMCQGA1UECxMdQWRkVHJ1c3QgRXh0ZXJuYWwgVFRQIE5ldHdvcmsx\nIjAgBgNVBAMTGUFkZFRydXN0IEV4dGVybmFsIENBIFJvb3SCAQEwDQYJKoZIhvcN\nAQEFBQADggEBALCb4IUlwtYj4g+WBpKdQZic2YR5gdkeWxQHIzZlj7DYd7usQWxH\nYINRsPkyPef89iYTx4AWpb9a/IfPeHmJIZriTAcKhjW88t5RxNKWt9x+Tu5w/Rw5\n6wwCURQtjr0W4MHfRnXnJK3s9EK0hZNwEGe6nQY1ShjTK3rMUUKhemPR5
<jen_> vC\nNr4TDea9Y355e6cJDUCrat2PisP29owaQgVR1EX1n6diIWgVIEM8med8vSTYqZEX\nc4g/VhsxOBi0cQ+azcgOno4uG+GMmIPLHzHxREzGBHNJdmAPx/i9F4BrLunMTA5a\nmnkPIAou1Z5jJh5VkpTYghdae9C8x49OhgQ=\n-----END CERTIFICATE-----\n)"
<jen_> oooopssssss
<jen_> sorry guys
<havenwood> jen_: yum install ca-certificates
<shadoi> rofl
<jen_> hey now
<havenwood> jen_: Just install the `ca-certificates` package and confirm everything works.
ghr has joined #ruby
<crome> haha
<jen_> CRITICAL:yum.cli:Config Error: Error accessing file for config file:///etc/yum.conf
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
northfurr has quit [Quit: northfurr]
<jen_> havenwood: not sure why I can’t issue that command wity yum
<jen_> havenwood: thanks so much for your help…I think we’re almost there.
blackmesa has quit [Quit: WeeChat 1.1.1]
<jen_> just have to now get the cert installed
banister has joined #ruby
<havenwood> jen_: Seems your yum is borked. Should probably fix that.
<jen_> not sure how..
<jen_> sorry!
charliesome has quit [Quit: zzz]
ghr has quit [Ping timeout: 246 seconds]
adriancb has joined #ruby
<havenwood> jen_: sudo yum install ca-certificates
rfi_ is now known as rfi
babykosh has quit [Quit: babykosh]
<jen_> sudo: effective uid is not 0, is sudo installed setuid root?
<jen_> havenwood:
<havenwood> ya
tvw has quit []
<dorei> sudo would be useless if it wasnt setuid root
tvw has joined #ruby
<havenwood> needs root it seems
<havenwood> to find the config
<jen_> i am in su now
<havenwood> what's the centos channel?
<jen_> got me
<jen_> how do i find that?
lmickh has quit [Remote host closed the connection]
<jen_> sorry havenwood
<jen_> should I go to root?
<havenwood> #centos
<jen_> oh, you mean that’ yea
<havenwood> jen_: yeah, install the package with root privileges
jobewan has quit [Quit: Leaving]
TheRinger_ has joined #ruby
<jen_> yum install ca- certificates done
<jen_> :)
<jen_> at rrot
<jen_> root
<havenwood> jen_: Gem installation should now work for your regular user. Try it!
bruno- has quit [Ping timeout: 246 seconds]
<jen_> i keep needing to do source ~/.profile /// bundle
skj3gg has quit [Quit: ZZZzzz…]
TheNet has joined #ruby
<jen_> `connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (Faraday::SSLError)
dmbennet_ has joined #ruby
<jen_> I need someone to help me with this via TeamViewer.
<jen_> pls PM me.
<jen_> this is all over my head.
<jen_> Never played with Ruby
<havenwood> jen_: Oh dear. Okay, so the `~/.profile` file doesn't seem to be getting sourced (if you're needing to manually source it). So you can source it from a dotfile that is getting sourced (.bash_profile or .bashrc) or move it to one of those files.
<havenwood> jen_: I'd suggest also asking in the #rvm channel.
hiyosi has joined #ruby
jottr has joined #ruby
Xiti` has joined #ruby
dmbennet_ has quit [Client Quit]
Tuxero has quit [Quit: Tuxero]
blackmesa has joined #ruby
Xiti` has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Quit: ciao.]
Alina-malina has quit [Ping timeout: 250 seconds]
apeiros_ has quit [Remote host closed the connection]
Tuxero has joined #ruby
BRMatt has joined #ruby