require 'pathname'
require 'rubygems'

gem 'dm-core', '0.10.0'
gem 'randexp', '~>0.1.4'

require 'dm-core'

ROOT = Pathname(__FILE__).dirname.parent.expand_path

# use local dm-validations if running from dm-more directly
lib = ROOT.parent.join('dm-validations', 'lib').expand_path
$LOAD_PATH.unshift(lib) if lib.directory?
require 'dm-validations'

require ROOT + 'lib/dm-sweatshop'

DataMapper.setup(:default, 'sqlite3::memory:')

require 'pathname'
require 'rubygems'

gem 'dm-core', '0.10.0'
require 'dm-core'

ROOT = Pathname(__FILE__).dirname.parent

# use local dm-validations if running from dm-more directly
lib = ROOT.parent / 'dm-validations' / 'lib'
$LOAD_PATH.unshift(lib) if lib.directory?
require 'dm-validations'

require ROOT / 'lib' / 'dm-sweatshop'

DataMapper.setup(:default, 'sqlite3::memory:')

Remove rubygems usage from libraries
[dm-more] Remove rubygems usage from libraries

* No longer require dm-core inside the plugins.  Expected usage is to
  require dm-core prior to requiring the plugin.
* Updated pathname creation to using Pathname#/ where possible
