mirror of
https://github.com/AlexMacocian/Plumsy.git
synced 2026-07-15 14:59:30 +00:00
Follow up on renaming (#1)
* Follow up on renaming * Increment version * Add readme to package
This commit is contained in:
+4
-1
@@ -360,4 +360,7 @@ MigrationBackup/
|
|||||||
.ionide/
|
.ionide/
|
||||||
|
|
||||||
# Fody - auto-generated XML schema
|
# Fody - auto-generated XML schema
|
||||||
FodyWeavers.xsd
|
FodyWeavers.xsd
|
||||||
|
|
||||||
|
# SimplePlugin folder
|
||||||
|
SimplePlugin/
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.Extensions;
|
using System.Extensions;
|
||||||
|
|
||||||
namespace Plum.Net.Tests.SimplePlugin;
|
namespace Plumsy.Tests.SimplePlugin;
|
||||||
|
|
||||||
public sealed class Main
|
public sealed class Main
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
using FluentAssertions;
|
using FluentAssertions;
|
||||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||||
using NSubstitute;
|
using NSubstitute;
|
||||||
using Plum.Net.Models;
|
using Plumsy.Models;
|
||||||
using Plum.Net.Tests.Resolvers;
|
using Plumsy.Tests.Resolvers;
|
||||||
using Plum.Net.Tests.SimplePlugin;
|
using Plumsy.Tests.SimplePlugin;
|
||||||
using Plum.Net.Validators;
|
using Plumsy.Validators;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
@@ -14,7 +14,7 @@ using System.Reflection;
|
|||||||
using System.Reflection.Metadata;
|
using System.Reflection.Metadata;
|
||||||
using System.Runtime.Loader;
|
using System.Runtime.Loader;
|
||||||
|
|
||||||
namespace Plum.Net.Tests;
|
namespace Plumsy.Tests;
|
||||||
|
|
||||||
[TestClass]
|
[TestClass]
|
||||||
public class PluginManagerTests
|
public class PluginManagerTests
|
||||||
@@ -55,7 +55,7 @@ public class PluginManagerTests
|
|||||||
var plugins = this.pluginManager.GetAvailablePlugins();
|
var plugins = this.pluginManager.GetAvailablePlugins();
|
||||||
|
|
||||||
plugins.Should().HaveCount(1);
|
plugins.Should().HaveCount(1);
|
||||||
plugins.First().Name.Should().Be("Plum.Net.Tests.SimplePlugin");
|
plugins.First().Name.Should().Be("Plumsy.Tests.SimplePlugin");
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<Target Name="PreparePluginTestSetup" BeforeTargets="PrepareForBuild">
|
<Target Name="PreparePluginTestSetup" BeforeTargets="PrepareForBuild">
|
||||||
<Copy SourceFiles="$(SolutionDir)SimplePlugin\Plum.Net.Tests.SimplePlugin.dll" DestinationFolder="$(OutputPath)Plugins" />
|
<Copy SourceFiles="$(SolutionDir)SimplePlugin\Plumsy.Tests.SimplePlugin.dll" DestinationFolder="$(OutputPath)Plugins" />
|
||||||
<Copy SourceFiles="$(SolutionDir)SimplePlugin\SystemExtensions.NetStandard.dll" DestinationFolder="$(OutputPath)Dependencies" />
|
<Copy SourceFiles="$(SolutionDir)SimplePlugin\SystemExtensions.NetStandard.dll" DestinationFolder="$(OutputPath)Dependencies" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
@@ -32,8 +32,8 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\Plum.Net.Tests.SimplePlugin\Plum.Net.Tests.SimplePlugin.csproj" />
|
<ProjectReference Include="..\Plumsy.Tests.SimplePlugin\Plumsy.Tests.SimplePlugin.csproj" />
|
||||||
<ProjectReference Include="..\Plum.Net\Plum.Net.csproj" />
|
<ProjectReference Include="..\Plumsy\Plumsy.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
using Plum.Net.Resolvers;
|
using Plumsy.Resolvers;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
namespace Plum.Net.Tests.Resolvers;
|
namespace Plumsy.Tests.Resolvers;
|
||||||
|
|
||||||
public sealed class SimpleDependencyResolver : IDependencyResolver
|
public sealed class SimpleDependencyResolver : IDependencyResolver
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
namespace Plum.Net.Callbacks;
|
namespace Plumsy.Callbacks;
|
||||||
|
|
||||||
public interface IAssemblyLoadedCallback
|
public interface IAssemblyLoadedCallback
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using Plum.Net.Models;
|
using Plumsy.Models;
|
||||||
|
|
||||||
namespace Plum.Net.Exceptions;
|
namespace Plumsy.Exceptions;
|
||||||
|
|
||||||
public sealed class PluginLoadException : Exception
|
public sealed class PluginLoadException : Exception
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
namespace Plum.Net.Models;
|
namespace Plumsy.Models;
|
||||||
|
|
||||||
public sealed class Plugin
|
public sealed class Plugin
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace Plum.Net.Models;
|
namespace Plumsy.Models;
|
||||||
|
|
||||||
public sealed class PluginEntry
|
public sealed class PluginEntry
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace Plum.Net.Models;
|
namespace Plumsy.Models;
|
||||||
|
|
||||||
public abstract class PluginLoadOperation
|
public abstract class PluginLoadOperation
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
using Plum.Net.Callbacks;
|
using Plumsy.Callbacks;
|
||||||
using Plum.Net.Exceptions;
|
using Plumsy.Exceptions;
|
||||||
using Plum.Net.Models;
|
using Plumsy.Models;
|
||||||
using Plum.Net.Resolvers;
|
using Plumsy.Resolvers;
|
||||||
using Plum.Net.Validators;
|
using Plumsy.Validators;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Reflection.Metadata;
|
using System.Reflection.Metadata;
|
||||||
using System.Reflection.PortableExecutable;
|
using System.Reflection.PortableExecutable;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
|
|
||||||
namespace Plum.Net;
|
namespace Plumsy;
|
||||||
|
|
||||||
public sealed class PluginManager
|
public sealed class PluginManager
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -10,13 +10,14 @@
|
|||||||
<Company />
|
<Company />
|
||||||
<Product></Product>
|
<Product></Product>
|
||||||
<Description>Plugin management library.</Description>
|
<Description>Plugin management library.</Description>
|
||||||
<AssemblyVersion>1.0</AssemblyVersion>
|
<AssemblyVersion>1.1</AssemblyVersion>
|
||||||
<FileVersion>1.0</FileVersion>
|
<FileVersion>1.1</FileVersion>
|
||||||
<PackageProjectUrl>https://github.com/AlexMacocian/Plum</PackageProjectUrl>
|
<PackageProjectUrl>https://github.com/AlexMacocian/Plum</PackageProjectUrl>
|
||||||
<Version>1.0</Version>
|
<Version>1.1</Version>
|
||||||
<EnableNETAnalyzers>true</EnableNETAnalyzers>
|
<EnableNETAnalyzers>true</EnableNETAnalyzers>
|
||||||
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
|
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
|
||||||
<PackageLicenseFile>LICENSE</PackageLicenseFile>
|
<PackageLicenseFile>LICENSE</PackageLicenseFile>
|
||||||
|
<PackageReadmeFile>README.md</PackageReadmeFile>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
@@ -26,8 +27,11 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="..\LICENSE">
|
<None Include="..\LICENSE">
|
||||||
<Pack>True</Pack>
|
<Pack>True</Pack>
|
||||||
<PackagePath></PackagePath>
|
<PackagePath></PackagePath>
|
||||||
|
</None>
|
||||||
|
<None Include="..\README.md" Link="README.md">
|
||||||
|
<Pack>True</Pack>
|
||||||
|
<PackagePath></PackagePath>
|
||||||
</None>
|
</None>
|
||||||
<None Include="..\README.md" Link="README.md" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
namespace Plum.Net.Resolvers;
|
namespace Plumsy.Resolvers;
|
||||||
|
|
||||||
public interface IDependencyResolver
|
public interface IDependencyResolver
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace Plum.Net.Validators;
|
namespace Plumsy.Validators;
|
||||||
|
|
||||||
public interface IEnvironmentVersionValidator
|
public interface IEnvironmentVersionValidator
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.Reflection.Metadata;
|
using System.Reflection.Metadata;
|
||||||
|
|
||||||
namespace Plum.Net.Validators;
|
namespace Plumsy.Validators;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A general validator that validates a plugin based on the entire metadata
|
/// A general validator that validates a plugin based on the entire metadata
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.Reflection.Metadata;
|
using System.Reflection.Metadata;
|
||||||
|
|
||||||
namespace Plum.Net.Validators;
|
namespace Plumsy.Validators;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A validator that validates a plugin based on the TypeDefinitions it contains.
|
/// A validator that validates a plugin based on the TypeDefinitions it contains.
|
||||||
|
|||||||
Reference in New Issue
Block a user