1416 Commits (118d8fb52ff11d7f1960302d2017f9d178cb48b2)

Author SHA1 Message Date
Jordi Boggiano 837fa805ec Code tweaks, refs #4124 9 years ago
nevvermind aa45a48283 Refactoring
- changed "SPI" into something more familiar, like "implementation"
- throw exceptions on invalid implementation types or invalid class names
- use null instead of false when querying
- refactored the tests accordingly
9 years ago
nevvermind 681043355f Update test fixtures + fix test 9 years ago
nevvermind 58ded13eb9 Fix tests breaking on a api version bump
Make generic plugins work with many API versions as opposed to just 1.0.0.
9 years ago
nevvermind 2051d74774 Added Capable plugins for a more future-proof Plugin API
Plugins can now present their capabilities to the PluginManager, through which it can act accordingly, thus making Plugin API more flexible, BC-friendly and decoupled.
9 years ago
Rob Bast 17d6b98707 add A to root requirements 9 years ago
Rob Bast 0f09982858 add a test attempting to reproduce composer/composer#4795 9 years ago
Rob Bast 446f1b3e31 fix zip test 9 years ago
Jordi Boggiano fb848d2e07 Code cleanups 9 years ago
Jordi Boggiano e6f1c13d00 xz test tweak 9 years ago
Jordi Boggiano 5214620f05 Fix xz tests 9 years ago
Jordi Boggiano c1cc6bfecf Avoid doing too many loads of the remotefilesystem 9 years ago
Jordi Boggiano 5d015defb8 Merge remote-tracking branch 'origin/master' into tls-config 9 years ago
Jordi Boggiano 969263944c Rename var 9 years ago
Jordi Boggiano 44a00a28fa Merge remote-tracking branch 'chorry/4694-clean-temporary-dirs-in-tests' 9 years ago
Jordi Boggiano 48420a2411 Update deps and bump json-schema requirement, fixes #4756 9 years ago
Alexander Loutsenko 909a679ab5 Filesystem is not needed as a property for CacheTest 9 years ago
Alexander Loutsenko 397ae2d7c8 review fixes 9 years ago
Alexander Loutsenko fa5de786ff clean garbage dirs in tmp after composer tests #4694 9 years ago
Rob Bast c292122791 it looks like php 5.3.3 might not have openssl extension? 9 years ago
Jordi Boggiano ddd85afd32 Merge pull request #4633 from jaapio/feature/gitlabInstallPath
Adds support for gitlab installed in subfolder
9 years ago
Jaapio df92cb09ab extract regex to const. To be able to reuse it 9 years ago
Jordi Boggiano 8072448cf3 Adjust deduplication of files autoloads, refs 9710b26d3f 9 years ago
Jaapio b471440ea0 Adds support for gitlab install in subfolder
Since gitlab can be hosted on any url also subdirectories should be
supported. (e.g https://mycompany.com/gitlab).
This supports only http and https protocols since the gitlab api url
is derived from the package repository url. And the ssh protocol doesn't
support folders this way.
9 years ago
Jordi Boggiano fbab2bfa17 Move user agent definition to StreamContextFactory so it is available in all contexts 9 years ago
Jordi Boggiano 020c126c27 Fix CS 9 years ago
Jordi Boggiano a10bffec0e Merge remote-tracking branch 'GromNaN/gitlab' 9 years ago
Jordi Boggiano 966a982738 CS fixes 9 years ago
Jordi Boggiano 67a1924173 Merge remote-tracking branch 'Rudloff/xz' 9 years ago
Jordi Boggiano 1fe690f810 Autoload generator cleanups 9 years ago
Jordi Boggiano 3748c11709 Simplify files autoload include function, and make sure files are included once per package even if exactly the same, refs #4186 9 years ago
Jordi Boggiano 9710b26d3f Merge remote-tracking branch 'jeskew/feature/require_files_but_once' 9 years ago
Jordi Boggiano c0b49d09f3 Merge remote-tracking branch 'cw-ozaki/no-script-dump-autoload'
Conflicts:
	src/Composer/Autoload/AutoloadGenerator.php
	src/Composer/Command/DumpAutoloadCommand.php
9 years ago
Thiago Carvalho 320533bcf9 Fixes #4610 9 years ago
Jordi Boggiano cf6cd83335 Use writeError for xdebug warning and fix running test suite with xdebug 9 years ago
Jordi Boggiano f674261b96 Merge remote-tracking branch 'ockcyp/exclude-classmap-parent' 9 years ago
Jérôme Tamarelle 4255db9e31 Allows SSH urls for gitlab and detect the scheme
SSH urls uses HTTPS to request the API
9 years ago
Jordi Boggiano 4b269f4ded Follow stability option in create-project to select the best possible version, refs #4563 9 years ago
Jérôme Tamarelle ac68a721f4 Merge remote-tracking branch 'composer/master' into gitlab
Conflicts:
	doc/04-schema.md
	src/Composer/Util/RemoteFilesystem.php
9 years ago
Jerome TAMARELLE 6ccc562c0f Add tests on GitLab class (copied from GitHubTest) 9 years ago
Omer Karadagli 4046ae042d Up-level relative paths in exclude-from-classmap 9 years ago
Giorgio Premi fd0026b542 Detect infinite script call recursion 9 years ago
Giorgio Premi a25492d1b9 Allow composer script call with @ syntax 9 years ago
Remi Collet a6c6537529 skip no more needed with jsonc 1.3.9 9 years ago
Pierre Rudloff 879d34589b XzDownloader test 9 years ago
Jordi Boggiano 735d4a692e Fix validating array loader tests 9 years ago
Jordi Boggiano 6c16510743 Add support for wildcards in exclude-from-classmap, refs #1607 9 years ago
Jordi Boggiano f1b0c073ad Tweaked exclude-from-classmap: windows support, normalize paths and make sure they are all package-relative and do not leak to other packages, refs #1607 9 years ago
Jordi Boggiano 084f6de24e Merge remote-tracking branch 'trivago/add_exclude'
Conflicts:
	doc/04-schema.md
	src/Composer/Autoload/AutoloadGenerator.php
9 years ago
Rob c7ed232ef4 Merge pull request #4529 from jeroenseegers/warn-on-commit-reference
Generate a warning when a commit reference is used
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
Jeroen Seegers 279b5f0156 Drop irrelevant properties from composer_commit-ref.json 9 years ago
Jeroen Seegers f3dc31839f Refactor commit-ref validation
The require and require-dev arrays have been merged into one and no
longer user private methods/properties to collect warnings.
9 years ago
Jeroen Seegers 476c6f279b Add fixture for composer.json with commit-ref 9 years ago
Jordi Boggiano 3d9daea6a0 CS fixes 9 years ago
Jeroen Seegers 73e73c90fb Generate a warning when a commit reference is used
Closes #4485
9 years ago
Jordi Boggiano a54f84f05f Merge pull request #4479 from MakiCode/feature#4397
Added --file flag: Feature#4397
9 years ago
Rob Bast b523fc0b7b ran fixers 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
Dennis Birkholz 3febbc2cbf Test case to verify relative paths remain relative 9 years ago
Jordi Boggiano 8f44f9cc67 Merge pull request #4422 from dennisbirkholz/wildcard-repositories
Enable wildcards in path names for path repositories
9 years ago
Jordi Boggiano 8913ac2fff Merge pull request #4362 from bd808/classmap-authoritative-cli
Add cli argument for classmap-authoritative
9 years ago
Matthias Pigulla 3c08318ea0 Add test 9 years ago
Dennis Birkholz 323537ad0f Allow wildcards in repository path names. 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
Jordi Boggiano 3a79313b63 Merge remote-tracking branch 'sroze/feature/path-repository' 9 years ago
James Titcumb d85bad29d6 Warn about unpushed changes
`composer status` now prevents overwriting Git package if changes have not been pushed.
9 years ago
Samuel ROZE 6c16153302 Added repository tests 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
Bryan Davis cc2b9cfca5 Add cli argument for classmap-authoritative
Add a `--classmap-authoritative (-a)` argument to `composer install`,
`composer update` and `composer dumpautoload`. This enables the same
authoritative classmap behavior as the existing `classmap-authoritative`
configuration setting. The option can be used for creating highly
optimized production autoloaders via `composer install --no-dev
--optimize-autoloader --classmap-authoritative` for projects where
multiple autoloaders are present and unnecessary `file_exists` calls
introduce performance issues.

Closes #4361
9 years ago
voroks 154092ba1a Added removing file 'include_path.php' (if it is empty). 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
voroks 85de450fe9 Removed some extra assertions. 9 years ago
voroks 4fa1cb2e9c Removing file autoload_files.php was added (#4254) 9 years ago
Nicolas Grekas fbae6b1589 Revert "Merge pull request #3975 from marc-mabe/hotfix/3974"
This reverts commit bdb6ecb29e, reversing
changes made to 8a12e50a16.
9 years ago
Jordi Boggiano 06feb19b2c Merge pull request #4169 from remicollet/patch-1
Set this test as slow
9 years ago
Rob Bast ef37b86c81 closes #1508 - updated tests 9 years ago
Remi Collet 9b9cbfe111 fix for changes in justinrainbow/json-schema 1.4.4 9 years ago
Remi Collet c014e0882f ignore this test with 'jsonc' 9 years ago
Rob Bast 5ae9e7fe22 remove spdx files, introduce external library 9 years ago
Jordi Boggiano 7e0db8aa46 Merge pull request #4239 from naderman/memory-rules
Reduce memory usage of Rule objects
9 years ago
Jordi Boggiano c36d2a2e50 Merge pull request #4214 from legoktm/parse-links
Move VersionParser::parseLinks() to ArrayLoader::parseLinks()
9 years ago
Nils Adermann 6e81f63635 Reduce memory footprint of rules by storing data in blob
Not declaring the job property saves significant amounts of memory as
most rules leave it as null
9 years ago
Nils Adermann b869fa9662 Correct rule hash test 9 years ago
Jordi Boggiano d79427f1a7 Fix tests 9 years ago
Jordi Boggiano 852e4f4e26 Merge remote-tracking branch 'alcohol/output-script-command-in-verbose-mode' 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
Jordi Boggiano 2438105e11 Merge pull request #4086 from legoktm/format-version
Move VersionParser::formatVersion() to BasePackage::getFullPrettyVersion()
9 years ago
Rob Bast 4019f7bb44 Revert "apply a regex solution instead of tokenizer"
This reverts commit 33a7305e22c8d4e2ce38586855fd3d4b7b2af3dd.
9 years ago
Rob Bast b5d286e27b apply a regex solution instead of tokenizer 9 years ago
Rob Bast e4118385a0 updated spdx related files 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
Jonathan Eskew 42b025776a Move file identifier calculation to compile time 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
Jonathan Eskew 24c4322672 Use 5.3 compatible array syntax 9 years ago
Jonathan Eskew 868a872df2 Push the hash to $GLOBALS 9 years ago
Jonathan Eskew 61ed7a9547 Explicitly check if a file has already been required before requiring it 9 years ago
Rob Bast fd34c5883a added php script handler info as well 9 years ago
Remi Collet c350bceeea Set this test as slow 9 years ago
Jordi Boggiano ee1e2c6f15 Merge pull request #4167 from wimvds/fix-bitbucket-references
download correct Bitbucket archive reference when using --prefer-dist
9 years ago
Wim Vandersmissen 1ff2a02517 fix to download correct Bitbucket archive reference when using --prefer-dist 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
Nils Adermann 75c501251d Revert "Merge remote-tracking branch 'naderman/load-no-providers'"
This reverts commit 3e85f82373, reversing
changes made to b025d0982b.
9 years ago
Jordi Boggiano 3e85f82373 Merge remote-tracking branch 'naderman/load-no-providers' 9 years ago
Jordi Boggiano b2173d28fc Fix 5.3.3 build 9 years ago
Jordi Boggiano e73448ae1e Add possessive quantifiers to avoid backtracking and fix segfault on large files, fixes #4153 9 years ago
Jordi Boggiano 8e9659bd83 Merge pull request #4139 from elazar/feature/tests-in-classmap
Resolves #4138: Removed *Test.php filtering from AutoloadGenerator->dump()
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
Jordi Boggiano 89540c5690 Support bg colors and more clearing values in html output formatter 9 years ago
Jordi Boggiano 29dbc3835f Fix html output formatter to work with latest symfony console 9 years ago
elazar 6c029a850c Resolves #4138: Removed *Test.php filtering from AutoloadGenerator->dump() 9 years ago
Rob Bast 9223f4a208 show command by default 9 years ago
Rob Bast 222ee004e0 modified test case 9 years ago
nevvermind 12c833864c Revert converting `1.0.0` to `^1.0`. 9 years ago
Nils Adermann e25b86c129 Fix composer repo test to match what composer repos send 9 years ago
gmsantosxl 84c9c30b63 Remove extra '/' when findShortestPath $from is a directory 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
Rob Bast d59115d7fa make unit tests assume a disabled entity loader 9 years ago
nevvermind 3032f0a538 Refactor based on code review
- Move the version api getter to the PluginManager And make it such that it can be mocked, but not pollute the public interface. That means "protected" visibility.
- The plugin api version constant should still be used throughout the code.
- Use different fixtures class names
- Use regex possessive quantifiers for performance
- Use full words for readability
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
Jordi Boggiano 0081964428 Merge remote-tracking branch 'colinodell/fix-tag-ambiguity'
Conflicts:
	src/Composer/Downloader/GitDownloader.php
	tests/Composer/Test/Downloader/GitDownloaderTest.php
9 years ago
Jordi Boggiano 27aac31970 Fix tests for autocrlf=true checkouts, fixes #4049 9 years ago
Jordi Boggiano 52d290f5f2 trim token just in case and update tests 9 years ago
Nils Adermann 67f10c1601 PHP 5.3 this/that compatibility 9 years ago
Possum 29ca21f30e PHP version checks tweaking 9 years ago
Nils Adermann ec5416f03c loadDev parameter is nonsense, properly load packages in create command 9 years ago
Nils Adermann da02c53540 Update the composer repository whatprovides test to a loadrecursively test 9 years ago
Jordi Boggiano 21e92b869e Merge pull request #4000 from SpacePossum/json_testing
On Json tests failures show more test failure details
9 years ago
Possum d7f7418243 some more test failure details 9 years ago