242 Commits (d98b134dc3ef7d5bd4b6e37c9621a811f8f1599d)

Author SHA1 Message Date
Jordi Boggiano 4b269f4ded Follow stability option in create-project to select the best possible version, refs #4563 9 years ago
Jordi Boggiano 735d4a692e Fix validating array loader tests 9 years ago
Jordi Boggiano 599ad77167 Merge pull request #4542 from bd808/feature/support-merge-plugin
Allow easier manipulation of RootAliasPackage
9 years ago
Bryan Davis 06c44ce998 Add setters used by composer-merge-plugin to RootPackageInterface
Extend RootPackageInterface with setter functions used by
composer-merge-plugin and implement them for RootAliasPackage. This will
allow composer-merge-plugin and similar code that manipulates the root
package at runtime to ignore the difference between a RootPackage and
a RootAliasPackage.
9 years ago
Jordi Boggiano 82349bcb2a Fix support for extracting stability flags in multi-constraints, fixes #4440 9 years ago
Jordi Boggiano 507415e404 Make VersionSelector prefer stable by default and allow specifying a PHP version that must be matched, fixes #4318 9 years ago
Jordi Boggiano 3d9daea6a0 CS fixes 9 years ago
MakiCode 1c0b9cd65f Removed test for non-string file name check 9 years ago
MakiCode 63ede6c9dd Fixed issues with PR 9 years ago
MakiCode 0d00338bdb Added better messages and fixed bugs 9 years ago
MakiCode 906c1c2e66 Added check for filename in archive manager and added test 9 years ago
Jordi Boggiano ce08582671 Fix CS 9 years ago
Rob Bast a1427d7fd6 replace all occurences in code and comments 9 years ago
Rob Bast 1ccfc8eb96 add semver, deprecated existing classes 9 years ago
Jordi Boggiano 74e56fd5c6 Merge remote-tracking branch 'szeber/master' 9 years ago
Jordi Boggiano 89c6a68a76 Updates to path repository and path downloader, refs #4365 9 years ago
Samuel ROZE bb81e3721a Move the `proc_open` test in setUp 9 years ago
Zsolt Szeberenyi d7a94bda1b Change short array syntax to long for 5.3 compatibility 9 years ago
Zsolt Szeberenyi bfb83f1fb7 Add name and version to the relevant fields, move content hash checking to the Locker 9 years ago
Samuel ROZE dfccb686ce Replace usage of brackets by legacy array notation 9 years ago
Samuel ROZE 5261a5fa03 Move version guessing in `VersionGuesser` class 9 years ago
Rob Bast ef37b86c81 closes #1508 - updated tests 9 years ago
Kunal Mehta 14d1f0f3f6 Move VersionParser::parseLinks() to ArrayLoader::parseLinks()
Working towards #3545.

parseLinks is a wrapper around VersionParser::parseConstraints() that
creates Link objects, and better belongs in ArrayLoader.
9 years ago
Kunal Mehta f634c6946d Update callers of VersionParser::formatVersion()
Tests were moved to BasePackageTest.
9 years ago
Kunal Mehta 99dab8aebd Move VersionParser::formatVersion() to BasePackage::getFullPrettyVersion()
Working towards #3545.

formatVersion() does not belong in VersionParser since it depends upon a
Package object, and is creating a more complete pretty formatted
version, not parsing anything.

The new getFullPrettyVersion() method can be seen as an extension to
getPrettyVersion(), and is located in BasePackage as a result.

Callers to VersionParser::formatVersion() were not updated in this
commit to demonstrate that no functionality was changed in this
refactor. They will be updated in a follow up commit.
9 years ago
Jordi Boggiano 6a64041055 CS fixes 9 years ago
Jordi Boggiano a8e004c7e7 Merge pull request #4199 from sminnee/version-comparison-docs
>=2.3.0 now includes pre-releases, added docs for this and -stable suffix Fixes #4080.
9 years ago
Sam Minnee 2cd698874f Include pre-releases in >=2.3.0 comparison. Fixes #4080.
This is a change to the >=2.3.0 comparison. Without this change, such a
comparison will exclude pre-release versions.

The rationale is that this makes the comparison more consistent with
<2.3.0 (which excludes all pre-releases) and ~2.3.0 (which includes
pre-releases).
9 years ago
Rob Bast 0298cdc60d change delimiter to curly braces 9 years ago
Rob Bast e698636af4 added test to reproduce #4183 9 years ago
Jordi Boggiano a943827371 Show that no version was found in composer show/license if root package is auto-versioned, fixes #4158 9 years ago
Zsolt Szeberenyi 50b560fe4c Add the hash of the parsed content of the composer.json to the lock file, and use it to verify the json is not changed 9 years ago
nevvermind 12c833864c Revert converting `1.0.0` to `^1.0`. 9 years ago
Jordi Boggiano 17c2a8019e Merge pull request #4089 from nevvermind/plugin-api-versions
Make plugins have actual constraints instead of fixed versions
9 years ago
nevvermind eb2aa14830 Make plugins have actual constraints instead of fixed versions
Instead of developing plugins against a single, fixed Plugin API version - `"composer-plugin-api": "1.0.0"`, this change will allow plugin developers to use versions like `"composer-plugin-api": "~1.1"` or `"composer-plugin-api": ">=2.1 <3.0"`, aka actual Composer-compatible constraints.

Only the "1.0", "1.0.0" and "1.0.0" Plugin API versions will be regarded as BC versions, and internally converted to "^1.0"; every other declared version string will be kept as it is.

Because of this new constraint flexibility, plugin version mismatches will be skipped, which means those plugin will NOT be registered to the system. Previously, a mismatch triggered a warning, but plugins were still registered.
9 years ago
Rob Bast 89885140d3 Created a failing test case 9 years ago
Rob Bast 46e0a506b9 Added another testcase + fix 9 years ago
Rob Bast a256f3dfca Added one failing testcase and one successful
Demonstrates that it handles x.y.z properly as long as z !== 0
9 years ago
Possum 2e99b9fdf5 Use https where possible 9 years ago
Jordi Boggiano 4ce0adb23c Use the caret operator for all require operations 9 years ago
Jordi Boggiano 43c1caad0d Merge remote-tracking branch 'Seldaek/caret-op-for-semver'
Conflicts:
	tests/Composer/Test/Package/Version/VersionSelectorTest.php
9 years ago
Jordi Boggiano a57c51e8d7 Finalize platform override feature
- Added tests, docs
- Persist to lock file
- Add support in config command
- Added to json schema
9 years ago
Jordi Boggiano 0b4a9235f4 CS fixes 9 years ago
David Prévot e5ede671d2 Config Git repository user
One can’t assume a Git user is already setup for the tests.
10 years ago
Jordi Boggiano 53925295c3 Merge pull request #3699 from trivago/non_feature_branches
added non-feature-branches
10 years ago
rkerner abc9d60fcc added non-feature-branches to handle non-numeric branches matching configured patterns not been handled as feature branches 10 years ago
Jordi Boggiano cd38d1e096 Tweaks to also support 1.0-dev style aliases, refs #3480 10 years ago
Damian Mooyman 7bb85ff21e Support aliases for numeric branches. Fixes #3461 10 years ago
Christophe Coevoet 267af928df Add a failing testcase for stability flags in complex constraints
Refs #3570
10 years ago
Nicolas Grekas e821ac2772 Persist prefer-lowest in composer.lock 10 years ago