Public bug reported:

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

** Affects: ruby-railties-3.2 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1281300

Title:
  missing dependencies or recommends for default environment

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ruby-railties-3.2/+bug/1281300/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to