Skip to content

Commit

Permalink
Rename namespace from Freshli.* to Corgibytes.Freshli.Lib.* and from …
Browse files Browse the repository at this point in the history
…Freshli.Test.* to Corgibytes.Freshli.Lib.Test.* (#259)
  • Loading branch information
mairadanielaferrari committed Mar 17, 2021
1 parent 84fb19a commit 951f83d
Show file tree
Hide file tree
Showing 111 changed files with 131 additions and 125 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using ApprovalTests.Reporters.TestFrameworks;
using Xunit;

namespace Freshli.Test {
namespace Corgibytes.Freshli.Lib.Test {
[UseReporter(typeof(XUnit2Reporter))]
public class Acceptance {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>

<IsPackable>false</IsPackable>

<LangVersion>9</LangVersion>

<AssemblyName>Corgibytes.Freshli.Lib.Test</AssemblyName>

<RootNamespace>Corgibytes.Freshli.Lib.Test</RootNamespace>
</PropertyGroup>

<ItemGroup>
Expand All @@ -22,7 +26,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Freshli\Freshli.csproj" />
<ProjectReference Include="..\Corgibytes.Freshli.Lib\Corgibytes.Freshli.Lib.csproj" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Collections.Generic;
using System.IO;

namespace Freshli.Test {
namespace Corgibytes.Freshli.Lib.Test {
public class Fixtures {
public static string Path(params string[] values) {
var assemblyPath = System.Reflection.Assembly.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.IO;
using Xunit;

namespace Freshli.Test.Integration {
namespace Corgibytes.Freshli.Lib.Test.Integration {
public class FileHistoryFinderTest {
[Fact]
public void Git() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.IO;
using Xunit;

namespace Freshli.Test.Integration {
namespace Corgibytes.Freshli.Lib.Test.Integration {
public class GitFileHistoryTest {
[Fact]
public void Dates() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using System;
using Freshli.Exceptions;
using Freshli.Languages.CSharp;
using Corgibytes.Freshli.Lib.Exceptions;
using Corgibytes.Freshli.Lib.Languages.CSharp;
using NuGet.Versioning;
using Xunit;

namespace Freshli.Test.Integration.Languages.CSharp {
namespace Corgibytes.Freshli.Lib.Test.Integration.Languages.CSharp {
public class NuGetRepositoryTest {
private NuGetRepository _repository = new NuGetRepository();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System;
using Freshli.Languages.Perl;
using Corgibytes.Freshli.Lib.Languages.Perl;
using Xunit;

namespace Freshli.Test.Integration.Languages.Perl {
namespace Corgibytes.Freshli.Lib.Test.Integration.Languages.Perl {
public class MetaCpanRepositoryTest {
[Fact]
public void VersionInfoWithoutModuleSeparator() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System;
using Freshli.Languages.Php;
using Corgibytes.Freshli.Lib.Languages.Php;
using Xunit;

namespace Freshli.Test.Integration {
namespace Corgibytes.Freshli.Lib.Test.Integration {
public class PackagistRepositoryTest {
[Fact]
public void VersionInfo() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System;
using Freshli.Languages.Python;
using Corgibytes.Freshli.Lib.Languages.Python;
using Xunit;

namespace Freshli.Test.Integration.Languages.Python {
namespace Corgibytes.Freshli.Lib.Test.Integration.Languages.Python {
public class PyPIRepositoryTest {
[Fact]
public void VersionInfo() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System;
using Freshli.Languages.Ruby;
using Corgibytes.Freshli.Lib.Languages.Ruby;
using Xunit;

namespace Freshli.Test.Integration.Languages.Ruby {
namespace Corgibytes.Freshli.Lib.Test.Integration.Languages.Ruby {
public class RubyGemsRepositoryTest {

[Fact]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System;
using Freshli.Languages.Ruby;
using Corgibytes.Freshli.Lib.Languages.Ruby;
using Xunit;

namespace Freshli.Test.Integration {
namespace Corgibytes.Freshli.Lib.Test.Integration {
public class LibYearCalculatorTest {
[Fact]
public void ComputeAsOf() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using Xunit;

namespace Freshli.Test.Integration {
namespace Corgibytes.Freshli.Lib.Test.Integration {
public class LocalFileHistoryTest {
[Fact]
public void Dates() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using Freshli.Languages.Perl;
using Freshli.Languages.Php;
using Freshli.Languages.Python;
using Freshli.Languages.Ruby;
using Corgibytes.Freshli.Lib.Languages.Perl;
using Corgibytes.Freshli.Lib.Languages.Php;
using Corgibytes.Freshli.Lib.Languages.Python;
using Corgibytes.Freshli.Lib.Languages.Ruby;
using Xunit;

namespace Freshli.Test.Integration {
namespace Corgibytes.Freshli.Lib.Test.Integration {
public class ManifestFinderTest {
public ManifestFinderTest() {
ManifestFinder.RegisterAll();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using Moq;
using Xunit;

namespace Freshli.Test.Unit {
namespace Corgibytes.Freshli.Lib.Test.Unit {
public class AnalysisDatesTest {
private static DateTime ParseExact(string value) {
return DateTime.ParseExact(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System;
using Freshli.Languages.Ruby;
using Corgibytes.Freshli.Lib.Languages.Ruby;
using Xunit;

namespace Freshli.Test.Unit {
namespace Corgibytes.Freshli.Lib.Test.Unit {
public class BundlerManifestTest {
private static readonly string Contents = @"GEM
remote: https://rubygems.org/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System;
using Freshli.Languages.CSharp;
using Corgibytes.Freshli.Lib.Languages.CSharp;
using NuGet.Versioning;
using Xunit;

namespace Freshli.Test.Unit.CSharp {
namespace Corgibytes.Freshli.Lib.Test.Unit.CSharp {
public class FreshliNuGetVersionInfoTest {
[Theory]
[InlineData("1", "2", -1)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System;
using Freshli.Languages.CSharp;
using Corgibytes.Freshli.Lib.Languages.CSharp;
using NuGet.Versioning;
using Xunit;

namespace Freshli.Test.Unit.CSharp {
namespace Corgibytes.Freshli.Lib.Test.Unit.CSharp {
public class NuGetManifestTest {
[Fact]
public void ParsesFile() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System.IO;
using Freshli.Languages.Php;
using Corgibytes.Freshli.Lib.Languages.Php;
using Xunit;

namespace Freshli.Test.Unit {
namespace Corgibytes.Freshli.Lib.Test.Unit {
public class ComposerManifestTest {
private static readonly string Contents = File.
ReadAllText(Fixtures.Path("php", "small", "composer.lock"));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using Xunit;

namespace Freshli.Test.Unit {
namespace Corgibytes.Freshli.Lib.Test.Unit {
public class LibYearCalculatorTest {
[Fact]
public void Tokenizer() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System.IO;
using Freshli.Languages.Perl;
using Corgibytes.Freshli.Lib.Languages.Perl;
using Xunit;

namespace Freshli.Test.Unit.Perl {
namespace Corgibytes.Freshli.Lib.Test.Unit.Perl {
public class CpanfileManifestTest {
[Fact]
public void Parse() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Freshli.Languages.Perl;
using Corgibytes.Freshli.Lib.Languages.Perl;
using Xunit;

namespace Freshli.Test.Unit.Perl {
namespace Corgibytes.Freshli.Lib.Test.Unit.Perl {
public class VersionMatcherTest {
[Theory]
[InlineData("1.0", "1.0", true)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System.IO;
using Freshli.Languages.Python;
using Corgibytes.Freshli.Lib.Languages.Python;
using Xunit;

namespace Freshli.Test.Unit {
namespace Corgibytes.Freshli.Lib.Test.Unit {
public class PipRequirementsTxtManifestTest {
private static readonly string Contents = File.
ReadAllText(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using System;
using Freshli.Exceptions;
using Freshli.Languages.Python;
using Corgibytes.Freshli.Lib.Exceptions;
using Corgibytes.Freshli.Lib.Languages.Python;
using RestSharp.Extensions;
using Xunit;

namespace Freshli.Test.Unit.Python {
namespace Corgibytes.Freshli.Lib.Test.Unit.Python {
public class PythonVersionInfoTest {

[Theory]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System;
using Freshli.Languages.Python;
using Corgibytes.Freshli.Lib.Languages.Python;
using Xunit;

namespace Freshli.Test.Unit.Python {
namespace Corgibytes.Freshli.Lib.Test.Unit.Python {
public class VersionMatcherTest {
[Theory]
[InlineData("!=1", VersionMatcher.OperationKind.NotEqual, "1")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System;
using Freshli.Languages.Ruby;
using Corgibytes.Freshli.Lib.Languages.Ruby;
using Xunit;
using Xunit.Abstractions;

namespace Freshli.Test.Unit.Ruby {
namespace Corgibytes.Freshli.Lib.Test.Unit.Ruby {
public class RubyGemsVersionInfoTest {
private readonly ITestOutputHelper _testOutputHelper;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System;
using Freshli.Exceptions;
using Corgibytes.Freshli.Lib.Exceptions;
using Xunit;

namespace Freshli.Test.Unit {
namespace Corgibytes.Freshli.Lib.Test.Unit {
public class SemVerVersionInfoTest {
[Theory]
[InlineData("1", 1, null, null, false, null, null)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System;
using Freshli.Util;
using Corgibytes.Freshli.Lib.Util;
using Xunit;

namespace Freshli.Test.Unit.Util {
namespace Corgibytes.Freshli.Lib.Test.Unit.Util {
public class DateTimeExtensionsTest {
private readonly DateTime _baseDateTime =
new DateTime(2020, 1, 6, 23, 59, 59, 999).AddTicks(9999);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Freshli.Util;
using Corgibytes.Freshli.Lib.Util;
using Xunit;

namespace Freshli.Test.Unit.Util {
namespace Corgibytes.Freshli.Lib.Test.Unit.Util {
public class VersionHelperTest {

[Theory]
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Freshli {
namespace Corgibytes.Freshli.Lib {
public abstract class AbstractManifestFinder {
protected abstract string ManifestPattern { get; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using Freshli.Util;
using Corgibytes.Freshli.Lib.Util;

namespace Freshli {
namespace Corgibytes.Freshli.Lib {
public class AnalysisDates : IEnumerable<DateTime> {
private List<DateTime> _dates = new List<DateTime>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
<license>MIT</license>
<!-- This is calculated via GitVersion in Github Actions -->
<Version>0.0.0</Version>
<AssemblyName>Corgibytes.Freshli.Lib</AssemblyName>
<RootNamespace>Corgibytes.Freshli.Lib</RootNamespace>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace Freshli.Exceptions {
namespace Corgibytes.Freshli.Lib.Exceptions {
public class DependencyNotFoundException : Exception {

public DependencyNotFoundException(string dependency, Exception e)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace Freshli.Exceptions {
namespace Corgibytes.Freshli.Lib.Exceptions {
public class LatestVersionNotFoundException : Exception {

public LatestVersionNotFoundException(string dependency, DateTime date,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace Freshli.Exceptions {
namespace Corgibytes.Freshli.Lib.Exceptions {
public class LatestVersionThatMatchesNotFoundException : Exception {

public LatestVersionThatMatchesNotFoundException(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace Freshli.Exceptions {
namespace Corgibytes.Freshli.Lib.Exceptions {
public class VersionComparisonException : Exception {

public VersionComparisonException(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace Freshli.Exceptions {
namespace Corgibytes.Freshli.Lib.Exceptions {
public class VersionNotFoundException : Exception {

public VersionNotFoundException(string dependency, string version,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace Freshli.Exceptions {
namespace Corgibytes.Freshli.Lib.Exceptions {
public class VersionParseException : Exception {

public VersionParseException(string version)
Expand Down
Loading

0 comments on commit 951f83d

Please sign in to comment.