remove DataMapper dependency caveat from base README now that we can just include the dependency directly in the adapter gem.

This commit is contained in:
Micah Geisel 2019-05-20 11:12:18 -06:00
parent dbfeda47dd
commit f078c77c4c
3 changed files with 5 additions and 7 deletions

View file

@ -73,10 +73,6 @@ Some people report much faster speeds with `:deletion` while others say `:trunca
If you are using ActiveRecord then take a look at the [additional options](#additional-activerecord-options-for-truncation) available for `:truncation`.
## Dependencies
Because database_cleaner supports multiple ORMs, it doesn't make sense to include all the dependencies for each one in the gemspec. However, the DataMapper adapter does depend on dm-transactions. Therefore, if you use DataMapper, you must include dm-transactions in your Gemfile/bundle/gemset manually.
## How to use
```ruby

View file

@ -9,12 +9,13 @@ PATH
database_cleaner-data_mapper (1.8.0)
database_cleaner (~> 1.8.0)
datamapper
dm-transactions
GEM
remote: https://rubygems.org/
specs:
addressable (2.3.6)
bcrypt (3.1.7)
bcrypt (3.1.12)
bcrypt-ruby (3.1.5)
bcrypt (>= 3.1.3)
data_objects (0.10.14)
@ -68,8 +69,8 @@ GEM
data_objects (= 0.10.14)
fastercsv (1.5.5)
json (1.8.6)
json_pure (1.8.1)
multi_json (1.2.0)
json_pure (1.8.6)
multi_json (1.13.1)
rake (10.4.2)
rspec (3.7.0)
rspec-core (~> 3.7.0)

View file

@ -23,6 +23,7 @@ Gem::Specification.new do |spec|
spec.add_dependency "database_cleaner", "~> 1.8.0"
spec.add_dependency "datamapper"
spec.add_dependency "dm-transactions"
spec.add_development_dependency "rake", "~> 10.0"
spec.add_development_dependency "bundler", "~> 1.16"