Frederik Bosch
4c58abbb76
Update GitDownloader.php
2014-09-24 15:27:31 +02:00
Frederik Bosch
6edabc629d
Update GitDownloader.php
...
PHP 5.3. compat.
2014-09-24 15:24:28 +02:00
Frederik Bosch
f3b0890cf4
GitDownloader.php: better escaping for Windows
...
Compability for Windows usernames and passwords. When usernames and passwords contain characters that are rawurlencoded to a string containing a % sign (e.g. @ becomes %40), the procent was replaced with a space. Git can there not authenticate.
2014-09-24 15:16:30 +02:00
Bastian Hofmann
f8023cffdf
renamed cache-credentials to svn-cache-credentials
2014-09-24 13:24:54 +02:00
Bastian Hofmann
b279dda1c0
Merge branch 'master' of https://github.com/composer/composer
2014-09-24 13:23:49 +02:00
Jordi Boggiano
e6165e6495
Tweak rules to allow guessing based on branch aliases and avoid greedy constraints on alpha/beta/RC packages, refs #3096
2014-09-23 15:19:23 +01:00
Jordi Boggiano
b7b0901f87
Allow using new code in the init command and avoid initializing the composer instance too early, refs #3096
2014-09-23 15:17:53 +01:00
Jordi Boggiano
cf75ec7763
Merge remote-tracking branch 'weaverryan/require-version-select'
2014-09-22 17:48:13 +01:00
Jordi Boggiano
62b5062146
Improve sorting of plugin packages, fixes #3109 , refs #2972
2014-09-22 17:04:58 +01:00
Jordi Boggiano
4d522e40fb
Load auth when updating a git repo mirror, fixes #3243
2014-09-22 16:06:27 +01:00
Jordi Boggiano
1fff2afa1f
Merge pull request #3292 from francoispluchino/fix-format-version-parser
...
Fix invalid version format
2014-09-22 15:19:53 +01:00
Jordi Boggiano
2c237fdfdf
Handle files in Filesystem::copyThenRemove, fixes #3287
2014-09-22 15:09:55 +01:00
François Pluchino
6c6a623229
Fix invalid version format
2014-09-22 11:58:26 +02:00
Philipp
a76436bbae
Update handling-private-packages-with-satis.md
2014-09-20 12:42:36 +10:00
Jordi Boggiano
2cb64c8a72
Merge pull request #3175 from Petah/clear-cache
...
Clear all the caches
2014-09-18 16:58:10 +01:00
Bastian Hofmann
204fc207fa
Moved config option to not save subversion credentials to repository configuration, added documentation.
2014-09-16 15:16:55 +02:00
Bastian Hofmann
0d0ed59e5c
Codestyle fix
2014-09-15 13:21:33 +02:00
Ryan Weaver
895e62e859
Refactoring selection of the "recommended" version (e.g ~1.2) and adding some tests
...
This also modifies the behavior slightly (from a recommendation by seldaek) to always
propose the minor version of the recommendation (e.g. ~1.2 instead of ~1.2.1).
2014-09-12 11:26:51 -04:00
Ryan Weaver
aea2e901a9
Extracting logic into a new class related to selecting the latest version
...
Also refactored InitCommand slightly so that you can use this "latest version"
functionality when searching for a package as well.
2014-09-12 11:26:51 -04:00
Ryan Weaver
26179cc4b4
[ #2492 ] Prefixed real versions with ~ when guessing the latest version
...
2.1.0 > ~2.1.0
v2.1.0 -> ~2.1.0
dev-master -> dev-master
2014-09-12 11:26:51 -04:00
Ryan Weaver
58535a62fa
[ #2492 ] Automatically using the latest version when requiring a package
...
This applies to the init and require commands.
Previously:
If you ommitted the version of a library, it prompted you to enter a version.
New Behavior:
If you omit the version, it automatically selects the latest version that is consistent
with your minimum-stability flag.
Is Jordi mentions, this is consistent with how npm works.
2014-09-12 11:26:51 -04:00
Ryan Weaver
947db97e33
[ #2492 ] Removing an unused variable and use statement, fixing phpdoc
2014-09-12 11:26:51 -04:00
Bastian Hofmann
b132e4eae0
Added cacheCredentials config flag for saved SVN credentials to control the --no-auth-cache flag
...
Example config:
{
"http-basic": {
"svn.example.com": {
"username": "user",
"password": "password",
"cacheCredentials": false
}
}
}
2014-09-11 11:48:24 +02:00
Tomáš Votruba
9efc4d1e9d
typo
2014-09-10 17:51:02 +02:00
Jordi Boggiano
d79f2b0fd3
Adds warning when the version field is set, fixes composer/packagist#438
2014-09-10 16:11:05 +01:00
Jordi Boggiano
0e409a159c
Add toran to docs besides satis
2014-09-10 16:05:11 +01:00
Kayla Daniels
ec758d95b0
updated package variable in gathering requirements
2014-09-06 07:58:57 -04:00
Jordi Boggiano
a8adbfeb9f
Disallow overriding commands with scripts
2014-09-05 17:28:50 +01:00
Jonathan Klein
7dadd22ea4
Fixing a typo in the scripts documentation
2014-09-05 12:21:50 -04:00
Jordi Boggiano
ca8ce161e1
Update jsonlint dep, fixes #3151
2014-09-05 16:46:24 +01:00
Jordi Boggiano
d18ac81381
Fix unset order to avoid a warning
2014-09-05 16:39:00 +01:00
Jordi Boggiano
f7a84e423d
Merge pull request #3238 from stof/patch-6
...
Fixed the registration of commands with invalid JSON file
2014-09-05 14:48:10 +01:00
Christophe Coevoet
e1a3df3dbf
Fixed the registration of commands with invalid JSON file
...
When the JSON file in the current folder is invalid, the registration of custom commands should be ignored rather than breaking the usage of Composer entirely.
Closes #3165
2014-09-05 15:17:51 +02:00
jakoch
d45996111f
docu fix (removed dangling "times." introduced by 22afc074a9
)
2014-09-03 17:05:46 +02:00
Richard K Miller
1ee0f28e79
update documentation to work for ZSH or Bash
2014-08-29 13:50:25 -06:00
Richard K Miller
553288a384
Very tiny but necessary edit
...
To delete `.git` repos of submodules, `rm -rf vendor/**/.git` doesn't work, but `rm -rf vendor/*/*/.git` does
2014-08-28 21:49:57 -06:00
Tobias Tom
2dbc9447b5
Added some details about authentication handling.
...
This details are more or less copied directly from [Authentication management in Composer](http://seld.be/notes/authentication-management-in-composer ).
2014-08-21 11:17:08 +02:00
Andrew Kreps
fe33d7a347
Updated to reflect new tap names for php in OSX homebrew.
2014-08-15 11:28:18 -07:00
Chris Smith
439095e446
Handle incomplete file write to cache
2014-08-14 00:54:03 +01:00
Chris Smith
6edf40ee96
When $TMPDIR is low on space PHP streams silently fail
2014-08-14 00:53:53 +01:00
David Neilsen
957f498419
Update clear cache command to be more verbose
2014-08-13 09:18:03 +12:00
Nils Adermann
1e27ff5e22
Merge pull request #3196 from thaiphan/master
...
Update RuleWatchNode.php
2014-08-11 17:46:48 +02:00
Thai Phan
e6fdefb869
Update RuleWatchNode.php
2014-08-10 23:13:08 +10:00
jakoch
9d5106e2e3
added stof's php inline example from #3190 to doc/articles/scripts.md
2014-08-06 14:54:43 +02:00
David Neilsen
be5eae5852
Clear all the caches
2014-07-31 10:55:59 +12:00
François Pluchino
1067ce4f96
Add installer events
2014-07-29 15:25:16 +02:00
hakre
3e727850ff
unlinking symlinked directories and trailing slashes
...
Filesystem::removeDirectory() didn't detect all symlinked directories
properly due to not resolving pathnames with trailing slashes first.
this commit fixes that issue by resolving pathnames with trailing slashes
by removing those in case they are representing a symlinked directory.
#3144
Reference:
A.4.12 Pathname Resolution - The Open Group Base Specifications Issue 7
IEEE Std 1003.1, 2013 Edition Section
<http://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_xbd_chap04.html >
2014-07-28 23:49:46 +02:00
hakre
343d0b5af2
added test removing directory with trailing slash that is symlinked
...
#3144
#3157
2014-07-28 23:49:44 +02:00
hakre
0ad2449fe8
rmdir needs to be used on windows to remove symbolic links to directories
2014-07-28 23:42:53 +02:00
hakre
ed507dec9f
added test unlinking directory
...
#3157
2014-07-28 23:36:04 +02:00