seanot has quit [Remote host closed the connection]
seanot has joined #ruby-lang
zenspider has quit [Remote host closed the connection]
sirene has quit [Quit: Leaving.]
diegovio1 has joined #ruby-lang
cstrahan has quit [Ping timeout: 265 seconds]
sirene has joined #ruby-lang
mykoweb has quit [Remote host closed the connection]
taylorrf has quit [Ping timeout: 252 seconds]
mykoweb has joined #ruby-lang
diegoviola has quit [Ping timeout: 260 seconds]
Coincidental has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
mykoweb has quit [Read error: No route to host]
danijoo has joined #ruby-lang
seanot has quit [Ping timeout: 240 seconds]
mykoweb has joined #ruby-lang
x0f_ has joined #ruby-lang
nathanstitt has quit [Quit: Laters]
cstrahan has joined #ruby-lang
x0f has quit [Ping timeout: 255 seconds]
RobertBi_ has quit [Ping timeout: 240 seconds]
RobertBirnie has joined #ruby-lang
RobertBirnie has quit [Read error: Connection reset by peer]
RobertBirnie has joined #ruby-lang
Gil has joined #ruby-lang
Gil has quit [Ping timeout: 264 seconds]
toastynerd has quit [Remote host closed the connection]
RobertBirnie has quit [Ping timeout: 260 seconds]
toastynerd has joined #ruby-lang
lewix has joined #ruby-lang
lewix has quit [Changing host]
lewix has joined #ruby-lang
RobertBirnie has joined #ruby-lang
robbyoconnor has joined #ruby-lang
doitjay has joined #ruby-lang
lewix has quit [Ping timeout: 252 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
toastynerd has quit [Remote host closed the connection]
mykoweb has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
Coincidental has quit [Remote host closed the connection]
gabe_lincoln has joined #ruby-lang
cstrahan has quit [Ping timeout: 276 seconds]
mykoweb has quit [Ping timeout: 255 seconds]
ledestin has quit [Quit: ledestin]
taylorrf has joined #ruby-lang
ledestin has joined #ruby-lang
seanot has joined #ruby-lang
taylorrf has quit [Ping timeout: 240 seconds]
toastynerd has joined #ruby-lang
seanot has quit [Ping timeout: 240 seconds]
toastynerd has quit [Read error: No route to host]
toastynerd has joined #ruby-lang
yfeldblum has quit [Ping timeout: 260 seconds]
fragamus has joined #ruby-lang
yubrew has joined #ruby-lang
yubrew has quit [Ping timeout: 255 seconds]
rman has joined #ruby-lang
Gil has joined #ruby-lang
mehlah has quit [Quit: Leaving...]
ajn has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
<ajn>
after upgrading to yosemite, i can't seem to execute any gem commands. errors with 'builder.rb `initialize` permission denied'. can anyone offer some advice? thanks
tylersmith has joined #ruby-lang
diegovio1 is now known as diegoviola
<ajn>
executing `sudo gem list` results in `failed to build gem native extension`
rman is now known as rman_
tylersmith has quit [Ping timeout: 260 seconds]
Miphix has joined #ruby-lang
rman_ is now known as ramblinpeck
seanot has joined #ruby-lang
seanot has quit [Ping timeout: 240 seconds]
ari-_-e has quit [Quit: Leaving]
mistym has quit [Remote host closed the connection]
mistym has joined #ruby-lang
mister_integer has quit [Remote host closed the connection]
tylersmith has joined #ruby-lang
yfeldblum has joined #ruby-lang
araujo has quit [Quit: Leaving]
knu has joined #ruby-lang
taylorrf has joined #ruby-lang
amclain has quit [Quit: Leaving]
ledestin has quit [Quit: ledestin]
knu has quit [Ping timeout: 252 seconds]
Burgestrand has joined #ruby-lang
taylorrf has quit [Ping timeout: 240 seconds]
knu has joined #ruby-lang
gabe_lincoln has quit []
toastynerd has quit [Remote host closed the connection]
andrius444 has joined #ruby-lang
_ht has joined #ruby-lang
toastynerd has joined #ruby-lang
Gil has quit [Remote host closed the connection]
knu has quit [Ping timeout: 252 seconds]
phansch has joined #ruby-lang
ledestin has joined #ruby-lang
djbkd has joined #ruby-lang
thomasxie has quit [Quit: Leaving.]
ajn has quit [Ping timeout: 240 seconds]
houhoulis has quit []
tbuehlmann has joined #ruby-lang
zenspider has joined #ruby-lang
doitjay has quit [Ping timeout: 245 seconds]
ari-_-e has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
seanot has joined #ruby-lang
seanot has quit [Ping timeout: 240 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
Gil has joined #ruby-lang
[spoiler] has joined #ruby-lang
apeiros has quit [Ping timeout: 260 seconds]
Bosox20051 has quit [Ping timeout: 264 seconds]
btiefert has quit [Read error: Connection reset by peer]
mister_integer has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
rmcafee has quit [Quit: rmcafee]
tylersmith has joined #ruby-lang
mister_integer has quit [Ping timeout: 252 seconds]
ghg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
diegoviola has quit [Quit: WeeChat 0.4.3]
elia has joined #ruby-lang
tylersmith has quit [Ping timeout: 252 seconds]
RobertBirnie has quit [Ping timeout: 245 seconds]
<[spoiler]>
morning peeps
RobertBirnie has joined #ruby-lang
yubrew has joined #ruby-lang
taylorrf has joined #ruby-lang
arooni-mobile has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
yubrew has quit [Ping timeout: 252 seconds]
woollyams has joined #ruby-lang
taylorrf has quit [Ping timeout: 264 seconds]
arooni-mobile has quit [Ping timeout: 245 seconds]
tectonic has joined #ruby-lang
|jemc| has quit [Ping timeout: 240 seconds]
ur5us has quit [Ping timeout: 252 seconds]
My_Hearing is now known as Mon_Ouie
<Rich_Morin>
I'm not sure how to set up a file task (in Rake) with multiple outputs - http://pastie.org/9252396 Help?
pixelhandler has joined #ruby-lang
diegoviola has joined #ruby-lang
apeiros has joined #ruby-lang
itomkinas has joined #ruby-lang
Coincidental has joined #ruby-lang
Cakey has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
relix has joined #ruby-lang
ledestin has quit [Quit: ledestin]
ledestin has joined #ruby-lang
kyb3r_ has quit [Read error: Connection reset by peer]
ledestin has quit [Remote host closed the connection]
molgrew_ has joined #ruby-lang
ledestin has joined #ruby-lang
seanot has joined #ruby-lang
symm- has quit [Ping timeout: 240 seconds]
phansch has quit [Ping timeout: 240 seconds]
phansch has joined #ruby-lang
molgrew has quit [Ping timeout: 240 seconds]
seanot has quit [Ping timeout: 240 seconds]
toastynerd has quit [Remote host closed the connection]
ikrima has quit [Ping timeout: 264 seconds]
Gil has quit [Remote host closed the connection]
phansch_ has joined #ruby-lang
GBrawl has joined #ruby-lang
phansch has quit [Ping timeout: 245 seconds]
jsullivandigs has quit [Remote host closed the connection]
<yorickpeterse>
badeball: hence I asked if there was an _id field
<yorickpeterse>
but if you override id() then yeah, it will probably break
<badeball>
however, we had defined our own id-field (because we found that with such a field present, it would return the id in strong format)
<yorickpeterse>
heh
<apeiros>
kingpong1: not a backtrace. that's just code. and much a too tiny slice of it too.
<badeball>
string*
<apeiros>
kingpong1: in irb/pry, type `raise "foo"`, the stuff that is printed is a backtrace.
<kingpong1>
thanks
<kingpong1>
will check
<yorickpeterse>
badeball: Mongoid allows you to define your own _id fields but the syntax is a bit funky for it
<yorickpeterse>
lemme dig it up
AncientA_ has quit [Remote host closed the connection]
<yorickpeterse>
badeball: in a Model, do something like `field :_id, :type => String, :default => proc { the_actual_value_for_new_id_fields }`
<badeball>
so we'd then have to implement our own way of assigning ids incrementally
<badeball>
?
ironhide_604 has joined #ruby-lang
doitjay has quit [Ping timeout: 265 seconds]
<badeball>
s/assigning/generating/
mister_integer has joined #ruby-lang
<yorickpeterse>
If you want to use anything other than the default system Mongo/Mongoid uses, yes
<badeball>
I like the gennerated IDs really, except that it is contained in a field that is prefixed with an underscore
symm- has quit [Ping timeout: 260 seconds]
<badeball>
but that seems to be a thing with document databases
<yorickpeterse>
euh, Mongoid lets you call `id` just fine
<yorickpeterse>
it maps it to _id
<yorickpeterse>
There's no need to override `id` for that
vpretzel is now known as vpretzel|1445
alexju has joined #ruby-lang
<badeball>
yeah, absolutely. i'm beginning to think that everything we've done with mongodb so far is somewhat wrong.
<badeball>
I think the best approach would be to override #as_json in the models and let it return an additional id-property which is a string-version of the real id
<yorickpeterse>
You already made the mistake of using Mongo :)
frosgy has quit [Quit: Leaving]
<yorickpeterse>
Also, that shouldn't be needed either
yfeldblum has joined #ruby-lang
<yorickpeterse>
The BSON::ObjectId stuff already has a #to_s method
<yorickpeterse>
which returns the value as... a string
<yorickpeterse>
so you should be able to just JSON it
AncientAmateur has joined #ruby-lang
lele|w has quit [Remote host closed the connection]
lele|w has joined #ruby-lang
mister_integer has quit [Ping timeout: 265 seconds]
GBrawl has quit [Read error: Connection reset by peer]
GBrawl has joined #ruby-lang
vpretzel_ is now known as vpretzel
mistym has joined #ruby-lang
tylersmith has joined #ruby-lang
yfeldblum has joined #ruby-lang
rmcafee has quit [Quit: rmcafee]
tylersmith has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 240 seconds]
postmodern has joined #ruby-lang
rmcafee has joined #ruby-lang
iwat has joined #ruby-lang
iwat has quit [Quit: iwat]
kfpratt has joined #ruby-lang
dik_dak has joined #ruby-lang
vpretzel has quit [Ping timeout: 240 seconds]
elia has joined #ruby-lang
RobertBirnie has joined #ruby-lang
wallerdev has joined #ruby-lang
<ari-_-e>
amigo99: ruby 2.2?
<ari-_-e>
you're trying to build unreleased code?
Lumio has joined #ruby-lang
phansch has quit [Quit: WeeChat 0.4.3]
araujo has joined #ruby-lang
araujo has quit [Changing host]
araujo has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
<amigo99>
im building revision 3453070fbc7e1d4294b6248ceebe22b7577d63dd, ive built is successfully in my other computer (ubuntu 12.04), just doesnt work on this one (ubuntu 12.04)
cored has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
apeiros has joined #ruby-lang
Johz has quit [Quit: Leaving]
cored_ has quit [Ping timeout: 245 seconds]
rippa has joined #ruby-lang
mister_integer has joined #ruby-lang
miwood has joined #ruby-lang
workmad3 has joined #ruby-lang
frzng has quit [Quit: frzng]
apeiros has quit [Ping timeout: 240 seconds]
cored has quit [Ping timeout: 245 seconds]
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
wati`` has joined #ruby-lang
<amigo99>
didnt have problems building same version on my mac either.. just not sure whats going with above case
centrx has joined #ruby-lang
<darix>
amigo99: i would generally recommend just package your stuff
<darix>
build once
<darix>
install multiple times
pixelhandler has joined #ruby-lang
sharpmachine has joined #ruby-lang
jhass|off is now known as jhass
jxie has quit [Ping timeout: 252 seconds]
wati`` has quit [Quit: wati``]
lewix has quit [Quit: Leaving]
kfpratt has quit [Remote host closed the connection]
jxie has joined #ruby-lang
Cakey has quit [Ping timeout: 252 seconds]
Cakey has joined #ruby-lang
toastynerd has joined #ruby-lang
symm- has quit [Ping timeout: 252 seconds]
amigo99 has quit [Quit: This computer has gone to sleep]
sheperson has joined #ruby-lang
nofxx has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
benlovell has quit [Ping timeout: 240 seconds]
hahuang65 has quit [Ping timeout: 240 seconds]
frzng has joined #ruby-lang
cored has quit [Ping timeout: 264 seconds]
tomkadwill has quit []
mistym has quit [Remote host closed the connection]
mikecmpbll has quit [Ping timeout: 252 seconds]
mykoweb has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
apeiros has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
djbkd has joined #ruby-lang
omosoj has joined #ruby-lang
AncientAmateur has quit [Remote host closed the connection]
mykoweb has quit [Ping timeout: 240 seconds]
__butch__ has joined #ruby-lang
omosoj has quit [Client Quit]
amigo99 has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
arBmind has joined #ruby-lang
elia has quit [Ping timeout: 265 seconds]
mistym has joined #ruby-lang
<kingpong1>
can i chain three models and then run find_by_sql
<kingpong1>
in rails
<kingpong1>
on all 3 of them
<jhass>
join #rubyonrails
<kingpong1>
ok
workmad3 has quit [Ping timeout: 240 seconds]
noob101 has quit [Ping timeout: 240 seconds]
wallerdev has joined #ruby-lang
Coincidental has joined #ruby-lang
phansch has joined #ruby-lang
bantic has joined #ruby-lang
cnivolle has quit [Remote host closed the connection]
chouhoul_ has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
dik_dak has quit [Quit: Leaving]
chouhoulis has quit [Ping timeout: 240 seconds]
saarinen has joined #ruby-lang
momomomomo has joined #ruby-lang
Gil has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
solars has quit [Quit: WeeChat 0.4.1]
seanot has quit [Remote host closed the connection]
vpretzel has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
seanot has joined #ruby-lang
sheperson has quit [Ping timeout: 245 seconds]
<dacamp>
Anyone have the history of why true.to_i and false.to_i raise an exception? Seems short sighted to me, but i'm sure core devs would know the reasoning
<centrx>
dacamp, Why wouldn't they?
<dacamp>
for the same reason to_s doesn't?
<dacamp>
Just makes more sense in my head that true.to_i would return 1 and false.to_i would return 0
<centrx>
Perhaps the to_s should be removed, but right now it is aliases as inspect
<dacamp>
yeah, I ran into that problem with to_s in a c extension
<dacamp>
in struct to_s follows a different caller path than in a class
dsaint-p_ has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
go|dfish has quit [Ping timeout: 260 seconds]
tylersmith has joined #ruby-lang
mikecmpbll has joined #ruby-lang
dsaint-pierre has quit [Ping timeout: 276 seconds]
go|dfish has joined #ruby-lang
<dacamp>
anyways didn't mean to open a can of worms, but the all ints are truthy answer is enough to satisfy my curiosity. it would make sense to remove to_s though at that point since that method would also make false true
Coincidental has quit [Remote host closed the connection]
mehlah has joined #ruby-lang
djbkd has joined #ruby-lang
elia has joined #ruby-lang
mistym has quit [Remote host closed the connection]
mistym has joined #ruby-lang
AncientAmateur has joined #ruby-lang
yfeldblum has joined #ruby-lang
elia has quit [Ping timeout: 255 seconds]
Guest92972 has joined #ruby-lang
Coincidental has joined #ruby-lang
seanot has joined #ruby-lang
mikecmpbll has quit [Quit: i've nodded off.]
mikecmpbll has joined #ruby-lang
mykoweb has joined #ruby-lang
ryba has quit [Ping timeout: 252 seconds]
Guest92972 has quit [Quit: Guest92972]
wati`` has joined #ruby-lang
<apeiros>
dacamp: uh, no?
<apeiros>
dacamp: to_s is to get a string representation, not a boolean one
<apeiros>
that to_i as 1 and 0 makes no sense in ruby is because unlike other languages, they're not truthy/falsy substitutes
<apeiros>
if anything, then nil.to_i should raise
yatish27 has quit [Remote host closed the connection]
seanot has quit [Remote host closed the connection]
seanot has joined #ruby-lang
<dacamp>
well if to_s is to get a string representation, then why wouldn't to_i get an integer representation?
<dacamp>
because to_s as "true" and "false" makes no sense, because they are both truthy values
<dacamp>
just because you want the integer expresion for true and false (1 and 0) doesn't mean you'd use them in an expression.
chouhoulis has joined #ruby-lang
<dacamp>
just like you wouldn't use >> if false.to_s
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
btiefert has joined #ruby-lang
loincloth has joined #ruby-lang
seanot has quit [Ping timeout: 240 seconds]
chouhoul_ has quit [Ping timeout: 240 seconds]
dsaint-p_ has quit [Remote host closed the connection]
<centrx>
The string representation is for displaying it to the user/developer. It is not converting it to an equivalent thing.
<centrx>
Converting to integer would either have no purpose, or would mean that 1 and 0 are special values related to true and false.
BucOder has joined #ruby-lang
miwood_ has joined #ruby-lang
momomomomo has joined #ruby-lang
chouhoulis has quit [Remote host closed the connection]
miwood has quit [Ping timeout: 255 seconds]
t4nk961 has joined #ruby-lang
seanot has joined #ruby-lang
stamina has quit [Ping timeout: 276 seconds]
<apeiros>
dacamp: because there's no sensible integer representation
<apeiros>
but there is a sensible string representation
jcl has joined #ruby-lang
chouhoulis has joined #ruby-lang
wati`` has quit [Quit: wati``]
WishBoy has quit [Remote host closed the connection]
jcl has quit [Read error: Connection reset by peer]
kingpong1 has quit [Quit: Page closed]
Miphix has quit [Quit: Leaving]
kfpratt has joined #ruby-lang
<dacamp>
I see your point, well said.
Coincidental has quit [Remote host closed the connection]
<t4nk961>
hello
jcl has joined #ruby-lang
Miphix has joined #ruby-lang
jcl has quit [Remote host closed the connection]
frzng has quit [Quit: frzng]
t4nk961 has quit [Quit: Page closed]
miwood has joined #ruby-lang
saarinen has quit [Quit: saarinen]
miwood_ has quit [Ping timeout: 252 seconds]
saarinen has joined #ruby-lang
arooni-mobile has joined #ruby-lang
arooni-mobile has quit [Max SendQ exceeded]
arooni-mobile has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
Gil has quit [Remote host closed the connection]
seanot has quit [Remote host closed the connection]
seanot has joined #ruby-lang
sharpmachine has quit [Remote host closed the connection]
seanot has quit [Ping timeout: 240 seconds]
mamut_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has joined #ruby-lang
bantic has quit [Quit: bantic]
sharpmachine has joined #ruby-lang
Gil has joined #ruby-lang
Gil has quit [Read error: Connection reset by peer]
Gil has joined #ruby-lang
nvmme has joined #ruby-lang
taylorrf has joined #ruby-lang
flak has joined #ruby-lang
spinagon has joined #ruby-lang
Squarepy has quit [Quit: Leaving]
bantic has joined #ruby-lang
rippa has quit [Ping timeout: 264 seconds]
vikfroberg has joined #ruby-lang
vikfroberg has left #ruby-lang [#ruby-lang]
miwood_ has joined #ruby-lang
flak has quit [Ping timeout: 260 seconds]
miwood has quit [Ping timeout: 252 seconds]
djbkd has quit [Remote host closed the connection]
miwood has joined #ruby-lang
dsaint-pierre has joined #ruby-lang
taylorrf has quit [Ping timeout: 240 seconds]
miwood_ has quit [Ping timeout: 252 seconds]
djbkd has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
<sirene>
heeeeeeeeeello
sheperson has quit [Ping timeout: 240 seconds]
tris has quit [Quit: Leaving]
sheperson has joined #ruby-lang
sirene has left #ruby-lang [#ruby-lang]
tomkadwill has joined #ruby-lang
Fushi has quit [Quit: Connection closed for inactivity]
spinagon has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
rippa has joined #ruby-lang
wallerdev has quit [Ping timeout: 240 seconds]
djbkd has quit [Remote host closed the connection]
AncientAmateur has quit [Remote host closed the connection]
wallerdev has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]