Skip to content

Commit 364233b

Browse files
committed
Rename project
1 parent 004c4ce commit 364233b

File tree

5 files changed

+24
-95
lines changed

5 files changed

+24
-95
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ All notable changes to this project will be documented in this file.
33

44
## [4.0.0] - unreleased
55

6-
- Rename package to `mongodb/laravel-eloquent`
6+
- Rename package to `mongodb/laravel-mongodb`
77
- Change namespace to `Mongodb\Laravel`
88
- Add classes to cast `ObjectId` and `UUID` instances [#1](https://github.com/GromNaN/laravel-mongodb/pull/1) by [@alcaeus](https://github.com/alcaeus).
99
- Add `Query\Builder::toMql()` to simplify comprehensive query tests [#6](https://github.com/GromNaN/laravel-mongodb/pull/6) by [@GromNaN](https://github.com/GromNaN).

CODE_OF_CONDUCT.md

+4-82
Original file line numberDiff line numberDiff line change
@@ -1,84 +1,6 @@
1-
# Contributor Covenant Code of Conduct
1+
# MongoDB Code of Conduct
22

3-
## Our Pledge
3+
The Code of Conduct outlines the expectations for our behavior as members of the MongoDB community.
4+
We value the participation of each member of the MongoDB community and want all participants to have an enjoyable and fulfilling experience.
45

5-
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6-
7-
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8-
9-
## Our Standards
10-
11-
Examples of behavior that contributes to a positive environment for our community include:
12-
13-
* Demonstrating empathy and kindness toward other people
14-
* Being respectful of differing opinions, viewpoints, and experiences
15-
* Giving and gracefully accepting constructive feedback
16-
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17-
* Focusing on what is best not just for us as individuals, but for the overall community
18-
19-
Examples of unacceptable behavior include:
20-
21-
* The use of sexualized language or imagery, and sexual attention or
22-
advances of any kind
23-
* Trolling, insulting or derogatory comments, and personal or political attacks
24-
* Public or private harassment
25-
* Publishing others' private information, such as a physical or email
26-
address, without their explicit permission
27-
* Other conduct which could reasonably be considered inappropriate in a
28-
professional setting
29-
30-
## Enforcement Responsibilities
31-
32-
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33-
34-
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35-
36-
## Scope
37-
38-
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39-
40-
## Enforcement
41-
42-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at [email protected]. All complaints will be reviewed and investigated promptly and fairly.
43-
44-
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45-
46-
## Enforcement Guidelines
47-
48-
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49-
50-
### 1. Correction
51-
52-
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53-
54-
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55-
56-
### 2. Warning
57-
58-
**Community Impact**: A violation through a single incident or series of actions.
59-
60-
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61-
62-
### 3. Temporary Ban
63-
64-
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65-
66-
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67-
68-
### 4. Permanent Ban
69-
70-
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71-
72-
**Consequence**: A permanent ban from any sort of public interaction within the community.
73-
74-
## Attribution
75-
76-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77-
available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78-
79-
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80-
81-
[homepage]: https://www.contributor-covenant.org
82-
83-
For answers to common questions about this code of conduct, see the FAQ at
84-
https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
6+
Thanks for reading the [MongoDB Code of Conduct](https://www.mongodb.com/community-code-of-conduct).

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
Laravel MongoDB
22
===============
33

4-
[![Latest Stable Version](http://img.shields.io/github/release/mongodb/laravel-eloquent.svg)](https://packagist.org/packages/mongodb/laravel-eloquent)
5-
[![Total Downloads](http://img.shields.io/packagist/dm/mongodb/laravel-eloquent.svg)](https://packagist.org/packages/mongodb/laravel-eloquent)
6-
[![Build Status](https://img.shields.io/github/workflow/status/mongodb/laravel-eloquent/CI)](https://github.com/mongodb/laravel-eloquent/actions)
7-
[![codecov](https://codecov.io/gh/mongodb/laravel-eloquent/branch/master/graph/badge.svg)](https://codecov.io/gh/mongodb/laravel-eloquent/branch/master)
4+
[![Latest Stable Version](http://img.shields.io/github/release/mongodb/laravel-mongodb.svg)](https://packagist.org/packages/mongodb/laravel-mongodb)
5+
[![Total Downloads](http://img.shields.io/packagist/dm/mongodb/laravel-mongodb.svg)](https://packagist.org/packages/mongodb/laravel-mongodb)
6+
[![Build Status](https://img.shields.io/github/workflow/status/mongodb/laravel-mongodb/CI)](https://github.com/mongodb/laravel-mongodb/actions)
7+
[![codecov](https://codecov.io/gh/mongodb/laravel-mongodb/branch/master/graph/badge.svg)](https://codecov.io/gh/mongodb/laravel-mongodb/branch/master)
88

99
This package adds functionalities to the Eloquent model and Query builder for MongoDB, using the original Laravel API. *This library extends the original Laravel classes, so it uses exactly the same methods.*
1010

@@ -76,7 +76,7 @@ Make sure you have the MongoDB PHP driver installed. You can find installation i
7676
Install the package via Composer:
7777

7878
```bash
79-
$ composer require mongodb/laravel-eloquent
79+
$ composer require mongodb/laravel-mongodb
8080
```
8181

8282
### Laravel

composer.json

+13-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "mongodb/laravel-eloquent",
2+
"name": "mongodb/laravel-mongodb",
33
"description": "A MongoDB based Eloquent model and Query builder for Laravel",
44
"keywords": [
55
"laravel",
@@ -9,12 +9,16 @@
99
"database",
1010
"model"
1111
],
12-
"homepage": "https://github.com/mongodb/laravel-eloquent",
12+
"homepage": "https://github.com/mongodb/laravel-mongodb",
13+
"support": {
14+
"issues": "https://www.mongodb.com/support",
15+
"security": "https://www.mongodb.com/security"
16+
},
1317
"authors": [
14-
{
15-
"name": "Jens Segers",
16-
"homepage": "https://jenssegers.com"
17-
}
18+
{ "name": "Andreas Braun", "email": "[email protected]", "role": "Leader" },
19+
{ "name": "Jérôme Tamarelle", "email": "[email protected]", "role": "Maintainer" },
20+
{ "name": "Jeremy Mikola", "email": "jmikola@gmail.com", "role": "Maintainer" },
21+
{ "name": "Jens Segers", "homepage": "https://jenssegers.com", "role": "Creator" }
1822
],
1923
"license": "MIT",
2024
"require": {
@@ -31,6 +35,9 @@
3135
"orchestra/testbench": "^8.0",
3236
"mockery/mockery": "^1.4.4"
3337
},
38+
"replace": {
39+
"jenssegers/mongodb": "self.version"
40+
},
3441
"autoload": {
3542
"psr-4": {
3643
"MongoDB\\Laravel\\": "src/"

src/Connection.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ private static function lookupVersion(): string
330330
{
331331
if (class_exists(InstalledVersions::class)) {
332332
try {
333-
return self::$version = InstalledVersions::getPrettyVersion('mongodb/laravel-eloquent');
333+
return self::$version = InstalledVersions::getPrettyVersion('mongodb/laravel-mongodb');
334334
} catch (Throwable $t) {
335335
// Ignore exceptions and return unknown version
336336
}

0 commit comments

Comments
 (0)