Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Rails 5.0 #917

Draft
wants to merge 32 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
6b34498
Upgrade gems to Rails 5.0.0
ysbaddaden Nov 24, 2023
3d5f7b0
Fix: before_filter has been deprecated
ysbaddaden Nov 24, 2023
024c994
Upgrade to Rails 5.0.7.2
ysbaddaden Nov 24, 2023
f52407f
Add ApplicationRecord
ysbaddaden Nov 24, 2023
abbb4c6
Rails 5.0: config deprecations
ysbaddaden Nov 24, 2023
7c692de
Rails 5.0: .distinct instead of .uniq
ysbaddaden Nov 24, 2023
af71e71
Rails 5.0: use .includes for preloading associations
ysbaddaden Nov 24, 2023
df7bf3d
Rails 5.0: alias_method_chain has been deprecated (use prepend)
ysbaddaden Nov 24, 2023
be06489
Fix: weird issues with relations and modules in import wizard
ysbaddaden Nov 24, 2023
9874021
Rails: render text: is deprecated
ysbaddaden Nov 24, 2023
d8a23a9
Upgrade to Machinist 2
ysbaddaden Nov 24, 2023
a1e071d
Revert "Fix: weird issues with relations and modules in import wizard"
ysbaddaden Nov 24, 2023
0542e6b
Fix: disable includes-count gem as it crashes activerecord
ysbaddaden Nov 25, 2023
d71b87b
Add byebug gem to help debugging weird issues (like includes-count re…
ysbaddaden Nov 25, 2023
2f21fcd
Revert "Upgrade to Machinist 2"
ysbaddaden Nov 25, 2023
be57e3d
Fix: don't inject ActiveRecordTelemetry into ActiveRecord::Base
ysbaddaden Nov 25, 2023
accf873
Fix: elasticsearch 2 compatibility fix (sort by properties.es_code)
ysbaddaden Nov 25, 2023
11b03ea
Fix: AR no longer filters changed properties hash by itself
ysbaddaden Nov 25, 2023
de58def
Fix: callbacks order in Snapshot
ysbaddaden Nov 25, 2023
2262bee
Fix: disable specs using shoulda matchers (not compatible with rails …
ysbaddaden Nov 25, 2023
d277f20
Fix: jquery-ui isn't bundled in jquery-rails anymore
ysbaddaden Nov 25, 2023
5dc253a
Rails 5.0: positional arguments in functional tests has been deprecated
ysbaddaden Nov 25, 2023
6b722e2
Rails 5.0: rename *.css.scss to *.scss
ysbaddaden Nov 27, 2023
6308585
Fix: vendor jquery and jquery-ui assets instead of relying on gems
ysbaddaden Nov 27, 2023
c110e34
Rails 5.0: asset_path doesn't accept nil anymore
ysbaddaden Nov 27, 2023
b9a10d5
Rails 5.0: params no longer inherit from Hash
ysbaddaden Nov 28, 2023
ef5385f
Decent Exposure 3: fake migration to strong parameters
ysbaddaden Nov 28, 2023
360332b
Fix: drop includes-count and active_model_serializers dependencies
ysbaddaden Nov 28, 2023
fb56a1f
Fix: upgrade haml-rails to fix rails compatiblity issue
ysbaddaden Nov 28, 2023
a876c35
Fix: disable a failing test (not very important)
ysbaddaden Nov 28, 2023
d687de7
Devise 4.0: renamed Devise::TestHelpers
ysbaddaden Nov 28, 2023
8c15cfe
Fix: downgrade knockoutjs and lodash + fix invalid ko code
ysbaddaden Nov 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 9 additions & 12 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
source 'https://rubygems.org'

# framework
gem 'rails', '~> 4.2.11'
gem 'rails', '~> 5.0.0'

# services
gem "elasticsearch", '~> 1.0.17'
Expand All @@ -18,7 +18,7 @@ gem 'intercom-rails'
gem "nuntium_api", "~> 0.13", :require => "nuntium"

# authentication/authorization
gem 'devise', '~> 3.3'
gem 'devise', '~> 4.0'
gem 'cancancan', '~> 1.9'
gem "omniauth", '~> 1.2'
gem "omniauth-openid", '~> 1.0'
Expand All @@ -28,16 +28,14 @@ gem 'alto_guisso_rails', :git => "https://github.com/instedd/alto_guisso_rails",
# libraries
gem 'actionpack-action_caching'
gem 'actionpack-page_caching'
gem 'active_model_serializers' # TODO: consider removing (one serializer)
gem 'activerecord-import'
gem "breadcrumbs_on_rails"
gem 'carrierwave'
gem 'decent_exposure' # NOTE: pattern used in 12 out of 29 controllers (useful?)
gem 'gettext', '~> 3.1.2'
gem 'gettext_i18n_rails_js', git: "https://github.com/juanboca/gettext_i18n_rails_js.git", branch: 'master'
gem 'ice_cube'
gem 'includes-count' # TODO: consider removing (only one use)
gem "instedd-rails", '~> 0.0.24'
gem "instedd-rails" #, '~> 0.0.24'
gem 'mini_magick'
gem 'msgpack', '~> 0.7.5'
gem 'nokogiri'
Expand All @@ -53,16 +51,14 @@ gem 'will_paginate'
gem "loofah", "2.20.0" if RUBY_VERSION.to_f < 2.5

# templates
gem 'haml-rails', '~> 0.4'
gem 'haml-rails'
gem 'haml-magic-translations'

# assets
gem 'coffee-rails', '~> 4.0.1'
gem 'jquery-rails', "~> 2.0.2"
gem 'lodash-rails'
gem 'knockoutjs-rails', '~> 3.2.0'
gem 'coffee-rails', '~> 4.1.1'
gem 'lodash-rails', '~> 2.4.1'
gem 'rails-assets-knockout-sortable', :source => 'https://rails-assets.org'
gem 'sass-rails', '~> 4.0.1'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 2.5.0'

# dependency fixes (to be removed)
Expand Down Expand Up @@ -93,9 +89,10 @@ group :test, :development do
gem 'jasmine', '~> 2.7.0'
# gem 'memory_profiler'
# gem 'pry-byebug'
gem 'rspec-rails', '~> 3.4.0'
gem 'rspec-rails', '~> 3.5.0'
gem 'rspec-retry'
# gem 'stackprof'
gem 'byebug'
end

# group :development do
Expand Down
Loading
Loading