```ruby
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:')
```

Remove rubygems usage from libraries
user
```ruby
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:')
```
assistant