dkubb changed the topic of #datamapper to: Datamapper v1.2.0 | Mailing List: http://is.gd/aa9D | Logs: http://is.gd/qWAL7V | DataMapper 2 Renamed to ROM, see #rom-rb for development
brianpWins has quit [Quit: brianpWins]
jhn has joined #datamapper
ckrailo has quit [Quit: Computer has gone to sleep.]
<postmodern>
!memo mbj can mutant run against normal test-unit suites? I have a test/unit / test/integration project I want to run through mutant
<Cinchy>
postmodern: Memo recorded for mbj.
Sylvain2 has quit [Quit: Leaving.]
lnormous has quit [Ping timeout: 256 seconds]
jeremyevans has joined #datamapper
zombor_ is now known as zombor
jhn has quit [Ping timeout: 256 seconds]
lnormous has joined #datamapper
Sylvain1 has joined #datamapper
zombor has quit [Remote host closed the connection]
snusnu has joined #datamapper
grandy has quit [Ping timeout: 240 seconds]
v0n has joined #datamapper
snusnu has quit [Quit: Leaving.]
zombor has joined #datamapper
zombor has quit [Remote host closed the connection]
kenphused has quit [Remote host closed the connection]
bobocopy has joined #datamapper
bobocopy has quit [Quit: Leaving.]
zombor has joined #datamapper
zombor has quit [Ping timeout: 248 seconds]
kenphused has joined #datamapper
kenphused has quit [Remote host closed the connection]
_whitelogger has joined #datamapper
v0n has quit [Ping timeout: 264 seconds]
<dkubb>
!memo mbj I wonder, as a quick test do you think mutant would work with the parallel gem? It provides a Parallel.each method that we could use to run stuff in parallel when each element is independent
<Cinchy>
dkubb: Memo recorded for mbj.
bobocopy has joined #datamapper
zombor has joined #datamapper
zombor has quit [Read error: Connection reset by peer]
zombor has joined #datamapper
zombor has joined #datamapper
zombor has quit [Changing host]
mbj has joined #datamapper
zombor has quit [Remote host closed the connection]
mbj has quit [Read error: Connection reset by peer]
mbj has joined #datamapper
<mbj>
.
<Cinchy>
mbj: [6h 16m 1s ago] <postmodern> can mutant run against normal test-unit suites? I have a test/unit / test/integration project I want to run through mutant
<Cinchy>
mbj: [1h 41m 31s ago] <dkubb> I wonder, as a quick test do you think mutant would work with the parallel gem? It provides a Parallel.each method that we could use to run stuff in parallel when each element is independent
<mbj>
postmodern: Mutant does not have a test/unit runner currently
<mbj>
postmodern: Happy to see your contribution :D
<mbj>
!memo dkubb, I'll look into it.
<Cinchy>
mbj: Memo recorded for dkubb,.
mbj has quit [Read error: Connection reset by peer]
northrup has joined #datamapper
mbj has joined #datamapper
mbj has quit [Read error: Connection reset by peer]
<kapowaz>
if I have both a has n, :foo and a belongs_to :bar relationship on a couple of models, but I want to name the property of the child model (e.g. belongs_to :foo, :model => 'MySomething') how can I prevent the has n, :foo relationship also creating another child key ?
solnic has joined #datamapper
<kapowaz>
if I name the relationship then it will create two child keys
<kapowaz>
foreign_model_name_id and whatever_i_say_it_belongs_to_id
<kapowaz>
solnic: you might know, so I will repeat the bit I missed
<kapowaz>
*you missed
<kapowaz>
<kapowaz> if I have both a has n, :foo and a belongs_to :bar relationship on a couple of models, but I want to name the property of the child model (e.g. belongs_to :foo, :model => 'MySomething') how can I prevent the has n, :foo relationship also creating another child key ?
<kapowaz>
I can avoid this by not having a has n relationship on the parent model, but I'd like to be able to do ParentModel.foos and get all the children that way
solnic has quit [Quit: Leaving...]
rafaelfranca has quit [Remote host closed the connection]
kleech has joined #datamapper
solnic has joined #datamapper
rafaelfranca has joined #datamapper
zombor has joined #datamapper
zombor has joined #datamapper
v0n has joined #datamapper
kleech has quit [Remote host closed the connection]
<_br_>
In datamapper if I have a field e.g. category where I want to search for term1 or term2 or. (logical OR in the WHERE field). etc. is there another way to define it inline instead of this? Item.all( :category => term1 ) | Item.all( :category => term2 ) ... ; e.g. Item.all( :category => [ term1, term2, .. ] ) ?
v0n has quit [Ping timeout: 260 seconds]
dkubb has joined #datamapper
<dkubb>
memos
<Cinchy>
dkubb: [5h 45m 14s ago] <mbj> Thx for that PRs! Merged all.
<dkubb>
mbj: you're welcome. I'll try to do a little bit on mutant every week
<dkubb>
mbj: my first pass will probably be the simplest possible mutations like emit_nil, etc, and then I'll start adding better ones
bobocopy has joined #datamapper
<mbj>
dkubb: I'm happy not to be alone with mutant!
v0n has joined #datamapper
mikecmpbll has joined #datamapper
northrup has quit [Ping timeout: 246 seconds]
solnic has quit [Ping timeout: 276 seconds]
ckrailo has joined #datamapper
mbj has quit [Ping timeout: 264 seconds]
<_br_>
Is it possible to only select Parents if their child contains a field with a specific field value? Parent.all( :children.field => "string" ) doesn't work?
mbj has joined #datamapper
bobocopy has quit [Quit: Leaving.]
bobocopy has joined #datamapper
<dkubb>
_br_: You can do: Parent.all(:children => { :field => 'string' })
<dkubb>
or even Children.all(:field => 'string').parents
<_br_>
dkubb: ah cool, thanks I'll try that
<dkubb>
either one works, just from different directions.. choose whichever one fits your brain best
rafaelfranca has quit [Remote host closed the connection]
northrup has quit [Ping timeout: 264 seconds]
northrup has joined #datamapper
dkubb|away has joined #datamapper
dkubb has quit [Read error: Connection reset by peer]
rafaelfranca has joined #datamapper
_br_ has left #datamapper [#datamapper]
_br_ has joined #datamapper
dkubb|away has quit [Client Quit]
<_br_>
Parent.all( :children => { :field => "blah" } ) works. But is it possible to do Parent.all( :children => { :field => "blah", :order => :field_num } ) ?