Skip to content

Commit

Permalink
#186 ソースヘッダーのGPLをLGPLに切り換えた。
Browse files Browse the repository at this point in the history
  • Loading branch information
shimodateakira committed Aug 31, 2024
1 parent 0eba0f8 commit 4e2f236
Show file tree
Hide file tree
Showing 52 changed files with 263 additions and 212 deletions.
4 changes: 2 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[*]
[*]
spelling_exclusion_path = .\project-specific-exclusion.dic

[*.cs]
dotnet_diagnostic.IDE0290.severity = none
file_header_template = This file is part of VirtualStorageLibrary.\n\nCopyright (C) 2024 Akira Shimodate\n\nVirtualStorageLibrary is free software, and it is distributed under the terms of \nthe GNU General Public License (version 3, or at your option, any later version). \nThis license is published by the Free Software Foundation.\n\nVirtualStorageLibrary is distributed in the hope that it will be useful, \nbut WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY or \nFITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License along \nwith VirtualStorageLibrary. If not, see https://www.gnu.org/licenses/.
file_header_template = This file is part of VirtualStorageLibrary.\n\nCopyright (C) 2024 Akira Shimodate\n\nVirtualStorageLibrary is free software, and it is distributed under the terms of \nthe GNU Lesser General Public License (version 3, or at your option, any later \nversion). This license is published by the Free Software Foundation.\n\nVirtualStorageLibrary is distributed in the hope that it will be useful, \nbut WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY or \nFITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for \nmore details.\n\nYou should have received a copy of the GNU Lesser General Public License along \nwith VirtualStorageLibrary. If not, see https://www.gnu.org/licenses/.
9 changes: 5 additions & 4 deletions AkiraNetwork/VirtualStorageLibrary.Test/BinaryData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
// Copyright (C) 2024 Akira Shimodate
//
// VirtualStorageLibrary is free software, and it is distributed under the terms of
// the GNU General Public License (version 3, or at your option, any later version).
// This license is published by the Free Software Foundation.
// the GNU Lesser General Public License (version 3, or at your option, any later
// version). This license is published by the Free Software Foundation.
//
// VirtualStorageLibrary is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
// more details.
//
// You should have received a copy of the GNU General Public License along
// You should have received a copy of the GNU Lesser General Public License along
// with VirtualStorageLibrary. If not, see https://www.gnu.org/licenses/.

using System.Collections;
Expand Down
9 changes: 5 additions & 4 deletions AkiraNetwork/VirtualStorageLibrary.Test/GlobalUsings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
// Copyright (C) 2024 Akira Shimodate
//
// VirtualStorageLibrary is free software, and it is distributed under the terms of
// the GNU General Public License (version 3, or at your option, any later version).
// This license is published by the Free Software Foundation.
// the GNU Lesser General Public License (version 3, or at your option, any later
// version). This license is published by the Free Software Foundation.
//
// VirtualStorageLibrary is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
// more details.
//
// You should have received a copy of the GNU General Public License along
// You should have received a copy of the GNU Lesser General Public License along
// with VirtualStorageLibrary. If not, see https://www.gnu.org/licenses/.

global using Microsoft.VisualStudio.TestTools.UnitTesting;
9 changes: 5 additions & 4 deletions AkiraNetwork/VirtualStorageLibrary.Test/SimpleData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
// Copyright (C) 2024 Akira Shimodate
//
// VirtualStorageLibrary is free software, and it is distributed under the terms of
// the GNU General Public License (version 3, or at your option, any later version).
// This license is published by the Free Software Foundation.
// the GNU Lesser General Public License (version 3, or at your option, any later
// version). This license is published by the Free Software Foundation.
//
// VirtualStorageLibrary is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
// more details.
//
// You should have received a copy of the GNU General Public License along
// You should have received a copy of the GNU Lesser General Public License along
// with VirtualStorageLibrary. If not, see https://www.gnu.org/licenses/.

namespace AkiraNetwork.VirtualStorageLibrary.Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
// Copyright (C) 2024 Akira Shimodate
//
// VirtualStorageLibrary is free software, and it is distributed under the terms of
// the GNU General Public License (version 3, or at your option, any later version).
// This license is published by the Free Software Foundation.
// the GNU Lesser General Public License (version 3, or at your option, any later
// version). This license is published by the Free Software Foundation.
//
// VirtualStorageLibrary is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
// more details.
//
// You should have received a copy of the GNU General Public License along
// You should have received a copy of the GNU Lesser General Public License along
// with VirtualStorageLibrary. If not, see https://www.gnu.org/licenses/.

using AkiraNetwork.VirtualStorageLibrary.Utilities;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
// Copyright (C) 2024 Akira Shimodate
//
// VirtualStorageLibrary is free software, and it is distributed under the terms of
// the GNU General Public License (version 3, or at your option, any later version).
// This license is published by the Free Software Foundation.
// the GNU Lesser General Public License (version 3, or at your option, any later
// version). This license is published by the Free Software Foundation.
//
// VirtualStorageLibrary is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
// more details.
//
// You should have received a copy of the GNU General Public License along
// You should have received a copy of the GNU Lesser General Public License along
// with VirtualStorageLibrary. If not, see https://www.gnu.org/licenses/.

using System.Globalization;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
// Copyright (C) 2024 Akira Shimodate
//
// VirtualStorageLibrary is free software, and it is distributed under the terms of
// the GNU General Public License (version 3, or at your option, any later version).
// This license is published by the Free Software Foundation.
// the GNU Lesser General Public License (version 3, or at your option, any later
// version). This license is published by the Free Software Foundation.
//
// VirtualStorageLibrary is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
// more details.
//
// You should have received a copy of the GNU General Public License along
// You should have received a copy of the GNU Lesser General Public License along
// with VirtualStorageLibrary. If not, see https://www.gnu.org/licenses/.

using System.Diagnostics;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
// Copyright (C) 2024 Akira Shimodate
//
// VirtualStorageLibrary is free software, and it is distributed under the terms of
// the GNU General Public License (version 3, or at your option, any later version).
// This license is published by the Free Software Foundation.
// the GNU Lesser General Public License (version 3, or at your option, any later
// version). This license is published by the Free Software Foundation.
//
// VirtualStorageLibrary is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
// more details.
//
// You should have received a copy of the GNU General Public License along
// You should have received a copy of the GNU Lesser General Public License along
// with VirtualStorageLibrary. If not, see https://www.gnu.org/licenses/.

using System.Globalization;
Expand Down
9 changes: 5 additions & 4 deletions AkiraNetwork/VirtualStorageLibrary.Test/VirtualIDTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
// Copyright (C) 2024 Akira Shimodate
//
// VirtualStorageLibrary is free software, and it is distributed under the terms of
// the GNU General Public License (version 3, or at your option, any later version).
// This license is published by the Free Software Foundation.
// the GNU Lesser General Public License (version 3, or at your option, any later
// version). This license is published by the Free Software Foundation.
//
// VirtualStorageLibrary is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
// more details.
//
// You should have received a copy of the GNU General Public License along
// You should have received a copy of the GNU Lesser General Public License along
// with VirtualStorageLibrary. If not, see https://www.gnu.org/licenses/.

using System.Globalization;
Expand Down
9 changes: 5 additions & 4 deletions AkiraNetwork/VirtualStorageLibrary.Test/VirtualItemTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
// Copyright (C) 2024 Akira Shimodate
//
// VirtualStorageLibrary is free software, and it is distributed under the terms of
// the GNU General Public License (version 3, or at your option, any later version).
// This license is published by the Free Software Foundation.
// the GNU Lesser General Public License (version 3, or at your option, any later
// version). This license is published by the Free Software Foundation.
//
// VirtualStorageLibrary is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
// more details.
//
// You should have received a copy of the GNU General Public License along
// You should have received a copy of the GNU Lesser General Public License along
// with VirtualStorageLibrary. If not, see https://www.gnu.org/licenses/.

using System.Diagnostics;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
// Copyright (C) 2024 Akira Shimodate
//
// VirtualStorageLibrary is free software, and it is distributed under the terms of
// the GNU General Public License (version 3, or at your option, any later version).
// This license is published by the Free Software Foundation.
// the GNU Lesser General Public License (version 3, or at your option, any later
// version). This license is published by the Free Software Foundation.
//
// VirtualStorageLibrary is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
// more details.
//
// You should have received a copy of the GNU General Public License along
// You should have received a copy of the GNU Lesser General Public License along
// with VirtualStorageLibrary. If not, see https://www.gnu.org/licenses/.

using System.Diagnostics;
Expand Down
13 changes: 7 additions & 6 deletions AkiraNetwork/VirtualStorageLibrary.Test/VirtualPathTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
// Copyright (C) 2024 Akira Shimodate
//
// VirtualStorageLibrary is free software, and it is distributed under the terms of
// the GNU General Public License (version 3, or at your option, any later version).
// This license is published by the Free Software Foundation.
// the GNU Lesser General Public License (version 3, or at your option, any later
// version). This license is published by the Free Software Foundation.
//
// VirtualStorageLibrary is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
// more details.
//
// You should have received a copy of the GNU General Public License along
// You should have received a copy of the GNU Lesser General Public License along
// with VirtualStorageLibrary. If not, see https://www.gnu.org/licenses/.

using System.Diagnostics;
Expand Down Expand Up @@ -53,10 +54,10 @@ public void Constructor_WithParts_ReturnsCorrectPath()
// テストデータ
List<VirtualNodeName> parts = ["dir1", "dir2", "file"];
string expected = "/dir1/dir2/file";

// メソッドを実行
VirtualPath virtualPath = new(parts);

// 結果を検証
Assert.AreEqual(expected, virtualPath.Path);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
// Copyright (C) 2024 Akira Shimodate
//
// VirtualStorageLibrary is free software, and it is distributed under the terms of
// the GNU General Public License (version 3, or at your option, any later version).
// This license is published by the Free Software Foundation.
// the GNU Lesser General Public License (version 3, or at your option, any later
// version). This license is published by the Free Software Foundation.
//
// VirtualStorageLibrary is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
// more details.
//
// You should have received a copy of the GNU General Public License along
// You should have received a copy of the GNU Lesser General Public License along
// with VirtualStorageLibrary. If not, see https://www.gnu.org/licenses/.

using AkiraNetwork.VirtualStorageLibrary.WildcardMatchers;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,20 @@
// Copyright (C) 2024 Akira Shimodate
//
// VirtualStorageLibrary is free software, and it is distributed under the terms of
// the GNU General Public License (version 3, or at your option, any later version).
// This license is published by the Free Software Foundation.
// the GNU Lesser General Public License (version 3, or at your option, any later
// version). This license is published by the Free Software Foundation.
//
// VirtualStorageLibrary is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
// more details.
//
// You should have received a copy of the GNU General Public License along
// You should have received a copy of the GNU Lesser General Public License along
// with VirtualStorageLibrary. If not, see https://www.gnu.org/licenses/.

using AkiraNetwork.VirtualStorageLibrary.WildcardMatchers;
using System.Diagnostics;
using System.Globalization;
using AkiraNetwork.VirtualStorageLibrary.WildcardMatchers;

namespace AkiraNetwork.VirtualStorageLibrary.Test
{
Expand Down
11 changes: 6 additions & 5 deletions AkiraNetwork/VirtualStorageLibrary.Test/VirtualStorageTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
// Copyright (C) 2024 Akira Shimodate
//
// VirtualStorageLibrary is free software, and it is distributed under the terms of
// the GNU General Public License (version 3, or at your option, any later version).
// This license is published by the Free Software Foundation.
// the GNU Lesser General Public License (version 3, or at your option, any later
// version). This license is published by the Free Software Foundation.
//
// VirtualStorageLibrary is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
// more details.
//
// You should have received a copy of the GNU General Public License along
// You should have received a copy of the GNU Lesser General Public License along
// with VirtualStorageLibrary. If not, see https://www.gnu.org/licenses/.

using AkiraNetwork.VirtualStorageLibrary.Utilities;
Expand Down Expand Up @@ -9074,7 +9075,7 @@ public void CopyNode_CopyDestinationToItsParentDirectoryWithRoot_WithoutFollowLi
public void CopyNode_CopyLinkInPathToDirectory()
{
VirtualStorage<BinaryData> vs = new();

vs.AddDirectory("/dir1");
vs.AddDirectory("/dir2");
vs.AddItem("/dir2/item1");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
// Copyright (C) 2024 Akira Shimodate
//
// VirtualStorageLibrary is free software, and it is distributed under the terms of
// the GNU General Public License (version 3, or at your option, any later version).
// This license is published by the Free Software Foundation.
// the GNU Lesser General Public License (version 3, or at your option, any later
// version). This license is published by the Free Software Foundation.
//
// VirtualStorageLibrary is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
// more details.
//
// You should have received a copy of the GNU General Public License along
// You should have received a copy of the GNU Lesser General Public License along
// with VirtualStorageLibrary. If not, see https://www.gnu.org/licenses/.

using System.Diagnostics;
Expand Down Expand Up @@ -120,8 +121,8 @@ public void VirtualSymbolicLink_ConstructorWithInvalidTargetPath_ThrowsArgumentE
VirtualPath targetPath = "/dir1/dir2/@dir3";

// Act & Assert
var ex = Assert.ThrowsException<ArgumentException>(() =>
{
var ex = Assert.ThrowsException<ArgumentException>(() =>
{
new VirtualSymbolicLink(name, targetPath);
});
Debug.WriteLine(ex.Message);
Expand Down
Loading

0 comments on commit 4e2f236

Please sign in to comment.