diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-08-02 19:13:02 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-08-02 23:12:49 -0400 |
commit | d8b68648d10ec96d59883750885f7c7d694c180f (patch) | |
tree | 0c960fe76a93938ae177b12cc2b8265db366a714 /src | |
parent | 3e5e07289e6be339617ccff20fa60ace4bdc4d9b (diff) |
Update repo links to denoland.
Diffstat (limited to 'src')
-rw-r--r-- | src/deno_dir.rs | 26 | ||||
-rw-r--r-- | src/handlers.rs | 4 |
2 files changed, 15 insertions, 15 deletions
diff --git a/src/deno_dir.rs b/src/deno_dir.rs index ba25c1d8e..b3a4c029b 100644 --- a/src/deno_dir.rs +++ b/src/deno_dir.rs @@ -29,7 +29,7 @@ pub struct DenoDir { impl DenoDir { // Must be called before using any function from this module. - // https://github.com/ry/deno/blob/golang/deno_dir.go#L99-L111 + // https://github.com/denoland/deno/blob/golang/deno_dir.go#L99-L111 pub fn new(custom_root: Option<&Path>) -> std::io::Result<DenoDir> { // Only setup once. let home_dir = std::env::home_dir().expect("Could not get home directory."); @@ -53,7 +53,7 @@ impl DenoDir { Ok(deno_dir) } - // https://github.com/ry/deno/blob/golang/deno_dir.go#L32-L35 + // https://github.com/denoland/deno/blob/golang/deno_dir.go#L32-L35 pub fn cache_path( self: &DenoDir, filename: &str, @@ -135,7 +135,7 @@ impl DenoDir { } } - // Prototype: https://github.com/ry/deno/blob/golang/os.go#L56-L68 + // Prototype: https://github.com/denoland/deno/blob/golang/os.go#L56-L68 #[allow(dead_code)] fn src_file_to_url<P: AsRef<Path>>(self: &DenoDir, filename: P) -> String { let filename = filename.as_ref().to_path_buf(); @@ -147,7 +147,7 @@ impl DenoDir { } } - // Prototype: https://github.com/ry/deno/blob/golang/os.go#L70-L98 + // Prototype: https://github.com/denoland/deno/blob/golang/os.go#L70-L98 // Returns (module name, local filename) fn resolve_module( self: &DenoDir, @@ -238,7 +238,7 @@ fn test_code_cache() { assert_eq!(output_code, fs::read_file_sync(&cache_path).unwrap()); } -// https://github.com/ry/deno/blob/golang/deno_dir.go#L25-L30 +// https://github.com/denoland/deno/blob/golang/deno_dir.go#L25-L30 fn source_code_hash(filename: &str, source_code: &str) -> String { let mut m = sha1::Sha1::new(); m.update(filename.as_bytes()); @@ -309,7 +309,7 @@ fn test_src_file_to_url() { assert_eq!("http://hello/world.txt", deno_dir.src_file_to_url(x)); } -// https://github.com/ry/deno/blob/golang/os_test.go#L16-L87 +// https://github.com/denoland/deno/blob/golang/os_test.go#L16-L87 #[test] fn test_resolve_module() { let (_temp_dir, deno_dir) = test_setup(); @@ -318,20 +318,20 @@ fn test_resolve_module() { ( "./subdir/print_hello.ts", add_root!( - "/Users/rld/go/src/github.com/ry/deno/testdata/006_url_imports.ts" + "/Users/rld/go/src/github.com/denoland/deno/testdata/006_url_imports.ts" ), add_root!( - "/Users/rld/go/src/github.com/ry/deno/testdata/subdir/print_hello.ts" + "/Users/rld/go/src/github.com/denoland/deno/testdata/subdir/print_hello.ts" ), add_root!( - "/Users/rld/go/src/github.com/ry/deno/testdata/subdir/print_hello.ts" + "/Users/rld/go/src/github.com/denoland/deno/testdata/subdir/print_hello.ts" ), ), ( "testdata/001_hello.js", - add_root!("/Users/rld/go/src/github.com/ry/deno/"), - add_root!("/Users/rld/go/src/github.com/ry/deno/testdata/001_hello.js"), - add_root!("/Users/rld/go/src/github.com/ry/deno/testdata/001_hello.js"), + add_root!("/Users/rld/go/src/github.com/denoland/deno/"), + add_root!("/Users/rld/go/src/github.com/denoland/deno/testdata/001_hello.js"), + add_root!("/Users/rld/go/src/github.com/denoland/deno/testdata/001_hello.js"), ), ( add_root!("/Users/rld/src/deno/hello.js"), @@ -348,7 +348,7 @@ fn test_resolve_module() { /* ( "http://localhost:4545/testdata/subdir/print_hello.ts", - add_root!("/Users/rld/go/src/github.com/ry/deno/testdata/006_url_imports.ts"), + add_root!("/Users/rld/go/src/github.com/denoland/deno/testdata/006_url_imports.ts"), "http://localhost:4545/testdata/subdir/print_hello.ts", path.Join(SrcDir, "localhost:4545/testdata/subdir/print_hello.ts"), ), diff --git a/src/handlers.rs b/src/handlers.rs index 4cb3afd5b..517e146a1 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -59,7 +59,7 @@ fn set_response_base( unsafe { deno_set_response(d, buf) } } -// https://github.com/ry/deno/blob/golang/os.go#L100-L154 +// https://github.com/denoland/deno/blob/golang/os.go#L100-L154 #[no_mangle] pub extern "C" fn handle_code_fetch( d: *const DenoC, @@ -110,7 +110,7 @@ pub extern "C" fn handle_code_fetch( set_response_base(d, &mut builder, &args) } -// https://github.com/ry/deno/blob/golang/os.go#L156-L169 +// https://github.com/denoland/deno/blob/golang/os.go#L156-L169 #[no_mangle] pub extern "C" fn handle_code_cache( d: *const DenoC, |