missing dependencies or recommends for default environment

Bug #1281300 reported by phobie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ruby-railties-3.2 (Ubuntu)
New
Undecided
Unassigned

Bug Description

ruby-railties-3.2 which contains /usr/bin/rails should depend on or at least recommend packages needed in a default environment!

Most users will use the "rails new /somepath" command, but this command depends on several packages which does not get installed automatically: bundler ruby-rails-3.2 ruby-jquery-rails ruby-coffee-rails ruby-sqlite3 ruby-sass-rails ruby-uglifier

If "rails" is executed in the newly created workspace the following packages are needed: bundler ruby-coffee-script-source ruby-execjs ruby-coffee-script ruby-coffee-rails ruby-jquery-rails ruby-rails-3.2 ruby-sass ruby-sass-rails ruby-sqlite3 ruby-uglifier

Since ruby-activerecord-3.2 seems to have a missing dependency on ruby-sqlite3 we might not need to list it here.
See /usr/lib/ruby/vendor_ruby/active_record/connection_adapters/sqlite3_adapter.rb

Where to find the dependencies:
- ruby-jquery-rails
  used by template /usr/lib/ruby/vendor_ruby/rails/generators/rails/plugin_new/templates/Gemfile
- ruby-rails-3.2, ruby-journey, ruby-sass-rails, ruby-coffee-rails and ruby-uglifier
  used by template generator /usr/lib/ruby/vendor_ruby/rails/generators/app_base.rb
- bundler
  used by templates:
    /usr/lib/ruby/vendor_ruby/rails/generators/rails/plugin_new/templates/Rakefile
    /usr/lib/ruby/vendor_ruby/rails/generators/rails/app/templates/config/boot.rb

How to replicate:
remove ruby*
install ruby-railties-3.2
execute "rails new /tmp/test1"
cd /tmp/test1
execute "rails server"
rm -rf /tmp/test1

Errors shown by rails new:
/usr/bin/ruby1.9.1: No such file or directory -- /usr/bin/bundle (LoadError)
Could not find gem 'rails (= 3.2.13) ruby' in the gems available on this machine.
Could not find gem 'jquery-rails (>= 0) ruby' in the gems available on this machine.
Could not find gem 'coffee-rails (~> 3.2.1) ruby' in the gems available on this machine.
Could not find gem 'sqlite3 (>= 0) ruby' in the gems available on this machine.
Could not find gem 'sass-rails (~> 3.2.3) ruby' in the gems available on this machine.
Could not find gem 'uglifier (>= 1.0.3) ruby' in the gems available on this machine.
Could not find gem 'arel (~> 3.0.2) ruby', which is required by gem 'rails (= 3.2.13) ruby', in any of the sources.

Errors shown in default environment:
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- bundler/setup (LoadError)
Could not find arel-3.0.2 in any of the sources
Could not find coffee-script-source-1.3.3 in any of the sources
Could not find execjs-1.4.0 in any of the sources
Could not find coffee-script-2.2.0 in any of the sources
Could not find coffee-rails-3.2.2 in any of the sources
Could not find jquery-rails-2.0.2 in any of the sources
Could not find rails-3.2.13 in any of the sources
Could not find sass-3.2.9 in any of the sources
Could not find sass-rails-3.2.5 in any of the sources
Could not find sqlite3-1.3.6 in any of the sources
Could not find uglifier-1.2.5 in any of the sources

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.