From 4b48c861038422a23d7dac7f95ee67bc6592e4f7 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Tue, 20 Dec 2022 22:12:21 +0900 Subject: [PATCH] mruby-dir: extra spaces and typos are removed --- mrbgems/mruby-dir/README.md | 31 ++++++++++++++---------------- mrbgems/mruby-dir/src/Win/dirent.c | 2 +- mrbgems/mruby-dir/test/dirtest.c | 3 +-- 3 files changed, 16 insertions(+), 20 deletions(-) diff --git a/mrbgems/mruby-dir/README.md b/mrbgems/mruby-dir/README.md index d7953036d..2be9d03c0 100644 --- a/mrbgems/mruby-dir/README.md +++ b/mrbgems/mruby-dir/README.md @@ -1,5 +1,4 @@ -mruby-dir -========= +# mruby-dir Dir class for mruby. Supported methods are: @@ -18,31 +17,29 @@ Dir class for mruby. Supported methods are: `#seek` `#tell` - ## License Copyright (c) 2012 Internet Initiative Japan Inc. -Permission is hereby granted, free of charge, to any person obtaining a -copy of this software and associated documentation files (the "Software"), -to deal in the Software without restriction, including without limitation -the rights to use, copy, modify, merge, publish, distribute, sublicense, -and/or sell copies of the Software, and to permit persons to whom the +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the "Software"), +to deal in the Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -- On Windows platforms, you must agree on addional license too: +### On Windows platforms, you must agree on additional license too: Copyright Kevlin Henney, 1997, 2003, 2012. All rights reserved. diff --git a/mrbgems/mruby-dir/src/Win/dirent.c b/mrbgems/mruby-dir/src/Win/dirent.c index 98728bcf7..1b43a9924 100644 --- a/mrbgems/mruby-dir/src/Win/dirent.c +++ b/mrbgems/mruby-dir/src/Win/dirent.c @@ -146,7 +146,7 @@ void rewinddir(DIR *dir) documentation for any purpose is hereby granted without fee, provided that this copyright and permissions notice appear in all copies and derivatives. - + This software is supplied "as is" without express or implied warranty. But that said, if there are any problems please get in touch. diff --git a/mrbgems/mruby-dir/test/dirtest.c b/mrbgems/mruby-dir/test/dirtest.c index f73af8468..a169cbe2b 100644 --- a/mrbgems/mruby-dir/test/dirtest.c +++ b/mrbgems/mruby-dir/test/dirtest.c @@ -47,7 +47,7 @@ mrb_dirtest_setup(mrb_state *mrb, mrb_value klass) rmdir(buf); mrb_raisef(mrb, E_RUNTIME_ERROR, "chdir(%S) failed", s); } - + /* make some directories in the sandbox */ #if defined(_WIN32) || defined(_WIN64) if (mkdir(aname) == -1) { @@ -126,4 +126,3 @@ mrb_mruby_dir_gem_test(mrb_state *mrb) mrb_define_class_method(mrb, c, "setup", mrb_dirtest_setup, MRB_ARGS_NONE()); mrb_define_class_method(mrb, c, "teardown", mrb_dirtest_teardown, MRB_ARGS_NONE()); } -