Skip to content

Instantly share code, notes, and snippets.

@edruder
Created November 17, 2010 05:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edruder/703022 to your computer and use it in GitHub Desktop.
Save edruder/703022 to your computer and use it in GitHub Desktop.
Demonstration of warning messages that *still* occur after adding heroku gem to a Rails 3 app
$ gem list heroku
*** LOCAL GEMS ***
heroku (1.13.6)
$ rails g
/Users/ed_ruder/.rvm/gems/ruby-1.8.7-p299@rails3/gems/json-1.4.6/lib/json/common.rb:65: warning: already initialized constant State
/Users/ed_ruder/.rvm/gems/ruby-1.8.7-p299@rails3/gems/json-1.4.6/lib/json/common.rb:66: warning: already initialized constant SAFE_STATE_PROTOTYPE
/Users/ed_ruder/.rvm/gems/ruby-1.8.7-p299@rails3/gems/json-1.4.6/lib/json/common.rb:67: warning: already initialized constant FAST_STATE_PROTOTYPE
/Users/ed_ruder/.rvm/gems/ruby-1.8.7-p299@rails3/gems/json-1.4.6/lib/json/common.rb:74: warning: already initialized constant PRETTY_STATE_PROTOTYPE
/Users/ed_ruder/.rvm/gems/ruby-1.8.7-p299@rails3/gems/json-1.4.6/lib/json/ext.rb:14: warning: already initialized constant JSON_LOADED
Usage: rails generate GENERATOR [args] [options]
General options:
-h, [--help] # Print generator's options and usage
-p, [--pretend] # Run but do not make any changes
-f, [--force] # Overwrite files that already exist
-s, [--skip] # Skip files that already exist
-q, [--quiet] # Suppress status output
...
$ gem uninstall heroku
Remove executables:
heroku
in addition to the gem? [Yn] y
Removing heroku
Successfully uninstalled heroku-1.13.6
$ rails g
Usage: rails generate GENERATOR [args] [options]
General options:
-h, [--help] # Print generator's options and usage
-p, [--pretend] # Run but do not make any changes
-f, [--force] # Overwrite files that already exist
-s, [--skip] # Skip files that already exist
-q, [--quiet] # Suppress status output
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment