Skip to content

Commit

Permalink
chore: replace "GSoft" occurrences for "Workleap", when applicable (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
felpel committed Jul 20, 2023
1 parent ea960c5 commit 864d344
Show file tree
Hide file tree
Showing 116 changed files with 286 additions and 284 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# GSoft.Extensions.Mongo
# Workleap.Extensions.Mongo

[![nuget](https://img.shields.io/nuget/v/GSoft.Extensions.Mongo.svg?logo=nuget)](https://www.nuget.org/packages/GSoft.Extensions.Mongo/)
[![build](https://img.shields.io/github/actions/workflow/status/gsoft-inc/gsoft-extensions-mongo/publish.yml?logo=github&branch=main)](https://github.com/gsoft-inc/gsoft-extensions-mongo/actions/workflows/publish.yml)
[![nuget](https://img.shields.io/nuget/v/Workleap.Extensions.Mongo.svg?logo=nuget)](https://www.nuget.org/packages/Workleap.Extensions.Mongo/)
[![build](https://img.shields.io/github/actions/workflow/status/gsoft-inc/wl-extensions-mongo/publish.yml?logo=github&branch=main)](https://github.com/gsoft-inc/wl-extensions-mongo/actions/workflows/publish.yml)

Provides MongoDB access through **.NET dependency injection**, following `Microsoft.Extensions.*` library practices with several features:

Expand All @@ -16,13 +16,13 @@ Provides MongoDB access through **.NET dependency injection**, following `Micros

## Getting started

Install the package `GSoft.Extensions.Mongo.Abstractions` in the project where you'll declare your documents.
Install the package `Workleap.Extensions.Mongo.Abstractions` in the project where you'll declare your documents.
This package contains base classes and interfaces such as `IMongoDocument`, `MongoIndexProvider`, `MongoCollectionAttribute`.
There's also a few extension methods of the MongoDB C# driver classes and interfaces that adds `IAsyncEnumerable` support to cursors.

Install the package `GSoft.Extensions.Mongo` at the application entry point level to register and configure the dependencies in a `IServiceCollection`.
Install the package `Workleap.Extensions.Mongo` at the application entry point level to register and configure the dependencies in a `IServiceCollection`.

Install the package `GSoft.Extensions.Mongo.Ephemeral` whenever you want to use a real but ephemeral MongoDB cluster with a single node replica set.
Install the package `Workleap.Extensions.Mongo.Ephemeral` whenever you want to use a real but ephemeral MongoDB cluster with a single node replica set.
This is ideal for integration testing, as each `IServiceProvider` will have access to an unique and isolated database.


Expand Down Expand Up @@ -132,7 +132,7 @@ var anotherMongoClient = this.Services.GetRequiredService<IMongoClientProvider>(
```

```csharp
// 4) Add the GSoft.Extensions.Mongo.Ephemeral package to use a ephemeral but real MongoDB database in your tests
// 4) Add the Workleap.Extensions.Mongo.Ephemeral package to use a ephemeral but real MongoDB database in your tests
var services = new ServiceCollection();
services.AddMongo().UseEphemeralRealServer();
```
Expand All @@ -154,4 +154,4 @@ To learn more about how to configure or suppress code analysis warnings, [read t

## License

Copyright © 2023, GSoft Group Inc. This code is licensed under the Apache License, Version 2.0. You may obtain a copy of this license at https://github.com/gsoft-inc/gsoft-license/blob/master/LICENSE.
Copyright © 2023, Workleap. This code is licensed under the Apache License, Version 2.0. You may obtain a copy of this license at https://github.com/gsoft-inc/gsoft-license/blob/master/LICENSE.
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Security Policy

If you'd like to report a vulnerability, please open a [GitHub issue](https://github.com/gsoft-inc/gsoft-extensions-mongo/issues).
If you'd like to report a vulnerability, please open a [GitHub issue](https://github.com/gsoft-inc/wl-extensions-mongo/issues).
8 changes: 4 additions & 4 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<Project>
<PropertyGroup>
<Copyright>Copyright © GSoft Group Inc. $([System.DateTime]::UtcNow.ToString(yyyy))</Copyright>
<Authors>GSoft Group Inc.</Authors>
<Owners>GSoft Group Inc.</Owners>
<PackageProjectUrl>https://www.nuget.org/packages/GSoft.Extensions.Mongo</PackageProjectUrl>
<Copyright>Copyright © Workleap $([System.DateTime]::UtcNow.ToString(yyyy))</Copyright>
<Authors>Workleap</Authors>
<Owners>Workleap</Owners>
<PackageProjectUrl>https://github.com/gsoft-inc/wl-extensions-mongo</PackageProjectUrl>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<LangVersion>10</LangVersion>
Expand Down
3 changes: 0 additions & 3 deletions src/GSoft.Extensions.Mongo.Abstractions/AssemblyProperties.cs

This file was deleted.

5 changes: 0 additions & 5 deletions src/GSoft.Extensions.Mongo.Abstractions/IMongoDocument.cs

This file was deleted.

34 changes: 0 additions & 34 deletions src/GSoft.Extensions.Mongo.Abstractions/PublicAPI.Shipped.txt

This file was deleted.

12 changes: 0 additions & 12 deletions src/GSoft.Extensions.Mongo.Analyzers/Internals/KnownSymbolNames.cs

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions src/GSoft.Extensions.Mongo.Ephemeral/PublicAPI.Shipped.txt

This file was deleted.

4 changes: 0 additions & 4 deletions src/GSoft.Extensions.Mongo/AssemblyProperties.cs

This file was deleted.

62 changes: 0 additions & 62 deletions src/GSoft.Extensions.Mongo/PublicAPI.Shipped.txt

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using MongoDB.Driver;

namespace GSoft.Extensions.Mongo;
namespace Workleap.Extensions.Mongo;

public interface IMongoClientProvider
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using GSoft.Extensions.Mongo;
using Workleap.Extensions.Mongo;

// ReSharper disable once CheckNamespace
namespace MongoDB.Driver;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using GSoft.Extensions.Mongo;
using Workleap.Extensions.Mongo;

// ReSharper disable once CheckNamespace
namespace MongoDB.Driver;
Expand Down
5 changes: 5 additions & 0 deletions src/Workleap.Extensions.Mongo.Abstractions/IMongoDocument.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
namespace Workleap.Extensions.Mongo;

public interface IMongoDocument
{
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace GSoft.Extensions.Mongo;
namespace Workleap.Extensions.Mongo;

[AttributeUsage(AttributeTargets.Class)]
public sealed class IndexedByAttribute : Attribute
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Text.RegularExpressions;

namespace GSoft.Extensions.Mongo;
namespace Workleap.Extensions.Mongo;

[AttributeUsage(AttributeTargets.Class)]
public sealed class MongoCollectionAttribute : Attribute
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace GSoft.Extensions.Mongo;
namespace Workleap.Extensions.Mongo;

public static class MongoDefaults
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using MongoDB.Driver;

namespace GSoft.Extensions.Mongo;
namespace Workleap.Extensions.Mongo;

/// <summary>
/// Inherit from this class to define indexes for a particular document type.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Collections.Concurrent;
using System.Reflection;

namespace GSoft.Extensions.Mongo;
namespace Workleap.Extensions.Mongo;

internal static class MongoReflectionCache
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace GSoft.Extensions.Mongo;
namespace Workleap.Extensions.Mongo;

[AttributeUsage(AttributeTargets.Class)]
public sealed class NoIndexNeededAttribute : Attribute
Expand Down
Loading

0 comments on commit 864d344

Please sign in to comment.