Ticket #68705: patch-deprecated-file-exists-rb32.diff

File patch-deprecated-file-exists-rb32.diff, 1.3 KB (added by JDLH (Jim DeLaHunt), 6 months ago)

Diff file changing File.exists? invocations to File.exist?, for ruby 3.2 compatibility.

  • Source/JavaScriptCore/offlineasm/config.rb

    diff --git Source/JavaScriptCore/offlineasm/config.rb Source/JavaScriptCore/offlineasm/config.rb
    adapted from index ba0043119f32..7811626db5e5 100644
     
    2323
    2424buildProductsDirectory = ENV['BUILT_PRODUCTS_DIR'];
    25 if buildProductsDirectory and File.exists?(buildProductsDirectory)
     25if buildProductsDirectory and File.exist?(buildProductsDirectory)
    2626    $: << "#{buildProductsDirectory}/usr/local/include/WebKitAdditions/Scripts"
    2727end
    2828sdkRootDirectory = ENV['SDKROOT'];
    29 if sdkRootDirectory and File.exists?(sdkRootDirectory)
     29if sdkRootDirectory and File.exist?(sdkRootDirectory)
    3030    $: << "#{sdkRootDirectory}/usr/local/include/WebKitAdditions/Scripts"
    3131end
    3232
  • Source/WebInspectorUI/Scripts/update-LegacyInspectorBackendCommands.rb

    diff --git Source/WebInspectorUI/Scripts/update-LegacyInspectorBackendCommands.rb Source/WebInspectorUI/Scripts/update-LegacyInspectorBackendCommands.rb
    index 680dee7406d1..40737afaa4c5 100755
     
    3636      end
    3737
    3838      generated_path = File.join tmpdir, output_filename
    39       if !File.exists?(generated_path)
     39      if !File.exist?(generated_path)
    4040        puts "ERROR: Generated file does not exist at expected path."
    4141        exit 1
    4242      end