Closed mattbrictson closed 1 month ago
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"
Can we please release this version? Anything I can do to help?
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? %>
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? %>
It would be great to get this moving!
The main blocker seems to be that the build is not passing.
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/
Fixed my problem with this branch. I confirm it works on Ruby 3.2.2 and Rails 7.0.4.3.
Hi @brentd. Will you be merging this PR?
Merged. I will cut a release in the next few days. Sorry for the long hiatus!
Any updates on this one? xray-rails is breaking on ruby 3.0