From 81bb16aa4339000da693b18cd3f1bcef843d8be4 Mon Sep 17 00:00:00 2001 From: "Tamas K. Papp" Date: Sun, 4 Aug 2019 14:37:32 +0200 Subject: [PATCH 1/2] Use InteractiveUtils explicitly. --- Project.toml | 6 +++++- README.md | 2 +- src/DefaultApplication.jl | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Project.toml b/Project.toml index cc569f8..95784e3 100644 --- a/Project.toml +++ b/Project.toml @@ -1,9 +1,13 @@ name = "DefaultApplication" uuid = "3f0dd361-4fe0-5fc6-8523-80b14ec94d85" authors = ["Tamas K. Papp "] -version = "0.1.3" +version = "0.1.4" [deps] +InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240" + +[compat] +julia = "^1" [extras] Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" diff --git a/README.md b/README.md index 75ea2d5..21c0666 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Julia library for opening a file with the default application determined by the Many packages implement variations on the same short code snippet. This package maintains a version that can be shared or tested. -This package intends to be very lightweight, and has no dependencies. Nevertheless, if you still don't want to use this as a dependency, you can of course also copy the code of `DefaultApplication.open()` to another package, but then you will have to repeat this to keep up with bugfixes and developments. +This package intends to be very lightweight, and has no dependencies outside the standard libraries. Nevertheless, if you still don't want to use this as a dependency, you can of course also copy the code of `DefaultApplication.open()` to another package, but then you will have to repeat this to keep up with bugfixes and developments. ## Usage diff --git a/src/DefaultApplication.jl b/src/DefaultApplication.jl index c571ab3..d5a71a8 100644 --- a/src/DefaultApplication.jl +++ b/src/DefaultApplication.jl @@ -1,5 +1,7 @@ module DefaultApplication +using InteractiveUtils + """ DefaultApplication.open(filename; wait = false) @@ -36,7 +38,7 @@ function test() If the file was not opened, please copy the output and open an issue at https://github.com/tpapp/DefaultApplication.jl/issues """) - versioninfo() + versioninfo(stdout; verbose = true) if Sys.iswindows() @info("Version information for windows", windows_version = Sys.windows_version()) From 2b266616d690d23ec67962ad515b20e767eaf15a Mon Sep 17 00:00:00 2001 From: "Tamas K. Papp" Date: Sun, 4 Aug 2019 14:49:50 +0200 Subject: [PATCH 2/2] missing commit --- src/DefaultApplication.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DefaultApplication.jl b/src/DefaultApplication.jl index d5a71a8..5d19a93 100644 --- a/src/DefaultApplication.jl +++ b/src/DefaultApplication.jl @@ -1,6 +1,6 @@ module DefaultApplication -using InteractiveUtils +import InteractiveUtils """ DefaultApplication.open(filename; wait = false) @@ -38,7 +38,7 @@ function test() If the file was not opened, please copy the output and open an issue at https://github.com/tpapp/DefaultApplication.jl/issues """) - versioninfo(stdout; verbose = true) + InteractiveUtils.versioninfo(stdout; verbose = true) if Sys.iswindows() @info("Version information for windows", windows_version = Sys.windows_version())