Require YAML in gemspec.

Previously, when bundling the database cleaner gem, an error was raised due to YAML not being loaded.

```
Updating https://github.com/DatabaseCleaner/database_cleaner.git

There was a NameError while loading database_cleaner.gemspec: 

uninitialized constant YAML from
.../app/vendor/bundle/bundler/gems/database_cleaner-a8157176681a/database_cleaner.gemspec:1:in `<main>'
```

This was introduced in a815717668. Requiring YAML fixes the issue.
This commit is contained in:
Josh Nesbitt 2015-03-11 17:00:36 +00:00
parent a815717668
commit 7dd550cdb5

View file

@ -1,3 +1,5 @@
require 'yaml'
version = YAML.load_file 'VERSION.yml'
Gem::Specification.new do |s|