Switched to allowing a more canonical require statement

require "shoulda/matchers"  # canonical

-vs-

    require "shoulda-matchers"  # still allowed

See comments of http://blog.segment7.net/2010/11/15/how-to-name-gems
This commit is contained in:
Ryan McGeary 2011-01-31 16:30:31 -05:00
parent 9c9580c55b
commit b39fba0bed
2 changed files with 8 additions and 8 deletions

View File

@ -1,8 +1 @@
require 'shoulda/matchers/version'
if defined?(RSpec)
require 'shoulda/matchers/integrations/rspec'
else
require 'shoulda/matchers/integrations/test_unit'
end
require 'shoulda/matchers'

7
lib/shoulda/matchers.rb Normal file
View File

@ -0,0 +1,7 @@
require 'shoulda/matchers/version'
if defined?(RSpec)
require 'shoulda/matchers/integrations/rspec'
else
require 'shoulda/matchers/integrations/test_unit'
end