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

Fix "undefined method safe_append=" on Ruby 3.0.0 #108

Merged
merged 1 commit into from
Oct 13, 2024
Merged

Conversation

mattbrictson
Copy link
Collaborator

No description provided.

@deepakmahakale
Copy link

Any updates on this one? xray-rails is breaking on ruby 3.0

@mattbrictson
Copy link
Collaborator Author

Any updates on this one? xray-rails is breaking on ruby 3.0

I'm using this branch on a Ruby 3.0.0 project and it seems to work. I am reluctant to merge this because CI is broken so I can't be sure it works on other versions of Ruby. Unfortunately I don't have time to work on fixing CI or tending to the other backlog of issues that need to be addressed before cutting a new release.

For now you can depend on this branch directly, like this:

gem "xray-rails", git: "https://github.com/brentd/xray-rails.git", branch: "bugs/ruby-3.0.0"

@deepakmahakale
Copy link

Can we please release this version?
Anything I can do to help?

@deepakmahakale
Copy link

deepakmahakale commented Nov 26, 2021

The fix I am using xray-rails

Ruby 3.0.1
Rails 6.1.4

Gemfile

gem "xray-rails", git: "https://github.com/brentd/xray-rails.git", branch: "bugs/ruby-3.0.0"

app/views/layouts/application.html.erb

<%= javascript_include_tag 'xray', nonce: true if Rails.env.development? %>
<%= stylesheet_link_tag 'xray', nonce: true if Rails.env.development? %> 

For rails 7 esbuild

You may need to change this to:

app/views/layouts/application.html.erb

<%= javascript_include_tag 'xray', nonce: true, "data-turbo-track": "reload", defer: true if Rails.env.development? %>
<%= stylesheet_link_tag 'xray', nonce: true if Rails.env.development? %> 

@evolve2k
Copy link

It would be great to get this moving!

The main blocker seems to be that the build is not passing.

@graaff
Copy link

graaff commented Sep 19, 2022

The fix in this PR only works on Ruby 2.7+. If compatibility with older, unsupported, ruby versions is required then the ruby2_keywords method should be used. See https://www.ruby-lang.org/en/news/2019/12/12/separation-of-positional-and-keyword-arguments-in-ruby-3-0/

@goofansu
Copy link

goofansu commented Jun 3, 2023

Fixed my problem with this branch. I confirm it works on Ruby 3.2.2 and Rails 7.0.4.3.

@mamantoha
Copy link

Hi @brentd. Will you be merging this PR?

@brentd brentd merged commit 06d9911 into master Oct 13, 2024
@brentd
Copy link
Owner

brentd commented Oct 13, 2024

Merged. I will cut a release in the next few days. Sorry for the long hiatus!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants