Use gemspec runtime dependency.

Use gemspec runtime dependency instead of condition check for Rails application.