HappyFunCorp / happy_seed

A seed for planting new apps.
http://seed.happyfuncorp.com
MIT License
120 stars 22 forks source link

gem 'cucumber-rails'` is not allowed #70

Open seliverstov-maxim opened 7 years ago

seliverstov-maxim commented 7 years ago
For more documentation, please go to:
http://seed.happyfuncorp.com/docs/rails.html
  Install splash, Basic splash page? y
    generate    happy_seed:splash

[!] There was an error parsing `Gemfile`: The `branch` option for `gem 'cucumber-rails'` is not allowed. Only gems with a git source can specify a branch. Bundler cannot continue.

 #  from /Users/max/work/try-seeds/freelance/Gemfile:65
 #  -------------------------------------------
 #    gem 'capybara'
 >    gem 'cucumber-rails', branch: 'rails-5', require: false
 #    gem 'guard-rspec', '~> 4.6.4', require: false
 #  -------------------------------------------

It's block the happy seed instalation.

ruby -v ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin16]

seliverstov-maxim commented 7 years ago

cat Gemfile

source 'https://rubygems.org'

git_source(:github) do |repo_name|
  repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
  "https://github.com/#{repo_name}.git"
end

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.0.4'

# Use Puma as the app server
gem 'puma', '~> 3.0'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.2'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby

# Use jquery as the JavaScript library
gem 'jquery-rails'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.5'
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 3.0'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'

# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development

group :development, :test do
  # Call 'byebug' anywhere in the code to stop execution and get a debugger console
  gem 'byebug', platform: :mri
end

group :development do
  # Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
  gem 'web-console', '>= 3.3.0'
  gem 'listen', '~> 3.0.5'
  # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
  gem 'spring'
  gem 'spring-watcher-listen', '~> 2.0.0'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

group :development do
  gem 'happy_seed'
end

gem 'rails_12factor'
gem 'haml-rails'
group :development, :test do
  gem 'sqlite3'
  gem 'rspec', '~> 3.5.0'
  gem 'rspec-rails', '~> 3.5.0'
  gem 'factory_girl_rails'
  gem 'capybara'
  gem 'cucumber-rails', branch: 'rails-5', require: false
  gem 'guard-rspec', '~> 4.6.4', require: false
  gem 'guard-cucumber'
  gem 'database_cleaner'
  gem 'spring-commands-rspec'
  gem 'spring-commands-cucumber'
  gem 'launchy'
  gem 'vcr'
  gem 'faker'
  gem 'dotenv-rails'
  gem 'rdiscount'
  gem 'rails-controller-testing'
  gem 'better_errors'
  gem 'binding_of_caller'
end

group :test do
  gem 'webmock'
  gem 'fakeredis', require: 'fakeredis/rspec'
end

group :production do
  gem 'pg'
  gem 'lograge'
end
Vanclief commented 7 years ago

Experiencing same problem. Same ruby version

Vanclief commented 7 years ago

Solved by editing Gemfile

gem 'cucumber-rails', :require => false