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
v0n has quit [Ping timeout: 248 seconds]
rafaelfranca has joined #datamapper
rsim has joined #datamapper
rsim has quit [Ping timeout: 240 seconds]
onewheelskyward has quit [Ping timeout: 248 seconds]
xybre has quit [Ping timeout: 248 seconds]
xybre has joined #datamapper
onewheelskyward has joined #datamapper
cored has quit [Ping timeout: 248 seconds]
snusnu has quit [Quit: Leaving.]
cored_ has quit [Ping timeout: 276 seconds]
dkubb has joined #datamapper
ckrailo has quit [Quit: Computer has gone to sleep.]
zombor has quit [Remote host closed the connection]
<dkubb> !memo mbj I'm curious if you're open to the idea of converting Buffer into a Stream-like object, compatible with the IO/StringIO type interface
<Cinchy> dkubb: Memo recorded for mbj.
brainopia has joined #datamapper
brainopia has quit [Client Quit]
brainopia has joined #datamapper
rsim has joined #datamapper
<dkubb> !memo mbj if you're worried about how to handle indentation, that should be relatively simple with a proxy that represents indentation, and it's #unindent returns the proxied object (and of course #indent would return itself wrapped in another indentation object
<Cinchy> dkubb: Memo recorded for mbj.
<dkubb> !memo mbj then the append (<<) operator in that object would just do @output << ' ' << string
<Cinchy> dkubb: Memo recorded for mbj.
rsim has quit [Quit: Leaving.]
brainopia has quit [Quit: brainopia]
solnic has joined #datamapper
viranch has joined #datamapper
dawkirst has joined #datamapper
<dawkirst> Hi, anyone awake?
mbj has joined #datamapper
<mbj> .
<Cinchy> mbj: [4h 0m 53s ago] <dkubb> I'm curious if you're open to the idea of converting Buffer into a Stream-like object, compatible with the IO/StringIO type interface
<Cinchy> mbj: [1h 50m 46s ago] <dkubb> if you're worried about how to handle indentation, that should be relatively simple with a proxy that represents indentation, and it's #unindent returns the proxied object (and of course #indent would return itself wrapped in another indentation object
<Cinchy> mbj: [1h 49m 15s ago] <dkubb> then the append (<<) operator in that object would just do @output << ' ' << string
<mbj> dkubb: This is the 4th generation of unparsers I wrote. And I tried man approaches.
<mbj> dkubb: Passing an unaugmented buffer around just adds code complexity in the emitters.
<mbj> dkubb: s/man/many
<mbj> dkubb: Feel free to try optimize yourself, I dont think you'll come up with an "easier" solution. But I'd happy to see it!
<mbj> dkubb: The emitters are very straitforward now, you dont have to pass the buffer (or an indented buffer) anywhere.
<mbj> dkubb: Using a plain IO object is IMHO primitive obsession.
<mbj> dkubb: We can also move Generator.generate logic to Node#to_sql
<mbj> dkubb: Than move app specs to Node#to_sql and kill mutations in Emitter.visit via that spec (symlink for mutant 0.2) kill configuration for mutant-0.3
<dawkirst> mbj, in which cases would .sum => nil?
<mbj> dawkirst: Can you give me a context?
<dawkirst> mbj, So I have Foo with property bar (Integer) and I try Foo.sum(:bar) => nil. Some of bar's values are negative though, don't know if that makes the difference.
<dawkirst> mbj, not sure if that is what you meant with "context"? Sorry.
mikecmpbll has joined #datamapper
slainer68 has joined #datamapper
<mbj> dawkirst: The context of your problem ;)
<mbj> dawkirst: You gave it already.
<mbj> dawkirst: I never used the sum feature, sorry.
slainer68 has quit [Remote host closed the connection]
slainer68 has joined #datamapper
<dawkirst> mbj, ok, thanks :)
brainopia has joined #datamapper
kleech has joined #datamapper
slainer6_ has joined #datamapper
onewheelskyward has quit [Ping timeout: 246 seconds]
slainer68 has quit [Ping timeout: 256 seconds]
onewheelskyward has joined #datamapper
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mbj has quit [Ping timeout: 260 seconds]
mongrelion has joined #datamapper
brainopia has quit [Quit: brainopia]
<mongrelion> hi there o/
<Cinchy> [URL] orm - Ruby DataMapper: Conditions through associations - Stack Overflow
ngw has joined #datamapper
snusnu has joined #datamapper
<mongrelion> I'm trying to create an instance of a class that includes DataMapper::Resource via params on a Sinatra application and it happens that this class belongs_to :foo and in the params you can find the foo's id as { name: 'meh', foo_id: '1' } but it doesn't get assigned because it's a string rather than an number. Before hacking I first wanna make sure that DataMapper doesn't have anything for handling these cases. Any thoughts/suggestions?
mikecmpbll has joined #datamapper
ngw has quit [Quit: Bye!]
zaidan has joined #datamapper
snusnu has quit [Quit: Leaving.]
cored has joined #datamapper
cored has joined #datamapper
cored_ has joined #datamapper
snusnu has joined #datamapper
v0n has joined #datamapper
rsim has joined #datamapper
rafaelfranca has quit [Remote host closed the connection]
rafaelfranca has joined #datamapper
rafaelfranca has quit [Ping timeout: 256 seconds]
zombor has joined #datamapper
zombor has quit [Ping timeout: 240 seconds]
zombor has joined #datamapper
kleech_ has joined #datamapper
dawkirst has quit [Ping timeout: 260 seconds]
kleech has quit [Ping timeout: 248 seconds]
kleech has joined #datamapper
kleech_ has quit [Ping timeout: 248 seconds]
dawkirst has joined #datamapper
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
slainer68 has joined #datamapper
slainer__ has joined #datamapper
slainer6_ has quit [Ping timeout: 240 seconds]
slainer68 has quit [Ping timeout: 248 seconds]
slainer__ is now known as slainer68
rsim has quit [Quit: Leaving.]
kleech_ has joined #datamapper
kleech has quit [Ping timeout: 248 seconds]
rafaelfranca has joined #datamapper
rsim has joined #datamapper
mbj has joined #datamapper
ptico has joined #datamapper
mikecmpbll has joined #datamapper
dawkirst has quit [Ping timeout: 256 seconds]
kleech_ has quit [Remote host closed the connection]
kleech has joined #datamapper
ptico has quit [Remote host closed the connection]
bobocopy has joined #datamapper
v0n has quit [Ping timeout: 246 seconds]
ckrailo has joined #datamapper
v0n has joined #datamapper
kleech has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
rsim has quit [Quit: Leaving.]
rsim has joined #datamapper
rsim has quit [Ping timeout: 240 seconds]
cored_ has quit [Ping timeout: 246 seconds]
cored has quit [Ping timeout: 246 seconds]
cored_ has joined #datamapper
cored has joined #datamapper
cored has quit [Changing host]
cored has joined #datamapper
slainer68 has quit [Remote host closed the connection]
rsim has joined #datamapper
mbj has quit [Ping timeout: 245 seconds]
slainer68 has joined #datamapper
slainer68 has quit [Remote host closed the connection]
rsim has quit [Ping timeout: 240 seconds]
bobocopy has quit [Quit: Leaving.]
bobocopy has joined #datamapper
mbj has joined #datamapper
snusnu has quit [Quit: Leaving.]
mbj has quit [Ping timeout: 245 seconds]
mbj has joined #datamapper
snusnu1 has joined #datamapper
rsim has joined #datamapper
mbj has quit [Quit: Lost terminal]
rsim has quit [Ping timeout: 240 seconds]
snusnu1 has quit [Quit: Leaving.]
snusnu has joined #datamapper
<kapowaz> so; I'm getting `DataMapper::UpdateConflictError: #update cannot be called on a dirty resource` when I'm updating a resource.
<kapowaz> I've got some validations (with contexts) on this model, though, so I'm wondering if that's why
<kapowaz> certainly I'm not updating anything else on the resource prior to this single #update call
<kapowaz> can you specify a validation context when updating?
<kapowaz> ha, just tried calling MyModel.update({:foo => "whatever"}, :my_context) and that works fine
<kapowaz> duh.
zaidan has quit [Quit: leaving]
cored_ has quit [Ping timeout: 245 seconds]
cored has quit [Ping timeout: 245 seconds]
rsim has joined #datamapper
rsim has quit [Ping timeout: 240 seconds]
solnic has quit [Quit: Leaving...]
solnic has joined #datamapper
bobocopy has quit [Quit: Leaving.]
bobocopy has joined #datamapper
slainer68 has joined #datamapper
bobocopy has quit [Quit: Leaving.]
rsim has joined #datamapper
v0n has quit [Ping timeout: 248 seconds]
rsim has quit [Ping timeout: 240 seconds]
northrup has joined #datamapper
nwmcsween2 has quit [Read error: No route to host]
nwmcsween has joined #datamapper
rafaelfranca has quit [Remote host closed the connection]
rafaelfranca has joined #datamapper
rafaelfranca has quit [Ping timeout: 256 seconds]
rafaelfranca has joined #datamapper
voker57 has joined #datamapper
voker57 has joined #datamapper
voker57 is now known as Voker56
Voker56 has quit [Client Quit]
rafaelfranca has quit [Remote host closed the connection]
rafaelfranca has joined #datamapper
zombor has quit [Remote host closed the connection]
rafaelfranca has quit [Ping timeout: 248 seconds]
mbj has joined #datamapper
mbj has quit [Quit: Lost terminal]
northrup has quit [Quit: northrup]
rsim has joined #datamapper
rsim has quit [Ping timeout: 240 seconds]
Ortuna has joined #datamapper
mbj has joined #datamapper
mbj has quit [Ping timeout: 252 seconds]