RailsApps / rails_apps_composer

A gem with recipes to create Rails application templates for Rails starter apps.
http://railsapps.github.io/rails_apps_composer/
1.42k stars 306 forks source link

Capistrano-rails dependency on capistrano 3.1 but 3.0.1 being installed. Administrate depends on Rails 4.2 but rails 5 being installed #355

Open taimoorq opened 7 years ago

taimoorq commented 7 years ago

As the title says I tried to build an app using this gem today and got a couple of dependency issues. My output is below. I re-ran this and didnt include the administrate and capistrano options and it went through okay.

Output was

thor-mbp$ rails_apps_composer new . -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 . -m -T " exist
create README.md create Rakefile create config.ru create .gitignore create Gemfile create app create app/assets/config/manifest.js create app/assets/javascripts/application.js create app/assets/javascripts/cable.js create app/assets/stylesheets/application.css create app/channels/application_cable/channel.rb create app/channels/application_cable/connection.rb create app/controllers/application_controller.rb create app/helpers/application_helper.rb create app/jobs/application_job.rb create app/mailers/application_mailer.rb create app/models/application_record.rb create app/views/layouts/application.html.erb create app/views/layouts/mailer.html.erb create app/views/layouts/mailer.text.erb create app/assets/images/.keep create app/assets/javascripts/channels create app/assets/javascripts/channels/.keep create app/controllers/concerns/.keep create app/models/concerns/.keep create bin create bin/bundle create bin/rails create bin/rake create bin/setup create bin/update create config create config/routes.rb create config/application.rb create config/environment.rb create config/secrets.yml create config/cable.yml create config/puma.rb create config/spring.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/application_controller_renderer.rb create config/initializers/assets.rb create config/initializers/backtrace_silencers.rb create config/initializers/cookies_serializer.rb create config/initializers/cors.rb create config/initializers/filter_parameter_logging.rb create config/initializers/inflections.rb create config/initializers/mime_types.rb create config/initializers/new_framework_defaults.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/apple-touch-icon-precomposed.png create public/apple-touch-icon.png create public/favicon.ico create public/robots.txt create tmp create tmp/.keep 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 remove config/initializers/cors.rb apply /var/folders/0f/qj99f53j75gg8h8w31xym9c0000gn/T/template20160803-61740-gcyqci composer
composer ____
composer | \ () | /\ composer | |) | | | / \ _ _ _ composer | // ` | | / | / /\ \ | ' | ' \/ | composer | | \ \ (_| | | \ \/ _ | |) | |_) \ composer || \,|||**// \ ./| ./|_/ composer | | | | composer | | | | composer
composer If you like Rails Composer, will you support it? composer You can help by purchasing our tutorials. composer Need help? Ask on Stack Overflow with the tag 'railsapps.' composer Your new application will contain diagnostics in its README file. composer You are using Rails version 5.0.0. Please report any issues. 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/taimoor/dev/getshredded/.git/ run git add -A from "." run git commit -qm "rails_apps_composer: initial commit" from "." recipe Running railsapps recipe... option Build a starter application? 1) Build a RailsApps example application 2) Contributed applications (none available) 3) Custom application (experimental) choose Enter your selection: 3 Get on the mailing list for Rails Composer news? option Enter your email address: recipe Running learn_rails recipe... recipe Running rails_bootstrap recipe... recipe Running rails_foundation recipe... recipe Running rails_omniauth recipe... recipe Running rails_devise recipe... recipe Running rails_devise_roles recipe... recipe Running rails_devise_pundit recipe... recipe Running rails_signup_download recipe... recipe Running rails_mailinglist_activejob recipe... recipe Running rails_stripe_checkout recipe... recipe Running rails_stripe_coupons recipe... recipe Running rails_stripe_membership_saas recipe... recipe Running setup recipe... setup Your operating system is darwin15.5.0. setup You are using Ruby version 2.3.1. setup You are using Rails version 5.0.0. option Web server for development? 1) Puma (default) 2) Thin 3) Unicorn 4) Phusion Passenger (Apache/Nginx) 5) Phusion Passenger (Standalone) choose Enter your selection: 1 option Web server for production? 1) Same as development 2) Thin 3) Unicorn 4) Phusion Passenger (Apache/Nginx) 5) Phusion Passenger (Standalone) choose Enter your selection: 1 option Database used in development? 1) SQLite 2) PostgreSQL 3) MySQL choose Enter your selection: 2 option Template engine? 1) ERB 2) Haml 3) Slim choose Enter your selection: 1 option Test framework? 1) None 2) RSpec with Capybara choose Enter your selection: 2 setup Adding DatabaseCleaner, FactoryGirl, Faker, Launchy, Selenium option Continuous testing? 1) None 2) Guard choose Enter your selection: 2 option Front-end framework? 1) None 2) Bootstrap 3.3 3) Bootstrap 2.3 4) Zurb Foundation 5.5 5) Zurb Foundation 4.0 6) Simple CSS choose Enter your selection: 2 option Add support for sending email? 1) None 2) Gmail 3) SMTP 4) SendGrid 5) Mandrill choose Enter your selection: 2 option Authentication? 1) None 2) Devise 3) OmniAuth choose Enter your selection: 2 option Devise modules? 1) Devise with default modules 2) Devise with Confirmable module 3) Devise with Confirmable and Invitable modules choose Enter your selection: 3 option Authorization? 1) None 2) Simple role-based 3) Pundit choose Enter your selection: 3 option Admin interface for database? 1) None 2) Thoughtbot Administrate 3) Upmin choose Enter your selection: 2 option Use a form builder gem? 1) None 2) SimpleForm choose Enter your selection: 2 option Add pages? 1) None 2) Home 3) Home and About 4) Home and Users 5) Home, About, and Users choose Enter your selection: 5 setup Which Bootstrap page template? Visit startbootstrap.com. option Add Bootstrap page templates? 1) None 2) 1 Col Portfolio 3) 2 Col Portfolio 4) 3 Col Portfolio 5) 4 Col Portfolio 6) Bare 7) Blog Home 8) Business Casual 9) Business Frontpage 10) Clean Blog 11) Full Width Pics 12) Heroic Features 13) Landing Page 14) Modern Business 15) One Page Wonder 16) Portfolio Item 17) Round About 18) Shop Homepage 19) Shop Item 20) Simple Sidebar 21) Small Business 22) Stylish Portfolio 23) The Big Picture 24) Thumbnail Gallery choose Enter your selection: 1 create config/railscomposer.yml append config/railscomposer.yml recipe Running locale recipe... option Set a locale? Enter nothing for English, or es, de, etc: recipe Running readme recipe... recipe Running gems recipe... insert Gemfile gsub Gemfile gsub Gemfile gsub Gemfile gsub Gemfile gsub Gemfile run git add -A from "." run git commit -qm "rails_apps_composer: Gemfile" from "." recipe Running tests recipe... recipe Running email recipe... recipe Running devise recipe... recipe Running omniauth recipe... recipe Running roles recipe... recipe Running frontend recipe... recipe Running pages recipe... recipe Running init recipe... recipe Running analytics recipe... option Install page-view analytics? 1) None 2) Google Analytics 3) Segment.io choose Enter your selection: 2 option Google Analytics ID? UA-3355132-43 recipe Running deployment recipe... option Prepare for deployment? 1) no 2) Heroku 3) Capistrano choose Enter your selection: 3 deployment installing gems for Capistrano recipe Running extras recipe... option Disable Rails Turbolinks? (y/n) y option Set a robots.txt file to ban spiders? (y/n) n option Create a GitHub repository? (y/n) n option Add gem and file for environment variables? 1) None 2) Add .env with Foreman choose Enter your selection: 2 option Improve error reporting with 'better_errors' during development? (y/n) y option Use 'pry' as console replacement during development and test? (y/n) y option Use 'rubocop' to ensure that your code conforms to the Ruby style guide? (y/n) y extras recipe creating .env file for development environment variables with foreman extras recipe adding better_errors gem extras recipe adding pry-rails gem extras recipe adding rubocop gem and basic .rubocop.yml remove .rubocop.yml create .rubocop.yml extras recipe removing support for Rails Turbolinks composer Installing Bundler (in case it is not installed). run gem install bundler from "." Successfully installed bundler-1.12.5 Parsing documentation for bundler-1.12.5 Done installing documentation for bundler after 4 seconds 1 gem installed composer Installing gems. This will take a while. run bundle install --without production from "." Fetching gem metadata from https://rubygems.org/ Fetching version metadata from https://rubygems.org/ Fetching dependency metadata from https://rubygems.org/ Resolving dependencies......................................................................................................................................................................................................................
Bundler could not find compatible versions for gem "capistrano": In Gemfile: capistrano (~> 3.0.1)

capistrano-rails (~> 1.1.0) was resolved to 1.1.1, which depends on
  capistrano (~> 3.1)

capistrano-rvm (~> 0.1.1) was resolved to 0.1.2, which depends on
  capistrano (~> 3.0)

Bundler could not find compatible versions for gem "rails": In Gemfile: rails (~> 5.0.0)**

administrate was resolved to 0.0.2, which depends on
  rails (~> 4.2)
composer  Updating gem paths.
composer  Stage Two (running recipe 'stage_two' callbacks).

locale gems gems recipe stage two gems configuring database remove config/database.yml create config/database.yml option Username for PostgreSQL?(leave blank to use the app name) option Host for PostgreSQL in database.yml? (leave blank to use default socket connection) gems Creating a user named '[appname' for PostgreSQL run createuser --createdb getshredded from "." createuser: could not connect to database postgres: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"? gsub config/database.yml gsub config/database.yml gsub config/database.yml gsub config/database.yml option Okay to drop all existing databases named getshredded? 'No' will abort immediately! (y/n) y run bundle exec rake db:drop from "." Could not find gem 'puma (~> 3.0)' in any of the gem sources listed in your Gemfile or available on this machine. Run bundle install to install missing gems. run bundle exec rake db:create:all from "." Could not find gem 'puma (~> 3.0)' in any of the gem sources listed in your Gemfile or available on this machine. Run bundle install to install missing gems. run git add -A from "." run git commit -qm "rails_apps_composer: create database" from "." gems gems recipe stage two gems running generators gems recipe installing simple_form for use with Bootstrap generate simple_form:install --bootstrap Could not find gem 'puma (~> 3.0)' in any of the gem sources listed in your Gemfile or available on this machine. Run bundle install to install missing gems. create .env run git add -A from "." run git commit -qm "rails_apps_composer: generators" from "." On branch master nothing to commit, working directory clean tests tests recipe stage two tests recipe installing RSpec generate testing:configure rspec -f Could not find gem 'puma (~> 3.0)' in any of the gem sources listed in your Gemfile or available on this machine. Run bundle install to install missing gems. tests recipe initializing Guard run bundle exec guard init from "." bundler: command not found: guard Install missing gem executables with bundle install run git add -A from "." run git commit -qm "rails_apps_composer: testing framework" from "." On branch master nothing to commit, working directory clean email email recipe stage two insert config/environments/development.rb insert config/environments/production.rb gsub config/environments/production.rb insert config/environments/development.rb insert config/environments/production.rb run git add -A from "." run git commit -qm "rails_apps_composer: set email accounts" from "." devise devise recipe stage two gsub config/initializers/filter_parameter_logging.rb generate devise:install Could not find gem 'puma (~> 3.0)' in any of the gem sources listed in your Gemfile or available on this machine. Run bundle install to install missing gems. generate devise_invitable:install Could not find gem 'puma (~> 3.0)' in any of the gem sources listed in your Gemfile or available on this machine. Run bundle install to install missing gems. generate devise user Could not find gem 'puma (~> 3.0)' in any of the gem sources listed in your Gemfile or available on this machine. Run bundle install to install missing gems. generate migration AddNameToUsers name:string Could not find gem 'puma (~> 3.0)' in any of the gem sources listed in your Gemfile or available on this machine. Run bundle install to install missing gems. gsub app/models/user.rb The template [/var/folders/0f/qj99f53j75gg8h8w31xym_9c0000gn/T/template20160803-61740-gcyqci] could not be loaded. Error: No such file or directory @ rb_sysopen - /Users/user/dev/getshredded/app/models/user.rb