Skip to content

Commit

Permalink
Merge pull request #2431 from newrelic/link-issue-to-todo
Browse files Browse the repository at this point in the history
Link issue #2430 to Ruby 3.3.0 eval TODOs
  • Loading branch information
kaylareopelle authored Feb 7, 2024
2 parents 2327a13 + 73889a2 commit b2d9025
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/multiverse/lib/multiverse/envfile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def initialize(file_path, options = {})
# to see if this behavior persists. Remove the gsub if not.
# With Ruby 3.3.0-preview2, eval() yields '(eval ...' as the String value
# when __FILE__ is used so swap out __FILE__ for the known agent root path
# Related to Issue #2430
@text.gsub!('__FILE__', "'#{file_path}'")
instance_eval(@text)
end
Expand Down
1 change: 1 addition & 0 deletions test/new_relic/gemspec_files_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ def test_the_test_agent_helper_is_shipped_in_the_gem_files
# to see if this behavior persists. Remove the gsub if not.
# With Ruby 3.3.0-preview2, eval() yields '(eval ...' as the String value
# when __FILE__ is used so swap out __FILE__ for the known agent root path
# Related to Issue #2430
gem_spec_content.gsub!('__FILE__', "'#{gem_spec_file_path}'")

Dir.chdir(File.dirname(gem_spec_file_path)) do
Expand Down

0 comments on commit b2d9025

Please sign in to comment.