Easy Semantic Versioning (SemVer.org) for projects using GitHub flow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static class nHibernateExtensions | |
| { | |
| public static T Transaction<T>(this ISession session, Action<ISession, T> action) | |
| { | |
| // 3. Enters here | |
| using (var tran = session.BeginTransaction()){ | |
| // 4. Calls into the lambda | |
| return action(tran); | |
| // 7. execution continues here | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Get-Batchfile ($file) { | |
| $cmd = "`"$file`" & set" | |
| cmd /c $cmd | Foreach-Object { | |
| $p, $v = $_.split('=') | |
| Set-Item -path env:$p -value $v | |
| } | |
| } | |
| function VsVars32() | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class ViewModelPropertiesImplementNotifyPropertyChangedAndAreInUIProject : IConvention<Types> | |
| { | |
| public void Execute(Types data, IConventionResultContext result) | |
| { | |
| var notifyPropertyChanged = typeof(INotifyPropertyChanged); | |
| var viewModelType = typeof(ViewModelBase); | |
| var viewModels = data.TypesToVerify.Where(viewModelType.IsAssignableFrom); | |
| var allPropertyTypes = GetPropertyTypes(viewModels, new List<Type>()).ToArray(); | |
| var failingData = allPropertyTypes.Where(t => !notifyPropertyChanged.IsAssignableFrom(t)); |
I have been doing a heap of reading about semver and how you can include build meta-data and other things, but I am really struggling to find a way to fit SemVer and Continous Delivery together.
Currently I am the primary maintainer or a main contributor for for:
https://github.com/TestStack/White
https://github.com/JakeGinnivan/VSTOContrib
https://github.com/DbUp/DbUp
https://github.com/Code52/DownmarkerWPF
https://github.com/TestStack/ConventionTests
And quite a few other smaller projects (https://github.com/JakeGinnivan?tab=repositories)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class HttpExecutor : IHttpExecutor | |
| { | |
| private readonly HttpClient _restClient; | |
| public EmbedApi(IConfig config, Func<Owned<ILifetimeScope>> lifetimeScope) | |
| { | |
| var scope = lifetimeScope().Value; | |
| var httpClientHandler = new HttpClientHandler | |
| { | |
| Credentials = new NetworkCredential(config.Username, config.Password) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public interface IHttpCall | |
| { | |
| Task<HttpResponseMessage> Execute(HttpClient httpClient); | |
| } | |
| public interface IHttpWithResult<T> : IHttpCall | |
| { | |
| } | |
| public interface IHttpCallExecutor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [TestFixture] | |
| public class RecordTest | |
| { | |
| [Test] | |
| public void DoTest() | |
| { | |
| var testing = Log4NetTestHelper.RecordLog(() => | |
| { | |
| var log = LogManager.GetLogger(typeof (RecordTest)); | |
| log.Error("Testing!"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //CODE CAUSING ISSUES: | |
| foreach (var attribute in sorted.OfType<INamespaceAlias>()) | |
| { | |
| attribute.SetResolveContextForSandBox(t, SandBoxContextType.Child); | |
| anchor = t.AddAttributeAfter(attribute, anchor); | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| JetBrains.Util.Tests.TestLoggerListener.TestWrapperException was unhandled by user code | |
| HResult=-2146232832 | |
| Message=2 exceptions were thrown. | |
| #1: Cannot get PsiModule | |
| --- EXCEPTION #1/2 [InvalidOperationException] | |
| Message = “Cannot get PsiModule” | |
| ExceptionPath = Root.InnerException | |
| ClassName = System.InvalidOperationException | |
| HResult = COR_E_INVALIDOPERATION=80131509 |