894 Commits (a2878846195dd0eba742099fabc2a1bda8e10a71)

Author SHA1 Message Date
Nils Adermann 1ccf4b0fc3 Correct the tests for dist urls for github 10 years ago
Nils Adermann 5ed18d9aa2 Fail over from source to dist and vice versa when downloads fail
Any RuntimeException descendent will be caught and cause another
download attempt using either source or dist depending on what was
attempted first.
10 years ago
Nils Adermann 33e872d7d3 Merge pull request #2733 from naderman/limit-replace-provide
Whitelist packages with names matching those specified before generating rules
11 years ago
Nils Adermann 5b80144ad0 Resolve job packages after whitelist generation 11 years ago
Nils Adermann ec12b8a675 Add tests for the changes in #2690 11 years ago
Nils Adermann 3148ffd355 Whitelist packages with names matching those specified before generating rules
Addresses #2690 doesn't do any performance optimisations yet which we
could do now
11 years ago
Jordi Boggiano eb3384445b Merge pull request #2188 from Danack/GetRootComposerJson
Find root composer.json in zip artifact more reliably.
11 years ago
Danack e4d4a7ae17 Added comment for generating files. 11 years ago
Danack 24aba5b51f Moved file back to correct location. (+1 squashed commit)
Squashed commits:
[eec32aa] Updated detection to only allow composer.josn in root or first level dir.
11 years ago
Danack bc76e0014b Moved tests that are expected to work into their own directory.
Added test for composer.json in incorrect directory.
11 years ago
Jordi Boggiano 0df9c803a5 Merge pull request #2718 from sndpl/issue/2613
Fix for #2613
11 years ago
Sandy Pleyte 3a2815b778 Added extra unit test from the example in the ticket. 11 years ago
Jordi Boggiano 5d4900e79d Add --no-checkout flag to avoid checking out the default branch first, fixes #2717 11 years ago
Sandy Pleyte f92f2f45a9 Fix for #2613, when using php < 5.4 there was an unnecessary backslash before each utf-8 char. The problem was that the regexp matched all utf-8 encoded chars (included the ones that where escaped). The new regexp uses the lookbehind feature to check if the backslash isn't prefixed with an other backslash. 11 years ago
Sandy Pleyte 7a902ed96d Fix for #2613, when using php < 5.4 there was an unnecessary backslash before each utf-8 char. The problem was that the regexp matched all utf-8 encoded chars (included the ones that where escaped). The new regexp uses the lookbehind feature to check if the backslash isn't prefixed with an other backslash. 11 years ago
Jordi Boggiano 9d2d828b70 Merge remote-tracking branch 'h4cc/master' 11 years ago
Jordi Boggiano b5dd537422 Merge pull request #2648 from zczapran/unit_tests_for_jsonvalidationexception
[tests] Unit tests for JsonValidationException class
11 years ago
Jordi Boggiano f72066de90 Merge pull request #2649 from zczapran/bugfix/git_exclude_filter_rules_too_broad
[Archiver] Rules in GitExcludeFilter are too broad
11 years ago
Nicolas Grekas 00a6f8e38d dedicated scope isolation function for autoload_real 11 years ago
Julius Beckmann ed5da804dd Fixed handling of Metapackages in DownloadManager.
The "getDownloaderForInstalledPackage" returns null for "metapackage" and the download(), update() and remove() methods did not handle this return value correctly.
11 years ago
Nils Adermann aef0483cc9 Merge pull request #2667 from nicolas-grekas/master
scope isolation for user includes
11 years ago
Nicolas Grekas 6d7b9afc4b scope isolation for user includes 11 years ago
Jordi Boggiano 75cd91657a Merge remote-tracking branch 'jeromemacias/fix_psr4_classmap_generator' 11 years ago
Andreas Hennings fcf8e7f515 Random docblock improvements in AutoloadGeneratorTest. 11 years ago
Andreas Hennings 6a9fd1dd60 rename \$package to \$mainPackage in AutoloadGeneratorTest::testOverrideVendorsAutoloading() for clarity. 11 years ago
Andreas Hennings bb26152de2 docblock comments on properties in AutoloadGeneratorTest 11 years ago
Andreas Hennings cab6943df0 AutoloadGeneratorTest::testOverrideVendorsAutoloading() - break autoload definitions to multiple lines. 11 years ago
Andreas Hennings 084c11ef51 AutoloadGeneratorTest::testMainPackageAutoloadingWithTargetDir() - Remove PSR-4 from the package in target-dir test, since it is incompatible with target-dir. 11 years ago
Jérôme Macias 01cd990995 Fix PSR-4 autoload classmap generator 11 years ago
Zbigniew a4a9d0f0e4 [Archiver] Rules in GitExcludeFilter are too broad 11 years ago
Zbigniew 94635c0d14 [tests] Unit tests for JsonValidationException class 11 years ago
Jordi Boggiano 99f5b5a238 Fix backtracking issue in json manipulations, fixes #2583 11 years ago
Jordi Boggiano 3c5000ad7f CS tweaks and cleanups, allow "" to set fallback dirs, refs #2459 11 years ago
Jordi Boggiano b23742e30c Merge remote-tracking branch 'donquixote/feature/psr4-complete' 11 years ago
Pascal Borreli 2f4df9d459 Fixed typos 11 years ago
Andreas Hennings 0a4b18ce86 More interesting generator tests for PSR-4. 11 years ago
Andreas Hennings bda2bcac13 Fix indentation of assignment in AutoloadGeneratorTest 11 years ago
Andreas Hennings 8966376f40 Verify generation of autoload_psr4.php even if empty. 11 years ago
Andreas Hennings e4bbd83f13 expected message in ValidatingArrayLoaderTest should also contain psr-4 as allowed key. 11 years ago
Jordi Boggiano 80499bb024 Detect ~> misuse and suggest fix, fixes #2476 11 years ago
Morgan BRUNOT ca7cb68dd5 Check exclude from downloaded composer.json 11 years ago
mwhittom a8084e46ff Added error handling and error messages around missing perforce driver, invalid username/password 11 years ago
Andreas Hennings bbf6278905 AutoloadGenerator to support PSR-4. Tests included. 11 years ago
Andreas Hennings 2c98813431 Add unit tests for ClassLoader, covering PSR-0 and PSR-4. 11 years ago
Jordi Boggiano dea246186d Merge pull request #2453 from mirkobeine/#2441-V2
Use 'cache-files-ttl' for cache gc, fixes #2441
11 years ago
user a956ce9bb1 Use 'cache-files-ttl' for cache gc, fixes #2441
The configuration option 'cache-ttl' was used instead of 'cache-files-ttl' to determine
whether or not a cache gc should be performed.

* changed 'cache-ttl' to 'cache-files-ttl' to determine if a gc should be performed
* refactored FileDownloader to allow for easier testing
* added test to ensure that the gc is called with the proper config option
11 years ago
Jordi Boggiano e126c92525 Fix exit codes, cc @tyrael 11 years ago
Jordi Boggiano 5156a60216 Add test for RepositoryManager repo creation 11 years ago
ptarjan 09c0d971d3 don't require the error message have the first line of HTTP output in it 11 years ago
Jordi Boggiano 8398c9f2ab Fix target-dir update checks, fixes #2395 11 years ago