diff --git a/Nuspec/Prig.nuspec b/Nuspec/Prig.nuspec index 31c9981..26b02dd 100644 --- a/Nuspec/Prig.nuspec +++ b/Nuspec/Prig.nuspec @@ -2,7 +2,7 @@ Prig - 0.0.0-alpha4 + 0.0.0-alpha5 Prig: Open Source Alternative to Microsoft Fakes Akira Sugiura Akira Sugiura @@ -17,7 +17,14 @@ (c) 2014 Akira Sugiura. All rights reserved. tdd isolation mock mocks mocking fake fakes faking unittest unittesting - Version 0.0.0-alpha4 + Version 0.0.0-alpha5 +* Pre-release 5. +* Fixed Issue #9: `Add-PrigAssembly -AssemblyFrom` went dead. +* Fixed Issue #10: `prig -p ConsoleApplication1.exe` went dead. +* Fixed Issue #11: In .NET 3.5, the assembly containing dynamic methods can't be called indirectly. + + +Version 0.0.0-alpha4 * Pre-release 4. * Supported the feature to generate the stub for one runtime instance. * [NOTICE] Changed the generated stub's API. It became a static method from a nested type. For example, until previous, the stub against `System.DateTime.Now` was `System.Prig.PDateTime.NowGet.Body`. From now, the stub becomes `System.Prig.PDateTime.NowGet().Body`. Because the previous version can't propagate an instance. diff --git a/Nuspec/tools/Urasandesu.Prig/Urasandesu/Prig/NuGet.Add-PrigAssembly.ps1 b/Nuspec/tools/Urasandesu.Prig/Urasandesu/Prig/NuGet.Add-PrigAssembly.ps1 index fe9a348..45da38f 100644 Binary files a/Nuspec/tools/Urasandesu.Prig/Urasandesu/Prig/NuGet.Add-PrigAssembly.ps1 and b/Nuspec/tools/Urasandesu.Prig/Urasandesu/Prig/NuGet.Add-PrigAssembly.ps1 differ diff --git a/Nuspec/tools/Urasandesu.Prig/Urasandesu/Prig/NuGet.Invoke-Prig.ps1 b/Nuspec/tools/Urasandesu.Prig/Urasandesu/Prig/NuGet.Invoke-Prig.ps1 index fe9ba57..94a9d9f 100644 Binary files a/Nuspec/tools/Urasandesu.Prig/Urasandesu/Prig/NuGet.Invoke-Prig.ps1 and b/Nuspec/tools/Urasandesu.Prig/Urasandesu/Prig/NuGet.Invoke-Prig.ps1 differ diff --git a/Swathe b/Swathe index f9a672a..5447fb6 160000 --- a/Swathe +++ b/Swathe @@ -1 +1 @@ -Subproject commit f9a672ac60e040eb5502b34bbea0b5e55c0590fc +Subproject commit 5447fb6b22d7151c1023914d8766ad404d20b112 diff --git a/Urasandesu.Prig/Weaver.cpp b/Urasandesu.Prig/Weaver.cpp index cd30afe..12038ac 100644 --- a/Urasandesu.Prig/Weaver.cpp +++ b/Urasandesu.Prig/Weaver.cpp @@ -270,7 +270,12 @@ namespace CWeaverDetail { CPPANONYM_D_LOGW1(L"Current Path: %|1$s|", current_path().native()); auto modPath = path(pModProf->GetName()); auto modName = modPath.stem().native(); + CPPANONYM_D_LOGW1(L"Loading Module: %|1$s|", modName); + if (modName.empty()) + return S_OK; + + CPPANONYM_LOG_NAMED_SCOPE("if (!modName.empty())"); auto candidateIndDllPaths = unordered_set, EqualTo >(); auto isCandidate = [&](path const &p) { return p.native().find(modName) != wstring::npos; }; for_each(m_indDllPaths | filtered(isCandidate), [&](path const &p) { candidateIndDllPaths.insert(p); });