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
rsim has joined #datamapper
rsim has quit [Ping timeout: 240 seconds]
solnic has quit [Quit: Leaving...]
knowtheory has joined #datamapper
tillsc has joined #datamapper
tillsc has quit [Ping timeout: 248 seconds]
brianpWins has quit [Quit: brianpWins]
v0n has joined #datamapper
brianpWins has joined #datamapper
Ortuna has joined #datamapper
zombor has joined #datamapper
zombor has joined #datamapper
zombor has quit [Remote host closed the connection]
ckrailo has quit [Quit: Computer has gone to sleep.]
tillsc has joined #datamapper
dkubb has joined #datamapper
cored has quit [Ping timeout: 264 seconds]
tillsc has quit [Ping timeout: 246 seconds]
zombor has joined #datamapper
bobocopy1 has quit [Quit: Leaving.]
zombor has quit [Ping timeout: 256 seconds]
Ortuna has quit [Quit: Computer has gone to sleep.]
snusnu has quit [Quit: Leaving.]
zombor has joined #datamapper
zombor has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
zombor has joined #datamapper
brianpWins has joined #datamapper
zombor has quit [Ping timeout: 246 seconds]
zombor has joined #datamapper
zombor has joined #datamapper
zombor has quit [Ping timeout: 248 seconds]
dkubb has quit [Quit: Leaving...]
rsim has joined #datamapper
rsim has quit [Ping timeout: 240 seconds]
brianpWins has quit [Quit: brianpWins]
zombor has joined #datamapper
dkubb has joined #datamapper
zombor has quit [Ping timeout: 246 seconds]
v0n has quit [Ping timeout: 240 seconds]
Aristata1 has joined #datamapper
Aristata has quit [Ping timeout: 248 seconds]
brianpWins has joined #datamapper
rsim has joined #datamapper
brainopia has joined #datamapper
brainopia has quit [Client Quit]
brainopia has joined #datamapper
zombor has joined #datamapper
<swarmhost> Can someone here help me learn how to build a pretty basic datamapper-driven app per my spec? I'd be willing to donate somewhere for your time, or pay you directly. I am just trying to get a basic calendar working so I can understand how everything works together.
zombor has quit [Ping timeout: 246 seconds]
dkubb has quit [Quit: Linkinus - http://linkinus.com]
stormwin1 has joined #datamapper
abuiles has quit [Ping timeout: 260 seconds]
postmodern has quit [Ping timeout: 248 seconds]
stormwind has quit [Ping timeout: 260 seconds]
brianpWins has quit [*.net *.split]
onewheelskyward has quit [*.net *.split]
banditron has quit [*.net *.split]
brainopia has quit [*.net *.split]
knowtheory has quit [*.net *.split]
yeban has quit [*.net *.split]
fcoury__ has quit [*.net *.split]
rolfb has joined #datamapper
postmodern has joined #datamapper
brainopia has joined #datamapper
fcoury__ has joined #datamapper
yeban has joined #datamapper
brianpWins has joined #datamapper
banditron has joined #datamapper
knowtheory has joined #datamapper
onewheelskyward has joined #datamapper
brainopia has quit [Quit: brainopia]
brianpWins has quit [Quit: brianpWins]
rolfb has quit [Quit: Leaving...]
mbj has joined #datamapper
<mbj> .
<Cinchy> mbj: [10h 41m 23s ago] <dkubb> I would love an --rspec-class strategy. it'd work really well with the rails app I'm using. --rspec-unit works alright for now but only because the project is new. it won't scale anywhere near as well
mbj has quit [Read error: Connection reset by peer]
solnic has joined #datamapper
splattael has joined #datamapper
kapowaz has joined #datamapper
abuiles has joined #datamapper
mbj has joined #datamapper
theCrab has joined #datamapper
mikecmpbll has joined #datamapper
xeviox has joined #datamapper
<xeviox> hi guys
<xeviox> tried to move to the convention ('./models/somemodel' => 'Models::SomeModel'), but now datamapper looks for "models_somemodel" table
<xeviox> is it possible to strip the module name?
mbj has quit [Ping timeout: 256 seconds]
mbj has joined #datamapper
snusnu has joined #datamapper
<xeviox> namelessjon: nice, thanks
<xeviox> the only thing I don't get is the ":legacy" repository
<xeviox> do I have to use this
<xeviox> or stay with the ":default"
<xeviox> ?
<namelessjon> xeviox: Oh, no. Stay with :default. The doc was just written with the idea of still needing to talk to some legacy schema for some operations.
<xeviox> ah ok
<xeviox> so the repository should be set up before the call to "DataMapper.setup(..)" ?
<namelessjon> xeviox: No, do the DataMapper.setup(...), then define your naming convention.
<namelessjon> If you don't setup first, DM won't know about the :default repository
<xeviox> thanks! seems to work
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mikecmpbll has joined #datamapper
Ortuna has joined #datamapper
cored has joined #datamapper
theCrab has quit [Quit: Gone Forever!]
didlix has quit [Read error: Operation timed out]
namelessjon has quit [Read error: Operation timed out]
zombor has joined #datamapper
namelessjon has joined #datamapper
postmodern has quit [Quit: Leaving]
Ortuna has quit [Quit: Computer has gone to sleep.]
cored has quit [Ping timeout: 240 seconds]
cored has joined #datamapper
splattael has quit [Remote host closed the connection]
knowtheory has quit [Ping timeout: 252 seconds]
rafaelfranca has quit [Remote host closed the connection]
knowtheory has joined #datamapper
snusnu has quit [Quit: Leaving.]
zombor has quit [Ping timeout: 264 seconds]
zombor_ has joined #datamapper
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mikecmpbll 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]
rafaelfranca has joined #datamapper
snusnu has joined #datamapper
knowtheory has quit [Ping timeout: 260 seconds]
<Aristata1> Is there a way to call Resource.all(:id => [4, 6, 1, 2, 10]) and receive the records back in the order the ids were passed in?
rsim has quit [Ping timeout: 240 seconds]
_whitelogger has joined #datamapper
<kalleth> interesting, solnic
<kalleth> so i have an SQL statement in a text file, which i can run from the console and executes file
<kalleth> *fine
<kalleth> I read it in using File.open("#{RSPEC_ROOT}/test_data/categories.sql", 'r') { |f| f.read } then execute it with
<kalleth> DataMapper.repository(:test).adapter.execute(categories_sql)
<kalleth> and i get a syntax error
<kalleth> encoding issue?
rsim has joined #datamapper
<Cinchy> [gist] Output of running SQL (at gist.github.com, kalleth on 2013-06-27 15:02)
<dkubb> kalleth: DataMappper won't execute a statement with a semicolon in it. it's to prevent SQL injection attacks
<kalleth> hmm
<kalleth> is there a way to force it to execute that behavior?
<dkubb> kalleth: what you can do though is read in the file, split on ";" and then execute each of the statements separately
<kalleth> *that code
<kalleth> hmm, ok
_whitelogger has joined #datamapper
_whitelogger has joined #datamapper
<kalleth> right, that works
<kalleth> its not very clean though
<Aristata1> solnic: I didn't think so. Thanks
Aristata1 has quit [Quit: Leaving.]
<Cinchy> [gist] Testdb after refactor (at gist.github.com, kalleth on 2013-06-27 15:17)
<kalleth> doesn't seem clean though
<kalleth> i'd quite like a mechanism for 'Yes, i really do know 100% what i'm running right now, please run it'
<kalleth> execute! vs execute, f.e.
<kalleth> (this isn't the reason i'm using datamapper, fyi, this is just ancillary to the real use case)
<dkubb> kalleth: even the database driver won't allow semicolons
<kalleth> oh, seriously?
<kalleth> hmm.
<kalleth> maybe i'm going about this the wrong way then
_whitelogger has joined #datamapper
_whitelogger has quit [Excess Flood]
_whitelogger has joined #datamapper
knowtheory has joined #datamapper
cored has quit [Ping timeout: 246 seconds]
bobocopy has joined #datamapper
cored has joined #datamapper
cored has joined #datamapper
dkubb has quit [Quit: Leaving...]
ckrailo has joined #datamapper
indrek_ has quit [Read error: Operation timed out]
dkubb has joined #datamapper
indrek has joined #datamapper
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mikecmpbll has joined #datamapper
kleech has quit [Remote host closed the connection]
<xeviox> is it possible to get the cause of a SaveFailureError ?
dkubb has quit [Quit: Leaving...]
dkubb has joined #datamapper
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<xeviox> may it be a problem when I try to store a connected model that has serial and a key
kleech has joined #datamapper
kleech has quit [Ping timeout: 276 seconds]
<xeviox> damn I'm unable to connect to models, everytime I try to update a model with this connection (or even create) I receive a SaveFailureError
<xeviox> but I've no idea why..
<xeviox> or is there a problem doing it with a hash ? e. g. someModel.update({:user => user})
brianpWins has joined #datamapper
rsim has quit [Quit: Leaving.]
rsim has joined #datamapper
rsim has quit [Ping timeout: 240 seconds]
<xeviox> any ideas why a optional association fails during save? (belongs_to :user, :required => false)
<xeviox> everytime I try to use and save it, an error is throws, but inspecting it there is no validation error..
<solnic> xeviox: you probably have a not null constraint on the fk
<solnic> in the db
<xeviox> solnic: the db is created with "migrate!"
<solnic> xeviox: check if there's no constraint
<xeviox> the problem is that I'm unable to set it to a value (null value works fine)
<solnic> ah ok
<solnic> then I dunno
<xeviox> is it possible to output the insert statement?
brianpWins has quit [Quit: brianpWins]
<xeviox> damn, I really can't figure out what happens, the database looks as expected. And even if I output exception.resource.errors.inspect I only see "@errors={}" and the "problematic" field holding the correct value..
brianpWins has joined #datamapper
snusnu has quit [Quit: Leaving.]
brianpWins has quit [Quit: brianpWins]
brianpWins has joined #datamapper
kleech has joined #datamapper
<xeviox> how is it possible that the insert is never executed when there is no validation error?
kleech has quit [Remote host closed the connection]
snusnu has joined #datamapper
<xeviox> I'm out of ideas, maybe someone could check this: http://pastie.org/private/g00g7w9cjnf58xzp7ossa
<Cinchy> [pastie] Private Paste - Pastie (at pastie.org, on 2013-06-27 23:59)
<xeviox> e.resource.errors.inspect shows all fields as excpected and an empty @errors
brainwarped has joined #datamapper
kleech has joined #datamapper
mbj has quit [Quit: leaving]
kleech has quit [Read error: Operation timed out]
dkubb has quit [Quit: Linkinus - http://linkinus.com]
v0n has quit [Quit: WeeChat 0.4.1]
v0n has joined #datamapper
brainwarped has left #datamapper [#datamapper]
rsim has joined #datamapper
rsim has quit [Client Quit]
v0n has quit [Quit: WeeChat 0.4.1]
mbj has joined #datamapper
tillsc has joined #datamapper
tillsc has quit [Ping timeout: 256 seconds]
rsim has joined #datamapper
rsim has quit [Read error: Operation timed out]
rsim has joined #datamapper
mbj has quit [Read error: Operation timed out]
snusnu has quit [Ping timeout: 246 seconds]
rsim has quit [Ping timeout: 240 seconds]
mbj has joined #datamapper
Ortuna has joined #datamapper
bobocopy has quit [Quit: Leaving.]
bobocopy has joined #datamapper
solnic has quit [Quit: Leaving...]
knowtheory has quit [Quit: Computer has gone to sleep]
knowtheory has joined #datamapper
knowtheo1y has joined #datamapper
knowtheory has quit [Ping timeout: 246 seconds]
mbj has quit [Quit: Lost terminal]
bobocopy has quit [Quit: Leaving.]
rafaelfranca has quit [Remote host closed the connection]
rsim has joined #datamapper
cored has quit [Ping timeout: 248 seconds]
Ortuna has quit [Ping timeout: 256 seconds]
cored has joined #datamapper
cored has joined #datamapper
rsim has quit [Ping timeout: 240 seconds]
knowtheo1y has quit [Quit: Computer has gone to sleep]
tillsc has joined #datamapper
tillsc has quit [Ping timeout: 240 seconds]
postmodern has joined #datamapper
banditron has quit [Remote host closed the connection]
rsim has joined #datamapper
zombor has quit [Remote host closed the connection]
rsim has quit [Ping timeout: 240 seconds]
xeviox has left #datamapper ["Leaving"]
cored has quit [Read error: Operation timed out]
cored has joined #datamapper
cored has joined #datamapper
ckrailo has quit [Quit: Computer has gone to sleep.]
rsim has joined #datamapper
rsim has quit [Ping timeout: 240 seconds]
Ortuna has joined #datamapper