Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
Merge branch 'release/1.4.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
GeertvanHorrik committed Jul 8, 2014
2 parents 2ae1cf0 + 55e8dbf commit 28d97a2
Show file tree
Hide file tree
Showing 45 changed files with 152 additions and 182 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ GitHubLink makes symbol servers obsolete which saves you both time with uploadin
![Stepping through external source code](doc/images/GitHubLink_example.gif)


The idea is based on the <a href="https://github.com/ctaggart/SourceLink" target="_blank">SourceLink project</a>. However it requires FAKE and not everyone likes to write code in F#. GitHubLink is available as console application and can be references as assembly as well to be used in other .NET assemblies.
This application is based on the <a href="https://github.com/ctaggart/SourceLink" target="_blank">SourceLink project</a>. SourceLink requires FAKE to run and not everyone likes to write code in F#. GitHubLink is a wrapper around SourceLink specifically written to be easily used from any build system (locally or a build server) and in any .NET language. It also provides new features such as standard integration with GitHub and the possibility to use remote repositories. GitHubLink is available as console application and can be referenced as assembly to be used in other .NET assemblies.

The advantage of GitHubLink is that it is fully customized for GitHub. It also works with GitHub urls so it **does not require a local git repository to work**. This makes it perfectly usable in continuous integration servers such as <a href="http://www.finalbuilder.com/Continua-CI" target="_blank">Continua CI</a>.

Expand Down
10 changes: 10 additions & 0 deletions design/logo/Create icons.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@REM Creating logo
set iconFile="Link\icon_15341.svg"
inkscape.exe %iconFile% --export-png=logo_16.png -w16 -h16
inkscape.exe %iconFile% --export-png=logo_32.png -w32 -h32
inkscape.exe %iconFile% --export-png=logo_64.png -w64 -h64
inkscape.exe %iconFile% --export-png=logo_128.png -w128 -h128
inkscape.exe %iconFile% --export-png=logo_256.png -w256 -h256
inkscape.exe %iconFile% --export-png=logo_512.png -w512 -h512
inkscape.exe %iconFile% --export-png=logo_1024.png -w1024 -h1024
pause
Binary file modified design/logo/logo_1024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified design/logo/logo_128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified design/logo/logo_16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified design/logo/logo_256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified design/logo/logo_32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified design/logo/logo_512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified design/logo/logo_64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions doc/history.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Project website: https://github.com/GeertvanHorrik/GitHubLink
**********************************************************

==================
Version 1.3.0
Version 1.4.0
==================

Release date:
Expand All @@ -22,13 +22,13 @@ Release date:

Added/fixed:
============
xxx
(x) #8 Console stays red after an error occurs

**********************************************************


==================
Version 1.2.0
Version 1.2.0/1.3.0
==================

Release date:
Expand Down
8 changes: 2 additions & 6 deletions src/GitHubLink.Test/ArgumentParserFacts.cs
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ArgumentParserFacts.cs" company="CatenaLogic">
// Copyright (c) 2012 - 2014 CatenaLogic. All rights reserved.
// Copyright (c) 2014 - 2014 CatenaLogic. All rights reserved.
// </copyright>
// --------------------------------------------------------------------------------------------------------------------


namespace GitHubLink.Test
{
using Catel.Test;
using GitHubLink;
using Microsoft.VisualStudio.TestTools.UnitTesting;

[TestClass]
public class ArgumentParserFacts
{
#region Methods

[TestMethod]
public void ThrowsExceptionForEmptyParameters()
{
Expand Down Expand Up @@ -77,7 +75,5 @@ public void ThrowsExceptionForUnknownArgument()
{
ExceptionTester.CallMethodAndExpectException<GitHubLinkException>(() => ArgumentParser.ParseArguments("solutionDirectory -x logFilePath"));
}

#endregion
}
}
4 changes: 2 additions & 2 deletions src/GitHubLink.Test/ContextFacts.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ContextFacts.cs" company="CatenaLogic">
// Copyright (c) 2012 - 2014 CatenaLogic. All rights reserved.
// Copyright (c) 2014 - 2014 CatenaLogic. All rights reserved.
// </copyright>
// --------------------------------------------------------------------------------------------------------------------


namespace GitHubLink.Test
{
using Catel;
using Catel.Test;
using Microsoft.VisualStudio.TestTools.UnitTesting;

Expand Down
7 changes: 2 additions & 5 deletions src/GitHubLink.Test/Extensions/ContextExtensionsFacts.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ContextExtensionsFacts.cs" company="CatenaLogic">
// Copyright (c) 2012 - 2014 CatenaLogic. All rights reserved.
// Copyright (c) 2014 - 2014 CatenaLogic. All rights reserved.
// </copyright>
// --------------------------------------------------------------------------------------------------------------------


namespace GitHubLink.Test.Extensions
{
using Microsoft.VisualStudio.TestTools.UnitTesting;

public class ContextExtensionsFacts
{
#region Nested type: TheGetRelativePathMethod

[TestClass]
public class TheGetRelativePathMethod
{
Expand Down Expand Up @@ -41,7 +40,5 @@ public void ReturnsRelativePathWithDirectoryUpwards()
Assert.AreEqual(@"..\catel\src\subdir1\somefile.cs", relativePath);
}
}

#endregion
}
}
29 changes: 15 additions & 14 deletions src/GitHubLink.Test/Extensions/StringExtensionsFacts.github.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="StringExtensions.cs" company="CatenaLogic">
// Copyright (c) 2012 - 2014 CatenaLogic. All rights reserved.
// <copyright file="StringExtensionsFacts.github.cs" company="CatenaLogic">
// Copyright (c) 2014 - 2014 CatenaLogic. All rights reserved.
// </copyright>
// --------------------------------------------------------------------------------------------------------------------


namespace GitHubLink.Test.Extensions
{
using Microsoft.VisualStudio.TestTools.UnitTesting;
Expand All @@ -22,6 +23,18 @@ public void ReturnsValidCompany()
}
}

[TestClass]
public class TheGetGitHubCompanyUrlMethod
{
[TestMethod]
public void ReturnsValidUrl()
{
var company = StringExtensions.GetGitHubCompanyUrl("https://github.com/GeertvanHorrik/GitHubLink");

Assert.AreEqual("https://github.com/GeertvanHorrik", company);
}
}

[TestClass]
public class TheGetGitHubProjectNameMethod
{
Expand Down Expand Up @@ -54,18 +67,6 @@ public void ReturnsValidUrlWhenGitIsAppended()
}
}

[TestClass]
public class TheGetGitHubCompanyUrlMethod
{
[TestMethod]
public void ReturnsValidUrl()
{
var company = StringExtensions.GetGitHubCompanyUrl("https://github.com/GeertvanHorrik/GitHubLink");

Assert.AreEqual("https://github.com/GeertvanHorrik", company);
}
}

[TestClass]
public class TheGetGitHubRawUrlMethod
{
Expand Down
8 changes: 4 additions & 4 deletions src/GitHubLink.Test/GitHubLink.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<ItemGroup>
<Reference Include="Catel.Core, Version=4.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\lib\Catel.Core.3.9.0.1404150943-beta\lib\net45\Catel.Core.dll</HintPath>
<HintPath>..\..\lib\Catel.Core.3.9.0.1404200146-beta\lib\net45\Catel.Core.dll</HintPath>
</Reference>
<Reference Include="System" />
</ItemGroup>
Expand All @@ -60,15 +60,15 @@
<Compile Include="Extensions\StringExtensionsFacts.github.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\GitHubLink\GitHubLink.csproj">
<Project>{d68add77-913f-46d2-9a4f-5cc71c4718d8}</Project>
<Name>GitHubLink</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<Choose>
<When Condition="'$(VisualStudioVersion)' == '10.0' And '$(IsCodedUITest)' == 'True'">
<ItemGroup>
Expand Down
16 changes: 13 additions & 3 deletions src/GitHubLink.Test/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
using System.Reflection;
using System.Runtime.CompilerServices;
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="AssemblyInfo.cs" company="CatenaLogic">
// Copyright (c) 2014 - 2014 CatenaLogic. All rights reserved.
// </copyright>
// --------------------------------------------------------------------------------------------------------------------


using System.Reflection;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.

[assembly: AssemblyTitle("GitHubLink.Test")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
Expand All @@ -17,9 +24,11 @@
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.

[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM

[assembly: Guid("d63e36fe-d056-46ad-af77-e8a14edc7a02")]

// Version information for an assembly consists of the following four values:
Expand All @@ -32,5 +41,6 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
2 changes: 1 addition & 1 deletion src/GitHubLink.Test/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Catel.Core" version="3.9.0.1404150943-beta" targetFramework="net45" />
<package id="Catel.Core" version="3.9.0.1404200146-beta" targetFramework="net45" />
</packages>
16 changes: 6 additions & 10 deletions src/GitHubLink.DotSettings → src/GitHubLink.sln.DotSettings
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:Boolean x:Key="/Default/CodeEditing/GenerateMemberBody/CopyXmlDocumentation/@EntryValue">True</s:Boolean>
<s:String x:Key="/Default/CodeInspection/Highlighting/AnalysisEnabled/@EntryValue">SOLUTION</s:String>

<s:String x:Key="/Default/CodeStyle/CodeCleanup/Profiles/=Code_0020cleanup/@EntryIndexedValue">&lt;?xml version="1.0" encoding="utf-16"?&gt;&lt;Profile name="Code cleanup"&gt;&lt;CSArrangeThisQualifier&gt;True&lt;/CSArrangeThisQualifier&gt;&lt;CSMakeFieldReadonly&gt;True&lt;/CSMakeFieldReadonly&gt;&lt;CSUpdateFileHeader&gt;True&lt;/CSUpdateFileHeader&gt;&lt;CSOptimizeUsings&gt;&lt;OptimizeUsings&gt;True&lt;/OptimizeUsings&gt;&lt;EmbraceInRegion&gt;False&lt;/EmbraceInRegion&gt;&lt;RegionName&gt;&lt;/RegionName&gt;&lt;/CSOptimizeUsings&gt;&lt;CSReformatCode&gt;True&lt;/CSReformatCode&gt;&lt;CSReorderTypeMembers&gt;True&lt;/CSReorderTypeMembers&gt;&lt;AspOptimizeRegisterDirectives&gt;True&lt;/AspOptimizeRegisterDirectives&gt;&lt;HtmlReformatCode&gt;True&lt;/HtmlReformatCode&gt;&lt;CSharpFormatDocComments&gt;False&lt;/CSharpFormatDocComments&gt;&lt;/Profile&gt;</s:String>

<s:String x:Key="/Default/CodeStyle/CodeCleanup/SilentCleanupProfile/@EntryValue">Code cleanup</s:String>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/ALIGN_LINQ_QUERY/@EntryValue">True</s:Boolean>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/ALIGN_MULTILINE_CALLS_CHAIN/@EntryValue">True</s:Boolean>
<s:Int64 x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/BLANK_LINES_AFTER_START_COMMENT/@EntryValue">2</s:Int64>
<s:Int64 x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/BLANK_LINES_AROUND_NAMESPACE/@EntryValue">1</s:Int64>
<s:Int64 x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/BLANK_LINES_INSIDE_REGION/@EntryValue">0</s:Int64>
Expand All @@ -15,6 +18,8 @@
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/FORCE_WHILE_BRACES_STYLE/@EntryValue">ALWAYS_ADD</s:String>
<s:Int64 x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/KEEP_BLANK_LINES_IN_CODE/@EntryValue">1</s:Int64>
<s:Int64 x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/KEEP_BLANK_LINES_IN_DECLARATIONS/@EntryValue">1</s:Int64>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/SPACE_AROUND_MULTIPLICATIVE_OP/@EntryValue">True</s:Boolean>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/SPACE_WITHIN_SINGLE_LINE_ARRAY_INITIALIZER_BRACES/@EntryValue">True</s:Boolean>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/WRAP_LINES/@EntryValue">False</s:Boolean>
<s:String x:Key="/Default/CodeStyle/CodeFormatting/XmlDocFormatter/IndentTagContent/@EntryValue">DoNotTouch</s:String>

Expand Down Expand Up @@ -139,7 +144,6 @@ II.2.12 &lt;HandlesEvent /&gt;&#xD;
&lt;Sort&gt;&#xD;
&lt;Name/&gt;&#xD;
&lt;/Sort&gt;&#xD;
&lt;Group Region="Delegates"/&gt;&#xD;
&lt;/Entry&gt;&#xD;
&#xD;
&lt;!--public enum--&gt;&#xD;
Expand All @@ -154,7 +158,6 @@ II.2.12 &lt;HandlesEvent /&gt;&#xD;
&lt;Name/&gt;&#xD;
&lt;/Sort&gt;&#xD;
&lt;Group&gt;&#xD;
&lt;Name Region="${Name} enum"/&gt;&#xD;
&lt;/Group&gt;&#xD;
&lt;/Entry&gt;&#xD;
&#xD;
Expand All @@ -172,7 +175,6 @@ II.2.12 &lt;HandlesEvent /&gt;&#xD;
&lt;Sort&gt;&#xD;
&lt;Kind Order="constant field"/&gt;&#xD;
&lt;/Sort&gt;&#xD;
&lt;Group Region="Constants" /&gt;&#xD;
&lt;/Entry&gt;&#xD;
&#xD;
&lt;!--instance fields--&gt;&#xD;
Expand All @@ -189,7 +191,6 @@ II.2.12 &lt;HandlesEvent /&gt;&#xD;
&lt;Readonly/&gt;&#xD;
&lt;Name/&gt;&#xD;
&lt;/Sort&gt;&#xD;
&lt;Group Region="Fields" /&gt;&#xD;
&lt;/Entry&gt;&#xD;
&#xD;
&lt;!--Constructors. Place static one first--&gt;&#xD;
Expand All @@ -200,7 +201,6 @@ II.2.12 &lt;HandlesEvent /&gt;&#xD;
&lt;Sort&gt;&#xD;
&lt;Static/&gt;&#xD;
&lt;/Sort&gt;&#xD;
&lt;Group Region="Constructors" /&gt;&#xD;
&lt;/Entry&gt;&#xD;
&#xD;
&lt;!--properties, indexers--&gt;&#xD;
Expand All @@ -211,7 +211,6 @@ II.2.12 &lt;HandlesEvent /&gt;&#xD;
&lt;Kind Is="indexer"/&gt;&#xD;
&lt;/Or&gt;&#xD;
&lt;/Match&gt;&#xD;
&lt;Group Region="Properties" /&gt;&#xD;
&lt;/Entry&gt;&#xD;
&#xD;
&lt;!--interface implementations--&gt;&#xD;
Expand All @@ -226,7 +225,6 @@ II.2.12 &lt;HandlesEvent /&gt;&#xD;
&lt;ImplementsInterface Immediate="true"/&gt;&#xD;
&lt;/Sort&gt;&#xD;
&lt;Group&gt;&#xD;
&lt;ImplementsInterface Immediate="true" Region="${ImplementsInterface} Members"/&gt;&#xD;
&lt;/Group&gt;&#xD;
&lt;/Entry&gt;&#xD;
&#xD;
Expand All @@ -235,7 +233,6 @@ II.2.12 &lt;HandlesEvent /&gt;&#xD;
&lt;Match&gt;&#xD;
&lt;Kind Is="method"/&gt;&#xD;
&lt;/Match&gt;&#xD;
&lt;Group Region="Methods" /&gt;&#xD;
&lt;/Entry&gt;&#xD;
&#xD;
&lt;!--all other members--&gt;&#xD;
Expand All @@ -250,7 +247,6 @@ II.2.12 &lt;HandlesEvent /&gt;&#xD;
&lt;Name/&gt;&#xD;
&lt;/Sort&gt;&#xD;
&lt;Group&gt;&#xD;
&lt;Name Region="Nested type: ${Name}"/&gt;&#xD;
&lt;/Group&gt;&#xD;
&lt;/Entry&gt;&#xD;
&lt;/Pattern&gt;&#xD;
Expand All @@ -261,7 +257,7 @@ II.2.12 &lt;HandlesEvent /&gt;&#xD;
<s:Boolean x:Key="/Default/CodeStyle/CSharpUsing/AddImportsToDeepestScope/@EntryValue">True</s:Boolean>
<s:String x:Key="/Default/CodeStyle/FileHeader/FileHeaderText/@EntryValue">--------------------------------------------------------------------------------------------------------------------&#xD;
&lt;copyright file="$FILENAME$" company="CatenaLogic"&gt;&#xD;
Copyright (c) 2008 - $CURRENT_YEAR$ CatenaLogic. All rights reserved.&#xD;
Copyright (c) 2014 - $CURRENT_YEAR$ CatenaLogic. All rights reserved.&#xD;
&lt;/copyright&gt;&#xD;
--------------------------------------------------------------------------------------------------------------------</s:String>
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ESettingsUpgrade_002EMigrateBlankLinesAroundFieldToBlankLinesAroundProperty/@EntryIndexedValue">True</s:Boolean>
Expand Down
13 changes: 3 additions & 10 deletions src/GitHubLink/ArgumentParser.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ArgumentParser.cs" company="CatenaLogic">
// Copyright (c) 2012 - 2014 CatenaLogic. All rights reserved.
// Copyright (c) 2014 - 2014 CatenaLogic. All rights reserved.
// </copyright>
// --------------------------------------------------------------------------------------------------------------------


namespace GitHubLink
{
using System;
Expand All @@ -13,17 +14,11 @@ namespace GitHubLink

public static class ArgumentParser
{
#region Constants

private static readonly ILog Log = LogManager.GetCurrentClassLogger();

#endregion

#region Methods

public static Context ParseArguments(string commandLineArguments)
{
return ParseArguments(commandLineArguments.Split(new[] {' '}, StringSplitOptions.RemoveEmptyEntries).ToList());
return ParseArguments(commandLineArguments.Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries).ToList());
}

public static Context ParseArguments(params string[] commandLineArguments)
Expand Down Expand Up @@ -123,7 +118,5 @@ private static bool IsHelp(string singleArgument)
IsSwitch("help", singleArgument) ||
IsSwitch("?", singleArgument);
}

#endregion
}
}
Loading

0 comments on commit 28d97a2

Please sign in to comment.