From 4dd71a27fcb7a1d3dd5be42c18e36147fe98cd1b Mon Sep 17 00:00:00 2001 From: Matt Menefee Date: Tue, 6 Feb 2024 01:22:12 -0600 Subject: [PATCH] Update link to CoffeeScript source in README.md Update the link to the CoffeeScript source in README.md and replace the use of "open-uri" with "net/http", as that is more conventional in 2024. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5603f0f..f3c043f 100644 --- a/README.md +++ b/README.md @@ -31,8 +31,8 @@ A longer example, demonstrating how to invoke the CoffeeScript compiler: ``` ruby require "execjs" -require "open-uri" -source = open("http://coffeescript.org/extras/coffee-script.js").read +require "net/http" +source = Net::HTTP.get(URI("https://coffeescript.org/browser-compiler-legacy/coffeescript.js")) context = ExecJS.compile(source) context.call("CoffeeScript.compile", "square = (x) -> x * x", bare: true)