Skip to content

Instantly share code, notes, and snippets.

@cbeer
Created March 1, 2010 16:39
Show Gist options
  • Save cbeer/318528 to your computer and use it in GitHub Desktop.
Save cbeer/318528 to your computer and use it in GitHub Desktop.
The output of rake rails:upgrade:configuration didn't look very useful -- probably better to rewrite it.
Old router API
The router API has totally changed.
More information: http://yehudakatz.com/2009/12/26/the-rails-3-router-rack-it-up/
The culprits:
- config/routes.rb
New file needed: config/application.rb
You need to add a config/application.rb.
More information: http://omgbloglol.com/post/353978923/the-path-to-rails-3-approaching-the-upgrade
The culprits:
- config/application.rb
Deprecated constant(s)
Constants like RAILS_ENV, RAILS_ROOT, and RAILS_DEFAULT_LOGGER are now deprecated.
More information: http://litanyagainstfear.com/blog/2010/02/03/the-rails-module/
The culprits:
- /wgbh/http/openvault/vendor/plugins/blacklight/app/views/catalog/_solr_request.html.erb
- /wgbh/http/openvault/vendor/plugins/blacklight/lib/tasks/solr_marc.rake
- /wgbh/http/openvault/vendor/plugins/blacklight/lib/blacklight/configurable.rb
- /wgbh/http/openvault/vendor/plugins/blacklight/lib/blacklight.rb
- /wgbh/http/openvault/vendor/plugins/blacklight/lib/tasks/cucumber.rake
- /wgbh/http/openvault/vendor/plugins/blacklight/lib/tasks/rspec.rake
Old gem bundling (config.gems)
The old way of bundling is gone now. You need a Gemfile for bundler.
More information: http://omgbloglol.com/post/353978923/the-path-to-rails-3-approaching-the-upgrade
The culprits:
- /wgbh/http/openvault/vendor/plugins/blacklight/config/environment.rb
Deprecated ActionMailer API
You're using the old ActionMailer API to send e-mails in a controller, model, or observer.
More information: http://lindsaar.net/2010/1/26/new-actionmailer-api-in-rails-3
The culprits:
- /wgbh/http/openvault/vendor/plugins/blacklight/app/controllers/feedback_controller.rb
Old ActionMailer class API
You're using the old API in a mailer class.
More information: http://lindsaar.net/2010/1/26/new-actionmailer-api-in-rails-3
The culprits:
- /wgbh/http/openvault/vendor/plugins/blacklight/app/models/record_mailer.rb
- /wgbh/http/openvault/vendor/plugins/blacklight/app/models/record_mailer.rb
- /wgbh/http/openvault/vendor/plugins/blacklight/app/models/record_mailer.rb
Old Rails generator API
A plugin in the app is using the old generator API (a new one may be available at http://github.com/trydionel/rails3-generators).
More information: http://blog.plataformatec.com.br/2010/01/discovering-rails-3-generators/
The culprits:
- /wgbh/http/openvault/vendor/plugins/blacklight/vendor/plugins/resource_controller/generators/
- /wgbh/http/openvault/vendor/plugins/blacklight/vendor/plugins/resource_controller/generators/scaffold_resource/
- /wgbh/http/openvault/vendor/plugins/blacklight/vendor/plugins/resource_controller/generators/scaffold_resource/templates/
- /wgbh/http/openvault/vendor/plugins/blacklight/vendor/plugins/resource_controller/generators/scaffold_resource/templates/rspec/
- /wgbh/http/openvault/vendor/plugins/blacklight/vendor/plugins/resource_controller/generators/scaffold_resource/templates/rspec/views/
- /wgbh/http/openvault/vendor/plugins/blacklight/vendor/plugins/acts_as_taggable_on_steroids/generators/
- /wgbh/http/openvault/vendor/plugins/blacklight/vendor/plugins/acts_as_taggable_on_steroids/generators/acts_as_taggable_migration/
- /wgbh/http/openvault/vendor/plugins/blacklight/vendor/plugins/acts_as_taggable_on_steroids/generators/acts_as_taggable_migration/templates/
- /wgbh/http/openvault/vendor/plugins/blacklight/vendor/plugins/engines/generators/
- /wgbh/http/openvault/vendor/plugins/blacklight/vendor/plugins/engines/generators/plugin_migration/
- /wgbh/http/openvault/vendor/plugins/blacklight/vendor/plugins/engines/generators/plugin_migration/templates/
# Edit this Gemfile to bundle your application's dependencies.
# This preamble is the current preamble for Rails 3 apps; edit as needed.
path "/path/to/rails", :glob => "{*/,}*.gemspec"
git "git://github.com/rails/rack.git"
gem "rails", "3.0.pre"
gem 'rspec', '1.3.0'
gem 'rspec-rails', '1.3.2'
gem 'webrat', '0.7.0'
gem 'cucumber', '0.6.2'
gem 'rcov', '0.9.7.1'
gem 'cucumber-rails', '>=0.2.4'
gem 'database_cleaner', '>=0.4.3'
gem 'webrat', '>=0.6.0'
gem 'rspec', '>=1.3.0'
gem 'rspec-rails', '>=1.3.2'
gem 'rdoc', '2.4.3'
gem 'haml', '2.2.19'
source 'http://gemcutter.org'
gem 'hanna', '0.1.12', :require_as => 'hanna/rdoctask'
rake rails:upgrade:routes
(in /wgbh/http/openvault/vendor/plugins/blacklight)
rake aborted!
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:440:in `load_missing_constant': uninitialized constant Rails::Upgrading::FakeRouter::Blacklight
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment