1
0
Fork 0
Commit Graph

6817 Commits (15d8b7a84d67482284b7e91973a535c8e10fb076)

Author SHA1 Message Date
Jordi Boggiano 15d8b7a84d Merge pull request #5813 from curry684/issue-5808
Fix crash when listing root package without versions
2016-10-27 08:53:22 +02:00
Niels Keurentjes 6de7feeb86 Fix crash when listing root package without versions
When using certain parameters together in 'composer show', specifically '-s --outdated', the root package itself is inspected for its latest version. If the git repository it belongs to does not have any tags yet this would return FALSE, while the next call to printMeta requires a PackageInterface or NULL, causing a crash.

Refs #5808
2016-10-25 09:54:03 +02:00
Jordi Boggiano f23cdf59e3 Make remove command case insensitive, fixes #5754 2016-10-10 18:45:33 +02:00
Jordi Boggiano 5ee22f25ba Rework JSON matching to use a properly recursive pattern, fixes #5771 2016-10-10 18:20:53 +02:00
Jordi Boggiano 092dec9596 Add failing test for #5771 2016-10-10 18:12:24 +02:00
Jordi Boggiano 823a673b12 Merge pull request #5770 from fabpot/var-decl-missing
added missing var declaration
2016-10-08 09:55:45 +02:00
Fabien Potencier b502a35fc1 added missing var declaration 2016-10-07 11:38:36 -07:00
Jordi Boggiano 902a5c32db Add bug ref 2016-09-29 08:06:44 +02:00
AnrDaemon c774d41a9c Fix realpath() failing on Windows 2016-09-29 08:05:55 +02:00
Jordi Boggiano 117e09ca48 Merge pull request #5728 from alcohol/pool-priority-matters
add a test that asserts pool priority matters
2016-09-29 08:01:00 +02:00
Jordi Boggiano 205030afc6 Merge pull request #5726 from alcohol/what-provides-stability-ordering-issue
What provides stability ordering issue
2016-09-29 07:59:53 +02:00
Rob Bast 9cbcda9ae6
add test that asserts pool priority matters
also switch assertEquals for assertSame
2016-09-28 09:34:08 +02:00
Rob Bast 710bb0d008
fix based on test, fixes #5724 2016-09-27 17:39:44 +02:00
Rob Bast 9f2bd34c87
test copied from #5724 2016-09-27 17:39:44 +02:00
Ruslan Bekenev 8c1f889806 cut out "file://" from VCS download() method
this issue was happening due to realpath() function
that cannot work with "file://" path.
For local repositories it is valid url but not valid for realpath()
2016-09-23 16:37:32 +02:00
Rob Bast 1cf4ecd648 remove env variable after test assertion 2016-09-21 11:48:32 +02:00
Fabien Potencier e83f7c2929 Fix process timeout when set to 0 2016-09-21 11:48:10 +02:00
Jordi Boggiano 8e1b90bc08 Allow reading repo.0 in config command, fixes #5692 2016-09-19 18:47:44 +02:00
Jordi Boggiano 64d29dc6dc Fix regex cleaning up repo URLs, fixes #5686 2016-09-17 13:27:29 +02:00
Jordi Boggiano d4afef35cd Merge pull request #5683 from SpacePossum/1_12_No_concat
Remove useless concat from autoload.
2016-09-16 15:15:01 +02:00
SpacePossum 2ae0800cd3 Remove useless concat. 2016-09-16 14:50:34 +02:00
Jordi Boggiano a2b3e89d56 Make sure php-ipv6 is recognized as a platform package as well 2016-09-12 22:49:44 +02:00
Den Girnyk 41eb297248 Add tests 2016-09-12 17:20:58 +02:00
Den Girnyk 71e0fba216 Pass devMode from RunScriptCommand to Script\Event 2016-09-12 17:20:51 +02:00
Jordi Boggiano ff7daf0bd4 Fix handling of paths on windows when cwd is root of drive, fixes #5554 2016-09-12 16:56:04 +02:00
Jordi Boggiano f78f6c963d Add note about rawurlencode, refs #5503 2016-09-12 14:27:11 +02:00
Calin Marian a888b082b0 Make urlEncodeAll private 2016-09-12 14:26:13 +02:00
Calin Marian 862a13a17e Urlencode Gitlab project names
Url encode all non alphanumeric characters in project name for GitLabDriver.

If the project name has "." characters in it, which is supported in Gitlab, the Gitlab API will 404 when requesting the branches or tags of the repository. This commit urlencodes all non alphanumeric characters in the project name in requests to the Gitlab API.
2016-09-12 14:26:07 +02:00
Jordi Boggiano 568108da28 Prepare 1.2.1 2016-09-12 11:25:56 +02:00
Jordi Boggiano a04256810e Change exit code to be 1/2 for warn/fail, refs #5601 2016-09-12 11:25:43 +02:00
Jordi Boggiano b29d810d63 Only treat errors as real failures, fixes #5601 2016-09-12 11:00:38 +02:00
Jordi Boggiano cfdeb61779 Avoid warning when testing for packagist over http 2016-09-12 11:00:10 +02:00
Jordi Boggiano c16ca1ccbe Update deps, refs #5646 2016-09-05 10:57:50 +02:00
Matthew "Juniper" Barlett 09dad8a018 Clean up regex in InitCommand::parseAuthorString
Per comments:
- https://github.com/composer/composer/pull/5638#discussion_r76972844
- https://github.com/composer/composer/pull/5638#discussion_r76973941
2016-09-02 18:59:20 +02:00
Matthew "Juniper" Barlett ac41bb0615 Fix for issue #5631
- Add " ( and ) as valid characters in author name
- Add relavent unit tests
2016-09-02 18:59:10 +02:00
Jordi Boggiano ed78253c58 Only update reference if there is actually a reference, fixes #5609 2016-09-02 18:43:44 +02:00
Jordi Boggiano 90b99ea5c2 Update semver dep 2016-08-30 18:12:35 +02:00
Nicolas Grekas c6b26c4e96 Make static inlining more selective 2016-08-30 15:25:17 +02:00
Jordi Boggiano edddae42db Revert default change from #5603 2016-08-30 15:20:20 +02:00
John Whitley 4479b8a690 Squashed commit of the following:
commit 3994b556dcffcde7b1801c8bc712f3127e8f8e7c
Author: John Whitley <john.whitley@berea.eu>
Date:   Tue Aug 16 09:02:53 2016 +0100

    https://github.com/composer/composer/issues/5600

    This alters the default flag for loadOptions in
    \Composer\Package\Loader\ArrayLoader to true; and alters the assumption
    of the test to reflect this change.

    **Rationale**

    The `\Composer\Package\Loader\ArrayLoader` test (defined in
    tests/Composer/Test/Package/Loader/ArrayLoaderTest.php) assumed that a
    new `\Composer\Package\Loader\ArrayLoader` instance would be always
    created with the optional flag loadOptions set to true.

    ```php
    $this->loader = new \Composer\Package\Loader\ArrayLoader(null, true);
    ```

    This change alters the general case to reflect the default assumption as
    defined in the test.

commit b75fc4ad7238bc50f724bd29446ccbc33e82c34c
Author: John Whitley <john.whitley@berea.eu>
Date:   Mon Aug 15 16:55:27 2016 +0100

    Altered the test for ArrayLoader to use the default loadConfig flag, and to test the true and false states for the loadConfig flag
2016-08-30 15:20:15 +02:00
Rob f2fc70fd79 Merge pull request #5598 from jadb/patch-1
Fix support for testing exit code
2016-08-15 09:14:45 +02:00
Jad Bitar 8625efd551 Fix support for testing exit code
The `$sectionData` was being overwritten, causing its assertion 
(`$this->assertSame()`) to fail.
2016-08-15 00:30:20 -04:00
Rob a33b205561 Merge pull request #5582 from diegoholiveira/issue/5565
Modify the message for memory errors
2016-08-10 08:30:51 +02:00
Diego Oliveira c55fd9bd10 Modify the message for memory errors 2016-08-09 21:31:19 -03:00
Jordi Boggiano 034f1cf591 Merge pull request #5558 from nicolas-grekas/nocow
Add ClassLoader::$missingClasses to not trigger a COW
2016-07-28 13:34:05 +02:00
Nicolas Grekas dd67b01ac5 Add ClassLoader::$missingClasses to not trigger a COW 2016-07-28 10:35:44 +02:00
Jordi Boggiano 8e2f5e741c Merge pull request #5553 from alcohol/fix-basic-auth-gitutil
check for additional possible authentication failure strings in gitutil
2016-07-28 09:58:08 +02:00
Rob 7304ab6ff9 Merge pull request #5557 from tobiasbueschel/master
add link to LICENSE file & reformat Authors section in README.md
2016-07-28 08:54:19 +02:00
Tobias Büschel 1bc0f8e0e9 reformat author section 2016-07-27 18:01:27 -04:00
Tobias Büschel c28ee623ae add link to license file 2016-07-27 17:44:15 -04:00