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)