README.md in turf-0.0.5 vs README.md in turf-1.0.0

- old
+ new

@@ -77,12 +77,48 @@ ```ruby require 'turf' ``` -Create the `Turf::Local`, `Turf::Test`, `Turf::Development`, `Turf::Production`, and `Turf::Default` classes (you don't have to create all of them, just the ones you want). +## Suggested Setup -Use `Turf.find()` in your project. +Include the Turf setup rake task in your project's `Rakefile`: + +```ruby +load "tasks/setup.rake" +``` + +Run the rake task to create the classes in your project: + +``` +bundle exec rake turf:setup +``` + +Require all the files in the `/lib/#{project_name}.rb` file: + +```ruby +require_relative "../config/turf/default.rb" + +def require_all(pattern) + Dir.glob("#{Turf.find(:root)}/#{pattern}/**/*.rb").sort.each { |path| require path } +end + +require_all("config/turf") +``` + +Set the `RAILS_ENV` to "develoment" at the top of the `/lib/#{project_name}.rb` file: + +```ruby +ENV['RAILS_ENV'] ||= "development" +``` + +Set the `RAILS_ENV` to "test" in the `spec_helper.rb` file: + +```ruby +ENV['RAILS_ENV'] = 'test' +``` + +Set the `RAILS_ENV` to production on the remote host. ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/MrPowers/turf.