Open RailsCod3rFuture opened 4 years ago
Could you share your Gemfile
and what rake task were you trying to run?
# frozen_string_literal: true
source 'https://rubygems.org'
ruby '2.5.7'
=begin
git_source(:github) do |repo_name|
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?('/')
"https://github.com/#{repo_name}.git"
end
=end
gem 'figaro'
gem 'active_link_to', '~> 1.0', '>= 1.0.5'
gem 'acts-as-taggable-on', '~> 6.0'
gem 'acts_as_commentable_with_threading'
gem 'acts_as_votable', '~> 0.11.1'
gem 'bootstrap', '~> 4.2', '>= 4.2.1'
gem 'chartkick'
gem 'chosen-rails'
gem 'aasm', '>= 4.0.7'
gem 'activerecord-import'
gem 'acts_as_follower', github: 'tcocca/acts_as_follower', branch: 'master'
gem 'better_sjr'
gem 'birthday'
gem 'bootstrap-datepicker-rails'
gem 'bootstrap_tokenfield_rails'
gem 'bullet', group: :development
gem 'country_state_select', '~> 3.0', '>= 3.0.3'
gem 'crono'
gem 'daemons'
gem 'data-confirm-modal', '~> 1.6', '>= 1.6.2'
gem 'devise', '~> 4.2'
gem 'docverter'
gem 'email_validator'
gem 'enum_help'
gem 'exception_handler'
gem 'fast_jsonapi' # Netflix JSON
gem 'font_awesome5_rails'
gem 'friendly_id', '~> 5.1'
gem 'geocoder'
gem 'gibbon'
gem 'glyphicons-rails'
gem 'gon', '~> 6.2'
gem 'groupdate'
gem 'haml'
gem 'impressionist'
gem 'inline_svg'
gem 'jquery-atwho-rails'
gem 'jquery-fileupload-rails'
gem 'jquery-infinite-pages' # infinite scrolling pagination for kaminari
gem 'jquery-minicolors-rails'
gem 'jquery-rails', '~> 4.3'
gem 'jquery-ui-rails'
gem 'kaminari'
gem 'lightbox2-rails'
gem 'mail_form'
gem 'mailboxer'
gem 'mailkick'
gem 'meta-tags'
gem 'mini_magick', '~> 4.8'
gem 'money-rails', '~>1'
gem 'paper_trail'
gem 'phony_rails'
gem 'popper_js', '~> 1.14', '>= 1.14.5'
gem 'pundit'
gem 'rack-attack'
gem 'rack-cors', require: 'rack/cors'
gem 'rack-protection', '~> 2.0', '>= 2.0.4'
gem 'rails_autolink'
gem 'rails_emoji_picker'
gem 'ransack', '~> 2.0', '>= 2.0.1' # gem 'ransack', github: 'activerecord-hackery/ransack'
gem 'ratyrate'
gem 'redcarpet'
#gem 'sidekiq'
gem 'simple_calendar', '~> 2.0'
gem 'simple_form'
gem 'simple_hashtag'
gem 'sinatra', require: nil
gem 'sitemap_generator'
#gem 'sprockets-rails', '~> 3.2'
gem 'sprockets', '~> 3.7.2'
gem 'streamio-ffmpeg', '~> 3.0', '>= 3.0.2'
gem 'stripe', '>= 2.8'
gem 'stripe_event'
gem 'strong_password', '~> 0.0.5'
gem 'sucker_punch', '~> 1.2.1'
gem 'switchery-rails'
gem 'sys-proctable'
gem 'trix-rails', require: 'trix'
# gem 'carrierwave_direct'
gem 'loofah-activerecord'
gem 'aws-sdk-s3', require: false
gem 'social-share-button'
gem 'flatpickr_rails'
gem 'trestle'
gem 'trestle-auth'
gem 'trestle-search'
gem 'trestle-active_storage'
gem 'trestle-tinymce'
gem 'active_model_serializers'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'bootsnap', '>= 1.1.0', require: false
gem 'rails', '5.2.0' # '~>5.1.1' 5.1.6
# gem 'derailed_benchmarks', group: :development
gem 'pdfkit', '~> 0.8.4.1'
gem 'wkhtmltopdf-binary'
gem 'pg'
gem 'puma'
gem 'puma_worker_killer'
# Use SCSS for stylesheets
gem 'sass-rails'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '~> 4.1', '>= 4.1.20'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.2'
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
# gem 'turbolinks', '~> 5'
# 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'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~>3.1.11', platforms: [:ruby, :x64_mingw, :mingw]
# gem 'bcrypt', git: 'https://github.com/codahale/bcrypt-ruby.git', require: 'bcrypt'
gem 'bcrypt', '~> 3.1', '>= 3.1.12'
# 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', platforms: %i[mri mingw x64_mingw]
end
group :development do
gem 'web-console', '>= 3.3.0'
end
group :test do
# Adds support for Capybara system testing and selenium driver
gem 'capybara', '>= 2.15', '< 4.0'
gem 'factory_bot_rails', '~> 4.0'
gem 'rspec-rails', '~> 3.4', '>= 3.4.2'
gem 'rubocop-rspec'
gem 'stripe-ruby-mock', '~> 2.5.4', require: 'stripe_mock'
end
gem 'rubocop', require: false
gem 'tzinfo-data', platforms: %i[mingw mswin x64_mingw jruby]
I'm using rubymine to start my development server
"C:\Program Files\JetBrains\RubyMine 2018.1.6\bin\runnerw.exe" C:\Ruby251-x64\bin\ruby.exe C:/Users/D/RubymineProjects/TestApp/bin/rails server -b 127.0.0.1 -p 3000 -e development
This is the error that I receive after running rails server
C:/Ruby251-x64/lib/ruby/gems/2.5.0/gems/kaminari-activerecord-1.1.1/lib/kaminari/activerecord/active_record_extension.rb:19:in
block (2 levels) in
This might be a Windows-specific issue. How are you running Ruby there? Like RubyInstaller, cygwin, MSYS2, MINGW, etc.
I;m using MSYS2 for this version of ruby. I was forced to upgrade from 2.4.4 by Heroku.
Thanks for reporting. Sadly there isn't a quick fix for this as none of the maintainers are familiar with Windows. In the meantime, it would be great if you could give a newer version of Ruby a try.
I'll update my ruby gem spec again to see if that works.
Do you have an idea of what I might be receiving this error for ruby 2.5.7