Skip to content

Instantly share code, notes, and snippets.

@AJ-Acevedo
Created June 23, 2013 17:42
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 AJ-Acevedo/5845856 to your computer and use it in GitHub Desktop.
Save AJ-Acevedo/5845856 to your computer and use it in GitHub Desktop.
RailsApps Composer not working with Rails RC2
minibook:sandbox aj$ ruby -v
ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-darwin11.4.2]
minibook:sandbox aj$ rvm gemset use mytest --create
minibook:sandbox aj$ gem install rails --version=4.0.0.rc2
Fetching: i18n-0.6.4.gem (100%)
Successfully installed i18n-0.6.4
Fetching: multi_json-1.7.7.gem (100%)
Successfully installed multi_json-1.7.7
Fetching: tzinfo-0.3.37.gem (100%)
Successfully installed tzinfo-0.3.37
Fetching: atomic-1.1.9.gem (100%)
Building native extensions. This could take a while...
Successfully installed atomic-1.1.9
Fetching: thread_safe-0.1.0.gem (100%)
Successfully installed thread_safe-0.1.0
Fetching: activesupport-4.0.0.rc2.gem (100%)
Successfully installed activesupport-4.0.0.rc2
Fetching: builder-3.1.4.gem (100%)
Successfully installed builder-3.1.4
Fetching: rack-1.5.2.gem (100%)
Successfully installed rack-1.5.2
Fetching: rack-test-0.6.2.gem (100%)
Successfully installed rack-test-0.6.2
Fetching: erubis-2.7.0.gem (100%)
Successfully installed erubis-2.7.0
Fetching: actionpack-4.0.0.rc2.gem (100%)
Successfully installed actionpack-4.0.0.rc2
Fetching: activemodel-4.0.0.rc2.gem (100%)
Successfully installed activemodel-4.0.0.rc2
Fetching: arel-4.0.0.gem (100%)
Successfully installed arel-4.0.0
Fetching: activerecord-deprecated_finders-1.0.3.gem (100%)
Successfully installed activerecord-deprecated_finders-1.0.3
Fetching: activerecord-4.0.0.rc2.gem (100%)
Successfully installed activerecord-4.0.0.rc2
Fetching: mime-types-1.23.gem (100%)
Successfully installed mime-types-1.23
Fetching: polyglot-0.3.3.gem (100%)
Successfully installed polyglot-0.3.3
Fetching: treetop-1.4.14.gem (100%)
Successfully installed treetop-1.4.14
Fetching: mail-2.5.4.gem (100%)
Successfully installed mail-2.5.4
Fetching: actionmailer-4.0.0.rc2.gem (100%)
Successfully installed actionmailer-4.0.0.rc2
Fetching: thor-0.18.1.gem (100%)
Successfully installed thor-0.18.1
Fetching: railties-4.0.0.rc2.gem (100%)
Successfully installed railties-4.0.0.rc2
Fetching: hike-1.2.3.gem (100%)
Successfully installed hike-1.2.3
Fetching: tilt-1.4.1.gem (100%)
Successfully installed tilt-1.4.1
Fetching: sprockets-2.10.0.gem (100%)
Successfully installed sprockets-2.10.0
Fetching: sprockets-rails-2.0.0.gem (100%)
Successfully installed sprockets-rails-2.0.0
Fetching: rails-4.0.0.rc2.gem (100%)
Successfully installed rails-4.0.0.rc2
27 gems installed
minibook:sandbox aj$ gem install rails_apps_composer
Fetching: i18n-0.6.1.gem (100%)
Successfully installed i18n-0.6.1
Fetching: rails_apps_composer-2.3.1.gem (100%)
Successfully installed rails_apps_composer-2.3.1
2 gems installed
minibook:sandbox aj$ gem update minitest -v '~> 4.2'
Updating installed gems
HEAD https://rubygems.org/specs.4.8.gz
302 Moved Temporarily
HEAD https://s3.amazonaws.com/production.s3.rubygems.org/specs.4.8.gz
200 OK
GET https://rubygems.org/specs.4.8.gz
302 Moved Temporarily
GET https://s3.amazonaws.com/production.s3.rubygems.org/specs.4.8.gz
200 OK
Updating minitest
GET https://rubygems.org/quick/Marshal.4.8/minitest-5.0.5.gemspec.rz
302 Moved Temporarily
GET https://bb-m.rubygems.org/quick/Marshal.4.8/minitest-5.0.5.gemspec.rz
200 OK
Installing gem minitest-5.0.5
Downloading gem minitest-5.0.5.gem
GET https://rubygems.org/gems/minitest-5.0.5.gem
302 Moved Temporarily
GET https://bb-m.rubygems.org/gems/minitest-5.0.5.gem
Fetching: minitest-5.0.5.gem (100%)
200 OK
/Users/aj/.rvm/gems/ruby-2.0.0-p195@mytest/gems/minitest-5.0.5/.autotest
/Users/aj/.rvm/gems/ruby-2.0.0-p195@mytest/gems/minitest-5.0.5/History.txt
/Users/aj/.rvm/gems/ruby-2.0.0-p195@mytest/gems/minitest-5.0.5/Manifest.txt
/Users/aj/.rvm/gems/ruby-2.0.0-p195@mytest/gems/minitest-5.0.5/README.txt
/Users/aj/.rvm/gems/ruby-2.0.0-p195@mytest/gems/minitest-5.0.5/Rakefile
/Users/aj/.rvm/gems/ruby-2.0.0-p195@mytest/gems/minitest-5.0.5/design_rationale.rb
/Users/aj/.rvm/gems/ruby-2.0.0-p195@mytest/gems/minitest-5.0.5/lib/hoe/minitest.rb
/Users/aj/.rvm/gems/ruby-2.0.0-p195@mytest/gems/minitest-5.0.5/lib/minitest.rb
/Users/aj/.rvm/gems/ruby-2.0.0-p195@mytest/gems/minitest-5.0.5/lib/minitest/assertions.rb
/Users/aj/.rvm/gems/ruby-2.0.0-p195@mytest/gems/minitest-5.0.5/lib/minitest/autorun.rb
/Users/aj/.rvm/gems/ruby-2.0.0-p195@mytest/gems/minitest-5.0.5/lib/minitest/benchmark.rb
/Users/aj/.rvm/gems/ruby-2.0.0-p195@mytest/gems/minitest-5.0.5/lib/minitest/expectations.rb
/Users/aj/.rvm/gems/ruby-2.0.0-p195@mytest/gems/minitest-5.0.5/lib/minitest/hell.rb
/Users/aj/.rvm/gems/ruby-2.0.0-p195@mytest/gems/minitest-5.0.5/lib/minitest/mock.rb
/Users/aj/.rvm/gems/ruby-2.0.0-p195@mytest/gems/minitest-5.0.5/lib/minitest/parallel_each.rb
/Users/aj/.rvm/gems/ruby-2.0.0-p195@mytest/gems/minitest-5.0.5/lib/minitest/pride.rb
/Users/aj/.rvm/gems/ruby-2.0.0-p195@mytest/gems/minitest-5.0.5/lib/minitest/pride_plugin.rb
/Users/aj/.rvm/gems/ruby-2.0.0-p195@mytest/gems/minitest-5.0.5/lib/minitest/spec.rb
/Users/aj/.rvm/gems/ruby-2.0.0-p195@mytest/gems/minitest-5.0.5/lib/minitest/test.rb
/Users/aj/.rvm/gems/ruby-2.0.0-p195@mytest/gems/minitest-5.0.5/lib/minitest/unit.rb
/Users/aj/.rvm/gems/ruby-2.0.0-p195@mytest/gems/minitest-5.0.5/test/minitest/metametameta.rb
/Users/aj/.rvm/gems/ruby-2.0.0-p195@mytest/gems/minitest-5.0.5/test/minitest/test_minitest_benchmark.rb
/Users/aj/.rvm/gems/ruby-2.0.0-p195@mytest/gems/minitest-5.0.5/test/minitest/test_minitest_mock.rb
/Users/aj/.rvm/gems/ruby-2.0.0-p195@mytest/gems/minitest-5.0.5/test/minitest/test_minitest_reporter.rb
/Users/aj/.rvm/gems/ruby-2.0.0-p195@mytest/gems/minitest-5.0.5/test/minitest/test_minitest_spec.rb
/Users/aj/.rvm/gems/ruby-2.0.0-p195@mytest/gems/minitest-5.0.5/test/minitest/test_minitest_unit.rb
/Users/aj/.rvm/gems/ruby-2.0.0-p195@mytest/gems/minitest-5.0.5/.gemtest
Successfully installed minitest-5.0.5
Gems updated: minitest
minibook:sandbox aj$ rails_apps_composer new mytest -r core
Would you like to skip Test::Unit? (yes for RSpec) (y/n) y
Would you like to skip Active Record? (yes for MongoDB) (y/n) n
What gem would you like to add? (blank to finish)
Generating basic application, using: "rails new mytest -m <temp_file> -T "
Using --skip-test-unit from /Users/aj/.railsrc
create
create README.rdoc
create Rakefile
create config.ru
create .gitignore
create Gemfile
create app
create app/assets/javascripts/application.js
create app/assets/stylesheets/application.css
create app/controllers/application_controller.rb
create app/helpers/application_helper.rb
create app/views/layouts/application.html.erb
create app/assets/images/.keep
create app/mailers/.keep
create app/models/.keep
create app/controllers/concerns/.keep
create app/models/concerns/.keep
create bin
create bin/bundle
create bin/rails
create bin/rake
create config
create config/routes.rb
create config/application.rb
create config/environment.rb
create config/environments
create config/environments/development.rb
create config/environments/production.rb
create config/environments/test.rb
create config/initializers
create config/initializers/backtrace_silencers.rb
create config/initializers/filter_parameter_logging.rb
create config/initializers/inflections.rb
create config/initializers/mime_types.rb
create config/initializers/secret_token.rb
create config/initializers/session_store.rb
create config/initializers/wrap_parameters.rb
create config/locales
create config/locales/en.yml
create config/boot.rb
create config/database.yml
create db
create db/seeds.rb
create lib
create lib/tasks
create lib/tasks/.keep
create lib/assets
create lib/assets/.keep
create log
create log/.keep
create public
create public/404.html
create public/422.html
create public/500.html
create public/favicon.ico
create public/robots.txt
create tmp/cache
create tmp/cache/assets
create vendor/assets/javascripts
create vendor/assets/javascripts/.keep
create vendor/assets/stylesheets
create vendor/assets/stylesheets/.keep
apply /var/folders/3v/g10h3hjj0vnb04m885zn1qzc0000gn/T/template20130623-29508-4q6gos
initializer generators.rb
composer WOOT! The recipes you've selected are known to work together.
composer WARNING! See GitHub for issues with Rails 4.0.0.rc2.
composer Using rails_apps_composer recipes to generate an application.
insert config/application.rb
recipe Running core recipe...
core selected all core recipes
recipe Running git recipe...
git initialize git
remove .gitignore
create .gitignore
run git init from "."
Initialized empty Git repository in /Users/aj/DevZone/sandbox/mytest/.git/
run git add -A from "."
run git commit -qm "rails_apps_composer: initial commit" from "."
recipe Running railsapps recipe...
question Install an example application for Rails 4.0?
1) simple-test
2) I want to build my own application
3) Build a RailsApps starter application
4) Build a contributed application
railsapps Enter your selection: 1
recipe Running setup recipe...
setup Your operating system is darwin11.4.2.
setup You are using Ruby version 2.0.0.
setup You are using Rails version 4.0.0.rc2.
create README
append README
recipe Running readme recipe...
recipe Running gems recipe...
gsub Gemfile
gsub Gemfile
recipe Running testing recipe...
recipe Running email recipe...
recipe Running models recipe...
recipe Running controllers recipe...
recipe Running views recipe...
recipe Running routes recipe...
recipe Running frontend recipe...
recipe Running init recipe...
recipe Running prelaunch recipe...
recipe Running prelaunch recipe...
recipe Running extras recipe...
extras Use or create a project-specific rvm gemset? (y/n) y
extras recipe creating project-specific rvm gemset and .rvmrc
WARN: Unresolved specs during Gem::Specification.reset:
rake (>= 0.8.7)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
extras creating RVM gemset 'mytest'
extras switching to gemset 'mytest'
run rvm gemset list from "."
gemsets for ruby-2.0.0-p195 (found in /Users/aj/.rvm/gems/ruby-2.0.0-p195)
(default)
global
=> mytest
create .ruby-version
create .ruby-gemset
composer Installing gems. This will take a while.
run bundle install --without production from "."
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Installing rake (10.1.0)
Using i18n (0.6.4)
Installing minitest (4.7.5)
Using multi_json (1.7.7)
Using atomic (1.1.9)
Using thread_safe (0.1.0)
Using tzinfo (0.3.37)
Using activesupport (4.0.0.rc2)
Using builder (3.1.4)
Using erubis (2.7.0)
Using rack (1.5.2)
Using rack-test (0.6.2)
Using actionpack (4.0.0.rc2)
Using mime-types (1.23)
Using polyglot (0.3.3)
Using treetop (1.4.14)
Using mail (2.5.4)
Using actionmailer (4.0.0.rc2)
Using activemodel (4.0.0.rc2)
Using activerecord-deprecated_finders (1.0.3)
Using arel (4.0.0)
Using activerecord (4.0.0.rc2)
Using bundler (1.3.5)
Installing coffee-script-source (1.6.2)
Installing execjs (1.4.0)
Installing coffee-script (2.2.0)
Using thor (0.18.1)
Using railties (4.0.0.rc2)
Installing coffee-rails (4.0.0)
Using hike (1.2.3)
Installing jbuilder (1.4.2)
Installing jquery-rails (3.0.1)
Installing json (1.8.0)
Using tilt (1.4.1)
Using sprockets (2.10.0)
Using sprockets-rails (2.0.0)
Using rails (4.0.0.rc2)
Installing rdoc (3.12.2)
Installing sass (3.2.9)
Installing sass-rails (4.0.0.rc2)
Installing sdoc (0.3.20)
Installing sqlite3 (1.3.7)
Installing turbolinks (1.2.0)
Installing uglifier (2.1.1)
Your bundle is complete!
Gems in the group production were not installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
Post-install message from rdoc:
Depending on your version of ruby, you may need to install ruby rdoc/ri data:
<= 1.8.6 : unsupported
= 1.8.7 : gem install rdoc-data; rdoc-data --install
= 1.9.1 : gem install rdoc-data; rdoc-data --install
>= 1.9.2 : nothing to do! Yay!
composer Running 'after bundler' callbacks.
The template [/var/folders/3v/g10h3hjj0vnb04m885zn1qzc0000gn/T/template20130623-29508-4q6gos] could not be loaded. Error: You have already activated minitest 4.3.2, but your Gemfile requires minitest 4.7.5. Using bundle exec may solve this.
minibook:sandbox aj$ gem uninstall minitest --version 5.0.5
minibook:sandbox aj$ cd mytest
minibook:mytest aj$ bundle
Using rake (10.1.0)
Using i18n (0.6.4)
Using minitest (4.7.5)
Using multi_json (1.7.7)
Using atomic (1.1.9)
Using thread_safe (0.1.0)
Using tzinfo (0.3.37)
Using activesupport (4.0.0.rc2)
Using builder (3.1.4)
Using erubis (2.7.0)
Using rack (1.5.2)
Using rack-test (0.6.2)
Using actionpack (4.0.0.rc2)
Using mime-types (1.23)
Using polyglot (0.3.3)
Using treetop (1.4.14)
Using mail (2.5.4)
Using actionmailer (4.0.0.rc2)
Using activemodel (4.0.0.rc2)
Using activerecord-deprecated_finders (1.0.3)
Using arel (4.0.0)
Using activerecord (4.0.0.rc2)
Using coffee-script-source (1.6.2)
Using execjs (1.4.0)
Using coffee-script (2.2.0)
Using thor (0.18.1)
Using railties (4.0.0.rc2)
Using coffee-rails (4.0.0)
Using hike (1.2.3)
Using jbuilder (1.4.2)
Using jquery-rails (3.0.1)
Using json (1.8.0)
Using bundler (1.3.5)
Using tilt (1.4.1)
Using sprockets (2.10.0)
Using sprockets-rails (2.0.0)
Using rails (4.0.0.rc2)
Using rdoc (3.12.2)
Using sass (3.2.9)
Using sass-rails (4.0.0.rc2)
Using sdoc (0.3.20)
Using sqlite3 (1.3.7)
Using turbolinks (1.2.0)
Using uglifier (2.1.1)
Your bundle is complete!
Gems in the group production were not installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
minibook:mytest aj$ rails s
=> Booting WEBrick
=> Rails 4.0.0.rc2 application starting in development on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
[2013-06-23 13:39:50] INFO WEBrick 1.3.1
[2013-06-23 13:39:50] INFO ruby 2.0.0 (2013-05-14) [x86_64-darwin11.4.2]
[2013-06-23 13:39:50] INFO WEBrick::HTTPServer#start: pid=30606 port=3000
Started GET "/" for 127.0.0.1 at 2013-06-23 13:40:08 -0400
Processing by Rails::WelcomeController#index as HTML
Rendered /Users/aj/.rvm/gems/ruby-2.0.0-p195@mytest/gems/railties-4.0.0.rc2/lib/rails/templates/rails/welcome/index.html.erb (1.4ms)
Completed 200 OK in 26ms (Views: 6.6ms | ActiveRecord: 0.0ms)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment