hi, taking your code I got the same error but after some little fixes
it worked:

require 'rubygems'
gem 'dm-core', '0.10.2'
gem 'dm-validations', '0.10.2'
gem 'dm-migrations', '0.10.2'
gem 'do_sqlite3'

require 'dm-core'
DataMapper.setup(:default, 'sqlite3::memory:')


so I would say you need a "require 'dm-core'" somewhere before you use
DataMapper. but I did not read the whole thread here so I might be
wrong.

regards Kristian

On Jun 16, 12:05 am, Dan Sosedov <[email protected]> wrote:
> Hey Dan,
>
> I just reproduced the same issue on a different computer (macbook)
>
> Exactly what i did:
>
> sudo gem update --system
> sudo gem install --version=0.10.2 dm-core dm-validations dm-migrations
> do_sqlite3
> sudo gem update
>
> I got both versions 0.10.2 and 1.0 on a clean system.
>
> Then i created a simple file (and i dont have anything else to
> provide):
>
> --------------------------------------------------
> require 'rubygems'
> gem 'dm-core', '0.10.2'
> gem 'dm-validations', '0.10.2'
> gem 'dm-migrations', '0.10.2'
>
> DataMapper.setup(:default, 'sqlite:memory')
> --------------------------------------------------
>
> And first run i got "NameError: uninitialized constant DataMapper"
>
> Am i missing something? Previous version worked fine.
>
> Please advice.
>
> On Jun 12, 7:02 pm, "Dan Kubb (dkubb)" <[email protected]> wrote:
>
> > Dan,
>
> > > Yeah, i know about deps but check my first message - i specified all
> > > the gem versions, starting from dm-core, and do_mysql (which is not
> > > required under 1.0).
>
> > > Is this something to do how`s rubygems processing dependencies or just
> > > my mistakes?
>
> > You've included just a snippet of your Gemfile, but it's hard to try
> > to reproduce it locally without your actual Gemfile.
>
> > If you gist it and then include a link it would allow us to test it
> > locally and dig a bit deeper into the problem. Just the top-level
> > error message isn't really enough to reproduce things. However if I
> > could use your Gemfile (or something simplified that still produces
> > the problem) I could reproduce it and fix it if it's a bug here, or
> > provide you with the fix to your Gemfile if it's a usage error.
>
> > --
>
> > Dan

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en.

Reply via email to