这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
.gitattributes export-ignore
.gitignore export-ignore
.scrutinizer.yml export-ignore
.travis.coverage.sh export-ignore
.travis.yml export-ignore
phpunit.xml.dist export-ignore
psalm.xml export-ignore
infection.json.dist export-ignore
9 changes: 4 additions & 5 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@ jobs:
- name: "Checkout"
uses: "actions/checkout@v2"

# `master` has a branch-alias, allowing us to run installation of dependencies that depend on this package themselves
- name: "Switch active branch to master"
run: |
git branch -D master || true
git checkout -b master || true
# Many tools rely on this tool staying as `1.x`, therefore we check out the current workdir as
# a compatible branch name
- name: "Switch active branch to 1.99.x"
run: git checkout -b 1.99.x || true

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/mutation-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@ jobs:
- name: "Checkout"
uses: "actions/checkout@v2"

# `master` has a branch-alias, allowing us to run installation of dependencies that depend on this package themselves
- name: "Switch active branch to master"
run: |
git branch -D master || true
git checkout -b master || true
# Many tools rely on this tool staying as `1.x`, therefore we check out the current workdir as
# a compatible branch name
- name: "Switch active branch to 1.99.x"
run: git checkout -b 1.99.x || true

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,10 @@ jobs:
- name: "Checkout"
uses: "actions/checkout@v2"

# `master` has a branch-alias, allowing us to run installation of dependencies that depend on this package themselves
- name: "Switch active branch to master"
run: |
git branch -D master || true
git checkout -b master || true
# Many tools rely on this tool staying as `1.x`, therefore we check out the current workdir as
# a compatible branch name
- name: "Switch active branch to 1.99.x"
run: git checkout -b 1.99.x || true

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/psalm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@ jobs:
- name: "Checkout"
uses: "actions/checkout@v2"

# `master` has a branch-alias, allowing us to run installation of dependencies that depend on this package themselves
- name: "Switch active branch to master"
run: |
git branch -D master || true
git checkout -b master || true
# Many tools rely on this tool staying as `1.x`, therefore we check out the current workdir as
# a compatible branch name
- name: "Switch active branch to 1.99.x"
run: git checkout -b 1.99.x || true

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/vendor/
/src/PackageVersions/Versions.php
/clover.xml
/phpcs.xml
/.phpcs-cache
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# CHANGELOG

## 2.0.0 - TBD

This release turns the package into a library (previously, it was
a composer plugin).

Relevant change is that the `PackageVersions\Versions::ROOT_PACKAGE_NAME`
constant no longer exists: please use `PackageVersions\Versions::rootPackageName()`
instead.

This slims down the complexity of the package massively, and removes
multiple known bugs.

Total issues resolved: **5**

- [107: Unable to install on vboxfs](https://github.com/Ocramius/PackageVersions/issues/107) thanks to @alexgit2k
- [138: `src/Packages/Versions.php` changes detected in `composer install`](https://github.com/Ocramius/PackageVersions/issues/138) thanks to @Taluu
- [142: Option to ignore version of rootPackage](https://github.com/Ocramius/PackageVersions/issues/142) thanks to @qurben
- [152: Ocramius/PackageVersions is not compatible with composer configuration "lock: false"](https://github.com/Ocramius/PackageVersions/issues/152) thanks to @windaishi
- [155: BC break: removed deprecated `PackageVersions\Versions::ROOT_PACKAGE_NAME` constant](https://github.com/Ocramius/PackageVersions/pull/155) thanks to @Ocramius

## 1.10.1 - 2020-08-18

Introduced release automation tooling, which should also help us
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ $version = \PackageVersions\Versions::getVersion('ocramius/package-versions');
var_dump($version); // 1.0.0@0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33
```

[![Build Status](https://travis-ci.org/Ocramius/PackageVersions.svg?branch=master)](https://travis-ci.org/Ocramius/PackageVersions)
[![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2FOcramius%2FPackageVersions%2Fmaster)](https://dashboard.stryker-mutator.io/reports/github.com/Ocramius/PackageVersions/master)
[![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2FOcramius%2FPackageVersions%2F2.0.x)](https://dashboard.stryker-mutator.io/reports/github.com/Ocramius/PackageVersions/2.0.x)
[![Type Coverage](https://shepherd.dev/github/Ocramius/PackageVersions/coverage.svg)](https://shepherd.dev/github/Ocramius/PackageVersions)
[![Downloads](https://img.shields.io/packagist/dt/ocramius/package-versions.svg)](https://packagist.org/packages/ocramius/package-versions)
[![Packagist](https://img.shields.io/packagist/v/ocramius/package-versions.svg)](https://packagist.org/packages/ocramius/package-versions)
Expand Down
19 changes: 4 additions & 15 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ocramius/package-versions",
"description": "Composer plugin that provides efficient querying for installed package versions (no runtime IO)",
"type": "composer-plugin",
"description": "Provides efficient querying for installed package versions (no runtime IO)",
"type": "library",
"license": "MIT",
"authors": [
{
Expand All @@ -11,15 +11,14 @@
],
"require": {
"php": "^7.4.7",
"composer-plugin-api": "^2.0.0",
"composer-runtime-api": "^2.0.0"
},
"require-dev": {
"composer/composer": "^2.0.0@dev",
"doctrine/coding-standard": "^8.1.0",
"ext-zip": "^1.15.0",
"infection/infection": "^0.16.4",
"phpunit/phpunit": "^9.1.5",
"infection/infection": "^0.17.2",
"phpunit/phpunit": "^9.2.6",
"vimeo/psalm": "^3.12.2"
},
"autoload": {
Expand All @@ -31,15 +30,5 @@
"psr-4": {
"PackageVersionsTest\\": "test/PackageVersionsTest"
}
},
"extra": {
"class": "PackageVersions\\Installer",
"branch-alias": {
"dev-master": "1.99.x-dev"
}
},
"scripts": {
"post-update-cmd": "PackageVersions\\Installer::dumpVersionsClass",
"post-install-cmd": "PackageVersions\\Installer::dumpVersionsClass"
}
}
Loading