-
Notifications
You must be signed in to change notification settings - Fork 8
Update rails 7.0 #147
base: master
Are you sure you want to change the base?
Update rails 7.0 #147
Changes from all commits
ee85b6c
d9edbd8
365afdb
aa67169
7c8bf88
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,22 +3,11 @@ ruby "3.1.0" | |
|
|
||
| git_source(:github) { |repo| "https://github.com/#{repo}.git" } | ||
|
|
||
| # Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main' | ||
| gem 'rails', '~> 6.1' | ||
| gem 'rails', '~> 7.0' | ||
| gem 'puma', '~> 5' | ||
| gem 'webpacker', '~> 5' | ||
| gem 'turbolinks', '~> 5' | ||
| # Use SCSS for stylesheets | ||
| # gem 'sass-rails', '>= 6' | ||
| # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder | ||
| # gem 'jbuilder', '~> 2.7' | ||
| # Use Redis adapter to run Action Cable in production | ||
| # gem 'redis', '~> 4.0' | ||
| # Use Active Model has_secure_password | ||
| # gem 'bcrypt', '~> 3.1.7' | ||
|
|
||
| # Use Active Storage variant | ||
| # gem 'image_processing', '~> 1.2' | ||
| gem 'sprockets-rails', :require => 'sprockets/railtie' | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. https://guides.rubyonrails.org/upgrading_ruby_on_rails.html#sprockets-is-now-an-optional-dependency Kept as-is as part of the upgrade |
||
|
|
||
| # Reduces boot times through caching; required in config/boot.rb | ||
| gem 'net-imap', require: false | ||
|
|
@@ -51,8 +40,7 @@ group :development do | |
| gem 'web-console', '>= 3.3.0' | ||
| gem 'listen', '~> 3.2' | ||
| # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring | ||
| gem 'spring' | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| gem 'spring-watcher-listen', '~> 2.0.0' | ||
| gem 'spring', '~> 4.0' | ||
| end | ||
|
|
||
| gem "bugsnag", "~> 6.13" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,7 +37,7 @@ def as_json | |
| dump.merge({ | ||
| shopify_identifier: @shopify_identifier, | ||
| hooklys_identifier: @hooklys_identifier, | ||
| timestamp: @details.first.timestamp.to_s(:db), | ||
| timestamp: @details.first.timestamp.to_fs(:db), | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| error: @details.any? { _1.level == :error }, | ||
| }) | ||
| end | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,7 +23,7 @@ | |
| <div class="Polaris-FormLayout"> | ||
| <%= f.polaris_select(:service_name, available_handlers.map { |handler| [handler.label, handler.to_s] }, { prompt: "Select an action" }, { data: { handler: true } }) %> | ||
|
|
||
| <%= f.fields_for :settings, f.object.settings do |ff| %> | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Other than guessing, I couldn't explain with a reproductible fact why this used to work in the first place and what made rails 7.0 upgrade break it. It shouldn't have worked before since |
||
| <%= f.fields_for :settings do |ff| %> | ||
| <% available_handlers.each do |handler| %> | ||
| <div data-handler-details="<%= handler %>"> | ||
| <% if handler.description.present? %> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://guides.rubyonrails.org/upgrading_ruby_on_rails.html