apeiros_ changed the topic of #ruby to: Ruby 2.2.0; 2.1.5; 2.0.0-p643: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
Apocalypse has quit [Remote host closed the connection]
Spami has joined #ruby
<apeiros_> and if n & m are static, you can even prepare the list of valid data just once. then it's superfast. (and with n=3 & m=100, it's only 784 combinations anyway)
juanpaucar has joined #ruby
casadei has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kaiZen has joined #ruby
baweaver has joined #ruby
jlast has joined #ruby
zotherstupidguy has quit [Ping timeout: 244 seconds]
Limix has quit [Quit: Limix]
zotherstupidguy has joined #ruby
davedev24_ has quit [Ping timeout: 244 seconds]
charliesome has quit [Quit: zzz]
juanpaucar has quit [Ping timeout: 244 seconds]
AlexRussia has joined #ruby
tunaCanBruh has quit [Ping timeout: 255 seconds]
iceden has quit [Remote host closed the connection]
davedev24_ has joined #ruby
enebo has joined #ruby
momomomomo has quit [Quit: momomomomo]
mistermocha has joined #ruby
mjuszczak has quit []
davidhq has joined #ruby
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
bayed has quit [Quit: Connection closed for inactivity]
pragmatism has quit [Quit: Textual IRC Client: www.textualapp.com]
despai has joined #ruby
despai has quit [Remote host closed the connection]
mjuszczak has joined #ruby
jack_rabbit has joined #ruby
freerobby has quit [Quit: Leaving.]
<agrinb> what is the name of this operator ||= ?
uptownhr has quit [Quit: uptownhr]
baweaver has quit [Ping timeout: 256 seconds]
n80 has quit [Quit: n80]
Pupeno has joined #ruby
<mozzarella> I guess you could call it "or equals"
havenn has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<agrinb> thanks
oki has quit [Ping timeout: 264 seconds]
riotjones has joined #ruby
ych4k3r has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sivsushruth has quit [Read error: Connection reset by peer]
<apeiros_> mozzarella: meep, wrong :)
oki has joined #ruby
<mozzarella> how do you call it?
havenwood has quit [Ping timeout: 272 seconds]
<apeiros_> agrinb: "assign if falsy"
<apeiros_> mozzarella: certainly not "equals"
fgo has joined #ruby
sivsushruth has joined #ruby
<agrinb> well I just wanted to google it, so mozzarella was helpful. I tried parallel equals and came up with nothing
<agrinb> but thanks everyone
banister has joined #ruby
<apeiros_> agrinb: generally `a <op>= b` is translated to `a = a <op> b` -- e.g. `a += b` --> `a = a + b`
<apeiros_> with ||= and &&= it's slightly different
michael_mbp has quit [Excess Flood]
ghostpl_ has quit [Remote host closed the connection]
nfk has quit [Quit: yawn]
<apeiros_> the translation there is `a ||= b` --> `a || a = b`
michael_mbp has joined #ruby
mjuszczak has quit []
havenn has quit [Ping timeout: 245 seconds]
riotjones has quit [Ping timeout: 252 seconds]
AlexRussia has quit [Ping timeout: 252 seconds]
Pupeno has quit [Remote host closed the connection]
decoponio has quit [Read error: Connection reset by peer]
multi_io_ has joined #ruby
<agrinb> got it
blackmes1 has joined #ruby
decoponio has joined #ruby
Pupeno has joined #ruby
monsieurp has quit [Read error: Connection reset by peer]
oki has quit [Ping timeout: 246 seconds]
Akagi201 has joined #ruby
sevvie has quit [Ping timeout: 250 seconds]
monsieurp has joined #ruby
monsieurp has joined #ruby
jlast has quit [Read error: Connection reset by peer]
swills has quit [Read error: Connection reset by peer]
yfeldblu_ has joined #ruby
patronus has quit [Read error: Connection reset by peer]
jlast has joined #ruby
fumduq has quit [Ping timeout: 252 seconds]
Nightmare has quit [Ping timeout: 250 seconds]
bigkevmcd has quit [Ping timeout: 252 seconds]
RoryHughes has quit [Ping timeout: 265 seconds]
Dwarf has quit [Ping timeout: 250 seconds]
mikecmpb_ has joined #ruby
mjuszczak has joined #ruby
hostess has quit [Remote host closed the connection]
swills has joined #ruby
AlexRussia has joined #ruby
swills has quit [Changing host]
swills has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
fgo has quit [Ping timeout: 265 seconds]
shadeslayer has quit [Remote host closed the connection]
Akagi201_ has quit [Ping timeout: 264 seconds]
multi_io has quit [Ping timeout: 252 seconds]
Ridley5 has quit [Ping timeout: 265 seconds]
mikecmpbll has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 250 seconds]
aamador has joined #ruby
claw__ has quit [Remote host closed the connection]
gsd has quit [Read error: Connection reset by peer]
gsd has joined #ruby
claw___ has joined #ruby
bigkevmcd has joined #ruby
zzz_Ridley has joined #ruby
fumduq has joined #ruby
RoryHughes has joined #ruby
Nightmare has joined #ruby
hostess has joined #ruby
g0bl1n has joined #ruby
shadeslayer has joined #ruby
zzz_Ridley is now known as Ridley5
Ridley5 has quit [Changing host]
Ridley5 has joined #ruby
Pupeno has quit [Ping timeout: 272 seconds]
michael_mbp has quit [Excess Flood]
byaruhaf has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
byaruhaf has joined #ruby
g0bl1n has quit [Client Quit]
byaruhaf has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
patronus has joined #ruby
michael_mbp has joined #ruby
emdub has quit [Quit: .]
emdub has joined #ruby
Cadillactica has quit [Quit: Cadillactica]
zotherstupidguy has quit [Ping timeout: 245 seconds]
djbkd_ has joined #ruby
Dwarf has joined #ruby
doodlehaus has joined #ruby
<jhass> apeiros_: I think "or equals" is fine, it's abbreviated for "or, equal sign" which just lists out the characters its composed of
davidhq has joined #ruby
JDiPierro has joined #ruby
ponga has joined #ruby
jottr_ has joined #ruby
<apeiros_> I think using the character name is one reason for many accidental assignments
<jhass> also 17.3m vs 907k google results for either + ruby
michael_mbp has quit [Excess Flood]
<jhass> conditional assignment seems to be another used name
<jhass> though that would include &&= I'd say
<apeiros_> I'd agree
_djbkd has quit [Ping timeout: 244 seconds]
michael_mbp has joined #ruby
freerobby has joined #ruby
nerium has quit [Quit: nerium]
zotherstupidguy has joined #ruby
mikecmpb_ is now known as mikecmpbll
ponga has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
mikecmpbll has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
nii236 has joined #ruby
jottr_ has quit [Ping timeout: 264 seconds]
kalusn has quit [Remote host closed the connection]
<apeiros_> *sob* isn't it lovely that JS Array.prototype.sort is in-place and there's only ugly ways to duplicate an array?
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
<apeiros_> I don't even find the language that bad. but the available functionality is just ludicrous.
pengin has quit [Remote host closed the connection]
pengin has joined #ruby
GaryOak_ has quit [Remote host closed the connection]
rocknrollmarc has quit [Ping timeout: 264 seconds]
<jhass> yeah, you gotta at least have something like underscore.js to work with it apparently
djbkd_ has quit [Remote host closed the connection]
<apeiros_> hm, is there a clever way to order an array to have largest number in the middle?
triple_b has joined #ruby
sevvie has joined #ruby
ghr has joined #ruby
nii236 has quit [Client Quit]
aphprentice_ has joined #ruby
<jhass> mh, doubt you can do it without searching the maxima first
aphprentice has quit [Remote host closed the connection]
<apeiros_> e.g. [1,6,4,6,7,2,3].special_sort # => [1,4,6,7,6,3,2] - no special rules for left/right, that is, [1,3,6,7,6,4,2] would also be acceptable
pietr0 has quit [Quit: pietr0]
aphprentice_ has quit [Remote host closed the connection]
nii236 has joined #ruby
aphprentice has joined #ruby
<apeiros_> jhass: you mean and then sort by dist to max?
<apeiros_> ah no, doesn't work :)
_djbkd has joined #ruby
<apeiros_> I think it'll be two pass. sort first, then iterate over it to create the split array.
<jhass> yeah, no idea actually
oo_ has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
<jhass> maybe just dig out the maximum and insert into the middle?
pengin has quit [Ping timeout: 245 seconds]
<apeiros_> e.g. [1,6,4,6,7,2,3] --> [1,2,3,4,6,6,7] --> [1,3,6,7,4,2]
<apeiros_> + missing 6
Hijiri has quit [Quit: WeeChat 1.0.1]
<apeiros_> that's n^2. sort + reorder is nlogn
zotherstupidguy has quit [Ping timeout: 250 seconds]
michael_mbp has joined #ruby
<apeiros_> not that it'd matter for the sizes I deal with :)
doodlehaus has quit [Remote host closed the connection]
aphprentice_ has joined #ruby
RegulationD has quit [Remote host closed the connection]
<jhass> finding the maximum and swapping the middle with it should be n, no?
ghr has quit [Ping timeout: 245 seconds]
<apeiros_> find maximum is n
<apeiros_> and you have to find the remaining maximum n times
<apeiros_> no?
<jhass> swapping two values is static
_djbkd has quit [Remote host closed the connection]
<jhass> mh, maybe I missed a requirement?
<apeiros_> yes. but finding maximum isn't. and finding it once is not sufficient.
shum has quit [Quit: WeeChat 1.1.1]
_djbkd has joined #ruby
<apeiros_> I want it sorted. not just middle being the maximum. e.g. [1,6,2,10,3,1] is not valid because 1,6,2 is not sorted.
shum has joined #ruby
<apeiros_> i.e. it ascends to the middle, where the max value is, and then descends again
<apeiros_> oh, dear, I badly phrased my initial question
<apeiros_> I thought I had said "sorted".
zotherstupidguy has joined #ruby
<apeiros_> my fault :)
michael_mbp has quit [Excess Flood]
wallerdev has quit [Quit: wallerdev]
Matthews_ has quit [Remote host closed the connection]
<jhass> ah, so first half sorted
<weaksauce> both are sorted jhass
havenwood has joined #ruby
<weaksauce> sort max reverse sort
wallerdev has joined #ruby
<jhass> eh, yeah. To late to properly read the examples :P
sevenseacat has joined #ruby
<apeiros_> :)
icarus has quit [Remote host closed the connection]
<apeiros_> I think I'll just do the two pass thing.
michael_mbp has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
oo_ has joined #ruby
<apeiros_> >> ary = [1,6,4,6,7,2,3]; r = ary.sort; r1,r2=[],[]; r.each_with_index do |v,i| if i.even? r1.push(v) else r2.unshift(v) end end; r1+r2
<eval-in> apeiros_ => /tmp/execpad-6cf38f9093bc/source-6cf38f9093bc:2: syntax error, unexpected keyword_else, expecting keyword_then or ';' or '\n' ... (https://eval.in/293943)
<apeiros_> blargh?
reinaldob has joined #ruby
<apeiros_> >> ary = [1,6,4,6,7,2,3]; r = ary.sort; r1,r2=[],[]; r.each_with_index do |v,i| if i.even? then r1.push(v) else r2.unshift(v) end end; r1+r2
<eval-in> apeiros_ => [1, 3, 6, 7, 6, 4, 2] (https://eval.in/293944)
charliesome has joined #ruby
kalusn has joined #ruby
toretore has quit [Quit: This computer has gone to sleep]
codeurge has joined #ruby
michael_mbp has quit [Excess Flood]
Spooner has quit [Read error: Connection reset by peer]
<jhass> hehe
Spami has quit [Quit: This computer has gone to sleep]
<apeiros_> I'm super at focusing, that's why I now work again on my funky little JS+HTML game :)
<apeiros_> or buzzwordy: html5 game. with a tiny rb backend. (for persisting, testing and some other automation)
<jhass> mmh, my current toy project only involves figuring out where the hell all those segfaults come from :P
<apeiros_> from the innards!
Hijiri has joined #ruby
michael_mbp has joined #ruby
fgo has joined #ruby
fryguy9 has joined #ruby
<jhass> current state managed to let one innocent line of code turn the stack into garbage
blackmes1 has quit [Ping timeout: 252 seconds]
<jhass> and that line is something like value = {response.headers['Some-Header'].to_i, 30}.max, where value = response.headers["Some-Header"].to_i alone works flawlessly
baweaver has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<apeiros_> that's not ruby?
<jhass> no, Crystal ;)
<jhass> {a, b} is a tuple
<apeiros_> aha
michael_mbp has quit [Excess Flood]
<apeiros_> Crystal is that ruby fork? you actually have prod code in it?
<apeiros_> that = one of those
<jhass> fork I wouldn't say
<jhass> new language with strongly Ruby inspired syntax
<jhass> it derived quite a bit by now, both in syntax and stdlib
<apeiros_> I assume in a good way? i.e. removing many inconsistencies and flaws?
michael_mbp has joined #ruby
<jhass> and "prod" code, mmh, rewrote my IRC bot to it and currently toying with https://github.com/jhass/crystal-gobject and https://github.com/jhass/github_desktop_notifications as a project that uses it
swgillespie has joined #ruby
marr has quit [Ping timeout: 244 seconds]
fryguy9 has quit [Client Quit]
reinaldob has quit [Remote host closed the connection]
<jhass> most changes are actually for new language features or changes that need to be different to work in a statically typed and compiled language that has no runtime beyond GC
otisZart has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> like there's a pretty decent macro language that replaces a good deal of Rubys runtime class hierarchy modifications with compile time generated code
baweaver has quit [Ping timeout: 250 seconds]
<tmtwd> jhass: which language are you talking about?
<jhass> tmtwd: crystal-lang.org
doodlehaus has joined #ruby
pontiki has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<jhass> apeiros_: perfect time to shape its stdlib btw. entirely written in itself, so pretty easy to hack on it
michael_mbp has quit [Excess Flood]
checkit_ has quit [Ping timeout: 246 seconds]
michael_mbp has joined #ruby
zotherstupidguy has quit [Remote host closed the connection]
baweaver has joined #ruby
zotherstupidguy has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
AlexRussia has quit [Ping timeout: 245 seconds]
jonr22 has joined #ruby
michael_mbp has quit [Excess Flood]
uptownhr has joined #ruby
FRodrigues has quit [Quit: Leaving]
fgo has quit [Ping timeout: 252 seconds]
mistermo_ has joined #ruby
Pupeno has joined #ruby
Pupeno has quit [Remote host closed the connection]
michael_mbp has joined #ruby
govg has joined #ruby
tkuchiki has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
jonr22 has quit [Ping timeout: 256 seconds]
piotrj has joined #ruby
Channel6 has joined #ruby
doodlehaus has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
fryguy9 has joined #ruby
michael_mbp has joined #ruby
fgo has joined #ruby
DadoCe has joined #ruby
govg has quit [Quit: leaving]
govg has joined #ruby
fryguy9 has quit [Read error: Connection reset by peer]
fryguy9 has joined #ruby
silkfox has quit [Ping timeout: 272 seconds]
p7r has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
oki has joined #ruby
fryguy9 has quit [Client Quit]
michael_mbp has joined #ruby
zotherstupidguy has quit [Ping timeout: 264 seconds]
kalusn has quit [Remote host closed the connection]
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
mloveless has quit []
claw___ has quit [Remote host closed the connection]
RealMarc has quit [Ping timeout: 276 seconds]
borkdude has quit [Ping timeout: 276 seconds]
Zai00 has quit [Quit: Zai00]
claw___ has joined #ruby
reinaldob has joined #ruby
borkdude has joined #ruby
kaspergrubbe has quit [Ping timeout: 256 seconds]
oki has quit [Ping timeout: 244 seconds]
sankaber has joined #ruby
tekk has quit [Ping timeout: 264 seconds]
kaspergrubbe has joined #ruby
RealMarc has joined #ruby
kaspergrubbe is now known as Guest39056
tekk has joined #ruby
pierre1_ has quit [Ping timeout: 245 seconds]
tvon has joined #ruby
Tuxero has quit [Quit: Tuxero]
NivenHuH has quit [Quit: Textual IRC Client: www.textualapp.com]
reinaldob has quit [Ping timeout: 272 seconds]
zotherstupidguy has joined #ruby
piotrj has quit [Remote host closed the connection]
amacou has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
sivsushruth has quit [Ping timeout: 252 seconds]
* baweaver *crickets*
<jhass> it's your own fault!
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fgo has quit [Ping timeout: 250 seconds]
sivsushruth has joined #ruby
michael_mbp has joined #ruby
Pupeno has joined #ruby
Pupeno has joined #ruby
jottr_ has joined #ruby
<baweaver> nice to see you too jhass
<jhass> thanks
neonalpine has joined #ruby
Rollabunna has quit [Read error: No route to host]
<apeiros_> grah… why does this need so much math? just for getting the fleet's ships initial positions is already tons of math :(
<banister> are you two such grand old friends because your nickname colors are both purple
<banister> ?
<banister> apeiros_ vector algebra?
neonalpine has quit [Remote host closed the connection]
<sevenseacat> math is hard. lets all have a bowl of strawberry icecream.
<baweaver> purple?
<apeiros_> banister: that's probably the easiest way to solve it, yes
<jhass> apeiros_: guess why I don't do games :P
neonalpine has joined #ruby
<apeiros_> jhass: I just do the wrong kinds of games :-S
<apeiros_> but well, those things are solvable
<baweaver> must be a theme thing
<apeiros_> banister: actually I think I'll cheat and use trigonometric functions
<banister> apeiros_ i'm a math whiz, i can do fourier analysis i'm that brief moment of loneliness b4 i fall asleep, i can visualize klein bottles in 4D space
<apeiros_> banister: k, I'll get back at you if my code is wrong :)
AlexRussia has joined #ruby
<baweaver> _shrugs_
michael_mbp has quit [Excess Flood]
<banister> can anyone recommend some anime to watch? something similar to ghibli but not ghibli (since i've seen all of them)
michael_mbp has joined #ruby
<baweaver> genre, favorites, other relevant info?
doodlehaus has joined #ruby
<jhass> banister: the new oscar nominee one too?
AlexRussia has quit [Excess Flood]
<banister> baweaver whisper of the heart
<banister> jhass what one is that?
<jhass> princess kyusagi or however you spell it
<baweaver> This season the good ones are: Your Lie in April, Durarara x2, Aldnoah Zero, Parasyte
jottr_ has quit [Ping timeout: 246 seconds]
<banister> jhass oh, i couldn't find that one online
<banister> jhass but i've read the actual fairytale that it's based on
<baweaver> Steins;Gate is my all time favorite.
<banister> i have a big book of japanese fairy tales :)
<jhass> different drawing style, but typical ghibli storyline ;)
<baweaver> Kaguya I think it was.
<jhass> ah, yeah
<baweaver> Saw it in Best Buy when I was bored or I wouldn't know.
robbyoconnor has quit [Read error: Connection reset by peer]
AlexRussia has joined #ruby
AlexRussia has quit [Excess Flood]
uptownhr has left #ruby [#ruby]
Vile` has quit [Remote host closed the connection]
<banister> jhass how does kaguya compare to the wind rises?
AlexRussia has joined #ruby
techsethi_ has joined #ruby
<jhass> mmh, didn't watch that one yet
michael_mbp has quit [Excess Flood]
nb_bez___ has joined #ruby
<baweaver> It's on my list for later.
Vile` has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
wang_ is now known as wang
<baweaver> You probably want slice of life animes though. In that case: Your Lie in April, Kawai Complex, Kids on a Slope
ghr has joined #ruby
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<banister> baweaver thanks, that sounds about right. Have you seen -- vampire + rosario ?
<baweaver> Not offhand
michael_mbp has joined #ruby
<baweaver> Great Teacher Onizuka is another classic
<baweaver> the amount of inside jokes in anime that make sense after watching that one is insane.
MatthewsFace has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
<baweaver> heck, even MegaTokyo pays homage to it with Great Teacher Largo
ChoiKyuSang has quit [Quit: Going offline, see ya! (( www.adiirc.com )]
MatthewsFace has joined #ruby
RegulationD has joined #ruby
Hobogrammer has joined #ruby
lanemeyer has joined #ruby
<Hijiri> what I have heard about rosario is that it's a generic harem
davedev24_ has quit [Ping timeout: 272 seconds]
ghr has quit [Ping timeout: 244 seconds]
davedev24_ has joined #ruby
michael_mbp has quit [Excess Flood]
<baweaver> Sword Art Online is somehow a generic harem as well
<Hijiri> twintails is fetish harem
juanpaucar has joined #ruby
<Hijiri> I think another one is coming spring season, body swap harem
zotherstupidguy has quit [Ping timeout: 250 seconds]
zotherstupidguy has joined #ruby
michael_mbp has joined #ruby
sevenseacat has quit [Ping timeout: 250 seconds]
jack_rabbit has quit [Quit: Leaving]
bruno- has quit [Ping timeout: 245 seconds]
RegulationD has quit [Ping timeout: 250 seconds]
adamjleonard has joined #ruby
AlexRussia has quit [Ping timeout: 252 seconds]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robustus has quit [Ping timeout: 264 seconds]
michael_mbp has quit [Excess Flood]
teddyp1cker has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
attamusc has quit [Quit: Connection closed for inactivity]
juanpaucar has quit [Ping timeout: 255 seconds]
robustus has joined #ruby
baroquebobcat has joined #ruby
ChoiKyuSang has joined #ruby
michael_mbp has joined #ruby
baweaver has quit [Remote host closed the connection]
CorySimmons has quit [Quit: Bye!]
teddyp1cker has quit [Ping timeout: 252 seconds]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
kaiZen has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
adamjleonard has quit [Ping timeout: 250 seconds]
thousandwich has quit [Remote host closed the connection]
<ducklobster> I am having an issue with a gem (my own) where if I include it first, my other gems can't be found (cannot load such file -- LoadError)
<ducklobster> Any ideas on how I should go about debugging this?
arescorpio has joined #ruby
<jhass> do you modify $LOAD_PATH inside it?
<ducklobster> I do not
<jhass> with include you mean require?
<ducklobster> grep -r 'LOAD_PATH' ./* returns nothing at least
<ducklobster> yes, sorry
<ducklobster> require 'my_gem1'
<jhass> what about $:
<jhass> (another name for $LOAD_PATH)
michael_mbp has quit [Excess Flood]
<ducklobster> ah, good call, but I don't immediately see the problem with the line:
<ducklobster> $:.push File.expand_path("../lib", __FILE__)
enebo has quit [Quit: enebo]
iwaffles has quit [Quit: iwaffles]
<jhass> why do you do that? and where?
<ducklobster> this is in my .gemspec
<jhass> kay, that should be fine
<ducklobster> but i dont think that would take effect while the gem is running or required
adriancb has joined #ruby
<jhass> I'd still check if $LOAD_PATH still looks fine after you loaded your gem, just to rule it out completely
michael_mbp has joined #ruby
<ducklobster> 2 questions:
deric_skibotn has quit [Ping timeout: 255 seconds]
<ducklobster> 1. I have a class Base but it is encapsulated in a module MyModule
<ducklobster> could that have some conflicts?
<jhass> shouldn't be
<ducklobster> 2.a. I do the require "mygem" at the top of my class MyClass, is this ok?
<jhass> yes
sevenseacat has joined #ruby
<jhass> require doesn't try to require files that are being required in the moment or were already successfully required
rajeshchawla has joined #ruby
<jhass> another load path related issue could be that your gem does require "bundler/setup" or something like that
<ducklobster> no, i'm not doing anything like that
<jhass> next up would be to check whether your override load or require anywhere
<ducklobster> this works on one system (local, debian, rbenv) but not on my AWS machine
<ducklobster> which doesn't have rbenv, but a static ruby install
<jhass> also reassuring whether load path still looks fine after your gem was loaded is still pending
<ducklobster> yeah it looks fine, I can see my current gem listed in the proper place
n008f4g_ has quit [Ping timeout: 272 seconds]
<ducklobster> and when i ls in the directory listed i can see the other gems i am trying to rquire
<ducklobster> but
<jhass> so just to verify, require "your_other_gem"; require "your_gem" works fine while require "your_gem"; require "your_other_gem" raises?
<ducklobster> yes
JDiPierro has quit [Remote host closed the connection]
<ducklobster> the one that raises, I don't see "your_other_gem" in the load_path
<ducklobster> but I guess that makes sense?
sevvie has quit [Ping timeout: 250 seconds]
sevvie has joined #ruby
<jhass> you mean you don't see it in either case or just not when it raises?
<ducklobster> just not when it raises
<jhass> well, that's quite expected indeed
<jhass> so how about
baroquebobcat has quit [Quit: baroquebobcat]
<jhass> "next up would be to check whether your override load or require anywhere"
<ducklobster> grep -r "require" in the suspect gem returns only require calls
michael_mbp has quit [Excess Flood]
<ducklobster> i.e. require "gem"
<ducklobster> or
<ducklobster> require_relative "gem"
claptor has joined #ruby
<jhass> that is whether method(:require).source_location or method(:load).source_location changes after your gem was required
zotherstupidguy has quit [Remote host closed the connection]
amacou has joined #ruby
zotherstupidguy has joined #ruby
michael_mbp has joined #ruby
techsethi_ has quit [Quit: techsethi_]
krz has joined #ruby
<ducklobster> no but the results seem a little off
silkfox has joined #ruby
<ducklobster> method(:require) returns
<ducklobster> [0] "/opt/ruby/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb", [1] 38
<ducklobster> method(:load) returns
<ducklobster> nil
<ducklobster> for both*
<jhass> both fine and expected
<jhass> anything odd in the .require_path specification in your .gemspec?
Pupeno has quit [Remote host closed the connection]
<ducklobster> s.require_paths = ["lib"]
<ducklobster> seems normal
swgillespie has joined #ruby
<jhass> yeah
<jhass> I fear that's all we can do with remote debugging
<ducklobster> :-/
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ducklobster> thanks for the help though!
<jhass> at least I'm pretty much out of ideas
<ducklobster> i find it strange that it works on my local machine but not the other
pwh has joined #ruby
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
silkfox has quit [Ping timeout: 265 seconds]
wldcordeiro has joined #ruby
zotherstupidguy has quit [Remote host closed the connection]
elektronaut has quit [Ping timeout: 276 seconds]
oki has joined #ruby
zotherstupidguy has joined #ruby
ottanta has quit [Remote host closed the connection]
martianixor has quit [Ping timeout: 246 seconds]
AlphaTech has quit [Quit: Connection closed for inactivity]
AlexRussia has joined #ruby
<ducklobster> jhass: what is the difference between requiring gems in the module scope vs class scope?
<jhass> none
Yzguy has joined #ruby
<jhass> well, apart from where the require method is looked up
elektronaut has joined #ruby
<jhass> but if you don't define it and none of the dependencies you include does, there's none
havenwood has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
<Yzguy> jhass's name is josh
<jhass> guess again
HOrangeJewce has joined #ruby
<Yzguy> James!
<Yzguy> James is a classy name
<jhass> actually the right answer is really easy to google
<jhass> nope
oki has quit [Ping timeout: 256 seconds]
<Yzguy> Jonne!
HOrangeJewce has quit [Client Quit]
<jhass> I said it's easy to google ;)
<Yzguy> I googled, that's awesome. Looking through your stuff right now
wldcordeiro has quit [Ping timeout: 256 seconds]
rbennacer has joined #ruby
maximski has joined #ruby
rorra has quit [Quit: rorra]
leat has quit [Ping timeout: 252 seconds]
IrishGringo has joined #ruby
fgo has joined #ruby
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
rbennacer has quit [Remote host closed the connection]
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mjuszczak has quit []
roshanavand has quit [Ping timeout: 252 seconds]
greenbagels has joined #ruby
<shevy> jhass' first name is Jeannie
rismoney1 has joined #ruby
<jhass> is that even a real name?
<shevy> anyone of you created a game with gosu?
<shevy> dunno... do you know the falco song?
jacky has quit [Quit: Later]
rbennacer has joined #ruby
<shevy> I think I will try my luck with a 2D game
doodlehaus has quit [Remote host closed the connection]
mjuszczak has joined #ruby
Hijiri has quit [Quit: WeeChat 1.0.1]
tubuliferous has quit [Read error: Connection reset by peer]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wldcordeiro has joined #ruby
maximski has quit [Read error: No route to host]
justin_pdx has quit [Quit: justin_pdx]
maximski has joined #ruby
Lildirt has quit [Read error: Connection reset by peer]
mjuszczak has quit [Client Quit]
michael_mbp has quit [Excess Flood]
FooMunki has quit [Quit: FooMunki]
jalcine_ has joined #ruby
jalcine_ is now known as Guest16861
pwnz0r has joined #ruby
michael_mbp has joined #ruby
FooMunki_ has joined #ruby
ghr has joined #ruby
GnuYawk has joined #ruby
towski_ has quit [Remote host closed the connection]
Hijiri has joined #ruby
wldcordeiro has quit [Ping timeout: 250 seconds]
bruno- has joined #ruby
scar00t has joined #ruby
zotherstupidguy has quit [Ping timeout: 246 seconds]
ghr has quit [Ping timeout: 246 seconds]
startupality has joined #ruby
zotherstupidguy has joined #ruby
sivsushruth has quit [Read error: Connection reset by peer]
martianixor has joined #ruby
martianixor has quit [Max SendQ exceeded]
bruno- has quit [Ping timeout: 252 seconds]
michael_mbp has quit [Excess Flood]
cscheib has joined #ruby
sivsushruth has joined #ruby
martianixor has joined #ruby
martianixor has quit [Max SendQ exceeded]
martianixor has joined #ruby
michael_mbp has joined #ruby
jenrzzz_ has quit [Ping timeout: 256 seconds]
Cache_Money has joined #ruby
pwnz0r has quit [Remote host closed the connection]
Joufflu has joined #ruby
tuelz has joined #ruby
davejacobs has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
sivsushruth has quit [Ping timeout: 264 seconds]
<tuelz> I'm trying to call faker in a seed file to populate my database with random data. Initially I just called the method in a loop, but I got all the same values for each itteration, so I put it in a proc thinking that should call a new instance everytime and get somethign new, but it isn't working
quazimodo has joined #ruby
sivsushruth has joined #ruby
wldcordeiro has joined #ruby
martianixor_ has joined #ruby
<quazimodo> inside foo.rb i do require 'bar', can i know what the file that did the require was from inside bar.rb, such that i can see it was foo.rb that required bar.rb that time ?
<sevenseacat> err, why isnt the FactoryGirl call just in the loop
* quazimodo feels it's unlikely
jonr22 has joined #ruby
martianixor has quit [Ping timeout: 244 seconds]
martianixor has joined #ruby
<tuelz> I updated with the factory file, not sure if that's what you're asking for.
<sevenseacat> its not
slawrence00 has joined #ruby
startupality has quit [Quit: startupality]
<tuelz> what was quazimodo asking for, then?
<sevenseacat> quazimodo: wasnt asking you for anything
<apeiros_> quazimodo: Kernel#caller/#caller_locations. but sounds smelly.
mary5030 has quit [Remote host closed the connection]
havenwood has joined #ruby
<apeiros_> also you might have to filter out rubygems related lines.
<quazimodo> yeah no likey
<quazimodo> well here's the thing
<tuelz> sevenseacat: oh, thought he was being sarcastic about me providing too little inf
<sevenseacat> tuelz: why cant you do 5.times do { user_table.insert FactoryGirl.attributes_for(:user) }
<apeiros_> sevenseacat: might want to choose either do/end or {} ;-)
<sevenseacat> lol
<shevy> cat magic will make this code work!
<tuelz> sevenseacat: maybe I can, any insight to how that's different? I thought they were identical
<quazimodo> on line 6, it's a mechanical process that I'll have to repeat for each rake spec i do
michael_mbp has quit [Excess Flood]
<quazimodo> i need it to be done once inside each top level describe
<sevenseacat> yeah pick do/end, i always make that dumb mistake
<quazimodo> if it has to happen outside of the top level describe, then I need to know the file name to work that out
<quazimodo> using the subject it's easy enough
<tuelz> sevenseacat: hmm same results
<sevenseacat> and those results are?
<quazimodo> "tasks/#{subject.to_s.gsub(':', '/')}"
yfeldblu_ has quit [Remote host closed the connection]
<quazimodo> but subject isn't available in the rake_helper.rb file
martianixor_ has quit [Ping timeout: 272 seconds]
<sevenseacat> oh, your factory is defined wrong
jonr22 has quit [Ping timeout: 250 seconds]
<sevenseacat> your factory isnt defined to have dynamic values
michael_mbp has joined #ruby
<quazimodo> apeiros_: any ideas?
rbennacer has quit [Remote host closed the connection]
<tuelz> updated the gist with the results of running the seed fiel three times
<sevenseacat> tuelz: see that factory girl doc
<tuelz> thats a psql select * from users; query
<tuelz> sevenseacat: ahh, thanks!
<tuelz> coding is hard.
<apeiros_> quazimodo: I don't follow. and I'm probably too tired to understand anyway.
tcrypt has quit [Ping timeout: 252 seconds]
<quazimodo> apeiros_: no worries :)
<quazimodo> i'll try things till I get it
AlphaTech has joined #ruby
magic__ has joined #ruby
_djbkd has quit [Quit: My people need me...]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tus has quit []
Takle has joined #ruby
Guest16861 is now known as jalcine
jalcine is now known as Guest57006
yfeldblum has joined #ruby
luriv_ has quit [Ping timeout: 252 seconds]
oo_ has quit [Remote host closed the connection]
pontiki has joined #ruby
maximski has quit []
Takle has quit [Ping timeout: 250 seconds]
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lildirt has joined #ruby
mroach has joined #ruby
Vile` has quit [Remote host closed the connection]
AlexRussia has joined #ruby
scar00t has quit [Ping timeout: 245 seconds]
scar00t has joined #ruby
leat has joined #ruby
jottr_ has joined #ruby
oki has joined #ruby
cmckee has quit [Quit: cmckee]
rajeshchawla has quit []
Vile` has joined #ruby
adriancb has quit [Remote host closed the connection]
mambo_ has joined #ruby
AlexRussia has quit [Ping timeout: 265 seconds]
plutonic has quit [Quit: plutonic]
oo_ has joined #ruby
goshdarnyou has quit [Quit: Connection closed for inactivity]
jottr_ has quit [Ping timeout: 246 seconds]
scar00t has quit [Quit: Leaving]
oki has quit [Ping timeout: 265 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
CorySimmons has joined #ruby
AlexRussia has joined #ruby
Lildirt has quit [Read error: Connection reset by peer]
DadoCe has quit [Remote host closed the connection]
DadoCe has joined #ruby
sivsushruth has quit [Read error: Connection reset by peer]
AlexRussia has quit [Ping timeout: 264 seconds]
sivsushruth has joined #ruby
juanpaucar has joined #ruby
AlexRussia has joined #ruby
oo_ has quit [Remote host closed the connection]
cyberarm has quit [Quit: Leaving]
agrinb has quit [Remote host closed the connection]
agrinb has joined #ruby
Parker0 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
casadei has joined #ruby
juanpaucar has quit [Ping timeout: 245 seconds]
ajaiswal has joined #ruby
Parker0 has joined #ruby
jaequery has joined #ruby
lampd1 has joined #ruby
jaequery has quit [Max SendQ exceeded]
wldcordeiro has quit [Quit: Leaving]
jaequery has joined #ruby
krz has quit [Ping timeout: 250 seconds]
ghr has joined #ruby
agrinb has quit [Ping timeout: 256 seconds]
AlexRussia has quit [Ping timeout: 250 seconds]
sivsushruth has quit [Ping timeout: 256 seconds]
wldcordeiro has joined #ruby
Parker0 has quit [Client Quit]
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
duncannz has joined #ruby
Hijiri has quit [Quit: WeeChat 1.0.1]
oleo is now known as Guest81314
oleo__ has joined #ruby
RegulationD has quit [Ping timeout: 256 seconds]
teddyp1cker has joined #ruby
allcentury has quit [Ping timeout: 264 seconds]
silkfox has joined #ruby
sevvie has quit [Ping timeout: 245 seconds]
JoshGlzBrk has joined #ruby
Guest81314 has quit [Ping timeout: 252 seconds]
Guest57006 is now known as jalcine
jalcine has quit [Changing host]
jalcine has joined #ruby
rismoney1 has quit [Ping timeout: 252 seconds]
michael_mbp has quit [Excess Flood]
rhg135|gone is now known as rhg135
livingstn has quit []
riotjones has joined #ruby
nb_bez___ has quit [Quit: Connection closed for inactivity]
codeurge has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davejacobs has joined #ruby
rismoney1 has joined #ruby
michael_mbp has joined #ruby
teddyp1cker has quit [Ping timeout: 245 seconds]
DadoCe has quit [Remote host closed the connection]
silkfox has quit [Ping timeout: 250 seconds]
sevvie has joined #ruby
DadoCe_ has joined #ruby
davejacobs has quit [Ping timeout: 252 seconds]
braincrash has quit [Quit: bye bye]
riotjones has quit [Ping timeout: 246 seconds]
_honning_ has joined #ruby
DadoCe_ has quit [Ping timeout: 256 seconds]
jack_rabbit has joined #ruby
Guest123 has joined #ruby
tcrypt has joined #ruby
casadei has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
agrinb has joined #ruby
braincrash has joined #ruby
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rismoney1 has quit [Ping timeout: 246 seconds]
krz has joined #ruby
Jetchisel has joined #ruby
DadoCe has joined #ruby
charliesome has quit [Quit: zzz]
CorySimmons has quit [Quit: Bye!]
amclain has joined #ruby
freerobby has quit [Quit: Leaving.]
DadoCe has quit [Ping timeout: 245 seconds]
krz has quit [Ping timeout: 272 seconds]
oki has joined #ruby
wallerdev has quit [Quit: wallerdev]
tuelz has quit [Ping timeout: 264 seconds]
dys has quit [Ping timeout: 272 seconds]
AlexRussia has joined #ruby
techsethi_ has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
kyb3r_ has joined #ruby
neonalpi_ has joined #ruby
AlexRussia has quit [Ping timeout: 250 seconds]
olivierrr is now known as zz_olivierrr
charliesome has joined #ruby
Mongey has joined #ruby
neonalpine has quit [Ping timeout: 250 seconds]
zorak8 has quit [Ping timeout: 246 seconds]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
Rapier- has quit [Quit: (null)]
doodlehaus has joined #ruby
shevy has quit [Ping timeout: 252 seconds]
tjohnson has quit [Quit: Connection closed for inactivity]
Lildirt has joined #ruby
fuhgeddaboudit has joined #ruby
bruno- has quit [Ping timeout: 264 seconds]
krz has joined #ruby
doodlehaus has quit [Ping timeout: 256 seconds]
rhg135 has quit [Ping timeout: 272 seconds]
oki has quit [Ping timeout: 246 seconds]
ghr has joined #ruby
krz has quit [Ping timeout: 250 seconds]
neonalpi_ has quit [Remote host closed the connection]
Channel6 has quit [Quit: Leaving]
jonr22 has joined #ruby
zorak8 has joined #ruby
ponga has joined #ruby
ghr has quit [Ping timeout: 252 seconds]
rhg135 has joined #ruby
fuhgeddaboudit has left #ruby ["Ex-Chat"]
tmtwd has quit [Remote host closed the connection]
jonr22 has quit [Ping timeout: 250 seconds]
ponga has quit [Ping timeout: 246 seconds]
wldcordeiro has quit [Ping timeout: 250 seconds]
pontiki has quit [Quit: good night]
oo_ has quit [Remote host closed the connection]
Joufflu has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
mistermo_ has quit [Remote host closed the connection]
techsethi_ has quit [Quit: techsethi_]
lampd1_ has joined #ruby
aamador has quit [Ping timeout: 255 seconds]
_djbkd has joined #ruby
justin_pdx has joined #ruby
lampd1 has quit [Ping timeout: 246 seconds]
mostlybadfly has joined #ruby
lampd1_ is now known as lampd1
commmmodo has quit [Quit: commmmodo]
bradleyprice has joined #ruby
michael_mbp has quit [Excess Flood]
jottr_ has joined #ruby
stunder_ has joined #ruby
stunder_ has quit [Client Quit]
stunder has joined #ruby
AlexRussia has joined #ruby
michael_mbp has joined #ruby
Yzguy has quit [Quit: I'm sleeping, go away.]
agrinb has quit [Remote host closed the connection]
stunder has left #ruby [#ruby]
agrinb has joined #ruby
arescorpio has quit [Excess Flood]
AlexRussia has quit [Excess Flood]
Coding_Deva has joined #ruby
jottr_ has quit [Ping timeout: 246 seconds]
stunder has joined #ruby
stunder has left #ruby [#ruby]
jlast has quit [Remote host closed the connection]
Channel6 has joined #ruby
chihhsin has quit [Ping timeout: 245 seconds]
DEA7TH has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
agrinb has quit [Ping timeout: 265 seconds]
chihhsin has joined #ruby
krz has joined #ruby
JoshGlzBrk has joined #ruby
martianixor has quit [Quit: Leaving]
juanpaucar has joined #ruby
martianixor has joined #ruby
Rollabunna has joined #ruby
_djbkd has quit [Remote host closed the connection]
bluOxigen has joined #ruby
shum has quit [Remote host closed the connection]
_djbkd has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sevvie has quit [Ping timeout: 245 seconds]
juanpaucar has quit [Ping timeout: 272 seconds]
<reactormonk> Any way I can tell ruby where to write stderr? Can I reopen it and point it to a file?
_djbkd has quit [Remote host closed the connection]
lektrik has joined #ruby
DadoCe has joined #ruby
_djbkd has joined #ruby
greenbagels has quit [Read error: Connection reset by peer]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
Guest65 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jaequery has joined #ruby
amacou has quit [Remote host closed the connection]
sevvie has joined #ruby
RegulationD has joined #ruby
DadoCe has quit [Ping timeout: 252 seconds]
<havenwood> reactormonk: For example you can `require 'stringio'` then set `$stderr = StringIO.new`. Then `$stderr = STDERR` to restore normalcy.
<reactormonk> havenwood, nah, $stderr.reopen works perfectly
rhg135 is now known as rhg135|zzz
suy has quit [Ping timeout: 246 seconds]
RegulationD has quit [Ping timeout: 245 seconds]
<havenwood> reactormonk: typically #reopen is a last resort, but if it's what you need great
<reactormonk> havenwood, last resort? hm.
aboudreault has quit [Excess Flood]
Mongey has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
suy has joined #ruby
silkfox has joined #ruby
<zly> morning
ghr has joined #ruby
zotherstupidguy has quit [Read error: Connection reset by peer]
aboudreault has joined #ruby
AlexRussia has joined #ruby
davejacobs has joined #ruby
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
silkfox has quit [Ping timeout: 252 seconds]
davejacobs has quit [Ping timeout: 245 seconds]
ghr has quit [Ping timeout: 256 seconds]
justin_pdx has quit [Quit: justin_pdx]
techsethi_ has joined #ruby
<havenwood> reactormonk: yeah, if you reassign $stdout to say an open file or a string io it doesn't nuke STDOUT or IO.new(1) from orbit like a #reopen.
<havenwood> reactormonk: you can assign $stdout back to STDOUT
<reactormonk> havenwood, I want to nuke it from orbit.
<havenwood> reactormonk: then carry on
<havenwood> reactormonk: ;)
<reactormonk> I want the interpreter error messages to go to a file instead of stderr - ruby's being called from another file
justin_pdx has joined #ruby
<havenwood> reactormonk: usually it's nice to reserve the ability to restore, but admittedly not always
teddyp1cker has joined #ruby
oo_ has quit [Remote host closed the connection]
oki has joined #ruby
<havenwood> reactormonk: like: $stderr = File.open '/dev/null', 'w'
<reactormonk> debugging with actual debug output is easier :-)
krz has quit [Ping timeout: 272 seconds]
<reactormonk> Hm, the problem might be entirely different, so no more ruby I supposed...
<havenwood> reactormonk: but yeah, you can reopen the file descriptor if you want to just do that :)
<havenwood> chainsaw
<reactormonk> why is email such a fucked up medium :-(
<havenwood> historical reasons I guess
<havenwood> i was starting to like google wave when they killed it
oo_ has joined #ruby
<havenwood> pretty amazing we're still emailing
<reactormonk> and using IRC :D
aboudreault has quit [Excess Flood]
<havenwood> reactormonk: i feel like irc is future tech compared to email, ha
<sevenseacat> whats so fucked up about email?
<reactormonk> sevenseacat, from an email, try to find the address that actually recieved the email.
oki has quit [Ping timeout: 245 seconds]
teddyp1cker has quit [Ping timeout: 240 seconds]
<sevenseacat> mmmm yeah dont think so
<havenwood> sevenseacat: a different protocol for sending then receiving and multiple for receiving is pretty wierd
<havenwood> than*
teddyp1cker has joined #ruby
haasn has quit [Quit: haasn]
Hijiri has joined #ruby
AlphaTech has quit [Quit: Connection closed for inactivity]
aboudreault has joined #ruby
rbennacer has joined #ruby
lemur has joined #ruby
agrinb has joined #ruby
rbennacer has quit [Ping timeout: 244 seconds]
Coding_Deva has quit [Read error: Connection reset by peer]
flughafe1 has quit [Quit: WeeChat 1.0]
pierre1_ has joined #ruby
jottr_ has joined #ruby
chiel has quit [Remote host closed the connection]
jottr_ has quit [Ping timeout: 246 seconds]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
npg has joined #ruby
<npg> hi
x1337807x has joined #ruby
Guest65 has joined #ruby
x1337807x has quit [Max SendQ exceeded]
<havenwood> hi
x1337807x has joined #ruby
Mia has quit [Read error: Connection reset by peer]
ponga has joined #ruby
haasn has joined #ruby
ikeike443 has joined #ruby
x1337807x has quit [Client Quit]
gaspard0 has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gaspard0 has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 250 seconds]
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
zacts has joined #ruby
sivsushruth has joined #ruby
ych_ has joined #ruby
sinkensabe has joined #ruby
krz has joined #ruby
mikepack has quit [Remote host closed the connection]
jonr22 has joined #ruby
_Andres has joined #ruby
agrinb has quit [Remote host closed the connection]
doodlehaus has joined #ruby
justin_pdx has quit [Quit: justin_pdx]
agrinb has joined #ruby
sinkensabe has quit [Remote host closed the connection]
nii236 has quit [Read error: Connection reset by peer]
MasterPiece has joined #ruby
shevy has joined #ruby
timonv has joined #ruby
justin_pdx has joined #ruby
justin_pdx has quit [Client Quit]
robbyoconnor has joined #ruby
tagrudev has joined #ruby
StoneCypherAW has quit [Ping timeout: 265 seconds]
ghostpl_ has joined #ruby
hvxgr has quit [Ping timeout: 245 seconds]
jonr22 has quit [Ping timeout: 256 seconds]
doodlehaus has quit [Ping timeout: 264 seconds]
agrinb has quit [Ping timeout: 250 seconds]
dkoch has quit [Ping timeout: 246 seconds]
iwaffles has joined #ruby
sigurding has joined #ruby
mikepack has joined #ruby
nii236 has joined #ruby
Arnie25 has quit [Ping timeout: 244 seconds]
<certainty> moin
charliesome has quit [Quit: zzz]
ghr has joined #ruby
krz has quit [Ping timeout: 245 seconds]
SouL_ has quit [Ping timeout: 265 seconds]
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest65 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mikepack has quit [Ping timeout: 256 seconds]
<flughafen> moin
RegulationD has joined #ruby
riotjones has joined #ruby
last_staff has joined #ruby
sigurding has quit [Quit: sigurding]
magic__ has quit [Quit: Leaving]
jobewan has quit [Ping timeout: 245 seconds]
wottam has joined #ruby
ghr has quit [Ping timeout: 244 seconds]
tobago has joined #ruby
sigurding has joined #ruby
fabrice31 has joined #ruby
charliesome has joined #ruby
RegulationD has quit [Ping timeout: 256 seconds]
lolmaus has joined #ruby
amclain has quit [Quit: Leaving]
pierre1_ has quit [Quit: Leaving]
riotjones has quit [Ping timeout: 250 seconds]
fep has joined #ruby
fep has quit [Read error: Connection reset by peer]
fep has joined #ruby
Channel6 has quit [Quit: Leaving]
pierre1__ has joined #ruby
fepipep has joined #ruby
charliesome has quit [Client Quit]
fabrice31 has quit [Ping timeout: 246 seconds]
fepipep has quit [Remote host closed the connection]
fepipep has joined #ruby
_1_shahid2 has joined #ruby
RegulationD has joined #ruby
lessless has joined #ruby
zorak8 has quit [Read error: Connection reset by peer]
schaerli has joined #ruby
fabrice31 has joined #ruby
Macaveli has joined #ruby
fep has quit [Ping timeout: 256 seconds]
fepipep has left #ruby [#ruby]
pierre1__ has quit [Ping timeout: 244 seconds]
lessless has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
oki has joined #ruby
zorak8 has joined #ruby
RegulationD has quit [Ping timeout: 272 seconds]
_djbkd has quit [Quit: My people need me...]
Guest17518 has joined #ruby
arup_r has joined #ruby
skj3gg has joined #ruby
f03lipe has joined #ruby
_1_shahid2 has quit [Remote host closed the connection]
<arup_r> moin all
fepipep has joined #ruby
fepipep has quit [Read error: Connection reset by peer]
quazimodo has quit [Ping timeout: 250 seconds]
fepipep_ has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
Guest17518 has quit [Quit: Leaving]
fepipep has joined #ruby
fepipep has quit [Read error: Connection reset by peer]
fepipep has joined #ruby
martianixor has quit [Remote host closed the connection]
<arup_r> >> []['a']
<eval-in> arup_r => no implicit conversion of String into Integer (TypeError) ... (https://eval.in/293993)
fepipep has left #ruby [#ruby]
<arup_r> well I know this error.. But not able to track where in MRI it is written
<arup_r> Any help?
<arup_r> Need to see it
<arup_r> does it apply #to_int or #to_i
f03lipe has quit [Ping timeout: 246 seconds]
mi12 has quit [Quit: Leaving]
ghostpl_ has quit [Remote host closed the connection]
fepipep_ has quit [Ping timeout: 240 seconds]
arup_r has quit []
arup_r has joined #ruby
ravenzz has left #ruby [#ruby]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
codecop has joined #ruby
SouL has joined #ruby
Takle has joined #ruby
hvxgr has joined #ruby
ismaelga has quit [Remote host closed the connection]
skj3gg has quit [Quit: ZZZzzz…]
ismaelga has joined #ruby
joekain has joined #ruby
juanpaucar has joined #ruby
<havenwood> Tut tut, looks like 2.2.1.
joekain has left #ruby [#ruby]
<arup_r> means?
<arup_r> havenwood: did you see my message ?
commmmodo has joined #ruby
<havenwood> arup_r: Crystal ball shows Ruby 2.2.1 in the near future, that's all.
Takle has quit [Ping timeout: 265 seconds]
<havenwood> arup_r: Where in MRI's source code is that particular error?
<arup_r> ok
<arup_r> I don't know
<arup_r> I am also searching for it
riotjones has joined #ruby
ismaelga has quit [Remote host closed the connection]
<arup_r> just wanted to know.. when Ruby try to convert does it apply #to_i or #to_int
<arup_r> ?
<havenwood> arup_r: but yeah, Fixnums for an Array index
yfeldblum has joined #ruby
juanpaucar has quit [Ping timeout: 245 seconds]
tvon has quit [Quit: leaving]
krz has joined #ruby
<arup_r> yes
<arup_r> But
f03lipe has joined #ruby
skj3gg has joined #ruby
charliesome has joined #ruby
<arup_r> well it seems NUM2LONG does the job
<arup_r> havenwood: ^^
sinkensabe has joined #ruby
razieliyo has quit [Ping timeout: 252 seconds]
bal has joined #ruby
<apeiros_> the raise seems to come from https://github.com/ruby/ruby/blob/trunk/object.c#L2623
<arup_r> apeiros_: +1
Soda has quit [Remote host closed the connection]
lemur has quit [Remote host closed the connection]
IrishGringo has quit [Ping timeout: 265 seconds]
jack_rabbit has quit [Ping timeout: 246 seconds]
lemur has joined #ruby
<arup_r> MRI is like dark planet to me
Soda has joined #ruby
<certainty> i hear matz crying
yfeldblu_ has joined #ruby
<arup_r> reading OOP code implemented using C is like :(
ych_ has quit [Ping timeout: 264 seconds]
Guest123 has joined #ruby
<certainty> isn't reading $code implemented using C like :( ?
<apeiros_> I found this one not too hard to follow. but I don't like ruby's C code much.
<apeiros_> funny things like 13 returns from the same function…
<sevenseacat> C :(
<certainty> the burdon of our time
silkfox has joined #ruby
<sevenseacat> all i remember about C is a) pointers suck b) memory management sucks c) structs are a poor man's OO
<sevenseacat> but mostly b)
<apeiros_> yeah, I'm always surprised how much faults valgrind still finds in my tiny pieces of C code :-/
<apeiros_> you'd think it can't be that hard…
krz has quit [Ping timeout: 245 seconds]
<certainty> haha
yfeldblum has quit [Ping timeout: 256 seconds]
<sevenseacat> having to calculate exactly how many bytes every single goddamn data structure is going to use
<sevenseacat> f that
<apeiros_> sevenseacat: don't?
<apeiros_> your compiler should do that
<certainty> sizeof
<sevenseacat> maybe things have changed since i was taught C at uni.
fgo has quit [Ping timeout: 246 seconds]
<certainty> but still it sucks
<apeiros_> and as far as I've been told, it's bad style anyway to not use sizeof
lemur has quit [Ping timeout: 256 seconds]
krz has joined #ruby
<apeiros_> but that's one of my biggest gripes with C - finding good resources for a) what is modern C, and b) why is modern C written that way
<certainty> C is a macro assembly and as such it does its job. but you should think twice before you use it
<certainty> my conclusion is that i'm too dumb for C. I can't seem to make it right
<certainty> also i hesitate to concern myself with all the accidental complexity that comes with C code
<certainty> (all code at that level of abstraction)
silkfox has quit [Ping timeout: 256 seconds]
<apeiros_> "accidental complexity". yeah. so many more yaks in C than in ruby. "oh, problem x? that's easy, I just do A and B… oh wait, C doesn't have A. it doesn't have B either. well, ok, problem A is easy, I just need…"
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wallerdev has joined #ruby
andikr has joined #ruby
<certainty> yepp
nii236 has quit [Ping timeout: 246 seconds]
jack_rabbit has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
<certainty> oh i want to store all the lines of that file in a buffer. Ok easy, oh wait no, i have to allocatem memory, loop through each line, oh wait which function is safe to use, ah ok so further. Hmm i don't know how many lines i will need, ok i'll realloc and so on
<certainty> such a simple task
<certainty> that many things and i forgot details, for sure
<certainty> also strings being bytearrays sucks badly
Soda has quit [Remote host closed the connection]
<apeiros_> strings are bytearrays in ruby too :)
<apeiros_> but ruby has at least some nice methods on top of that to make your life reasonably easy
<certainty> apeiros_: that's what i mean. i don't care how it's implemented internally. The interface at least is not byte-oriented. In C an array of bytes is the interface
<certainty> and don't get me started on null bytes delimiting strings
nii236 has joined #ruby
<apeiros_> aaahaha, yeah
pwh has quit [Ping timeout: 240 seconds]
<certainty> i guess you must be linus to be good at that stuff
aganov has joined #ruby
ptrrr has joined #ruby
pwh has joined #ruby
allenn has joined #ruby
sigurding has quit [Quit: sigurding]
Macaveli has quit [Ping timeout: 250 seconds]
reinaldob has joined #ruby
sigurding has joined #ruby
ajaiswal is now known as ajaiswal|lunch
crdpink has quit [Ping timeout: 250 seconds]
charliesome has quit [Quit: zzz]
crdpink has joined #ruby
dru has quit [Ping timeout: 244 seconds]
dumdedum has joined #ruby
Macaveli has joined #ruby
charliesome has joined #ruby
robbyoconnor has joined #ruby
ninedragon has quit [Ping timeout: 245 seconds]
reinaldob has quit [Ping timeout: 246 seconds]
ninedragon_ has joined #ruby
StoneCypherAW has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
amacou has joined #ruby
ghr has joined #ruby
psy_ has quit [Ping timeout: 246 seconds]
BTRE has quit [Read error: Connection reset by peer]
oz has quit [Quit: EOF]
oo_ has quit [Remote host closed the connection]
krz has quit [Ping timeout: 256 seconds]
BTRE has joined #ruby
_Andres has joined #ruby
terlar has joined #ruby
jack_rabbit has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
StoneCypherAW has quit [Ping timeout: 272 seconds]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
davejacobs has joined #ruby
krz has joined #ruby
einarj has joined #ruby
Bounga has joined #ruby
strixd has joined #ruby
amacou_ has joined #ruby
amacou_ has quit [Client Quit]
dkoch has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
davejacobs has quit [Ping timeout: 252 seconds]
amacou has quit [Ping timeout: 252 seconds]
tcrypt has quit [Remote host closed the connection]
<dkoch> hey there
<arup_r> yes
<dkoch> i asked this question already yesterday
<dkoch> imap says that 11 is a invalid messageset
<dkoch> ruby-doc : The set parameter is a number or an array of numbers or a Range object. The number is a message sequence number.
<dkoch> i am getting the uid from the find method so it should be valid
<dkoch> anybody knows why its not ?
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
bruno- has joined #ruby
jaequery has joined #ruby
bruno- is now known as Guest35759
Mia has quit [Read error: Connection reset by peer]
npg has quit [Quit: npg]
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
amundj has quit [Ping timeout: 255 seconds]
Mia has joined #ruby
Mia has joined #ruby
Guest35759 has quit [Ping timeout: 272 seconds]
SouL has quit [Ping timeout: 252 seconds]
imanzarrabian has joined #ruby
ismaelga has joined #ruby
blackmes1 has joined #ruby
schaerli has quit [Ping timeout: 252 seconds]
jack_rabbit has joined #ruby
decoponyo has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
elaptics is now known as elaptics_away
send has joined #ruby
ajaiswal|lunch is now known as ajaiswal
BTRE has quit [Remote host closed the connection]
BTRE has joined #ruby
ismaelga has quit [Ping timeout: 255 seconds]
marr has joined #ruby
Mia has quit [Ping timeout: 244 seconds]
decoponio has quit [Ping timeout: 240 seconds]
diegoviola has quit [Quit: WeeChat 1.1.1]
larsam has quit [Quit: larsam]
jonr22 has joined #ruby
krz has quit [Ping timeout: 264 seconds]
<havenwood> `ruby-install ruby 2.2.1` or `rvm install 2.2.1` \o/
<sevenseacat> but its not out
banister has quit [Read error: Connection reset by peer]
Mia has joined #ruby
hs366 has joined #ruby
einarj has quit [Ping timeout: 244 seconds]
einarj_ has joined #ruby
jonr22 has quit [Ping timeout: 265 seconds]
danjordan has joined #ruby
kalusn has joined #ruby
fgo has joined #ruby
commmmodo has quit [Quit: commmmodo]
rmoriz has quit [Quit: ZNC - http://znc.in]
tvon has joined #ruby
Axy has quit [Ping timeout: 246 seconds]
einarj has joined #ruby
einarj_ has quit [Read error: Connection reset by peer]
sevvie has quit [Quit: leaving]
Mia has quit [Ping timeout: 272 seconds]
rocknrollmarc has joined #ruby
fgo has quit [Ping timeout: 252 seconds]
timothy-michael has joined #ruby
oddmunds has joined #ruby
jack_rabbit has quit [Ping timeout: 244 seconds]
SouL has joined #ruby
bayed has joined #ruby
sigurding has quit [Quit: sigurding]
sevvie has joined #ruby
piotrj has joined #ruby
Pharaoh2 has joined #ruby
alex88 has joined #ruby
n008f4g_ has joined #ruby
doodlehaus has joined #ruby
<havenwood> sevenseacat: ^ works already nonetheless, *soon*
<sevenseacat> nice.
rocknrollmarc has quit [Ping timeout: 265 seconds]
Mia has joined #ruby
oz has joined #ruby
tvw has joined #ruby
oo_ has quit [Remote host closed the connection]
rocknrollmarc has joined #ruby
oo_ has joined #ruby
Takle has joined #ruby
aphprentice_ has quit [Ping timeout: 252 seconds]
livathinos has joined #ruby
doodlehaus has quit [Ping timeout: 256 seconds]
blackmes1 has quit [Ping timeout: 264 seconds]
arup_r has quit [Remote host closed the connection]
Takle has quit [Read error: Connection reset by peer]
Takle_ has joined #ruby
Spami has joined #ruby
rocknrollmarc has quit [Ping timeout: 252 seconds]
RegulationD has joined #ruby
sigurding has joined #ruby
n008f4g_ has quit [Ping timeout: 255 seconds]
MasterPiece has quit [Quit: Leaving]
Takle_ has quit [Remote host closed the connection]
tvw has quit []
decoponyo has quit [Quit: Leaving...]
RegulationD has quit [Ping timeout: 244 seconds]
krz has joined #ruby
Pupeno has joined #ruby
bhegel has quit [Quit: bhegel]
tesuji has joined #ruby
sivsushruth has quit [Ping timeout: 265 seconds]
Mia has quit [Read error: Connection reset by peer]
n008f4g_ has joined #ruby
Mia has joined #ruby
mikecmpbll has joined #ruby
ptrrr has quit [Quit: ptrrr]
techsethi_ has quit [Quit: techsethi_]
arup_r has joined #ruby
Morkel has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
joonty has joined #ruby
cyberfab007 has joined #ruby
n008f4g_ has quit [Ping timeout: 244 seconds]
<cyberfab007> hey people how yall doing
piotrj has quit [Remote host closed the connection]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
CustosLimen has joined #ruby
Pharaoh2_ has joined #ruby
monod has joined #ruby
Pharaoh2_ has quit [Max SendQ exceeded]
The_Phoenix has joined #ruby
sivsushruth has joined #ruby
Pharaoh2_ has joined #ruby
juanpaucar has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Pharaoh2 has quit [Ping timeout: 264 seconds]
wottam has joined #ruby
rocknrollmarc has joined #ruby
despai has joined #ruby
sevenseacat has quit [Remote host closed the connection]
juanpaucar has quit [Ping timeout: 250 seconds]
ki0 has joined #ruby
<hs366> if $?.to_i > 0 could someone explain this line to me ? with is "$?"
j0n3 has joined #ruby
<hs366> tobiasvl, thx dude !
oki has quit [Read error: Connection reset by peer]
<tobiasvl> "Returns Process::Status for last executed child process" – and an exit code of 0 means success generally
oki has joined #ruby
j0n3 has quit [Max SendQ exceeded]
j0n3 has joined #ruby
<hs366> yap , thank you for the link also !
rkgudboy has joined #ruby
lkba has quit [Read error: Connection reset by peer]
lkba has joined #ruby
lxsameer has joined #ruby
davedev24_ has quit [Remote host closed the connection]
maasha has joined #ruby
<maasha> Hi
<maasha> Would it be possible to hack pry into do tab-completion of paths and filenames?
rocknrollmarc has quit [Ping timeout: 244 seconds]
schaerli has joined #ruby
<maasha> pry> File.open("/home -> tab tab tab ...
senayar has joined #ruby
GnuYawk has quit [Quit: WeeChat 0.4.1]
mroach has quit [Ping timeout: 272 seconds]
einarj_ has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
Mia has quit [Read error: Connection reset by peer]
<maasha> Hello? Is there anybody out there?
einarj has quit [Read error: Connection reset by peer]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
<maasha> Just nod if you can hear me
<tobiasvl> sure, but I know nothing about pry
* tobiasvl nods
ismaelga has joined #ruby
Takle has joined #ruby
<maasha> "Further, we can use the shell-mode command to incorporate the present working directory into the Pry prompt and bring in (limited at this stage, sorry) file name completion" - what does that mean?
sivsushruth has quit [Ping timeout: 252 seconds]
silkfox has joined #ruby
<dkoch> maasha: just type "shell-mode"
Hobogrammer has quit [Ping timeout: 256 seconds]
sivsushruth has joined #ruby
elaptics_away is now known as elaptics
havenwood has quit []
ismaelga has quit [Ping timeout: 240 seconds]
<maasha> Hm, and then you loose tab completion of method names :o/
Lorn3r has joined #ruby
avril14th has joined #ruby
larsam has joined #ruby
<wasamasa> you only lose an o
silkfox has quit [Ping timeout: 255 seconds]
WhereIsMySpoon has quit [Disconnected by services]
wallerdev has quit [Quit: wallerdev]
einarj has joined #ruby
ponga has quit [Quit: Leaving...]
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
ponga has joined #ruby
WhereIsMySpoon_ has joined #ruby
jimms has joined #ruby
sivsushruth has quit [Read error: Connection reset by peer]
einarj_ has quit [Ping timeout: 246 seconds]
<maasha> where is this banisterfriend anyway :o) ?
Mia has quit [Ping timeout: 250 seconds]
huddy has joined #ruby
EasyCo has quit [Quit: Connection closed for inactivity]
einarj_ has joined #ruby
sivsushruth has joined #ruby
einarj has quit [Ping timeout: 244 seconds]
jimms has quit [Read error: Connection reset by peer]
rocknrollmarc has joined #ruby
jottr_ has joined #ruby
jimms has joined #ruby
nfk has joined #ruby
einarj has joined #ruby
oo_ has quit [Remote host closed the connection]
shredding has joined #ruby
sivsushruth has quit [Read error: Connection reset by peer]
einarj_ has quit [Ping timeout: 272 seconds]
lkba has quit [Ping timeout: 250 seconds]
<gregf__> w
<gregf__> er, sorry :/
sivsushruth has joined #ruby
oo_ has joined #ruby
charliesome has quit [Ping timeout: 250 seconds]
jottr_ has quit [Ping timeout: 272 seconds]
wald0 has joined #ruby
oo_ has quit [Remote host closed the connection]
einarj_ has joined #ruby
techsethi_ has joined #ruby
einarj has quit [Ping timeout: 246 seconds]
einarj has joined #ruby
oo_ has joined #ruby
vtunka has joined #ruby
krz has quit [Ping timeout: 250 seconds]
vvivv has joined #ruby
charliesome has joined #ruby
einarj has quit [Remote host closed the connection]
elaptics is now known as elaptics_away
elaptics_away is now known as elaptics
einarj_ has quit [Ping timeout: 244 seconds]
elaptics is now known as elaptics_away
elaptics_away is now known as elaptics
Zai00 has joined #ruby
rocknrollmarc has quit [Ping timeout: 244 seconds]
shadeslayer has quit [Quit: No Ping reply in 180 seconds.]
kyb3r_ has quit [Ping timeout: 272 seconds]
hoelzro has quit [Ping timeout: 272 seconds]
rocknrollmarc has joined #ruby
Hirzu has joined #ruby
kyb3r_ has joined #ruby
shadeslayer has joined #ruby
hoelzro has joined #ruby
hanmac1 has joined #ruby
krz has joined #ruby
<avril14th> morning
nii236 has quit [Quit: leaving]
Guest65 has joined #ruby
sivsushruth has quit [Read error: Connection reset by peer]
sivsushruth has joined #ruby
rdark has joined #ruby
workmad3 has joined #ruby
Hirzu has quit [Ping timeout: 240 seconds]
msgodf has joined #ruby
wottam has quit [Ping timeout: 244 seconds]
cassianoleal has joined #ruby
roshanavand has joined #ruby
toretore has joined #ruby
krz has quit [Ping timeout: 255 seconds]
davidhq has joined #ruby
<arup_r> Hey guys..
reinaldob has joined #ruby
<arup_r> I want to add something Ruby documentation.. How to contribute...?
<arup_r> avril14th: o/
<vvivv> create project on Github
krz has joined #ruby
Guest65 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
krz is now known as Guest36216
<arup_r> means? Fork
<arup_r> ?
Guest123 has joined #ruby
<vvivv> what do you want add?
bruno- has joined #ruby
<avril14th> arup_r: you mean add comments on ruby-doc.org?
<arup_r> yes.. improving documentation
davidhq has quit [Client Quit]
<avril14th> well, get in touch with them :)
<avril14th> or use the disqus at the bottom of the page
<arup_r> how to touch them ?
<avril14th> or better, http://documenting-ruby.org/
davidhq has joined #ruby
<avril14th> "If you want to help improve the Ruby documentation, please visit Documenting-ruby.org."
<arup_r> avril14th: http://documenting-ruby.org/ is helpful
quazimodo has joined #ruby
SumoBoy has joined #ruby
bruno- has quit [Ping timeout: 252 seconds]
gr33n7007h has quit [Ping timeout: 250 seconds]
tvw has joined #ruby
tokik has quit [Ping timeout: 272 seconds]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sivsushruth has quit [Read error: Connection reset by peer]
sivsushruth has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
jonr22 has joined #ruby
aswen has joined #ruby
Zai00 has quit [Quit: Zai00]
Axy has quit [Read error: Connection reset by peer]
blackmes1 has joined #ruby
jonr22 has quit [Ping timeout: 250 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
Mia has joined #ruby
ismaelga has joined #ruby
mambo_ has quit []
timothy-michael has quit []
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DadoCe has joined #ruby
SumoBoy has quit [Quit: Leaving]
ismaelga has quit [Ping timeout: 245 seconds]
ndrei has quit [Ping timeout: 245 seconds]
ndrei has joined #ruby
bmn has quit [Quit: obai]
DaniG2k has joined #ruby
chipotle has quit [Quit: cheerio]
schaerli has quit [Ping timeout: 264 seconds]
DadoCe has quit [Ping timeout: 244 seconds]
nettoweb has joined #ruby
rkmylo has joined #ruby
<rkmylo> hi all, what's the ruby way to multiline %w() arrays?
<arup_r> means?
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
Grumelo has joined #ruby
bmn has joined #ruby
roshanavand has quit [Ping timeout: 246 seconds]
jaequery has joined #ruby
schaerli has joined #ruby
camilasan has quit [Remote host closed the connection]
rmoriz has joined #ruby
rekky has joined #ruby
camilasan has joined #ruby
fgo has joined #ruby
rekky has quit [Client Quit]
<arup_r> well this is http://stackoverflow.com/a/10524123/2767755 not working inside %w()
<arup_r> humm
rekky has joined #ruby
rekky has quit [Client Quit]
tchebb has quit [Quit: ZNC - http://znc.in]
tchebb has joined #ruby
RegulationD has joined #ruby
rekky has joined #ruby
jespada has joined #ruby
zorak8 has quit [Ping timeout: 246 seconds]
withnale__ has joined #ruby
imanzarrabian has quit [Ping timeout: 252 seconds]
jimms has quit []
doodlehaus has joined #ruby
<jhass> rkmylo: what do you mean? just do it?
RegulationD has quit [Ping timeout: 246 seconds]
<jhass> %w() doesn't care about the type or amount of whitespace between the items
nii236 has joined #ruby
SOLDIERz has joined #ruby
mikepack has joined #ruby
doodlehaus has quit [Ping timeout: 264 seconds]
Guest36216 has quit [Read error: Connection reset by peer]
<SOLDIERz> hey everyone when i build ruby from the sourcefile
<SOLDIERz> is there json already included? no right?
Guest36216 has joined #ruby
sivsushruth has quit [Ping timeout: 252 seconds]
<DefV> json is in stdlib
tus has joined #ruby
<DefV> but not automatically required
panga has joined #ruby
sivsushruth has joined #ruby
Pharaoh2_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
panga is now known as ponga_
<SOLDIERz> okay can i include it in the configure?
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jhass> not automatically required means in the ruby program you have to do "require 'json'"
<jhass> no compile time flag needed
<SOLDIERz> I speaking from building ruby on a linux system
ponga has quit [Ping timeout: 245 seconds]
<SOLDIERz> not coding a ruby program
<jhass> yup
mikepack has quit [Ping timeout: 245 seconds]
Pharaoh2 has joined #ruby
renier_ has quit [Ping timeout: 252 seconds]
rodfersou has joined #ruby
bradleyprice has quit [Remote host closed the connection]
spider-mario has joined #ruby
Zai00 has joined #ruby
<workmad3> SOLDIERz: A json parser and generator is part of the ruby standard library that gets installed as part of the normal ruby compile & install process so it's available on pretty much any ruby install (pretty much any because some people may have manually changed their ruby compilation to not have it or some other crazy thing)
rocknrollmarc has quit [Ping timeout: 265 seconds]
OrbitalKitten has joined #ruby
shazaum has joined #ruby
einarj has joined #ruby
<hanmac1> SOLDIERz: what linux version?
<SOLDIERz> centos 7
Aswebb_ has joined #ruby
Zai00 has quit [Client Quit]
Aswebb_ has quit [Remote host closed the connection]
<SOLDIERz> ./configure \
<SOLDIERz> --prefix=/opt/rubies/ruby-%{rubyver} \
<SOLDIERz> --enable-shared \
<SOLDIERz> --disable-rpath \
<SOLDIERz> --without-X11 \
<SOLDIERz> --without-tk \
<SOLDIERz> --includedir=/opt/rubies/ruby-%{rubyver}%{_includedir}/ruby \
<SOLDIERz> --libdir=/opt/rubies/ruby-%{rubyver}%{_libdir}
juanpaucar has joined #ruby
<SOLDIERz> my configure but it does not ship with json
<hanmac1> ah the stone-circle os ...
<hanmac1> SOLDIERz: you need to have the dev packages for json installed, otherwise ruby will not build against it
<SOLDIERz> lol missed it
<rkmylo> @jhass, @arup_r: i was just wondering if there is a style guideline re multilining, like the pythonic way in python :) in general - in my experience - ruby code tends to be not so nice code in terms of structure so i would like to stick with the best practices.
amundj has joined #ruby
renier has joined #ruby
rocknrollmarc has joined #ruby
<SOLDIERz> hanmac1 do you know who the package is called under centos
gfawcettpq has joined #ruby
<jhass> rkmylo: my personal style, and that matches what I've seen so far in the wild mostly, is to keep the first item on the same line as the %w( and then indent all other items up to it, that is until a single item exceeds the line length limit, at which all items, including the first one get just one level of indentation
juanpaucar has quit [Ping timeout: 256 seconds]
monod has quit [Ping timeout: 240 seconds]
<hanmac1> SOLDIERz: my biggest guess is "json-c-devel"
davedev24_ has joined #ruby
shazaum has quit [Quit: Leaving]
DaniG2k has quit [Ping timeout: 256 seconds]
<SOLDIERz> yeap thats what i also thing
wicope has joined #ruby
<SOLDIERz> let's see how it works
livathinos has quit []
nii236 has quit [Remote host closed the connection]
<hanmac1> debian and ubuntu does have "apt-get build-dep ruby" ... bad that other os doesnt seems to have something like that ...
<jhass> rkmylo: like this http://paste.mrzyx.de/p6va93bfg, just to show the styles, not necessarily hitting the real limits
sinkensabe has quit [Remote host closed the connection]
<rkmylo> @jhass: thanks, it looks good! i mostly follow the same approach so i'll stick with it :)
rocknrollmarc has quit [Ping timeout: 255 seconds]
startupality has joined #ruby
senayar has quit []
doodlehaus has joined #ruby
Lorn3r has quit [Ping timeout: 264 seconds]
govg has quit [Ping timeout: 244 seconds]
bruno- has joined #ruby
Grumelo has quit [Read error: Connection reset by peer]
doodlehaus has quit [Remote host closed the connection]
senayar has joined #ruby
sigurding has quit [Quit: sigurding]
startupality has quit [Client Quit]
rageberry has joined #ruby
SOLDIERz has quit [Quit: Be back later ...]
Guest36216 has quit [Ping timeout: 245 seconds]
senayar has quit [Remote host closed the connection]
startupality has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
renier_ has joined #ruby
SOLDIERz has joined #ruby
renier has quit [Ping timeout: 250 seconds]
pengin has joined #ruby
silkfox has joined #ruby
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
DaniG2k has joined #ruby
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
paradoja has joined #ruby
startupality has quit [Quit: startupality]
senayar has joined #ruby
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
silkfox has quit [Ping timeout: 256 seconds]
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
startupality has joined #ruby
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
senayar has quit [Ping timeout: 252 seconds]
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
pengin has quit [Remote host closed the connection]
Rollabunna has quit [Ping timeout: 245 seconds]
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
kyb3r_ has quit [Quit: Leaving]
pengin has joined #ruby
wicope has quit [Read error: Connection reset by peer]
gr33n7007h has joined #ruby
wicope has joined #ruby
ikeike443 has quit [Remote host closed the connection]
jottr_ has joined #ruby
pengin_ has joined #ruby
ismaelga has joined #ruby
pengin has quit [Read error: Connection reset by peer]
ikeike443 has joined #ruby
ikeike443 has quit [Client Quit]
gccostabr has joined #ruby
gr33n7007h has quit [Changing host]
gr33n7007h has joined #ruby
rkgudboy has quit [Ping timeout: 272 seconds]
rocknrollmarc has joined #ruby
_Andres has joined #ruby
Takle has quit [Remote host closed the connection]
rocknrollmarc has quit [Max SendQ exceeded]
teoric has joined #ruby
nettoweb has quit [Ping timeout: 264 seconds]
pengin_ has quit [Ping timeout: 250 seconds]
jottr_ has quit [Ping timeout: 272 seconds]
ismaelga has quit [Ping timeout: 246 seconds]
blackmes1 has quit [Ping timeout: 264 seconds]
nettoweb has joined #ruby
startupality has quit [Quit: startupality]
doodlehaus has joined #ruby
duncannz has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
<DaniG2k> exit
DaniG2k has quit [Quit: leaving]
rageberry has quit [Quit: WeeChat 1.1.1]
DaniG2k has joined #ruby
<arup_r> DaniG2k: ok
decoponio has joined #ruby
ldnunes has joined #ruby
tkuchiki has quit [Ping timeout: 250 seconds]
ajaiswal has quit [Quit: Leaving]
pico-pete has joined #ruby
teddyp1cker has joined #ruby
Takle has joined #ruby
mkaesz has joined #ruby
oo_ has joined #ruby
rocknrollmarc has joined #ruby
<DaniG2k> hahah
<DaniG2k> forgot the slash
cassianoleal has quit [Quit: (null)]
<matti> ;D
mengu has joined #ruby
davejacobs has joined #ruby
<hs366> hi again :)
ghostbox has joined #ruby
<hs366> Q: i have a question here : https://gist.github.com/hs366/3dbcdd6bb4c5e4849d65
rageberry has joined #ruby
<canton7> not sure what you're asking
<canton7> what does "specify implicitly" mean?
Guest65 has joined #ruby
<hs366> suppose i pass command = info but info just need to use :get method
<hs366> but if i use another command like command = deleteimage it needs :delete method
<hs366> yah ?
shredding has quit [Ping timeout: 244 seconds]
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackmes1 has joined #ruby
max96at|off is now known as max96at
<hs366> maybe some where before i need to mention the command and associated http-methods to each of theme,
davejacobs has quit [Ping timeout: 246 seconds]
<hs366> them
<hs366> ff
<hs366> lol
rkgudboy has joined #ruby
rageberry has quit [Quit: WeeChat 1.1.1]
rageberry has joined #ruby
ajaiswal has joined #ruby
rkgudboy has quit [Client Quit]
fantazo has joined #ruby
sinkensabe has joined #ruby
ajaiswal has quit [Client Quit]
blackmes1 has quit [Ping timeout: 264 seconds]
lordkryss has joined #ruby
shum has joined #ruby
ghostpl_ has joined #ruby
ghostpl_ has quit [Remote host closed the connection]
ghostpl_ has joined #ruby
ghostpl_ has quit [Remote host closed the connection]
ixti has quit [Quit: WeeChat 1.1.1]
ixti has joined #ruby
ghostpl_ has joined #ruby
Guest65 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SOLDIERz has quit [Quit: Be back later ...]
segmond has joined #ruby
jshultz has quit [Quit: Connection closed for inactivity]
blackmes1 has joined #ruby
segmond has quit [Ping timeout: 256 seconds]
dEPy has joined #ruby
Guest36216 has joined #ruby
max96at is now known as max96at|off
aamador has joined #ruby
jonr22 has joined #ruby
maximski has joined #ruby
Guest36216 has quit [Ping timeout: 272 seconds]
blackmes1 has quit [Ping timeout: 245 seconds]
<arup_r> In Ruby MRI what this NUM2LONG does any idea?
jonr22 has quit [Ping timeout: 265 seconds]
<workmad3> arup_r: as an educated guess, it takes a numeric from ruby and casts it to a C long
<arup_r> I tried to read the source code and in between I lost myself..
phutchins has joined #ruby
<arup_r> I forgot from where I started it to reading.. :(
sandelius has joined #ruby
segmond has joined #ruby
blackmes1 has joined #ruby
<workmad3> arup_r: well it's a macro defined in ruby.h
parduse has joined #ruby
AlecTaylor has joined #ruby
<AlecTaylor> hi
<arup_r> workmad3: Well.. This is much clear
<AlecTaylor> Running `foo.send function_name, arg0, arg1`. How do I prevent an error when `function_name` doesn't take args? - Currently hacked function_name implementation with (*nargs)
<workmad3> arup_r: just the fact it's called 'NUM2LONG' is pretty clear, IMO ;
<workmad3> ;)
<arup_r> humm
<workmad3> arup_r: hence the educated guess that it converts a ruby Numeric type into a C long
<arup_r> You are right!
rocknrollmarc has quit [Ping timeout: 250 seconds]
Takle has quit [Remote host closed the connection]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<workmad3> arup_r: X2Y are pretty common names for C conversion macros
livathinos has joined #ruby
ajaiswal has joined #ruby
ghostpl_ has quit [Remote host closed the connection]
ghostpl_ has joined #ruby
ghostpl_ has quit [Read error: No route to host]
sevenseacat has joined #ruby
Guest123 has joined #ruby
ghostpl_ has joined #ruby
n1lo has joined #ruby
rocknrollmarc has joined #ruby
leat has quit [Quit: leat]
ismaelga has joined #ruby
tobago has quit [Remote host closed the connection]
ajaiswal has quit [Quit: Leaving]
allcentury has joined #ruby
Guest65 has joined #ruby
lanemeyer has quit [Ping timeout: 245 seconds]
ghostpl_ has quit [Remote host closed the connection]
RegulationD has joined #ruby
yfeldblu_ has quit [Ping timeout: 265 seconds]
bruno- has joined #ruby
ismaelga has quit [Ping timeout: 240 seconds]
Takle has joined #ruby
<arup_r> workmad3: yes.. Rubinius implementation helped me to rewrite this answer more clearly... http://stackoverflow.com/a/28758905/2767755 :)
ghostpl_ has joined #ruby
leat has joined #ruby
jlast has joined #ruby
<arup_r> hope you enjoyed
RegulationD has quit [Ping timeout: 264 seconds]
leat has quit [Client Quit]
<hanmac1> arup_r: ah you are the same guy who reported that one? https://bugs.ruby-lang.org/issues/10913 ... because i couldnt repoduce it
leat has joined #ruby
leat has quit [Client Quit]
postmodern has quit [Quit: Leaving]
leat has joined #ruby
joonty has quit [Quit: joonty]
jlast has quit [Ping timeout: 250 seconds]
leat has quit [Client Quit]
leat has joined #ruby
Takle has quit [Remote host closed the connection]
<jhass> AlecTaylor: sounds very smelly, however you could inspect the arguments through the Method object obtained through Kernel#method
joonty has joined #ruby
Spami has joined #ruby
<arup_r> hanmac1: yes
<arup_r> is it working in your IRB ?
<hanmac1> arup_r: as i added in the ticket, it does raise some different errors, but no bad malloc messag
allenn has quit [Remote host closed the connection]
<arup_r> I didn't check.. Let me check it
<arup_r> what you added
rocknrollmarc has quit [Ping timeout: 246 seconds]
<arup_r> hanmac1: ruby 2.3.0dev ??? Is it WoW
ngr has joined #ruby
<hanmac1> arup_r: yeah i also test ruby-head recently
<arup_r> Well let me check in my other Ruby versions
ngr has left #ruby [#ruby]
segmond has quit [Ping timeout: 240 seconds]
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
rocknrollmarc has joined #ruby
juanpaucar has joined #ruby
doodlehaus has quit [Remote host closed the connection]
pwh has quit [Ping timeout: 250 seconds]
lektrik has quit [Ping timeout: 256 seconds]
<arup_r> hanmac1: Updated... for me in every version I am getting error..
claptor has quit [Quit: this channel is bakas]
<hanmac1> arup_r: what does RbConfig::CONFIG["CC"] return for you?
sigurding has joined #ruby
pwh has joined #ruby
<AlecTaylor> jhass: Can I do it through send somehow? - Like maybe implementing my own send which looks at expected argument length?
ghostpl_ has quit [Ping timeout: 245 seconds]
juanpaucar has quit [Ping timeout: 264 seconds]
Mon_Ouie has quit [Ping timeout: 264 seconds]
spyderman4g63 has joined #ruby
<arup_r> hanmac1: In IRB.. you want me to check it ?
<arup_r> well it is => "/usr/bin/clang"
Guest39056 is now known as kaspergrubbe
<arup_r> hanmac1: ^^
<ta> tlw: for lige at være sikker... `cat passphrase.secret | keystore encrypt -t ekey outfile.encrypted` ?
<hanmac1> arup_r: ah ok that might be the problem, because i have gcc
Macaveli has quit [Ping timeout: 272 seconds]
rocknrollmarc has quit [Ping timeout: 256 seconds]
<arup_r> hanmac1: ok.. But I think it is a bug right ?
<arup_r> what do you say ?
<hanmac1> hm yes it might be
vtunka has quit [Quit: Leaving]
centrx has joined #ruby
rismoney1 has joined #ruby
<arup_r> should I add this info to there also?
<arup_r> what you just asked me hanmac1
cpt_yossarian has quit [Ping timeout: 265 seconds]
<hanmac1> arup_r: i think its a usefull infomation to add (and that it does works for me wth gcc)
<arup_r> ok
<arup_r> adding
<maasha> is there a good tutorial on writing a Ruby wrapper for a C++ library? And is there some project that does this in a minimal way that I can look at?
segmond has joined #ruby
* hanmac1 does *hust* at the word "minimal way" ;P
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
vtunka has joined #ruby
<jhass> AlecTaylor: I really would reconsider your design, but sure, you can write as many wrappers around (public_)send as you like
<hanmac1> maasha: look at https://github.com/Hanmac/rwx
<maasha> hanmac1: well, I am not after some super huge project like kyoto-protocol
<jhass> "minimal" :D
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
livingstn has joined #ruby
<AlecTaylor> jhass: I just want to quell errors. Example on how to wrap?
<jhass> AlecTaylor: no
teoric has quit [Quit: WeeChat 1.2-dev]
Arnie25 has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
senayar has joined #ruby
<maasha> hanmac1: ok, I will have a look - I have the ruby cookbook here and it also have a tiny example.
catphish_ has joined #ruby
brb3 has joined #ruby
<maasha> not a very well explained, unfortunately.
troulouliou_dev has joined #ruby
<catphish_> i'm trying to implement SNI in a ruby OpenSSL server, but i'm unsure how to begin, would anyone familiar with SSLSocket be able to explain the process?
parduse has quit []
<maasha> maybe kyoto-cabinet is not a bad example at all -> https://github.com/genki/kyotocabinet-ruby hanmac1 what do you think?
parduse has joined #ruby
yo61 is now known as Ho
tagrudev has quit [Remote host closed the connection]
Ho is now known as yo61
sandelius has joined #ruby
dEPy has quit [Quit: (null)]
jcromartie has joined #ruby
rocknrollmarc has joined #ruby
<hanmac1> maasha: i dont know it might be not recent enough imo
<ta> cat passphrase.enc | base64 ?
<ta> whoops
<catphish_> looks like i need SSL_CTX_set_tlsext_servername_callback
tkuchiki has joined #ruby
shay- has joined #ruby
<shay-> hi using REXML, how can I use get all elementy by attribute with a wildcard? "//name[@id='hei*]'", does not work :(
strixd has quit [Quit: 500]
<maasha> shay-: ' looks funny
jottr_ has joined #ruby
<jhass> shay-: xpath doesn't support wildcards there afaik
<jhass> so you can't
<jhass> with nokogiri you can register custom functions however, which would enable you to do it
<jhass> no idea if rexml provides a similar facility
rocknrollmarc has quit [Ping timeout: 250 seconds]
<shay-> ok, damn^^ thank you
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
doodlehaus has joined #ruby
aclearman037 has joined #ruby
<jhass> shay-: oh, there's also the starts-with function in the xpath standard iirc, maybe that's enough for you already
techsethi_ has quit [Quit: techsethi_]
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
aclearman037 has quit [Client Quit]
jottr_ has quit [Ping timeout: 272 seconds]
rismoney1 has quit [Ping timeout: 252 seconds]
charliesome has quit [Quit: zzz]
mengu has quit [Remote host closed the connection]
joonty has quit [Quit: joonty]
<shay-> jhass: oh thats nice i'll give it a look
doodlehaus has quit [Remote host closed the connection]
olivier_bK has joined #ruby
Macaveli has joined #ruby
aryaching has joined #ruby
strixd has joined #ruby
AlecTaylor has quit [Quit: Leaving]
rocknrollmarc has joined #ruby
blackmes1 has quit [Ping timeout: 256 seconds]
anarang has joined #ruby
blackmes1 has joined #ruby
toretore has quit [Ping timeout: 252 seconds]
juanpaucar has joined #ruby
SouL has quit [Ping timeout: 245 seconds]
m8 has joined #ruby
ismaelga has joined #ruby
nettoweb has joined #ruby
dstarh has joined #ruby
paulfm has joined #ruby
ferr has joined #ruby
indianboy42 has joined #ruby
rwsq1 has quit [Quit: Leaving]
rocknrollmarc has quit [Max SendQ exceeded]
ferr has quit [Client Quit]
ismaelga has quit [Ping timeout: 250 seconds]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
ferr has joined #ruby
ghostpl_ has joined #ruby
rocknrollmarc has joined #ruby
davejacobs has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
rocknrollmarc has quit [Max SendQ exceeded]
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
Parker0 has joined #ruby
Parker0 has quit [Client Quit]
rocknrollmarc has joined #ruby
lanemeyer has joined #ruby
nettoweb_ has joined #ruby
Parker0 has joined #ruby
polysics has joined #ruby
cyberfab007 has quit [Remote host closed the connection]
toretore has joined #ruby
davejacobs has quit [Ping timeout: 246 seconds]
rismoney1 has joined #ruby
Takle has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
tier has joined #ruby
ghostpl_ has quit [Remote host closed the connection]
nettoweb has quit [Ping timeout: 264 seconds]
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
rocknrollmarc has joined #ruby
shay- has quit [Remote host closed the connection]
rocknrollmarc has quit [Max SendQ exceeded]
lektrik has joined #ruby
gluten_hell has joined #ruby
Takle has quit [Ping timeout: 246 seconds]
rismoney1 has quit [Ping timeout: 272 seconds]
codeurge has joined #ruby
root2 has joined #ruby
sinkensa_ has joined #ruby
ych4k3r has joined #ruby
AlexRussia has quit [Ping timeout: 264 seconds]
silkfox has joined #ruby
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
rocknrollmarc has joined #ruby
gr33n7007h has quit [Ping timeout: 250 seconds]
spyderma_ has joined #ruby
aclearman037 has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
sinkensabe has quit [Ping timeout: 256 seconds]
sinkensabe has joined #ruby
SOLDIERz has joined #ruby
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
spyderman4g63 has quit [Ping timeout: 256 seconds]
rbennacer has joined #ruby
DaniG2k has quit [Ping timeout: 246 seconds]
it0a has joined #ruby
sinkensa_ has quit [Ping timeout: 250 seconds]
zcreative has joined #ruby
sinkensabe has quit [Remote host closed the connection]
allcentury has quit [Ping timeout: 246 seconds]
joonty has joined #ruby
sinkensabe has joined #ruby
Takle has joined #ruby
olivier_bK has quit [Ping timeout: 272 seconds]
HOrangeJewce has joined #ruby
triple_b has joined #ruby
Guest36216 has joined #ruby
n008f4g_ has joined #ruby
rocknrollmarc has joined #ruby
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jonr22 has joined #ruby
mjuszczak has joined #ruby
root2 has quit [Quit: WeeChat 0.3.8]
JDiPierro has joined #ruby
jcromartie has joined #ruby
jcromartie has quit [Max SendQ exceeded]
gr33n7007h has joined #ruby
enebo has joined #ruby
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has quit [Remote host closed the connection]
jcromartie has joined #ruby
sambao21 has joined #ruby
jlebrech has joined #ruby
Guest36216 has quit [Ping timeout: 250 seconds]
sankaber has joined #ruby
Waheedi has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
jonr22 has quit [Ping timeout: 264 seconds]
<avril14th> I would like to have a class constant SOME_CONSTANT be set by a code, how do I write that best?
<avril14th> with a begin / end block?
livathin_ has joined #ruby
jottr_ has joined #ruby
<jlebrech> [{a:1, b:3, c:'a'},{a:1, b:3, c:'a'}], how can i sum up the keys and return {a: 2, b:3, c: 'a'} as a one liner?
<avril14th> well
<avril14th> frm your code
<avril14th> [{a:1, b:3, c:'a'},{a:1, b:3, c:'a'}].first
skar has joined #ruby
<centrx> jlebrech, question doesn't make sense
<centrx> avril14th, It's a constant, not supposed to be "set by a code"? What do you mean by that
<skar> hi, i've got a bunch of custom network calls that i have to make. how do i make them in parallel using a fiber or eventmachine synchrony?
maasha has quit [Ping timeout: 246 seconds]
aryaching has quit [Ping timeout: 245 seconds]
<skar> let's say i've got 4 functions, func1, func2, func3, func4, and all 4 can be called in parallel. how do i do that in the caller function?
<hanmac1> jlebrech: why b and c not summed?
last_staff has quit [Ping timeout: 252 seconds]
<jlebrech> hanmac1: typo
mengu has joined #ruby
<hanmac1> jlebrech:
<hanmac1> >> [{a:1, b:3, c:'a'},{a:1, b:3, c:'a'}].inject({}){|a,b| a.merge!(b) {|_,x,y| x + y} }
<eval-in> hanmac1 => {:a=>2, :b=>6, :c=>"aa"} (https://eval.in/294087)
arup_r has quit []
livathinos has quit [Ping timeout: 264 seconds]
<avril14th> skar: threads?
<jlebrech> hanmac1: niiice :)
<avril14th> centrx: updated the gist
<centrx> avril14th, That should technically work with a warning, but I would make a custom class for the include, then you can put it on one line
<avril14th> k
<avril14th> I'll make a class method with a class instance variable as cache
sinkensabe has quit [Read error: Connection reset by peer]
<avril14th> looks better :)
mjuszczak has quit []
<avril14th> but its not
<waxjar> you can also use merge with a block
<waxjar> >> {a:1, b:3, c:'a'}.merge({a:1, b:3, c:'a'}) { |k, old, new| old + new }
<eval-in> waxjar => {:a=>2, :b=>6, :c=>"aa"} (https://eval.in/294098)
<waxjar> *just use
agarie has joined #ruby
<jlebrech> waxjar: it won't just be two items in the array
rocknrollmarc has joined #ruby
<jlebrech> i also only want to merge integers
rocknrollmarc has quit [Max SendQ exceeded]
Guest15 has joined #ruby
rocknrollmarc has joined #ruby
dblessing has joined #ruby
<waxjar> ah, fair enough :)
dcarmich has joined #ruby
zenith_ has joined #ruby
sivsushruth has quit [Ping timeout: 256 seconds]
rocknrollmarc has quit [Max SendQ exceeded]
Hirzu_ has joined #ruby
sinkensabe has joined #ruby
allcentury has joined #ruby
bbclover has joined #ruby
<bbclover> hey guys, so is ruby on rails jsut a web framework written in ruby?
<bbclover> Is it like synonymous with using say jquery, to use jquery well, you should know javascript?
<avril14th> yes it's recommanded
<avril14th> you have #rubyonrails for rails question, ruby ones come here
juanpablo_ has joined #ruby
<bbclover> is it the greatest?
<avril14th> but most people start using rails without extensive experience / knowledge of ruby
<centrx> jQuery is much more standard for JavaScript
<centrx> Rails is just popular and good
Guest36216 has joined #ruby
RegulationD has joined #ruby
IrishGringo has joined #ruby
<centrx> bbclover, Sinatra is another major Ruby web framework. Sequel is another major Ruby ORM
zenith_ has quit [Remote host closed the connection]
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
AlecTaylor has joined #ruby
<AlecTaylor> hi
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
aclearman037 has joined #ruby
<AlecTaylor> How do I create a circular array in Ruby? - I.e.: [1,2,3,4,5][6] should equal 2
<AlecTaylor> Oh wait, it's just idx%array.length >.<
<mikecmpbll> :)
rbennacer has quit [Remote host closed the connection]
sivsushruth has joined #ruby
sevenseacat has quit [Remote host closed the connection]
rocknrollmarc has joined #ruby
<AlecTaylor> centrx: Cheers, but already figured out solution
rocknrollmarc has quit [Max SendQ exceeded]
agarie has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 264 seconds]
<hanmac1> AlecTaylor:
<hanmac1> >> [1,2,3,4,5].cycle.take(6).last
<eval-in> hanmac1 => 1 (https://eval.in/294111)
<AlecTaylor> hanmac1: Is that more efficient than mod? - Or equiv?
triple_b_ has joined #ruby
<hanmac1> hm probably not
<AlecTaylor> ya
jerius has joined #ruby
juanpaucar has quit [Remote host closed the connection]
triple_b has quit [Ping timeout: 246 seconds]
juanpaucar has joined #ruby
rkmylo has quit []
Guest123 has joined #ruby
mostlybadfly has joined #ruby
<bbclover> centrx: is rails an ORM?
lxsameer has quit [Quit: Leaving]
commmmodo has joined #ruby
doodlehaus has joined #ruby
IrishGringo has quit [Ping timeout: 265 seconds]
<avril14th> bbclover: no
jenrzzz has joined #ruby
davidhq has joined #ruby
<avril14th> bbclover: activerecord is and is used by rails if you want it so. Other options are mongoid but instance
strixd has quit [Quit: 500]
DaniG2k has joined #ruby
Mon_Ouie has joined #ruby
zenith_ has joined #ruby
kobain has joined #ruby
<hanmac1> bbclover: just keep in mind that ruby is much more than only rails, and we will all still be your friends ;P
<avril14th> ahah
rocknrollmarc has joined #ruby
casadei has joined #ruby
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
<bbclover> thanks ha
kobain has quit [Max SendQ exceeded]
jenrzzz has quit [Ping timeout: 256 seconds]
<Hirzu_> I've been doing ruby for more than 2 years and havent even tried Rails :)
<mikecmpbll> you heretic.
JimmyNeutron has quit [Ping timeout: 252 seconds]
sinkensabe has quit [Remote host closed the connection]
<Hirzu_> Sinatra is quite for my purposes
<mikecmpbll> :)
<canton7> and if sinatra's not enough, there's always padrino
<AlecTaylor> Sinatra is nice. But everyone has stolen its design
JimmyNeutron has joined #ruby
<AlecTaylor> (and yes, I mean everyone from Haskell to Python)
<Hirzu_> That is not bad thing at all
<canton7> even java's getting there. slowly.
<AlecTaylor> Quite the opposite
<mikecmpbll> you mean .. mvc? i don't think sinatra invented mvc :p
<canton7> *that's* saying something
<Hirzu_> we can always lure Node.js developers to switch to Ruby :)
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<AlecTaylor> canton7: Java is horrible
<AlecTaylor> The JVM is horrible
<canton7> no, as in the micro-framework
<canton7> AlecTaylor, I work in java. No need to tell me
catphish_ has left #ruby ["Leaving"]
* wasamasa still finds it amusing that flask has better docs than sinatra
<AlecTaylor> xD
<bhaak> ha, if it were not for Java, you probably be working in C++
<AlecTaylor> wasamasa: I use Bottle but am looking at rewriting it on Twisted or Tornado
<bhaak> so be grateful!
axisys has quit [Remote host closed the connection]
lordkryss has quit [Quit: Connection closed for inactivity]
strixd has joined #ruby
<AlecTaylor> bhaak: C++ is still better than Java
<wasamasa> AlecTaylor: I consider stealing the rack idea and porting it to scheme
<bhaak> AlecTaylor: haha, no.
<Hirzu_> I also work with Scala and used to do lot of Java. C++ , I'm glad it's past for me
<AlecTaylor> bhaak: I code C++ and have very few issues with it
fgo has quit [Ping timeout: 265 seconds]
<wasamasa> AlecTaylor: clojure people seem to do pretty well with their rendition of it
<jlebrech> i have an issue with pry, when I try to print out a var such as "foobar" i get errors like "undefined local variable or method 'ooba'"
<Hirzu_> Scalatra is nice Scala frame for Sinatra developer
Rapier- has joined #ruby
<AlecTaylor> wasamasa: Scheme does have a nice syntax. Clojure and Scala have nice ideas also. Would be nice to see them implemented on the LLVM though
<bhaak> AlecTaylor: then I see what your problem with Java is. C++ and Java need quite a different mindset
* AlecTaylor recalls a masters project that ported Scala to LLVM
<wasamasa> AlecTaylor: well, there's clasp
<wasamasa> AlecTaylor: which is a CL implementation using llvm and sporting C++ integration
mitchellhenke has joined #ruby
<AlecTaylor> bhaak: It's overly verbose, hard to optimise (slow). Also its garbage collection is [still] a joke
rocknrollmarc has joined #ruby
<AlecTaylor> wasamasa: CL = clojure?
rocknrollmarc has quit [Max SendQ exceeded]
<wasamasa> AlecTaylor: common lisp
<AlecTaylor> wasamasa: Ahh
mitchellhenke has quit [Client Quit]
<AlecTaylor> wasamasa: Haskell with GHC is quite nifty
<wasamasa> but the scheme guys have won me over, so that's why I'm learning CHICKEN
<wasamasa> compiling to C is good enough for me
<AlecTaylor> Pfft, compiling to IR is so much better
<AlecTaylor> Anyway, had better head off before the clock switches to 2AM. Laters
rekky has quit []
sinkensabe has joined #ruby
nii236 has joined #ruby
dANO__ has joined #ruby
dANO__ has quit [Client Quit]
sandelius has joined #ruby
jottr_ has quit [Read error: Connection reset by peer]
slawrence00 has joined #ruby
jottr_ has joined #ruby
AlecTaylor has quit [Quit: Leaving]
zcreative has quit [Quit: (null)]
agarie has joined #ruby
nii236 has quit [Client Quit]
werelivinginthef has joined #ruby
adriancb has joined #ruby
blackmes1 has quit [Ping timeout: 250 seconds]
ismaelga has joined #ruby
jcromartie has quit [Ping timeout: 246 seconds]
HOrangeJewce has left #ruby [#ruby]
_honning_ has quit [Remote host closed the connection]
govg has joined #ruby
jottr has joined #ruby
juanpaucar has quit [Remote host closed the connection]
kobain has joined #ruby
tunaCanBruh has joined #ruby
hiyosi has joined #ruby
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
juanpaucar has joined #ruby
kobain has quit [Max SendQ exceeded]
bbclover has left #ruby [#ruby]
jottr_ has quit [Ping timeout: 252 seconds]
kobain has joined #ruby
lanemeyer has quit []
rekky has joined #ruby
rocknrollmarc has joined #ruby
neonalpine has joined #ruby
jcromartie has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
baroquebobcat has joined #ruby
vtunka has quit [Quit: Leaving]
kobain has quit [Max SendQ exceeded]
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
kobain has joined #ruby
RegulationD has joined #ruby
ismaelga has quit [Remote host closed the connection]
lanemeyer has joined #ruby
ismaelga has joined #ruby
ismaelga has quit [Read error: Connection reset by peer]
ismaelga has joined #ruby
jcromartie has quit [Read error: Connection reset by peer]
jcromart_ has joined #ruby
jlast has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
paulfm has quit [Quit: Zzzzz...]
sinkensabe has quit [Read error: Connection reset by peer]
kortes has joined #ruby
<kortes> test
agarie has quit [Remote host closed the connection]
jenrzzz has joined #ruby
cpt_yossarian has joined #ruby
sanguisdex has quit [Quit: Leaving.]
kortes has left #ruby [#ruby]
sambao21 has quit [Quit: Computer has gone to sleep.]
mistermo_ has joined #ruby
dumdedum has quit [Quit: foo]
Guest36216 has quit [Quit: WeeChat 1.0.1]
rbennacer has joined #ruby
kortes has joined #ruby
topolinux has joined #ruby
rbennacer has quit [Remote host closed the connection]
paulfm has joined #ruby
razieliyo has joined #ruby
rbennacer has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
rbennacer has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 252 seconds]
dumdedum has joined #ruby
rbennacer has joined #ruby
sanguisdex has joined #ruby
max96at|off is now known as max96at
rageberry has quit [Quit: WeeChat 1.1.1]
rageberry has joined #ruby
hs366 has quit [Quit: Leaving]
workmad3 has quit [Ping timeout: 256 seconds]
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest15 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rocknrollmarc has joined #ruby
rorra has joined #ruby
kortes has quit [Quit: Page closed]
zenith_ has quit [Read error: Connection reset by peer]
zenith_ has joined #ruby
zorak8 has joined #ruby
byprdct has joined #ruby
StoneCypherAW has joined #ruby
kortes has joined #ruby
govg has quit [Quit: leaving]
codeurge has joined #ruby
govg has joined #ruby
<kortes> test
<apeiros_> test failed. please reboot your computer.
<kortes> jajaja
livathin_ has quit [Remote host closed the connection]
SOLDIERz has quit [Quit: Be back later ...]
codeurge has quit [Client Quit]
vtunka has joined #ruby
neonalpine has quit []
iamjarvo has joined #ruby
codeurge has joined #ruby
cassianoleal has joined #ruby
agarie has joined #ruby
multi_io_ is now known as multi_io
flip_digits has joined #ruby
Guest15 has joined #ruby
jhwhite has joined #ruby
ferr has quit [Quit: WeeChat 1.1.1]
oki has quit [Ping timeout: 264 seconds]
davejacobs has joined #ruby
freerobby has joined #ruby
fantazo has quit [Ping timeout: 250 seconds]
paulfm has quit [Quit: Zzzzz...]
fuhgeddaboudit has joined #ruby
startupality has joined #ruby
kortes has quit []
davejacobs has quit [Ping timeout: 245 seconds]
rageberry has quit [Quit: WeeChat 1.1.1]
fuhgeddaboudit has quit [Client Quit]
rageberry has joined #ruby
fuhgeddaboudit has joined #ruby
jshultz has joined #ruby
_blizzy_ has quit [Ping timeout: 246 seconds]
paulfm has joined #ruby
Takle has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
fryguy9 has joined #ruby
rdark has quit [Ping timeout: 240 seconds]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
Akuma has joined #ruby
fuhgeddaboudit has quit [Client Quit]
troulouliou_dev has joined #ruby
root2 has joined #ruby
Takle has joined #ruby
gr33n7007h has quit [Ping timeout: 246 seconds]
mistermo_ has quit [Ping timeout: 240 seconds]
rageberry has quit [Quit: WeeChat 1.1.1]
Hirzu_ has quit [Ping timeout: 265 seconds]
rageberry has joined #ruby
schaerli has quit [Ping timeout: 256 seconds]
agrinb has joined #ruby
Akuma has quit [Ping timeout: 256 seconds]
jcromart_ has quit [Ping timeout: 256 seconds]
mistermocha has joined #ruby
rikai has quit [Ping timeout: 250 seconds]
lolmaus has quit [Quit: Konversation terminated!]
fantazo has joined #ruby
hanmac1 has quit [Quit: Leaving.]
jobewan has joined #ruby
brb3 has quit [Quit: ZZZzzz…]
fgo has joined #ruby
rdark has joined #ruby
tesuji has quit [Ping timeout: 240 seconds]
duggiefresh has joined #ruby
brb3 has joined #ruby
Akuma has joined #ruby
jcromartie has joined #ruby
Waheedi has quit [Quit: Waheedi]
amundj has quit [Ping timeout: 272 seconds]
mistermocha has quit [Remote host closed the connection]
agarie has quit [Remote host closed the connection]
rikai has joined #ruby
jtdowney has joined #ruby
rageberry has quit [Quit: WeeChat 1.1.1]
DEA7TH has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
rageberry has joined #ruby
axl_ has joined #ruby
sambao21 has joined #ruby
skelterjohn has joined #ruby
Nick_ZWG has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
<skelterjohn> hey - having some trouble building ruby from head. the github project's readme indicates a configure/make dance, but there's no configure file
<centrx> skelterjohn, probably run autoconf
<centrx> to generate the configure
<skelterjohn> ah, yeah and the page does say that now that i read more carefully
<skelterjohn> thanks
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonr22 has joined #ruby
w0rldmaker has joined #ruby
Nick_ZWG has left #ruby [#ruby]
blizzy has joined #ruby
Barrayar has joined #ruby
rdark has quit [Quit: leaving]
skar has quit [Ping timeout: 246 seconds]
jonr22 has quit [Ping timeout: 256 seconds]
shellfu_afk is now known as shellfu
tjohnson has joined #ruby
willharrison has joined #ruby
dumdedum has quit [Quit: foo]
AlexRussia has joined #ruby
oleo has joined #ruby
neonalpine has joined #ruby
bal has quit [Quit: bal]
jhwhite has quit [Quit: leaving]
mistermocha has joined #ruby
jhwhite has joined #ruby
oleo has quit [Read error: Connection reset by peer]
oleo__ has quit [Ping timeout: 246 seconds]
oleo has joined #ruby
byprdct has quit [Ping timeout: 255 seconds]
michael_mbp has quit [Excess Flood]
momomomomo has joined #ruby
michael_mbp has joined #ruby
OrbitalKitten has joined #ruby
wallerdev has joined #ruby
_honning_ has joined #ruby
aganov has quit [Quit: Leaving]
zenith_ has quit [Ping timeout: 244 seconds]
mloveless has joined #ruby
crueber has joined #ruby
ghostbox has quit []
riotjones has quit [Remote host closed the connection]
aspiers has joined #ruby
lordkryss has joined #ruby
oki has joined #ruby
ki0 has quit [Ping timeout: 246 seconds]
gluten_hell has quit [Quit: Computer has gone to sleep.]
maximski has quit []
olivier_bK has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
claw___ has quit [Ping timeout: 246 seconds]
claw has joined #ruby
thousandwich has joined #ruby
zenith_ has joined #ruby
avril14th has quit [Remote host closed the connection]
andikr has quit [Remote host closed the connection]
oki has quit [Ping timeout: 245 seconds]
pandaant has joined #ruby
ghr has quit [Read error: No route to host]
Takle has quit [Remote host closed the connection]
ghr has joined #ruby
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
rdark has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
plashchynski has joined #ruby
rocknrollmarc has quit [Ping timeout: 240 seconds]
Takle has joined #ruby
arup_r has joined #ruby
roshanavand has joined #ruby
mikepack has joined #ruby
ismaelga has quit [Remote host closed the connection]
StoneCypherAW has quit [Ping timeout: 265 seconds]
livathinos has joined #ruby
Juanchito has quit [Quit: Connection closed for inactivity]
livathinos has quit [Remote host closed the connection]
jlebrech has quit [Remote host closed the connection]
ismaelga has joined #ruby
n008f4g_ has quit [Ping timeout: 250 seconds]
zenith_ has quit [Ping timeout: 264 seconds]
arclitgold has joined #ruby
<arclitgold> hi all!
ferr has joined #ruby
vtunka has quit [Quit: Leaving]
olivier_bK has quit [Ping timeout: 272 seconds]
mary5030 has joined #ruby
zenith_ has joined #ruby
<centrx> hi
vtunka has joined #ruby
rocknrollmarc has joined #ruby
gsd has joined #ruby
DaniG2k has quit [Quit: leaving]
Guest15 has quit [Read error: Connection reset by peer]
w0rldmaker has quit [Ping timeout: 246 seconds]
ismaelga has quit [Remote host closed the connection]
fabrice31 has quit [Remote host closed the connection]
Barrayar has quit [Ping timeout: 245 seconds]
aswen has quit [Ping timeout: 245 seconds]
ismaelga has joined #ruby
fabrice31 has joined #ruby
<arup_r> o/
Pharaoh2 has joined #ruby
bMalum has joined #ruby
<arclitgold> bit of a newb question.... can't seem to google the right answer
sambao21 has quit [Quit: Computer has gone to sleep.]
CustosLimen has quit [Ping timeout: 244 seconds]
<arclitgold> i'm dropping a few ruby scripts onto some servers that don't have any ruby installed by default. i'm able to install ruby 1.9 from teh repos
<arclitgold> and my understanding is that ruby1.9 includes rubygems and json gem
sambao21 has joined #ruby
tercenya has quit [Read error: Connection reset by peer]
ismaelga has quit [Remote host closed the connection]
<arclitgold> yet when trying to require 'json' - i'm getting the "cannot load such file -- json"
<arup_r> open irb
<arclitgold> k
<arup_r> do require 'rubygems'
alex88 has quit [Remote host closed the connection]
<arup_r> if it says false
<arup_r> it is there
<arclitgold> is says false
w0rldmaker has joined #ruby
fabrice31 has quit [Ping timeout: 252 seconds]
<arup_r> well you have it then
<arup_r> now do
<arup_r> require 'json'
<arclitgold> yikes - LoadError: cannot load such file -- json
sambao21 has quit [Client Quit]
plashchynski has quit [Quit: plashchynski]
sigurding has quit [Quit: sigurding]
<centrx> JSON is in stdlib so shouldn't require a gem
<arclitgold> hm
oki has joined #ruby
<arup_r> exit irb
<arclitgold> k
<arup_r> do ruby -v
sambao21 has joined #ruby
withnale__ has quit [Ping timeout: 246 seconds]
<arclitgold> ruby 1.9.3p0
rekky has quit [Remote host closed the connection]
<arup_r> then you should have json shipped with ruby stdlib
bricker has joined #ruby
<arclitgold> hm
jobewan has quit [Ping timeout: 250 seconds]
workmad3 has joined #ruby
<arclitgold> odd
terlar has quit [Ping timeout: 252 seconds]
<arclitgold> so do I not need to "require" it in the script?
rageberry has quit [Quit: WeeChat 1.1.1]
<centrx> require 'json' should work
<centrx> >> require 'json'; JSON.parse('{}')
<eval-in> centrx => {} (https://eval.in/294154)
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<arup_r> arclitgold: you have to
<arup_r> require anything you want to use out side of core ruby
senayar_ has joined #ruby
rocknrollmarc has quit [Ping timeout: 256 seconds]
plashchynski has joined #ruby
<arclitgold> makes sense
<arclitgold> that's why I have the require in there
DrShoggoth has joined #ruby
rekky has joined #ruby
<arclitgold> just can't get past that LoadError for some reason
<arup_r> humm
elaptics is now known as elaptics_away
senayar_ has quit [Client Quit]
ismaelga has joined #ruby
senayar has quit [Ping timeout: 245 seconds]
bweston92 has quit [Quit: Leaving]
dru has joined #ruby
tvw has quit [Remote host closed the connection]
gluten_hell has joined #ruby
rhg135|zzz has quit [Ping timeout: 264 seconds]
rageberry has joined #ruby
sinkensabe has joined #ruby
rekky has quit [Ping timeout: 264 seconds]
sinkensabe has quit [Remote host closed the connection]
<arclitgold> can't figure it out!! path issue maybe?
baroquebobcat has joined #ruby
<centrx> arclitgold, does it work in irb, require 'json
<vvivv> try learn php
StoneCypherAW has joined #ruby
Crisix has joined #ruby
Crisix has quit [Max SendQ exceeded]
jrd is now known as jrdnull
Megtastique has joined #ruby
einarj has quit [Remote host closed the connection]
dpritchett has joined #ruby
<jhass> vvivv: uh, have seen better attempts, try again
dpritchett has left #ruby [#ruby]
<arclitgold> centrx: nope, doesn't work in irb either
<arclitgold> same LoadError
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rageberry has quit [Quit: WeeChat 1.1.1]
rageberry has joined #ruby
Waheedi has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
<arclitgold> seems crazy to me :S
Takle__ has joined #ruby
davedev24_ has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
deol has joined #ruby
fantazo has quit [Quit: Verlassend]
chipotle has joined #ruby
dfinninger has joined #ruby
Takle has quit [Ping timeout: 252 seconds]
tmtwd has joined #ruby
<vvivv> jhass do u think newb who does not want to spend 2 h to open start doc page will be a good coder?
bayed has quit [Quit: Connection closed for inactivity]
strixd has quit [Quit: 500]
alex88 has joined #ruby
<ph8> hi all
mikecmpbll has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
rekky has joined #ruby
<ph8> i've installed ruby 2.0.0 with rvm, and i tried to run 'bundle install' on the project i'm setting up. It's not in my $PATH which is weird, even after i've opened a new machine - i'm not sure it's on the system. Is that how you'd expect to interact with bundle via rvm?
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
jaequery has joined #ruby
<marahin> ph8: maybe 'gem install bundle' first? :)
jaequery has quit [Max SendQ exceeded]
oki has quit [Ping timeout: 246 seconds]
Pharaoh2_ has joined #ruby
jaequery has joined #ruby
sambao21 has joined #ruby
devbug has joined #ruby
Lildirt has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
iamjarvo has joined #ruby
shredding has joined #ruby
Pharaoh2 has quit [Ping timeout: 246 seconds]
lolmaus has joined #ruby
bMalum has quit [Quit: bMalum]
evangeline__ has joined #ruby
jottr has joined #ruby
Hijiri has quit [Quit: WeeChat 1.0.1]
<evangeline__> hi, when trying to run god script, I get an ugly stacktrace: http://dpaste.com/16NRKB0 any ideas how to solve it; I've set the current ruby verstion to 1.9.3 with " rvm --default use ruby-1.9.3-p448" ...?
<jhass> vvivv: no, coding requires a lot of patience
Lildirt has joined #ruby
momomomomo has quit [Quit: momomomomo]
werelivinginthef has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
Lildirt has quit [Remote host closed the connection]
<apeiros_> evangeline__: segmentation fault is indeed ugly. I'd try at least the newest patch level of 1.9.3 (p551)
<ph8> marahin, gem cannot be found also :-o
Lildirt has joined #ruby
<apeiros_> but you should consider moving to a still maintained version of ruby. 1.9.3 is old.
<ph8> ruby -v works
michael_mbp has joined #ruby
<jhass> apeiros_: evangeline__ -p643
bradleyprice has joined #ruby
ob-sed has joined #ruby
iamjarvo has quit [Client Quit]
<apeiros_> oh
Takle__ has quit [Remote host closed the connection]
<apeiros_> I guess I should update my rvm
<jhass> apeiros_: evangeline__ arg, disregard me
<marahin> ph8: have you ran the command that rvm gives after installation is complete? IIRC you'd have to copy it into your ~/.profile or ~/.bashrc
<ob-sed> yo ruby on rails got CSRF tokens in the URL ?
zenith_ has quit [Ping timeout: 272 seconds]
rbennacer has quit [Remote host closed the connection]
* apeiros_ disregards jhass
<ph8> almost definitely not :)
riotjones has quit [Ping timeout: 252 seconds]
<apeiros_> ob-sed: only if you do something seriously wrong
<apeiros_> ob-sed: but rails is over in #rubyonrails - registered nickname required
<jhass> vvivv: that said, said patience can develop from trying it out and having fun doing that
Pharaoh2_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zzing has joined #ruby
joonty has quit [Quit: joonty]
zenith_ has joined #ruby
<apeiros_> sooo, soon those tiny little ships will fly around and shoot lasers at each other :D
allcentury has quit [Ping timeout: 244 seconds]
tkuchiki has quit [Remote host closed the connection]
CustosLimen has joined #ruby
tkuchiki has joined #ruby
mjuszczak has joined #ruby
lkba has joined #ruby
davidhq has joined #ruby
nahtnam has joined #ruby
Hobogrammer has joined #ruby
deric_skibotn has joined #ruby
Lildirt has quit [Read error: Connection reset by peer]
chinmay_dd_ has joined #ruby
rbennacer has joined #ruby
Waheedi_ has joined #ruby
GnuYawk has joined #ruby
Waheedi has quit [Ping timeout: 244 seconds]
Waheedi_ is now known as Waheedi
<shevy> guys
<shevy> I love you
zzing has quit [Ping timeout: 252 seconds]
crazydiamond has quit [Ping timeout: 250 seconds]
rocknrollmarc has joined #ruby
<workmad3> apeiros_: reg is off in #rubyonrails atm
tkuchiki has quit [Ping timeout: 265 seconds]
<shevy> YES
<shevy> LET'S INVADE AND TAKE OVER
<vvivv> shevy . are you girla?
<jhass> shevy: okay, see you there
<workmad3> shevy: yeah, do that... I've been wanting to put on my new hat in there :)
<shevy> vvivv nah, I am one of those poor ones with an average life expectancy -8 years :(
<shevy> jhass I chickened out, they seemed an alien people over there
<shevy> I don't even know what they are talking about
<workmad3> shevy: you didn't even stay long enough to see a chat :P
<shevy> I actually even struggle with sinatra
Takle has joined #ruby
<shevy> I know!
plashchynski has quit [Quit: plashchynski]
fryguy9 has quit [Quit: Leaving.]
willharrison has quit [Quit: Textual IRC Client: www.textualapp.com]
zzing has joined #ruby
<shevy> imagine they were to talk about me there
<shevy> "the shevy-noob joined and talked only rubbish"
mjuszcza_ has joined #ruby
<shevy> that's why I stay here
zenith_ has quit [Ping timeout: 250 seconds]
zenith__ has joined #ruby
<centrx> like a girl
<shevy> I learn new stuff every day... yesterday or say hanmac showed me that .. hmm .. >> 1 trick with Date I think
<workmad3> centrx: lets not be sexist ;)
havenwood has joined #ruby
<shevy> I forgot to note it down though... hanmac can you repeat that trick? this time I will note it down
<vvivv> what the trick?
<shevy> you can count with numbers and months vvivv
GaryOak_ has joined #ruby
<shevy> I think +1 is days, and >> is months
msgodf has quit [Ping timeout: 250 seconds]
<centrx> Learn How Shevy Got 1 Date With This One Weird Trick
<shevy> pfft just one
<workmad3> shevy: yeah >> on Date is month-shifting
<shevy> you gotta keep them all warm at the same time
<shevy> workmad3 ok let me try...
<evangeline__> apeiros, how can I install the latest version, manually ?
<workmad3> >> Date.today >> 1
<eval-in> workmad3 => uninitialized constant Date (NameError) ... (https://eval.in/294168)
<workmad3> heh
MatthewsFace has joined #ruby
<workmad3> >> require 'date'; Date.today >> 1
<eval-in> workmad3 => #<Date: 2015-03-27 ((2457109j,0s,0n),+0s,2299161j)> (https://eval.in/294169)
<shevy> x = Date.new; #<Date: -4712-01-01 ((0j,0s,0n),+0s,2299161j)>; x >> 3 # => #<Date: -4712-04-01 ((91j,0s,0n),+0s,2299161j)>
<shevy> indeed
<jhass> evangeline__: what OS?
mjuszczak has quit [Ping timeout: 250 seconds]
chinmay_dd_ is now known as chinmay_dd
rocknrollmarc has quit [Ping timeout: 264 seconds]
govg has quit [Ping timeout: 250 seconds]
maletor has joined #ruby
<evangeline__> jhass, debian
<shevy> evangeline__ are you able to compile from source too?
govg has joined #ruby
<shevy> wget ftp://ftp.ruby-lang.org/pub/ruby/2.2/ruby-2.2.0.tar.xz
<shevy> or perhaps try 2.1.5
lemur has joined #ruby
<evangeline__> shevy, yeah I can, but I don't prefer doing it on binary distributions
<shevy> tar xvfJ ruby*
<jhass> evangeline__: maybe the ubuntu brightbox packages work https://www.brightbox.com/docs/ruby/ubuntu/
<evangeline__> shevy, jhass why not rvm ?
<shevy> oh I am biased so I can not recommend rvm, jhass can :)
<jhass> your choice after all, RVM is fine too
<shevy> evangeline__ you can always compile into another prefix though; like /usr/local, or your home dir
<jhass> well, I do prefer packages when available personally
<shevy> cuz you are an archlinuxer
<evangeline__> I'm gentooist by heart, but don't want to compile manually on debian
plashchynski has joined #ruby
rocknrollmarc has joined #ruby
<jhass> ugh, only 2.1 even in sid
xcesariox has joined #ruby
polysics has quit [Remote host closed the connection]
xcesariox has quit [Max SendQ exceeded]
<shevy> uh oh
<shevy> debian is so slow
<centrx> it's just frozen before release
<shevy> but remember evangeline__ ! there is always the option to compile :)
commmmodo has quit [Read error: Connection reset by peer]
jobewan has joined #ruby
<shevy> what troubles me in gentoo is that portage is written in python
IrishGringo has joined #ruby
commmmodo has joined #ruby
<shevy> and dpkg in perl but perl is acceptable as one parent of ruby (ruby has lots of different parents)
<centrx> dpkg was originally written before Ruby came out
<havenwood> evangeline__: A Brightbox package, RVM, ruby-install/chruby or manual install or ruby-install to /usr/local/ are all good options.
jonr22 has joined #ruby
mistermocha has quit [Remote host closed the connection]
<havenwood> evangeline__: A threshold question for deciding would be whether you need to switch Rubies or not?
<shevy> centrx :(
rocknrollmarc has quit [Ping timeout: 244 seconds]
zenith__ has quit [Ping timeout: 245 seconds]
<centrx> Debian is ancient and wise!
rodfersou has quit [Remote host closed the connection]
agarie has joined #ruby
<shevy> evangeline__ use only one ruby for now, it makes everything much simpler!
alex88 has quit [Remote host closed the connection]
rodfersou has joined #ruby
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
danjordan has quit [Quit: danjordan]
werelivinginthef has joined #ruby
pietr0 has joined #ruby
davedev2_ has joined #ruby
davedev24_ has quit [Ping timeout: 256 seconds]
lemur has quit [Remote host closed the connection]
lemur has joined #ruby
<apeiros_> evangeline__: sorry, was afk. problem solved?
jonr22 has quit [Ping timeout: 265 seconds]
aphprentice has quit [Remote host closed the connection]
w0rldmaker has quit [Ping timeout: 245 seconds]
aphprentice has joined #ruby
blackmes1 has joined #ruby
Barrayar has joined #ruby
mengu has quit []
xcesariox has joined #ruby
stef204 has joined #ruby
rocknrollmarc has joined #ruby
lemur has quit [Ping timeout: 272 seconds]
alex88 has joined #ruby
mikecmpbll has joined #ruby
cpt_yossarian has quit [Ping timeout: 264 seconds]
<skelterjohn> anyone know what might be going wrong here? http://pastebin.com/eupSV4RX
kalusn has quit [Remote host closed the connection]
juanpaucar has quit [Remote host closed the connection]
<skelterjohn> i'm building from source, checked out the github repo at various versions, including head and v2_0_0_rc2
<centrx> skelterjohn, maybe a gem requires the 'openssl' binary to be installed on your system?
bMalum has joined #ruby
jespada has quit [Read error: Connection reset by peer]
<skelterjohn> my system has it
<workmad3> skelterjohn: looks like your ruby install doesn't have the openssl component of the stdlib compiled
<skelterjohn> workmad3: do you know how to make that happen? I built via "autoconf;./configure;make install"
<workmad3> skelterjohn: if that didn't build openssl, it probably means you don't have the openssl dev package installed
<skelterjohn> ok, i'll investigate that, thanks
w0rldmaker has joined #ruby
<shevy> skelterjohn once you have openssl headers, you can recompile in the ext/ssl subdirectory
<shevy> sorry
<shevy> it is ext/openssl directory
mistermocha has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
ndrei_ has quit [Ping timeout: 244 seconds]
dfinninger has quit [Remote host closed the connection]
reinaldob has quit [Remote host closed the connection]
<n1lo> Hi folks, I have an array with objects and I want to search for a specified value in that array with method should I use ? I tried: my_array {|x| return x.value if x.name == "myName" } but doesn''t work..
<skelterjohn> workmad3: i see a libssl-dev package, trying that in hopes that it provides openssl headers
allcentury has joined #ruby
<n1lo> nevermind, i got it.. select. +_+
<skelterjohn> shevy: libssl-dev doesn't seem to make a difference, and "make" in ext/openssl doesn't appear to do much
zz_olivierrr is now known as olivierrr
teddyp1cker has quit [Ping timeout: 245 seconds]
wallerdev has quit [Quit: wallerdev]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
jtdowney has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamjarvo has joined #ruby
<shevy> skelterjohn nono
rhllor has joined #ruby
dj_zubehoer has joined #ruby
dj_zubehoer has quit [Client Quit]
<skelterjohn> i also reran the configure-make dance from root
<shevy> skelterjohn have you tried to run "ruby extconf.rb" there?
<shevy> aha ok
<skelterjohn> i can try that too
<shevy> then the ext/openssl part was also run
<skelterjohn> ok
<shevy> no I think that is pointless, you already tried anew; but surely you must have another error now?
teddyp1cker has joined #ruby
rbennacer has quit [Remote host closed the connection]
<skelterjohn> running 'ruby extconf.rb && make install' lets me see a different error with gem update, thanks :)
iceden|2 has joined #ruby
Hijiri has joined #ruby
iceden|2 is now known as iceden
dj_zubehoer has joined #ruby
Takle has quit [Remote host closed the connection]
<skelterjohn> now zlib, but i have a better idea of how to track things down now
<shevy> ah great
<shevy> zlib is much simpler to get working
<arclitgold> if json is now in the stdlib you still have to require it... where does it expect the json.rb file to file?
<arclitgold> thinking I'm having a path issue
<shevy> I always had the most difficulty with openssl, on debian based machines
<arclitgold> or dependency issue?
<shevy> arclitgold it must be logical
rbennacer has joined #ruby
<shevy> require 'json' must look at json.rb file in site dir
<shevy> now you only have to find out where your site dir is
dj_zubehoer has quit [Client Quit]
oki has joined #ruby
Soda has joined #ruby
<arclitgold> shevy: how can I do that?
<shevy> on my system it is /usr/lib/ruby/2.1.0/
<shevy> not sure... hmm
<arclitgold> ah ok
<shevy> gems may also reside in an extra location
<shevy> though you are right, for json.rb this won't apply
<shevy> /usr/lib/ruby/2.1.0/json.rb
<shevy> here it is for me
<nettoweb_> guys I tried to use bumbler gem but I could not so I remove from my project but when I try to rake routes, I always get this warning: .rvm/gems/ruby-1.9.3-p448/bin/rake:in `require': cannot load such file -- bumbler/go (LoadError)
<nettoweb_> could someone help me with this?
<arclitgold> shevy: let me give that a look
<shevy> \o/
<shevy> arclitgold at the worst, you can always run a global find
<shevy> or, updatedb; locate json.rb
<shevy> but I think it must be in /usr/lib/ruby or /usr/local/lib/ruby
jhwhite has left #ruby [#ruby]
<jhass> nettoweb_: is that the full error output? make a gist with it if not
<nettoweb_> jhass just /Users/netto/.rvm/gems/ruby-1.9.3-p448/bin/rake:in `require': cannot load such file -- bumbler/go (LoadError)
Guest65 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<arclitgold> shevy: not in /usr/lib64/ruby/1.9
<jhass> nettoweb_: what's in your Rakefile?
tkuchiki has joined #ruby
tvw has joined #ruby
xcesariox has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> arclitgold hmm 1.9?
<nettoweb_> jhass I think is because I run export RUBYOPT=-rbumbler/go but now I cant remove because Im using YADR and I dont know where it's located.
triple_b_ has quit [Ping timeout: 264 seconds]
<shevy> I am on 2.1.5
<arclitgold> hm looks to be in /usr/shre/ruby/1.9/psych
<arclitgold> weird
<nettoweb_> jhass I havent put anything in my rake file... just as before
<shevy> no wait
enebo has quit [Quit: enebo]
<shevy> psych should be yaml-loading stuff; perhaps it has a json-subcomponent; this is not the main json.rb
<shevy> this is the main json component of stdlib http://ruby-doc.org//stdlib-2.0/libdoc/json/rdoc/JSON.html
ismaelga has quit [Remote host closed the connection]
momomomomo has joined #ruby
<shevy> arclitgold do you not have any more json.rb files?
<shevy> if you have a debian based system then perhaps they removed it :D :D :D
<skelterjohn> shevy: all set, thanks a lot!
<arclitgold> ah here we go: /usr/share/gems1.9/gems/json-1.5.4/lib/json.rb
<shevy> they even get rid of mkmf by default! but you can install that lateron
<jhass> nettoweb_: eh, but you added it? if everything else fails grep your entire $HOME for it
<shevy> yay skelterjohn \o/
<shevy> arclitgold that is a very unusual location
<arclitgold> haha
<shevy> that must be debian right?
<arclitgold> you're telling me
GnuYawk has quit [Ping timeout: 264 seconds]
<shevy> well actually...
<shevy> that can not even be debian
<shevy> /usr/share/gems1.9
<arclitgold> ya
<shevy> but it has the 1.9 part as its name hehehe
<jhass> nettoweb_: https://github.com/nevir/Bumbler#step-2 probably in one or more of these files
<shevy> arclitgold I think you can somehow add this path
<arclitgold> makes sense
shredding has quit [Ping timeout: 245 seconds]
<shevy> you can also try to look at "gem env" ... unfortunately I don't know how, someone else perhaps can. I use standard /usr prefix so I am unsure how to deviate from it
w0rldmaker has quit [Ping timeout: 252 seconds]
<nettoweb_> jhass that is the problem, I use zsh with YADR
<nettoweb_> so I dont know where this file is located
pdoherty has joined #ruby
tkuchiki has quit [Ping timeout: 256 seconds]
<jhass> nettoweb_: I don't think you even try to look though
<arclitgold> shevy: gem env only lists my home dir
<arclitgold> which doesn't exist :)
lolmaus has quit [Quit: Konversation terminated!]
hollywood has joined #ruby
<nettoweb_> yes I looked but it's a mess.. I have to remove it, but there are plenty of symlinks ;/
Takle has joined #ruby
GnuYawk has joined #ruby
<jhass> nettoweb_: grep -rin
<jhass> nettoweb_: and I mean you added it
paradoja has quit [Ping timeout: 265 seconds]
<zalmoxes> what's the recommended way to automate interaction with Flash using ruby?
<nettoweb_> grep -rin dont work... shows me the help for grep
decoponio has quit [Quit: Leaving...]
bMalum has quit [Quit: bMalum]
<jhass> nettoweb_: if you can't even figure out which files compose your shell environment, how did you manage to successfully add it? Most likely by following the instructions I linked, so it's most likely one or more of the files mentioned there
<jhass> which I think is why you don't even try to look
werelivinginthef has quit [Remote host closed the connection]
<jhass> nettoweb_: man grep
<jhass> learn grep, it's incredibly useful
Guest65 has joined #ruby
alex88 has quit []
_honning_ has quit [Ping timeout: 264 seconds]
<nettoweb_> jhass thank you
Lildirt has joined #ruby
plashchynski has quit [Quit: plashchynski]
vtunka has quit [Quit: Leaving]
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hollywood has quit [Ping timeout: 255 seconds]
<arclitgold> hmmm it's almost like the interpreter isn't aware of json or doesn't know where to find it?
<shevy> arclitgold yeah, if gem env does not show it
<shevy> it is a non-standard directory
<shevy> there is a way to add dirs though
ismaelga has joined #ruby
plashchynski has joined #ruby
oki has quit [Ping timeout: 252 seconds]
rekky has quit [Remote host closed the connection]
polysics has joined #ruby
w0rldmaker has joined #ruby
Cust0sLim3n has quit [Max SendQ exceeded]
Zai00 has joined #ruby
Cust0sLim3n has joined #ruby
plashchynski has quit [Client Quit]
GnuYawk has quit [Ping timeout: 256 seconds]
jottr has quit [Ping timeout: 256 seconds]
ghr has quit [Ping timeout: 252 seconds]
agarie has quit [Remote host closed the connection]
dj_zubehoer has joined #ruby
huddy has quit [Quit: Connection closed for inactivity]
wallerdev has joined #ruby
w0rldmaker has quit [Ping timeout: 245 seconds]
hollywood has joined #ruby
Takle has quit [Remote host closed the connection]
davejacobs has joined #ruby
dj_zubehoer has quit [Client Quit]
tvw has quit [Ping timeout: 244 seconds]
tunaCanBruh has quit [Ping timeout: 244 seconds]
enebo has joined #ruby
davejacobs has quit [Ping timeout: 255 seconds]
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bigkevmcd has quit [Quit: Outta here...]
The_Phoenix has quit [Ping timeout: 250 seconds]
zzing has joined #ruby
rocknrollmarc has quit [Read error: Connection reset by peer]
IrishGringo has quit [Ping timeout: 265 seconds]
livathinos has joined #ruby
towski_ has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
The_Phoenix has joined #ruby
livathinos has quit [Client Quit]
prasselpikachu has quit [Ping timeout: 264 seconds]
gsd has joined #ruby
tunaCanBruh has joined #ruby
n008f4g_ has joined #ruby
werelivinginthef has joined #ruby
ferr has quit [Ping timeout: 252 seconds]
nettoweb_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 265 seconds]
polysics has quit [Remote host closed the connection]
polysics has joined #ruby
tcrypt has joined #ruby
prasselpikachu has joined #ruby
rocknrollmarc has joined #ruby
CustosLimen has quit [Quit: Leaving]
fabrice31 has joined #ruby
fabrice31 has quit [Remote host closed the connection]
polysics has quit [Ping timeout: 252 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ob-sed has quit [Quit: ob-sed]
iamjarvo has joined #ruby
Guest65 has quit [Ping timeout: 255 seconds]
iamjarvo has quit [Max SendQ exceeded]
fabrice31 has joined #ruby
iamjarvo has joined #ruby
toretore has quit [Ping timeout: 265 seconds]
ghr has joined #ruby
dfinninger has joined #ruby
dfinning_ has joined #ruby
dfinninger has quit [Read error: Connection reset by peer]
ismael__ has joined #ruby
ismael__ has quit [Remote host closed the connection]
plashchynski has joined #ruby
techsethi_ has joined #ruby
hornairs has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
ismaelga has quit [Ping timeout: 246 seconds]
kirun has joined #ruby
pothibo has joined #ruby
juanpaucar has joined #ruby
juanpauc_ has joined #ruby
w0rldmaker has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
topolinux has quit [Quit: Sto andando via]
Nahra has joined #ruby
tkuchiki has joined #ruby
fryguy9 has joined #ruby
juanpauc_ has quit [Client Quit]
momomomomo has quit [Quit: momomomomo]
agarie has joined #ruby
techsethi_ has quit [Ping timeout: 240 seconds]
riotjones has joined #ruby
mjuszcza_ has quit []
GnuYawk has joined #ruby
ndrei has joined #ruby
ndrei_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
thumpba_ has joined #ruby
fantazo has joined #ruby
tkuchiki has quit [Ping timeout: 250 seconds]
baweaver has joined #ruby
commmmodo has quit [Read error: Connection reset by peer]
IrishGringo has joined #ruby
fabrice31 has quit [Remote host closed the connection]
mjuszczak has joined #ruby
tkuchiki has joined #ruby
sambao21 has joined #ruby
doodlehaus has quit [Remote host closed the connection]
commmmodo has joined #ruby
fabrice31 has joined #ruby
havenwood has quit [Remote host closed the connection]
pdoherty has quit [Quit: Leaving]
thumpba has quit [Ping timeout: 255 seconds]
pothibo has quit [Quit: pothibo]
riotjones has quit [Ping timeout: 272 seconds]
doodlehaus has joined #ruby
danman has joined #ruby
rdark has quit [Quit: leaving]
ballpointcarrot has joined #ruby
exadeci has quit [Quit: Connection closed for inactivity]
mjuszczak has quit [Ping timeout: 256 seconds]
RegulationD has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 255 seconds]
Pharaoh2 has joined #ruby
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gsd has quit [Quit: Textual IRC Client: www.textualapp.com]
triple_b has joined #ruby
jtdowney has joined #ruby
duncannz has joined #ruby
Waheedi has quit [Quit: Waheedi]
timonv has quit [Ping timeout: 265 seconds]
psy_ has joined #ruby
sgambino has joined #ruby
plashchynski has quit [Quit: plashchynski]
pglombardo has joined #ruby
plashchynski has joined #ruby
rekky has joined #ruby
baweaver has quit [Remote host closed the connection]
chipotle has quit [Quit: cheerio]
hornairs_ has joined #ruby
rekky has quit [Read error: Connection reset by peer]
Pupeno_ has joined #ruby
gsd has joined #ruby
pglombardo has quit [Client Quit]
rekky has joined #ruby
<SegFaultAX> This is just an idle annoyance, but why the hell doesn't IPAddr expose @mask_addr through an attr_reader or something?
werelivinginthef has quit [Remote host closed the connection]
<SegFaultAX> It goes through all the trouble of parsing the mask correctly, but then doesn't make it available to you without instance_variable_get hackery.
Pupeno has quit [Ping timeout: 265 seconds]
jonr22 has joined #ruby
sevvie has quit [Ping timeout: 244 seconds]
n1lo has quit [Quit: Leaving]
hornairs has quit [Ping timeout: 245 seconds]
Lildirt has quit [Ping timeout: 244 seconds]
sevvie has joined #ruby
chinmay_dd has quit [Quit: Connection closed for inactivity]
werelivinginthef has joined #ruby
<shevy> perhaps the guy who wrote it forgot to add it
nfk has quit [Quit: yawn]
jonr22 has quit [Ping timeout: 265 seconds]
troulouliou_dev has quit [Remote host closed the connection]
elem3nt has joined #ruby
brb3 has quit [Quit: ZZZzzz…]
sevvie has quit [Ping timeout: 252 seconds]
tvw has joined #ruby
startupality has quit [Quit: startupality]
MasterPiece has joined #ruby
agarie has quit [Remote host closed the connection]
sigurding has joined #ruby
nfk has joined #ruby
wald0 has quit [Ping timeout: 256 seconds]
dj_zubehoer has joined #ruby
elem3nt has quit []
MasterPiece has quit [Remote host closed the connection]
agarie has joined #ruby
BTRE has quit [Quit: back in a jiff]
Pupeno has joined #ruby
sighGuy has joined #ruby
brb3 has joined #ruby
<sighGuy> Can I have some help?
<sighGuy> Having trouble with hashes
rekky has quit [Ping timeout: 256 seconds]
<jhass> only if you ask a question
GaryOak_ has quit [Remote host closed the connection]
Pupeno_ has quit [Read error: Connection reset by peer]
<sighGuy> I'm trying to set two different user inputs as both sides of a hash and I'm not sure how
<jhass> what did you try so far?
<jhass> sighGuy: Please share your code on https://gist.github.com
<sighGuy> It's part of the Codecademy tutorial so eh
<sighGuy> here goes
TheNet has joined #ruby
mcpierce has quit [Ping timeout: 256 seconds]
<sighGuy> Super new here
lordkryss has quit [Quit: Connection closed for inactivity]
BTRE has joined #ruby
<jhass> mmh, not sure how to help without giving it straight away :P
<sighGuy> Hm...
<jhass> "title" is a string, it is not the variable title
oki has joined #ruby
<sighGuy> So put movie["title"] = title
<sighGuy> ?
<jhass> and you can use a variable when accessing a hash
tmtwd has quit [Remote host closed the connection]
jtdowney has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> well, that's what you already did and what doesn't work, right? ;)
<sighGuy> wait repeat?
<sighGuy> aaand yeah :/
dj_zubehoer has quit [Remote host closed the connection]
<jhass> so try to come up with something else ;)
<sighGuy> hmm
<sighGuy> What exactly goes in the brackets for move[x]?
<sighGuy> *movie
<jhass> >> key = "a"; hash = {"a" => 2}; hash[key]
<eval-in> jhass => 2 (https://eval.in/294184)
<jhass> the key
<sighGuy> hmmm
<sighGuy> the key being the title of the movie? Is that possible?
gccostabr has quit [Quit: See you later!]
<jhass> sure, why not?
<sighGuy> I'm not sure how to set it to user input
<sighGuy> actually hang on a sec
<sighGuy> what is key?
Waheedi has joined #ruby
<shevy> a hash has keys
<sighGuy> inside the hash (named hash) in the example above, you have the item ("a" => 2)
<shevy> you can obtain all keys by using .keys method
<sighGuy> I'm not sure how the key works
mcpierce has joined #ruby
<shevy> "a" is a key there
<jhass> a hash maps a key to a value
<jhass> {key => value, another_key => another_value}
nfk has quit [Quit: yawn]
<jhass> puts hash[key] # prints value
<shevy> hash = { 'jhass' => 'pretty girl', 'apeiros' => 'schokli master' }
<sighGuy> ok ok
<shevy> now you can use the two keys 'jhass' or 'apeiros'
jottr has joined #ruby
<sighGuy> Hmm...
kaiZen has joined #ruby
<sighGuy> So how could I use gets.chomp to set input to a key, then a value?
<shevy> sighGuy ruby is your first language?
Pharaoh2 has quit [Quit: Byebye]
<sighGuy> shevy: It is
<shevy> you fetch input with gets ok
<shevy> you can assign this to a variable
<jhass> sighGuy: try a few things with that new information ;)
<shevy> the name of the variable you can pass to []
neonalpine has quit [Remote host closed the connection]
<shevy> btw sighGuy on https://gist.github.com/anonymous/45493153af214d2e85a2 - you should indent case menu on the same level
frobs has joined #ruby
<sighGuy> Alright, let me give this another shot
<shevy> case choice
<shevy> when "add"
<shevy> the when indent is one level too much to the right
doodlehaus has quit [Ping timeout: 244 seconds]
<sighGuy> Will fix that too
<shevy> \o/
neonalpine has joined #ruby
<shevy> also btw on gist github page from your link above, if you store with .rb file ending, you get the colours for free
<shevy> right now you stored it as a gistfile1.txt
<sighGuy> It was a quick paste
<sighGuy> and like I said! Still really new!
roadt has joined #ruby
<shevy> yeah
rocknrollmarc has quit [Read error: Connection reset by peer]
chrishough has joined #ruby
doodlehaus has joined #ruby
phutchins has quit [Ping timeout: 245 seconds]
send has quit [Remote host closed the connection]
<graft> so, if i have class A < B; end, subsequently A < B => true - can someone explain what's going on here?
frobs has quit [Quit: Konversation terminated!]
<sighGuy> Still not working :/, feeling very lost
jottr has quit [Ping timeout: 264 seconds]
enterprisedc has quit [Quit: enterprisedc]
<centrx> graft, < is a method on A, which inherits from Module, so it's A.<(B)
iamninja has quit [Read error: Connection reset by peer]
enterprisedc has joined #ruby
diegoviola has joined #ruby
iamninja has joined #ruby
sinkensabe has joined #ruby
nfk has joined #ruby
<sighGuy> shellfu:
<sighGuy> shevy:
w0rldmaker has quit [Ping timeout: 246 seconds]
<shellfu> ?
<shellfu> oh
* shellfu back to work
_honning_ has joined #ruby
baweaver has joined #ruby
tvon has quit [Remote host closed the connection]
<sighGuy> jhass: help please?
ponga_ has quit [Quit: Leaving...]
cpt_yossarian has joined #ruby
commmmodo has quit [Quit: commmmodo]
<bricker> sighGuy: what's the problem?
einarj has joined #ruby
<sighGuy> bricker: can't get a hash to work
mcpierce has quit [Ping timeout: 256 seconds]
<sighGuy> don't know how to set the key to user input
ghostmoth has joined #ruby
sevvie has joined #ruby
<jhass> sighGuy: the right parts are there already
<jhass> now please just explain why you added that if
ndrei has quit [Ping timeout: 245 seconds]
ndrei_ has quit [Ping timeout: 265 seconds]
sinkensabe has quit [Ping timeout: 252 seconds]
<sighGuy> jhass: I was following the previous example
<bricker> sighGuy: yeah, with that code if you type anything but "Gatsby" nothing will happen
<sighGuy> :/
m8 has quit [Read error: Connection reset by peer]
<jhass> sighGuy: you mean your previous gist?
<bricker> sighGuy: you need to do movies[title] = rating
w0rldmaker has joined #ruby
workmad3 has joined #ruby
<bricker> to set the user input to the key
neonalpine has quit [Remote host closed the connection]
<centrx> sighGuy, The question "What's a movie you like?" is actually looking for "Enter a command (add, update, display, delete)"
<sighGuy> oh!
ndrei has joined #ruby
ndrei_ has joined #ruby
<sighGuy> centrx: thank you!
nahtnam has quit [Quit: Connection closed for inactivity]
m8 has joined #ruby
leafac has joined #ruby
<sighGuy> I'm such a doofus sometimes lol
werelivinginthef has quit [Remote host closed the connection]
<centrx> <- pro tips
einarj has quit [Ping timeout: 256 seconds]
neonalpine has joined #ruby
mcpierce has joined #ruby
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 35.0/2015010900]]
sighGuy has quit [Quit: Page closed]
tunaCanBruh has quit [Ping timeout: 245 seconds]
tunaCanBruh has joined #ruby
rekky has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
ninedragon_ has joined #ruby
ninedragon_ has quit [Changing host]
ninedragon_ is now known as ninedragon
RegulationD has joined #ruby
Morkel has quit [Quit: Morkel]
zenith_ has joined #ruby
ndrei_ has quit [Ping timeout: 246 seconds]
ndrei has quit [Ping timeout: 256 seconds]
baweaver has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
toretore has joined #ruby
vt102 has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
odigity has joined #ruby
<odigity> I tried defining the hash method on my class so I can use instances of that class as hash keys, but it's still using the actual instance as the key instead of the return value of #hash.
gfawcettpq has quit [Ping timeout: 256 seconds]
freerobby has quit [Quit: Leaving.]
sambao21 has joined #ruby
<shevy> the hash method?
<shevy> what is this?
baweaver has joined #ruby
<centrx> odigity, How did you determine it's using the actual instance as the key?
<centrx> odigity, Did you also define the eql? method?
<centrx> "Two objects refer to the same hash key when their hash value is identical and the two objects are eql? to each other."
<odigity> centrx, I did not define the eql method, I figured hash was enough
<odigity> and I checked using irb by creating a hash
<odigity> I'll go try implementing eql?
indianboy42 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
indianboy42 has joined #ruby
<centrx> odigity, It is possible it would still look like the instance is the key in irb -- after all you are using the instance as the key -- which implicitly uses the .hash
<odigity> centrx, nope, didn't help. I defined the eql? method, and it's still using the whole object as the key
FooMunki_ has quit [Quit: FooMunki_]
<odigity> I'm confused
<odigity> if I have two different objects (different addresses), but containing the same single scalar value (it's a simple integer value object), how can I set things up such that indexing either one into a hash will yield the same key/value pair?
Barrayar has quit [Quit: Leaving]
PhaseCode has joined #ruby
<jhass> odigity: Please share your code on https://gist.github.com
iamjarvo has quit [Ping timeout: 252 seconds]
Crisix has joined #ruby
Crisix has quit [Client Quit]
<PhaseCode> Hey guys if I have an array, lets say [1,2,3,1,2,1,3] how would I extract only unique values so [1,2,3]
<centrx> PhaseCode, #uniq
<jhass> odigity: defining .hash and .eql? correctly should work, maybe you just missed something when doing so :)
<PhaseCode> Huh, didn't see that in the docs
<PhaseCode> Thanks centrx!
<jhass> PhaseCode: also have a look at set stdlib
<toretore> odigity: basically, for some types of objects, Hash will have its own logic
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<toretore> odigity: and not just use .hash and .eql?
ghostmoth has quit [Quit: ghostmoth]
<jhass> I know it special cases Strings, something else?
<toretore> i don't remember, but i do remember trying to do the same thing and it just wouldn't work
<toretore> working with arrays, hashes, strings
<toretore> it probably was String
<toretore> and it pissed me off
<jhass> odigity: please how your attempt nonetheless :)
zemlya has quit [Ping timeout: 246 seconds]
<odigity> my bad - defining .eql seems to have fixed it. it still shows the instance stored, but does the lookup via the return value of hash
wallerdev has quit [Quit: wallerdev]
<jhass> well yes, of course it does
<jhass> .hash and .eql? don
<jhass> 't define a conversion
<jhass> they define equality
The_Phoenix has quit [Read error: Connection reset by peer]
marr has quit [Ping timeout: 250 seconds]
indianboy42 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
monod has joined #ruby
<jhass> yeah, seems fine. I would recommend to delegate hash to value.hash, even though it's an integer
baweaver has quit [Remote host closed the connection]
indianboy42 has joined #ruby
polysics has joined #ruby
fantazo has quit [Quit: Verlassend]
vvivv has quit [Ping timeout: 252 seconds]
karmatr0n has joined #ruby
<linduxed> hey there, i'm wondering why the anything matchers don't work in this kind of file https://gist.github.com/linduxed/4f529f59a344581fbcab
rhg135 has joined #ruby
RegulationD has joined #ruby
<arclitgold> shevy: thanks for the help!!!
<linduxed> *kind of rspec file
mjuszczak has joined #ruby
huck5 has joined #ruby
<shevy> \o/
fabrice31_ has joined #ruby
thousandwich has quit [Remote host closed the connection]
einarj has joined #ruby
iamjarvo has joined #ruby
crazydiamond has joined #ruby
agarie has quit []
tercenya has joined #ruby
wicope has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 272 seconds]
deol has joined #ruby
deol has quit [Client Quit]
kaiZen has quit [Ping timeout: 250 seconds]
hornairs_ has quit [Quit: hornairs_]
uri_ has joined #ruby
deol has joined #ruby
kaiZen has joined #ruby
TheNet has quit [Remote host closed the connection]
uri_ has quit [Client Quit]
TheNet has joined #ruby
erts has joined #ruby
hornairs has joined #ruby
w0rldmaker has quit [Ping timeout: 256 seconds]
baweaver has joined #ruby
zemlya has joined #ruby
IrishGringo has quit [Ping timeout: 256 seconds]
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ddv> weekend
<ddv> yay
w0rldmaker has joined #ruby
rhg135 is now known as rhg135|gone
zenith_ has quit [Ping timeout: 250 seconds]
ndrei has joined #ruby
leafac has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
leafac has joined #ruby
pandaant has quit [Remote host closed the connection]
ndrei_ has joined #ruby
hermanmunster has quit [Read error: Connection reset by peer]
mikepack has quit [Remote host closed the connection]
ghr has joined #ruby
robustus has quit [Ping timeout: 255 seconds]
leafac has quit [Remote host closed the connection]
IrishGringo has joined #ruby
codeurge has joined #ruby
leafac has joined #ruby
<shevy> ddv no
neonalpine has quit [Remote host closed the connection]
<shevy> ddv continue to code
leafac has quit [Client Quit]
einarj_ has joined #ruby
_honning_ has quit [Ping timeout: 246 seconds]
w0rldmaker has quit [Ping timeout: 252 seconds]
<ddv> i need the weekend to reenergize breh
neonalpine has joined #ruby
mikepack has joined #ruby
robustus|Off has joined #ruby
robustus|Off is now known as robustus
einarj has quit [Ping timeout: 252 seconds]
einarj_ has quit [Read error: Connection reset by peer]
einarj has joined #ruby
rhg135|gone has quit [Quit: ZNC - http://znc.in - making IRC 20% cooler]
justin_pdx has joined #ruby
shum has quit [Quit: WeeChat 1.1.1]
rkmylo has joined #ruby
<baweaver> always code
<baweaver> code always
<baweaver> code is life
shum has joined #ruby
<baweaver> life is code
w0rldmaker has joined #ruby
<baweaver> thus is the way of the beaver
ghr has quit [Ping timeout: 252 seconds]
<baweaver> shevy:
rekky has quit [Remote host closed the connection]
maximski has joined #ruby
sambao21 has joined #ruby
<shevy> yay
<shevy> long live the beavers
rodfersou has quit [Quit: leaving]
<shevy> they will take over this world one day
<baweaver> Mahogany
yfeldblum has joined #ruby
<tymat> RIP Spock
<shevy> baweaver lol
plutonic has joined #ruby
w0rldmaker has quit [Ping timeout: 265 seconds]
centrx has quit [Quit: Shutting down, Please wait...]
rhg135 has joined #ruby
anarang has quit [Quit: Leaving]
tkuchiki has joined #ruby
danman has quit [Quit: danman]
tunaCanBruh has quit [Ping timeout: 256 seconds]
someone__ has joined #ruby
plashchynski has quit [Quit: plashchynski]
rhg135 is now known as rhg135|gone
_honning_ has joined #ruby
uber has quit [Changing host]
uber has joined #ruby
chipotle has joined #ruby
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tunaCanBruh has joined #ruby
tkuchiki has quit [Ping timeout: 250 seconds]
mikepack has quit []
w0rldmaker has joined #ruby
rageberry has quit [Quit: WeeChat 1.1.1]
lanemeyer has quit [Ping timeout: 272 seconds]
GnuYawk has quit [Ping timeout: 252 seconds]
someone__ has quit []
polysics has quit [Remote host closed the connection]
casadei has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JDiPierro has quit [Remote host closed the connection]
rekky has joined #ruby
despai has joined #ruby
TheNet has quit [Remote host closed the connection]
jonr22 has joined #ruby
einarj has quit [Ping timeout: 244 seconds]
olivier_bK has joined #ruby
ldnunes has quit [Quit: Leaving]
sigurding has quit [Quit: sigurding]
w0rldmaker has quit [Ping timeout: 264 seconds]
werelivinginthef has joined #ruby
duncannz has quit [Ping timeout: 246 seconds]
deol has joined #ruby
x1337807x has joined #ruby
RegulationD has quit [Remote host closed the connection]
deol has quit [Client Quit]
ferr has joined #ruby
davejacobs has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jonr22 has quit [Ping timeout: 256 seconds]
c355E3B has joined #ruby
werelivinginthef has quit [Ping timeout: 245 seconds]
enebo has quit [Quit: enebo]
plutonic has quit [Quit: plutonic]
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
erts has quit [Quit: Leaving]
cjim has joined #ruby
mjuszczak has quit []
davejacobs has quit [Ping timeout: 250 seconds]
davejacobs has joined #ruby
duncannz has joined #ruby
Lewix has joined #ruby
Lewix has joined #ruby
duncannz has quit [Ping timeout: 245 seconds]
maletor has joined #ruby
nfk has quit [Quit: yawn]
mjuszczak has joined #ruby
pontiki has joined #ruby
DrShoggoth has quit [Quit: Leaving]
toothe has joined #ruby
<toothe> does anyone recommend the O'Reilly Ruby book?
<toothe> or is it bunk?
<toothe> I define bunk as excessively wordy for no reaosn.
<baweaver> what was the title?
<toothe> The Ruby Programming Language
<baweaver> Never read it myself.
<baweaver> Just a sec.
Cache_Money has quit [Quit: Cache_Money]
<c355E3B> IMO Not that bad if you never programed before
<toothe> nah, i know a few languages including python.
<Hijiri> what animal is o'reilly ruby?
<toothe> I just want to skip stuff like "Hey, a variable holds data"
<baweaver> That'll help
<toothe> i find that stuff frustrating.
<baweaver> Practical Object Oriented Design in Ruby is one of the best ones on that list.
dfinning_ has quit [Ping timeout: 240 seconds]
<baweaver> baweaver == lemur
mjuszczak has quit [Client Quit]
nfk has joined #ruby
<toothe> ha!
<baweaver> Anything by Metz, Grimm, or Raganwald is worth reading
<toothe> that is hilarious.
<toothe> so per that first link it has a list of books...
<toothe> hm...520 pages...
<toothe> to be honest, I can't see myself reading that.
<baweaver> which one?
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has joined #ruby
<baweaver> ohai banister
<banister> sup weaves
<baweaver> right now, best ruby book discussion.
<weaksauce> toothe eloquent ruby is excellent
deol has joined #ruby
<baweaver> POODR and Confident Ruby are great.
<banister> baweaver the ruby programming language IMO
<weaksauce> toothe do you know how to use an each block?
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<weaksauce> >> [1,2,3].each {|x| puts x }
<eval-in> weaksauce => 1 ... (https://eval.in/294210)
tvon has joined #ruby
<baweaver> I kinda wish that books would agree on a difficulty meter and post that on them
<baweaver> that way you can have newbie books for first timers, intermediate ones for people who already know a language, advanced for people wanting to improve, and master for some really out there stuff.
<baweaver> Packt and Pragmatic kinda do it.
scripore has joined #ruby
_honning_ has quit [Ping timeout: 250 seconds]
<Hijiri> advanced-master is identified by LaTeX
<baweaver> how so?
tubuliferous has joined #ruby
<baweaver> I know LaTeX is a formatting language of sorts, but not the type of thing I want to gamble with safe search on
<weaksauce> toothe I didn't like the well grounded rubyist
<weaksauce> too wordy if you know how to program already
<Hijiri> LaTeX is used for many CS papers
olivier_bK has quit [Ping timeout: 272 seconds]
bluOxigen has quit [Ping timeout: 246 seconds]
Lewix has quit [Ping timeout: 264 seconds]
Xiti has quit [Quit: Xiti]
Xiti has joined #ruby
JDiPierro has joined #ruby
kaspergrubbe has quit [Quit: leaving]
root2 has quit [Ping timeout: 250 seconds]
kaspergrubbe has joined #ruby
Hijiri has quit [Quit: WeeChat 1.0.1]
<shevy> latex smugly snuggles onto the skin
hornairs has quit [Quit: hornairs]
sambao21 has quit [Quit: Computer has gone to sleep.]
MasterPiece has joined #ruby
JDiPierro has quit [Ping timeout: 250 seconds]
baweaver has quit [Remote host closed the connection]
sambao21 has joined #ruby
turtil has joined #ruby
MasterPiece has quit [Remote host closed the connection]
m8 has quit [Quit: Sto andando via]
max96at is now known as max96at|off
rhllor has quit [Quit: rhllor]
baweaver has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
SouL_ has joined #ruby
swgillespie has joined #ruby
SouL_ has quit [Read error: Connection reset by peer]
Rapier- has quit [Quit: (null)]
root2 has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hijiri has joined #ruby
teddyp1cker has quit [Ping timeout: 246 seconds]
lektrik has quit [Ping timeout: 272 seconds]
Megtastique has quit [Read error: No route to host]
ghostpl_ has joined #ruby
momomomomo has joined #ruby
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
tkuchiki has joined #ruby
Megtastique has joined #ruby
nateberkopec has quit [Quit: Leaving...]
goshdarnyou has joined #ruby
SouL_ has joined #ruby
<ddv> hmmm \LaTeX
x1337807x has joined #ruby
ych4k3r has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
DrShoggoth has joined #ruby
livingstn has quit []
kielybunny is now known as Stoner18
ponga has joined #ruby
paulfm has quit [Quit: Zzzzz...]
ponga has quit [Client Quit]
aclearman037 has quit [Quit: I'm out!]
tkuchiki has quit [Ping timeout: 245 seconds]
tkuchiki has joined #ruby
it0a has quit [Ping timeout: 256 seconds]
Spooner has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
plashchynski has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
three18ti has joined #ruby
rkmylo has quit [Remote host closed the connection]
freerobby has joined #ruby
TheNet has joined #ruby
tkuchiki has quit [Ping timeout: 265 seconds]
<zenspider> xpost. sorry.
<zenspider> well FUCK. my certificate auth seems to have totally borked my login. I can't renew my certs where are expiring in a couple days. Is there a preferred, hopefully free, CA these days?
turtil has quit [Ping timeout: 245 seconds]
momomomomo has quit [Quit: momomomomo]
<c355E3B> Has lets encrypt started giving out certs yet?
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JDiPierro has joined #ruby
swgillespie has joined #ruby
JDiPierro has quit [Remote host closed the connection]
tvw has quit [Ping timeout: 252 seconds]
<zenspider> not yet, no
<zenspider> "mid 2015"
tier has quit [Remote host closed the connection]
hollywood has quit [Quit: Leaving]
<c355E3B> startssl offers them, but they had some revocation related issues during heartbleed
indianboy42 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
despai has left #ruby ["Leaving"]
JoshGlzBrk has joined #ruby
* zenspider sighs
JoshGlzBrk has quit [Max SendQ exceeded]
momomomomo has joined #ruby
momomomomo has quit [Client Quit]
JoshGlzBrk has joined #ruby
DrShoggoth has quit [Ping timeout: 256 seconds]
duggiefresh has quit [Remote host closed the connection]
ferr has quit [Read error: Connection reset by peer]
spyderma_ has quit [Read error: Connection reset by peer]
rbennacer has quit [Ping timeout: 245 seconds]
baweaver has quit [Remote host closed the connection]
mjuszczak has joined #ruby
ferr has joined #ruby
c355E3B has quit [Quit: Leaving]
tunaCanBruh has quit [Ping timeout: 265 seconds]
sevvie has quit [Ping timeout: 245 seconds]
baweaver has joined #ruby
fgo has joined #ruby
blizzy has quit [Ping timeout: 250 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Stoner18 is now known as Stoner19
jerius has quit [Ping timeout: 255 seconds]
Stoner19 is now known as kiely
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
jlast has quit [Remote host closed the connection]
x1337807x has joined #ruby
jlast has joined #ruby
fgo has quit [Ping timeout: 256 seconds]
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
codecop has quit [Remote host closed the connection]
DrShoggoth has joined #ruby
dblessing has quit [Ping timeout: 252 seconds]
blizzy has joined #ruby
jlast has quit [Ping timeout: 256 seconds]
StoneCypherAW has quit [Ping timeout: 250 seconds]
kyb3r_ has joined #ruby
Tinfoilhat_ has joined #ruby
banister is now known as banisterfiend
postmodern has joined #ruby
vvivv has joined #ruby
Channel6 has joined #ruby
kaiZen has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
sevvie has joined #ruby
riotjones has joined #ruby
shredding has joined #ruby
TheNet has quit [Remote host closed the connection]
tunaCanBruh has joined #ruby
TheNet has joined #ruby
doodlehaus has quit [Remote host closed the connection]
meatherly has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
Mia has quit [Read error: Connection reset by peer]
meatherly has quit [Remote host closed the connection]
brb3 has quit [Quit: <.<]
riotjones has quit [Ping timeout: 245 seconds]
lanemeyer has joined #ruby
silkfox has quit [Ping timeout: 250 seconds]
dblessing has joined #ruby
deuterium has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
ghr has joined #ruby
Lildirt has joined #ruby
rhg135|gone is now known as rhg135
Tinfoilhat_ has quit [Read error: Connection reset by peer]
Tinfoilhat__ has joined #ruby
allcentury has quit [Ping timeout: 252 seconds]
oki has quit [Ping timeout: 246 seconds]
Guest65 has joined #ruby
bradleyprice has quit [Remote host closed the connection]
tunaCanBruh has quit [Ping timeout: 250 seconds]
vvivv has quit [Quit: Leaving]
ghr has quit [Ping timeout: 246 seconds]
arescorpio has joined #ruby
Vitor has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
bradleyprice has joined #ruby
bradleyprice has quit [Remote host closed the connection]
juanpablo_ has quit [Quit: (null)]
juanpablo_ has joined #ruby
juanpablo_ has quit [Read error: Connection reset by peer]
duper` has joined #ruby
juanpablo_ has joined #ruby
zzing has joined #ruby
tunaCanBruh has joined #ruby
jonr22 has joined #ruby
GaryOak_ has joined #ruby
gluten_hell has quit [Quit: Computer has gone to sleep.]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jtdowney has joined #ruby
plashchynski has quit [Quit: plashchynski]
juanpablo_ has quit [Ping timeout: 264 seconds]
jonr22 has quit [Ping timeout: 250 seconds]
duggiefresh has joined #ruby
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
plashchynski has joined #ruby
TheNet has quit [Remote host closed the connection]
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TheNet has joined #ruby
AlecTaylor has joined #ruby
<AlecTaylor> hi
<AlecTaylor> What's a good scaffold generator for ruby 2.2.0? - I've tried: `bundle gem foo && ruby foo/test/test_foo.rb` but that gave a LoadError.
<jhass> bundle exec ruby or ruby -Ilib
<AlecTaylor> jhass: Same error
<jhass> and what is it actually?
adriancb has quit [Remote host closed the connection]
<AlecTaylor> jhass: I think it's to do with . not being pushed into the search path on Ruby 2+
<jhass> that's since ruby 1.9
<AlecTaylor> Yeah
<jhass> but unlikely
<jhass> what's the error?
<AlecTaylor> test/test_foo.rb:1:in `require': cannot load such file -- minitest_helper (LoadError)
rkmylo has joined #ruby
<jhass> test/minitest_helper.rb exists though?
Deele has quit [Ping timeout: 256 seconds]
olivier_bK has joined #ruby
rkmylo has quit [Client Quit]
<AlecTaylor> jhass: Yes, however it's first line doesn't: require 'minitest/autorun'
<AlecTaylor> *its
<jhass> zenspider: ^ do you have to run minitest in some way so that the require succeeds?
DrShoggoth has quit [Quit: Leaving]
chipotle has quit [Quit: cheerio]
spyderman4g63 has joined #ruby
w0rldmaker has joined #ruby
<jhass> try rake test
rismoney1 has joined #ruby
crazydiamond has quit [Remote host closed the connection]
<AlecTaylor> jhass: No output. Do I need to specify its search path somewhere?
<jhass> no output probably means success
mary5030 has quit [Remote host closed the connection]
justin_pdx has quit [Quit: justin_pdx]
<AlecTaylor> jhass: There's an `assert false` in the default test
axl_ has left #ruby [#ruby]
rismoney1 has quit [Remote host closed the connection]
<jhass> just tried it, bundle gem -t minitest foo; cd foo; rake test
w0rldmaker has quit [Ping timeout: 250 seconds]
<jhass> did produce a test failure indeed
<AlecTaylor> Thanks jhass
StoneCypherAW has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mjuszczak has quit []
tunaCanBruh has quit [Ping timeout: 246 seconds]
<miah> try
<miah> bundle exec rake test
ptrrr has joined #ruby
pontiki has quit [Remote host closed the connection]
mjuszczak has joined #ruby
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<miah> if you dont wrap it with bundler, youre using system gem lib
mjuszczak has quit [Read error: Connection reset by peer]
mjuszczak has joined #ruby
<AlecTaylor> jhass: I have a file `cli.rb` which accepts input from stdin, does some type conversions, then pushes them onto instance methods in lib/foo.rb
<miah> and unless test is in the lib path for the gem its probably not going to be able to lookup the path for minitest_helper; require_relative may be useful there, its how i deal with it
<AlecTaylor> Should I put it in lib/cli.rb?
lordkryss has joined #ruby
<jhass> lib/foo/cli.rb
<miah> i think the bundler template stuff does LOAD_PATH manipulations
<AlecTaylor> miah: require_relative does work this time, now that I generated it with -t
towski_ has quit [Quit: Leaving...]
<jhass> and up to you really, but I do make my bin/ scripts as thin as require "mygem/cli"; MyGem::CLI.new(ARGV) usually
<jhass> miah: see my link
<miah> jhass: aha =)
nfk has quit [Quit: yawn]
baweaver has quit [Remote host closed the connection]
x1337807x has joined #ruby
freerobby has quit [Quit: Leaving.]
<AlecTaylor> jhass: Nah, just reading from stdin, don't need anything fancy
<jhass> I wouldn't call that particularly fancy
shredding has quit [Remote host closed the connection]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rhg135 is now known as somel337dude86
Zai00 has quit [Quit: Zai00]
somel337dude86 has quit [Quit: ZNC - http://znc.in - making IRC 20% cooler]
rhg135 has joined #ruby
ptrrr has quit [Quit: ptrrr]
EchoLocution has joined #ruby
plashchynski has quit [Quit: plashchynski]
EchoLocution has left #ruby [#ruby]
_djbkd has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
Zai00 has joined #ruby
davidhq has quit [Quit: Textual IRC Client: www.textualapp.com]
<AlecTaylor> jhass: No, as in this is all I do currently: $stdin.each_line do |line|
w0rldmaker has joined #ruby
<jhass> yeah, well, making it a class just makes it easier to test I guess
<jhass> you might be interested in ARGF btw
devbug has quit [Ping timeout: 256 seconds]
baweaver has joined #ruby
ballpointcarrot has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hijiri has quit [Quit: WeeChat 1.0.1]
root4 has joined #ruby
ferr has quit [Quit: WeeChat 1.1.1]
rekky has quit []
kirun has quit [Quit: Client exiting]
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<AlecTaylor> jhass: I tend to just reassign $stdin to a StringIO
mistermocha has quit [Read error: Connection reset by peer]
root2 has quit [Ping timeout: 264 seconds]
mistermocha has joined #ruby
jobewan has quit [Quit: Leaving]
<jhass> sure, I'd still use vars like $stdin in that class
w0rldmaker has quit [Ping timeout: 252 seconds]
jack_rabbit has joined #ruby
crazydiamond has joined #ruby
x1337807x has joined #ruby
<AlecTaylor> jhass: Is there an example or a blogpost or something that shows best practice for handling stdin + testing in Ruby?
chipotle has joined #ruby
drawingthesun has joined #ruby
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
flip_digits has quit []
oki has joined #ruby
<jhass> probably
monod has quit [Quit: Sto andando via]
<jhass> I don't know any though
RegulationD has quit [Remote host closed the connection]
roadt has quit [Ping timeout: 250 seconds]
teddyp1cker has joined #ruby
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Guest123 has joined #ruby
deuterium has quit [Read error: Connection reset by peer]
oki has quit [Ping timeout: 265 seconds]
teddyp1cker has quit [Ping timeout: 265 seconds]
danman has joined #ruby
w0rldmaker has joined #ruby
TheNet has quit [Quit: Leaving...]
huck5 has quit [Quit: time for a break]
codeurge has joined #ruby
juanpablo_ has joined #ruby
drawingthesun has quit [Quit: Leaving]