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
dkubb|away has joined #datamapper
dkubb has quit [Ping timeout: 245 seconds]
dkubb|away is now known as dkubb
zombor has joined #datamapper
mbj has joined #datamapper
dkubb has quit [Ping timeout: 245 seconds]
lfox has joined #datamapper
akasper has quit [Quit: Leaving.]
nwmcsween__ has joined #datamapper
nwmcsween_ has quit [Ping timeout: 252 seconds]
mbj has quit [Quit: leaving]
zombor has quit [Remote host closed the connection]
zombor has joined #datamapper
zombor has quit [Remote host closed the connection]
zombor has joined #datamapper
rsim has joined #datamapper
rsim has quit [Client Quit]
g0bl1n has quit [Ping timeout: 246 seconds]
zombor has quit [Remote host closed the connection]
lfox has quit [Quit: ZZZzzz…]
lfox has joined #datamapper
Spockz has quit [Ping timeout: 252 seconds]
alessandro has joined #datamapper
gadgetoid has quit [Ping timeout: 260 seconds]
brianpWins has joined #datamapper
nwmcsween__ has quit [Quit: nwmcsween__]
brianpWins has quit [Remote host closed the connection]
brianpWins has joined #datamapper
gadgetoid has joined #datamapper
lfox has quit [Quit: ZZZzzz…]
dkubb has joined #datamapper
brianpWins has quit [Quit: brianpWins]
brianpWins has joined #datamapper
dkubb has quit [Quit: Linkinus - http://linkinus.com]
mikecmpbll has joined #datamapper
mkf has quit [Ping timeout: 252 seconds]
mkf has joined #datamapper
rsim has joined #datamapper
rsim has quit [Quit: Leaving.]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
rsim has joined #datamapper
mikecmpbll has joined #datamapper
rsim has quit [Quit: Leaving.]
rsim has joined #datamapper
rsim has quit [Read error: No route to host]
gadgetoid has quit [Ping timeout: 260 seconds]
gadgetoid has joined #datamapper
zombor has joined #datamapper
lfox has joined #datamapper
rsim has joined #datamapper
mikecmpb_ has joined #datamapper
mikecmpbll has quit [Ping timeout: 245 seconds]
mikecmpb_ is now known as mikecmpbll
rsim1 has joined #datamapper
zombor has quit [Read error: Connection reset by peer]
zombor_ has joined #datamapper
rsim has quit [Ping timeout: 245 seconds]
akasper has joined #datamapper
kenphused has joined #datamapper
g0bl1n has joined #datamapper
kenphused has left #datamapper ["I'll get back to you guys on that"]
Cinchy_ has quit [Remote host closed the connection]
Cinchy_ has joined #datamapper
Frost has joined #datamapper
<Frost> I'm trying to base a (read-only) DataMapper::Resource off a database view, and it seems to work fine, except when I try to run my test code, because when trying to create said view in a Sqlite in-memory db I get an error saying that the tables it depends on doesn't exist.
<Frost> It depends on two models with a many-to-many relationship between them, so is there some way to make sure DM generates the tables needed before executing the view creating query?
rsim1 has quit [Quit: Leaving.]
akasper has quit [Quit: Leaving.]
akasper has joined #datamapper
postmodern has quit [Quit: Leaving]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
rsim has joined #datamapper
brianpWins has quit [Quit: brianpWins]
rsim has quit [Quit: Leaving.]
mbj has joined #datamapper
mikecmpbll has joined #datamapper
mikecmpbll has quit [Ping timeout: 264 seconds]
brianpWins has joined #datamapper
dkubb has joined #datamapper
zombor_ has quit [Remote host closed the connection]
zombor_ has joined #datamapper
lfox has quit [Quit: ZZZzzz…]
lfox has joined #datamapper
g0bl1n has quit [Ping timeout: 264 seconds]
tpitale has joined #datamapper
<tpitale> data_objects/Command.java:261:in `execute_reader' "This method is not yet implemented."
<tpitale> using jruby 1.7.4, jdbc-postgres, do_postgres
<tpitale> I'm guessing I'm missing a gem somewhere in there
<tpitale> @dbussink Any thoughts on which gem I'm missing? What would cause execute_reader to be un-implemented?
mikecmpbll has joined #datamapper
<mbj> tpitale: Can you post a verbose stacktrace?
<mbj> tpitale: maybe also updating jruby, I had some method dispatch problems with 1.7.4 that caused undefined methods in some situartions.
<mbj> tpitale: *together with the newest JVMs.
<tpitale> I can try updating, but here's a gist of the full stack trace: https://gist.github.com/tpitale/a5f66c019f0a7ceca6fe
<mbj> tpitale: I dont know the implementation of the jdbc stuff. You have some chance this is fixed with newer jruby.
<tpitale> installing 1.7.8 now
<tpitale> same issue wit 1.7.8
<tpitale> Using java version "1.6.0_65"
<mbj> Can you try the 1.7 branch?
<mbj> I had my method dispatching problem with jvm 1.7 before jruby-1.7.5
<tpitale> yeah, trying to figure out the best way to install it
<tpitale> Okay, updated to the latest jdk and jruby
<tpitale> still getting the same stack trace
<mbj> heh
<mbj> tpitale: Lemme grep a bit in the source.
<tpitale> If this simplifies things, I can't run the example here: https://github.com/datamapper/do/tree/master/do_postgres#synopsis
<tpitale> against any database
<tpitale> connects just fine
<tpitale> builds the command
<tpitale> but running `execute_reader` returns the not implemented error
rsim has joined #datamapper
<tpitale> I'm using data_objects 0.10.10, gonna try 0.10.13
<tpitale> nope, 0.10.13 fails in the same way
<mbj> tpitale: So are you using jdbc somehwere?
<tpitale> no
<tpitale> this is the first time I've tried jruby with datamapper
<mbj> tpitale: Does it get pulled by do_postgresl under java?
<tpitale> I believe so, checking
<tpitale> yeah, seems to be a dependency for that platform
<dkubb> interesting, I haven't heard any issues with DO and jruby like this
<dkubb> dbussink would probably be the best person to ask, since he wrote the majority of the drivers
<dbussink> dkubb: actually not the java parts
<dbussink> is do_jdbc not loaded?
<dbussink> you might have to rebundle if you switch ruby version
<tpitale> I believe it is loaded
<tpitale> interesting, I will try that
<tpitale> uninstall all gems and reinstall
<dkubb> dbussink: ahh, right, mkristian wrote some of those too I think
<dbussink> travis runs against jruby as well, so it should work afaik
<tpitale> yeah … so weird
<tpitale> It's gotta be something on my system …
<tpitale> okay, rebundling since I didn't after the 1.7.4 => 1.7.8 update
<tpitale> nope … fails still
<tpitale> DataObjects::SQLError: This method is not yet implemented. (code: 0, sql state: 0A000, query: , uri: )
<tpitale> SQLError …
<dkubb> how di dyou rebundle? did you do a bundle clean --force or something?
<tpitale> I did gem list --no-version | xargs gem uninstall -ax
<tpitale> then bundle install
<dkubb> ahh ok
<dkubb> I wonder if that removes any gems with git dependencies
<tpitale> I'm going to make a clean example, not using any of my app dependencies
<tpitale> see what happens
<dkubb> yeah, then you can put it in a repo so others can pull it down and try it
<tpitale> I added what I did to the readme
postmodern has joined #datamapper
rsim has quit [Ping timeout: 245 seconds]
<dbussink> tpitale: so could you try prefixing the url with jdbc:
<tpitale> sure
<dbussink> not entirely sure that is necessary for jruby or not
<tpitale> replace postgres: with jdbc:?
<dbussink> no
<dbussink> jdbc:postgres:
<tpitale> okay
<tpitale> DataObjects::SQLError: Can't connect: jdbc:postgres://tpitale@localhost/tasty_production
<tpitale> stupid smileys
<dbussink> hmmm
<dbussink> weird
<dbussink> hmm, bundle install tries to compile the extension :s
<tpitale> what … how?
<tpitale> the C extension?
rsim has joined #datamapper
<tpitale> do I have to turn cextensions on as a jruby option?
<dbussink> no
<dbussink> i have no idea why it does this
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<dbussink> ok, that was me apparently
<tpitale> no worries, I'll just use rubinius :-)
<dbussink> DataObjects::SQLError: Can't connect: postgresql://tpitale@localhost/tasty_production
<dbussink> FATAL: role "tpitale" does not exist (code: , sql state: , query: , uri: )
<dbussink> seems to make sense
<tpitale> yeah, you'll have to change the role and db to anything on your system
<tpitale> I could change the query to take those as args, or env variables if it's helpful
<dbussink> yeah, trying that
<Cinchy_> [gist] gist:5c1da307b901f8a7508f (at gist.github.com, dbussink on 2013-11-21 21:54)
<dbussink> seems to work fine here :s
<tpitale> let me see if I drop a table if I get that
<tpitale> okay, nope, didn't get that
<tpitale> did you need to use the jdbc prefix?
<tpitale> maybe I need some other library for do_jdbc to work?
<tpitale> or is that standard in the jdk …
<tpitale> jdbc must be included in the jdk
<tpitale> alright, I'm calling it
<tpitale> no jruby for me
<tpitale> for now
<tpitale> thanks for all your help dbussink, dkubb, and mbj
<dkubb> tpitale: sorry I couldn't help more
<dkubb> we've been thinking about creating a vm on the ruby side that peolpe can spin up for testing and dev, so that at least when debugging issues like this we can do it on a known good system
<dkubb> s/ruby side/rom side/
<tpitale> I'll try to build something with packer/vagrant and nothing but jdk and jruby to see if I can get this example to work
<tpitale> it's gotta be something else on my computer
<dkubb> I've been using vagrant a lot, but I haven't used packer yet
<dbussink> tpitale: i haven't done anything special
<dbussink> tpitale: it's a bit older jruby, 1.7.4, i could try updating to see if that changes anything
<dbussink> just did a bundle install and ran it
<dbussink> tpitale: also no jdbc prefix
<dbussink> tpitale: just tried 1.7.8, works fine :s
tpitale has quit [Quit: Linkinus - http://linkinus.com]
gadgetoid has quit [Ping timeout: 260 seconds]
gadgetoid has joined #datamapper
mbj has quit [Quit: leaving]
lfox has quit [Quit: ZZZzzz…]
akasper has quit [Quit: Leaving.]
akasper has joined #datamapper
akasper has quit [Client Quit]
rsim has quit [Quit: Leaving.]
knowtheory has quit [Ping timeout: 272 seconds]