1
0
Fork 0
Commit Graph

1280 Commits (c9501a4cc164b176de48e44b239e619cfd5f14e5)

Author SHA1 Message Date
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
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
cw-ozaki d649cfc6a1 Add --no-scripts argument for dump-autoload command 2014-08-08 16:27:19 +09:00
François Pluchino 1067ce4f96 Add installer events 2014-07-29 15:25:16 +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 ed507dec9f added test unlinking directory
#3157
2014-07-28 23:36:04 +02:00
François Pluchino 11b945046f Register plugin only one time when it's present in global and project mode 2014-07-21 15:11:38 +02:00
Jordi Boggiano 7b4fcd93d3 Merge remote-tracking branch 'webfactory/issue-2698'
Conflicts:
	src/Composer/Repository/ArtifactRepository.php
2014-07-19 21:35:51 +02:00
Jordi Boggiano 4f0d7e4739 Merge remote-tracking branch 'dzuelke/prefer-stable-lock' 2014-07-19 19:38:00 +02:00
Jordi Boggiano d5294ef91b Update repo url from github and handle trailing slashes, refs composer/packagist#354 refs composer/packagist#423 2014-07-19 18:40:01 +02:00
David Zuelke d47d9eb253 remember prefer-stable setting in composer.lock 2014-07-07 21:20:46 +02:00
Jordi Boggiano 449f8165ef Allow $HOME and ~ usage in all *-dir config values, fixes #3060 2014-06-29 14:47:43 +02:00
Jordi Boggiano 8881cec174 Simplify version ranges (hopefully includes hhvm), refs #3049 2014-06-29 12:27:27 +02:00
Jordi Boggiano 3874a11238 Update json test 2014-06-22 11:01:05 +02:00
Jordi Boggiano ac497feaba CS fixes 2014-06-10 16:13:12 +02:00
Jordi Boggiano 08e34858d6 Fix code to use hostname only, refs #3026 2014-06-05 11:14:29 +02:00
Jordi Boggiano 89ec322929 Merge remote-tracking branch 'benja-M-1/feature/svn-auth-from-auth-json' 2014-06-05 11:08:19 +02:00
Jordi Boggiano c0f9a00125 Merge remote-tracking branch 'jakoch/patch-6' 2014-06-05 10:57:43 +02:00
Jordi Boggiano 959cc4d63c Add info about conf file loading to debug output 2014-05-31 16:50:33 +02:00
Benjamin Grandfond a21b0f82db Allow SVN to connect with credentials provided with the auth.json file 2014-05-30 17:14:43 +02:00
Jordi Boggiano 7131607ad1 Fix regression in handling github-oauth settings in auth.json 2014-05-27 16:26:24 +02:00
Mátyás Somfai 2ed0bfc1ba added tests for not updating packages referenced by specific commit hash 2014-05-27 14:23:31 +02:00
Jordi Boggiano 90d1b6e08a Rename basic-auth to http-basic, add docs/schema/config support, add local auth file support, add storage to auth.json, add store-auths config option, refs #1862 2014-05-27 13:50:47 +02:00
Jordi Boggiano 64ac32fca9 Merge pull request #2785 from Firehed/master
Add @generated annotation to lockfile (ref PR 2210)
2014-05-24 22:57:50 +02:00
Jordi Boggiano e23665be59 Fix replacers being picked if whatProvide was called before building the package whitelist, fixes #2991, fixes #2962 2014-05-23 15:22:53 +02:00
Jordi Boggiano 97873a27af Update perforce code 2014-05-07 19:34:41 +02:00
Jordi Boggiano 77163f66fc Add support for mirrors in composer repos 2014-05-07 19:34:35 +02:00
Jordi Boggiano 32cd883daa Rename options to transport-options, refs #2189 2014-05-07 18:25:28 +02:00
Jordi Boggiano 31092843fd Only load options when they come from the lock file, not from standard metadata, refs #2189 2014-05-07 18:12:26 +02:00
Jordi Boggiano 016a016455 Merge remote-tracking branch 'lcobucci/master'
Conflicts:
	src/Composer/Downloader/FileDownloader.php
2014-05-07 18:02:46 +02:00
jakoch a0e5ead9b0 removed unused variables $baseDir and $vendorDir from "autoloader_real.php" generated by AutoloadGenerator. adjusted tests accordingly. 2014-05-02 17:42:31 +02:00
Fabien Potencier 12421dd6b7 fixed class map generator when using a heredoc with spaces 2014-04-28 15:21:22 +02:00
Jordi Boggiano 1347d5306a Make sure a good timezone is set, fixes #2899 2014-04-14 13:55:17 +02:00
Jordi Boggiano 49d4054e51 Handle files with no php at all, fixes #2910 2014-04-14 12:47:47 +02:00
Jordi Boggiano b437c1cc05 Support github auth directly in the RemoteFilesystem class 2014-04-11 14:29:17 +02:00
Jordi Boggiano 4392be4d29 Fix some more inconsistencies in json manipulation 2014-04-10 16:11:43 +02:00
Jordi Boggiano d742ffca4f Fix removal of missing keys 2014-04-10 15:55:05 +02:00
Denis Sokolov 836534067b Avoid ambiguity warning for example directories as well
In particular, PEAR repositories use a classmap and example directories trigger
multiple false positive warnings.
2014-04-10 21:03:35 +09:00
Denis Sokolov 65b9cca7b5 Fix ClassMapGenerator unambiguousReference test coverage
Without this fix the test only covers having files in "test", the "fixture"
portion it is not covered at all, because all fixtures in phpunit tests
are already in "test" directory
2014-04-10 21:03:26 +09:00
Jordi Boggiano e7b82cdd88 Only check in require and for non-platform packages, add flag to make this warning optional, refs #2320 2014-04-09 15:37:50 +02:00
Jordi Boggiano e0004d0656 Merge remote-tracking branch 'stof/validate_unbound_constraints' 2014-04-09 14:51:14 +02:00
Jordi Boggiano d99212da52 Fix integration tests 2014-04-07 11:10:57 +02:00
Jordi Boggiano 0902305196 Fix classmap generator warnings and tests 2014-04-01 14:38:31 +02:00
Jordi Boggiano 8974a1ac92 Ignore ambiguous classes in tests/fixtures dirs, fixes #2858 2014-03-31 21:36:48 +02:00
Daniel Karp e3be04c443 Don't show Ambiguous class resolution warning if class when not ambiguous
if a class or interface is defined twice in the same class, this should not produce a warning
2014-03-30 12:53:15 -04:00
Jordi Boggiano 7daf876d70 Fix test because the order of filesystem iteration is non deterministic 2014-03-29 18:10:32 +01:00
Jordi Boggiano 781c97fa9b Refactor to avoid global static state 2014-03-29 17:46:55 +01:00
Jordi Boggiano c3ab09750d Merge remote-tracking branch 'johnikx/ambiguous-reference-warning' 2014-03-29 17:29:55 +01:00
Jordi Boggiano f233383de8 Merge pull request #2834 from vuhl/master
Fixing perforce driver/downloader bugs
2014-03-26 18:28:52 +01:00
Clark Stuth a12c4e2a17 Removed getWindowsFlag and setWindowsFlag methods from Perforce object. 2014-03-25 08:30:44 -05:00
Clark Stuth dd1fd0e306 fixed perforce to reference labels instead of invalid tags 2014-03-24 15:19:35 -05:00
Jan Brecka b94838169d show warning only instead of throwing exception 2014-03-24 14:34:02 +01:00
Jan Brecka de09c5e371 remove duplicity 2014-03-24 10:35:44 +01:00
Jan Brecka 5763685e69 use statement 2014-03-24 10:30:50 +01:00
Jordi Boggiano 808e65f7de Merge pull request #2769 from sndpl/issue/2739
Fix for #2739 (and #1755), added support for directory excludes in the gitignore file
2014-03-23 22:01:39 +01:00
Clark Stuth 2651cbc5fe Fixing perforce dev-master stored reference bug. 2014-03-21 13:51:18 -05:00
Clark Stuth 8fc1961463 Fixing delete client workspace bug. 2014-03-21 13:51:18 -05:00
Clark Stuth c11105dd60 Fixing bug not cleaning up workspaces. 2014-03-21 13:51:18 -05:00
Clark Stuth 492539101c got all unit tests passing 2014-03-21 13:51:18 -05:00
Clark Stuth 24dd42267f almost all unit tests passing after IOInterface dependency refactor. no longer passing IOInterface into any Perforce methods 2014-03-21 13:51:18 -05:00
Clark Stuth 0f7b078d6c added new dependency to Perforce object, updating some tests. 2014-03-21 13:51:18 -05:00
Jan Brecka ea7717c8e5 improve exception message 2014-03-20 14:24:42 +01:00
Jan Brecka 13b57112a9 Throw RuntimeException when ambiguous reference was found. 2014-03-20 13:37:05 +01:00
Christian Flothmann 2241328934 fix "replace-alias.test" test 2014-03-12 16:35:04 +01:00
Christophe Coevoet b639005f29 Added a failing test for #2626 2014-03-12 15:10:25 +01:00
Eric Stern 634d1aba63 Add @generated annotation to lockfile readme, giving a hint for linters and other static analysis tools 2014-03-06 10:15:59 -08:00
Jordi Boggiano 604a65cc31 Fix indenting, refs #2788 2014-03-06 10:26:16 +01:00
Sylvain Filteau 92e283973f Skip test requiring mbstring when it's not installed 2014-03-05 20:30:09 -05:00
Jordi Boggiano 790a25c348 Adjust dump command, add another test, update docs, refs #1344 2014-03-01 21:21:00 +01:00
Jordi Boggiano 023ff131aa Merge remote-tracking branch 'bamarni/autoload-dev' 2014-03-01 20:28:31 +01:00
Jordi Boggiano 1f2d8908f3 Merge remote-tracking branch 'olvlvl/fix_issue_2598' 2014-03-01 19:56:33 +01:00
Sandy Pleyte 3e161e8ea9 Updated the regexp and added an other test case for sub dirs 2014-02-28 16:30:55 +01:00
Sandy Pleyte 1d51e54a31 Updated the regexp and added more test cases. 2014-02-28 11:43:28 +01:00
Bilal Amarni db91454a13 added an autoload-dev section 2014-02-28 00:27:03 +01:00
Sandy Pleyte 21109ada22 Fix for #2739 (and #1755), added support for directory excludes in the .gitignore file like /directory or directory/ 2014-02-27 15:17:15 +01:00
Jordi Boggiano 0d4c2bb7d7 Fix github test 2014-02-26 17:38:58 +01:00
Jordi Boggiano 5067d76dbc Adjust test suite 2014-02-26 16:01:31 +01:00
Nils Adermann 1ccf4b0fc3 Correct the tests for dist urls for github 2014-02-24 19:51:03 +01:00
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.
2014-02-24 18:40:33 +01:00
Nils Adermann 33e872d7d3 Merge pull request #2733 from naderman/limit-replace-provide
Whitelist packages with names matching those specified before generating rules
2014-02-21 13:46:50 +01:00
Nils Adermann 5b80144ad0 Resolve job packages after whitelist generation 2014-02-21 13:41:21 +01:00
Nils Adermann ec12b8a675 Add tests for the changes in #2690 2014-02-21 13:15:07 +01:00
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
2014-02-21 12:25:15 +01:00
Jordi Boggiano eb3384445b Merge pull request #2188 from Danack/GetRootComposerJson
Find root composer.json in zip artifact more reliably.
2014-02-21 11:33:01 +01:00
Danack e4d4a7ae17 Added comment for generating files. 2014-02-21 09:49:12 +00:00
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.
2014-02-21 09:46:12 +00:00
Olivier Laviale 40e484ed38 Fixed an issue that would lead to scattered autoloading files 2014-02-20 23:18:48 +01:00
Danack bc76e0014b Moved tests that are expected to work into their own directory.
Added test for composer.json in incorrect directory.
2014-02-20 17:30:51 +00:00
Jordi Boggiano 0df9c803a5 Merge pull request #2718 from sndpl/issue/2613
Fix for #2613
2014-02-20 17:27:31 +01:00
Sandy Pleyte 3a2815b778 Added extra unit test from the example in the ticket. 2014-02-19 14:17:23 +01:00
Matthias Pigulla beff1f5cc1 This should create relative/absolute dist URLs depending on the way (relative/absolute) the artifact directory path was given. 2014-02-18 23:28:45 +01:00
Jordi Boggiano 5d4900e79d Add --no-checkout flag to avoid checking out the default branch first, fixes #2717 2014-02-18 13:28:46 +01:00
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. 2014-02-18 09:01:12 +01:00
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. 2014-02-17 13:54:35 +01:00
Jordi Boggiano 9d2d828b70 Merge remote-tracking branch 'h4cc/master' 2014-02-13 12:47:01 +01:00
Jordi Boggiano b5dd537422 Merge pull request #2648 from zczapran/unit_tests_for_jsonvalidationexception
[tests] Unit tests for JsonValidationException class
2014-02-06 21:39:32 +01:00
Jordi Boggiano f72066de90 Merge pull request #2649 from zczapran/bugfix/git_exclude_filter_rules_too_broad
[Archiver] Rules in GitExcludeFilter are too broad
2014-02-06 21:38:47 +01:00
Nicolas Grekas 00a6f8e38d dedicated scope isolation function for autoload_real 2014-02-06 11:53:42 +01:00
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.
2014-02-06 10:50:06 +01:00
Nils Adermann aef0483cc9 Merge pull request #2667 from nicolas-grekas/master
scope isolation for user includes
2014-02-05 18:24:55 +01:00
Nicolas Grekas 6d7b9afc4b scope isolation for user includes 2014-02-05 17:33:06 +01:00
Jordi Boggiano 75cd91657a Merge remote-tracking branch 'jeromemacias/fix_psr4_classmap_generator' 2014-02-05 09:53:49 +01:00
Andreas Hennings fcf8e7f515 Random docblock improvements in AutoloadGeneratorTest. 2014-02-04 12:35:50 +01:00
Andreas Hennings 6a9fd1dd60 rename \$package to \$mainPackage in AutoloadGeneratorTest::testOverrideVendorsAutoloading() for clarity. 2014-02-04 12:35:50 +01:00
Andreas Hennings bb26152de2 docblock comments on properties in AutoloadGeneratorTest 2014-02-04 12:35:50 +01:00
Andreas Hennings cab6943df0 AutoloadGeneratorTest::testOverrideVendorsAutoloading() - break autoload definitions to multiple lines. 2014-02-04 12:35:50 +01:00
Andreas Hennings 084c11ef51 AutoloadGeneratorTest::testMainPackageAutoloadingWithTargetDir() - Remove PSR-4 from the package in target-dir test, since it is incompatible with target-dir. 2014-02-04 12:35:50 +01:00
Jérôme Macias 01cd990995 Fix PSR-4 autoload classmap generator 2014-02-03 16:53:56 +01:00
Zbigniew a4a9d0f0e4 [Archiver] Rules in GitExcludeFilter are too broad 2014-01-30 23:34:28 +00:00
Zbigniew 94635c0d14 [tests] Unit tests for JsonValidationException class 2014-01-30 17:39:13 +00:00
René Kerner b0ec8ee096 * added exclude-from-classmap feature
* updated to latest master version
2014-01-27 11:42:54 +01:00
Jordi Boggiano 99f5b5a238 Fix backtracking issue in json manipulations, fixes #2583 2014-01-12 21:13:00 +01:00
Jordi Boggiano 3c5000ad7f CS tweaks and cleanups, allow "" to set fallback dirs, refs #2459 2014-01-03 16:31:23 +01:00
Jordi Boggiano b23742e30c Merge remote-tracking branch 'donquixote/feature/psr4-complete' 2014-01-03 14:56:36 +01:00
Luís Otávio Cobucci Oblonczyk 0f2c0ab389 Merge remote-tracking branch 'upstream/master'
Conflicts:
	src/Composer/Downloader/FileDownloader.php
2013-12-29 00:37:08 +00:00
Pascal Borreli 2f4df9d459 Fixed typos 2013-12-27 11:51:01 +00:00
Andreas Hennings 0a4b18ce86 More interesting generator tests for PSR-4. 2013-12-22 19:58:27 +01:00
Andreas Hennings bda2bcac13 Fix indentation of assignment in AutoloadGeneratorTest 2013-12-22 19:39:09 +01:00
Andreas Hennings 8966376f40 Verify generation of autoload_psr4.php even if empty. 2013-12-22 19:38:11 +01:00
Andreas Hennings e4bbd83f13 expected message in ValidatingArrayLoaderTest should also contain psr-4 as allowed key. 2013-12-22 19:03:23 +01:00
Jordi Boggiano 80499bb024 Detect ~> misuse and suggest fix, fixes #2476 2013-12-06 13:32:19 +01:00
Morgan BRUNOT ca7cb68dd5 Check exclude from downloaded composer.json 2013-12-05 16:03:48 +01:00
mwhittom a8084e46ff Added error handling and error messages around missing perforce driver, invalid username/password 2013-12-02 13:34:47 -06:00
Andreas Hennings bbf6278905 AutoloadGenerator to support PSR-4. Tests included. 2013-11-26 02:53:44 +01:00
Andreas Hennings 2c98813431 Add unit tests for ClassLoader, covering PSR-0 and PSR-4. 2013-11-25 23:22:31 +01:00
Jordi Boggiano dea246186d Merge pull request #2453 from mirkobeine/#2441-V2
Use 'cache-files-ttl' for cache gc, fixes #2441
2013-11-25 02:56:58 -08:00
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
2013-11-24 10:55:25 +01:00
Jordi Boggiano e126c92525 Fix exit codes, cc @tyrael 2013-11-22 16:17:02 +01:00
Jordi Boggiano 5156a60216 Add test for RepositoryManager repo creation 2013-11-22 11:10:54 +01:00
ptarjan 09c0d971d3 don't require the error message have the first line of HTTP output in it 2013-11-19 14:35:24 -08:00
Jordi Boggiano 8398c9f2ab Fix target-dir update checks, fixes #2395 2013-11-04 13:36:30 +01:00
Gennady Feldman e5045ce215 Per request from Jordi Boggiano (Seldaek) making Config 2nd parameter in supports() 2013-10-29 11:07:52 -04:00
Gennady Feldman 93ebfd54b1 Adding Config as parameter to the Driver::supports(), updating all drivers, user and tests. 2013-10-28 15:57:02 -04:00
Jordi Boggiano 7148b22414 Add github-domains config value for GitHub Enterprise setups, fixes #728
Signed-off-by: Gennady Feldman <gena01@gmail.com>
2013-10-28 12:40:20 -04:00
Jordi Boggiano f5df1d6a9b Fix cs 2013-10-19 17:59:56 +02:00
Jordi Boggiano e2671b6510 Add test and fix patch for #2304, refs #2341 2013-10-19 13:38:30 +02:00
Jordi Boggiano 08243ce2e3 Fix handling of urlencoded user and password in proxy urls, fixes #2339 2013-10-18 11:35:57 +02:00
Jordi Boggiano 7cfeccb101 Merge pull request #2327 from pl-github/with-dependencies
Change dependency processing for update with whitelisted packages
2013-10-16 09:15:46 -07:00
Jordi Boggiano 7c83e6a04a Merge remote-tracking branch 'GromNaN/git-cache' 2013-10-16 15:16:48 +02:00
Jordi Boggiano f8be812a49 Merge remote-tracking branch 'origin/master' 2013-10-16 10:57:18 +02:00
Fabian Grutschus a6823d2f9b non-deep check returns allways false 2013-10-16 10:07:10 +02:00
Phillip Look 07a7284ffc Change dependency processing for update with whitelisted packages
By default dependencies of white listed packages are no longer installed automaticaly.
To Install dependencies of whitelisted packages use --with-dependencies.
- rework after review comments
- precise documentation of option
- add missing punctuation marks
2013-10-16 09:37:14 +02:00
Nils Adermann 565f86f30d Fix stream context option test to really only verify content-type is last 2013-10-14 17:53:02 -07:00
Nils Adermann 42dd2f2ee8 Check only part of the error message as it's different in hhvm 2013-10-14 15:57:19 -07:00
Fabian Grutschus 20854a50b4 Removed unnecessary test and just check for return code 2013-10-14 18:04:09 +02:00
Fabian Grutschus 0c5bd559f2 Changes comparsion to strict and removed a comment 2013-10-14 17:25:57 +02:00
Fabian Grutschus 5ae5963acd Fix for Preforce utility does not check if p4 command exists 2013-10-14 14:53:57 +02:00
Christophe Coevoet 6cc95c43e3 Add a warning for unbound constraints in the validating loader
Closes #2165
2013-10-12 02:29:16 +02:00
Jordi Boggiano 2b36106168 Fix tests, refs #2184 2013-10-11 20:22:50 -03:00
Jordi Boggiano 0fbb4cbd16 CS fixes and renaming a few methods, refs #2184 2013-10-11 20:21:34 -03:00
Jordi Boggiano 11a0d16ccc CS fixes 2013-10-11 20:12:45 -03:00
Jordi Boggiano 9a806658d6 Merge remote-tracking branch 'vuhl/master'
Conflicts:
	src/Composer/Factory.php
2013-10-11 20:06:34 -03:00
Jérôme Tamarelle 836986faf3 Add temp composer home for GitDriver test using cache 2013-10-10 22:57:03 +02:00
Martin Hasoň 3c0a620ad5 Fixed path analysis 2013-09-26 14:34:41 +02:00
Jordi Boggiano 807600b255 Fix edge case where one adds a target-dir on a package that didnt have one before, refs #2279 2013-09-25 21:11:18 +02:00
Jordi Boggiano a813867065 Merge remote-tracking branch 'chx/913' 2013-09-25 20:58:13 +02:00
Jordi Boggiano 38917c2047 Add parallel build to travis script 2013-09-25 10:23:48 +02:00
Karoly Negyesi e32e4ad490 change the test to test for a target dir change 2013-09-22 19:42:05 +02:00
Karoly Negyesi 1a69d0a2a7 style fixes 2013-09-22 19:41:54 +02:00
Karoly Negyesi 6c393c1c69 use the more generic removeDirectory 2013-09-20 06:31:06 +02:00
Karoly Negyesi 24c9ef72d6 make LibraryInstallerTest a little more strict 2013-09-20 06:04:15 +02:00
Karoly Negyesi c6ec739766 allow injecting a mock filesystem into LibraryInstaller and fix LibraryInstallerTest 2013-09-20 06:02:36 +02:00
Karoly Negyesi f82c820a32 do not try to test update inside fixtures 2013-09-20 05:39:35 +02:00
mwhittom 8a319a719b Fixed issue with non-streaming perforce depots, also fixed issue where PerforceDownloader was not logging in 2013-09-13 15:01:00 -05:00
Martin Hasoň e949038c0f Removed duplication of logic of an installation manager in a plugin manager 2013-09-12 14:31:27 +02:00
mwhittom 2e737ac439 updated to replace double-quotes with single quotes 2013-09-09 14:48:24 -05:00
mwhittom 8207518e04 Updated to clean up code and rename variables to camelcase 2013-09-09 12:45:50 -05:00
mwhittom f7d9f3d8b4 Fixed Test method setUp to be protected instead of private. 2013-09-06 12:31:04 -05:00
mwhittom 07d46aa3c3 Fixed spacing issues for PSR-2 2013-09-06 12:14:22 -05:00
Nils Adermann 242c58c789 Merge pull request #2179 from naderman/plugins
Plugins
2013-09-06 04:42:27 -07:00
Nils Adermann f249fd804f Correctly require composer plugin api version in test plugins 2013-09-06 13:36:02 +02:00
Nils Adermann 6c2e998e40 Add missing use statement 2013-09-05 14:32:09 +02:00
mwhittom d77bd49301 Replaced RemoteFileSystemTest with version from main branch 2013-09-04 09:30:23 -05:00
mwhittom 774a55befd Updated to match psr-2 spec, fixed header comments 2013-09-04 09:24:49 -05:00
matt-whittom f737e49aae Fixed issue with downloader assuming repository would be VcsRepository 2013-09-04 09:10:45 -05:00
matt-whittom 8379985166 Updated/Standardized header comments 2013-09-04 09:10:44 -05:00
matt-whittom dd81449998 Updated to remove vfsStreams (no longer needed by tests)
Updated Perforce to cleanup, modified VcsRepository to call cleanup on Driver class
Updated tests, perforce constructor to make tests cleaner/easier
2013-09-04 09:10:44 -05:00
matt-whittom 997b1b5d46 Replaced changes in RemoteFilesystemTest with changes from main branch. 2013-09-04 09:10:44 -05:00
matt-whittom 1015957659 Added tests and code for tests 2013-09-04 09:10:43 -05:00
matt-whittom 1019c014e5 using theirs 2013-09-04 09:10:43 -05:00
matt-whittom 53d6fcd6d3 using theirs 2013-09-04 09:10:42 -05:00
matt-whittom 0d061f2530 Added Perforce to Composer 2013-09-04 09:10:41 -05:00
matt-whittom a980228b76 Added Perforce VCS to Composer.
Added Perforce utility class, PerforceDriver and PeforceDownloader
Added PerforceDriverTest
Updated Factory, VcsRepository to incorporate Perforce classes.
Modified ArchivableFilesFinderTest to skip Mercurial test that does not work for me.
2013-09-04 09:10:41 -05:00
Jordi Boggiano 9b70b89b8f Merge pull request #2210 from Firehed/master
Change 'generated' notice to @phpdoc-style annotation
2013-09-02 03:12:29 -07:00
Nils Adermann bf08019292 Load plugins and installers prior to checking installed packages 2013-08-31 16:20:38 +02:00
Nils Adermann 2ca07add97 Merge remote-tracking branch 'github-composer/master' into plugins
* github-composer/master:
  Correct FileDownloaderTest for invalid checksum

Conflicts:
	tests/Composer/Test/Downloader/FileDownloaderTest.php
2013-08-31 15:58:31 +02:00
Nils Adermann 72919e04b0 Correct FileDownloaderTest for invalid checksum 2013-08-31 15:55:12 +02:00
Nils Adermann 786ea2929b Merge remote-tracking branch 'github-composer/master' into plugins
* github-composer/master:
  Make sure directories we are downloading to are empty
  Fix parsing of trunk in SvnDriver, fixes composer/satis#88
  Fix file layout in unit tests
  Fix parse error thrown in PHP5.5+
2013-08-31 15:43:25 +02:00
Alan Hollis 1892f57e47 Fix file layout in unit tests
Changes made in previious commit made the output of the file change,
which in turn broke the unit tests. This commit updates the fixtures to
match the new output.
2013-08-30 12:09:17 +00:00
Nils Adermann b9c5758670 Make composer/io part of the activate plugin API rather than constructor args 2013-08-30 12:51:41 +02:00
Nils Adermann 69a028f368 Fix plugin interface usage in tests 2013-08-30 12:51:41 +02:00
Nils Adermann 3960edd64e Turn EventDispatcher into generic solution handling plugins as well 2013-08-30 12:51:41 +02:00
Nils Adermann 2f43e9aefb Load installed plugins at appropriate time and adapt tests accordingly 2013-08-30 12:51:40 +02:00
Nils Adermann 3e41977be7 Plugin tests are no longer strictly installer tests 2013-08-30 12:51:40 +02:00
Nils Adermann eb966d347f Implement a plugin manager and interface, update installer plugin tests 2013-08-30 12:51:40 +02:00
Nils Adermann 01a08a2ff3 As preparation for composer plugins, rename custom installers to plugins 2013-08-30 12:51:40 +02:00
Firehed 046d55e886 Change 'generated' notice to @phpdoc-style annotation
While it isn't an official part of the syntax, it integrates better with other
tools that ignore diffs on generated code.
2013-08-27 16:08:38 -07:00
Jordi Boggiano 61c0127f05 Fix build 2013-08-23 11:59:26 +02:00
Luís Otávio Cobucci Oblonczyk 8630aab93f Package options must be a non mandatory array and should be loaded when
exists
2013-08-19 04:40:08 -03:00
Luís Otávio Cobucci Oblonczyk 28d0e08785 Package options should be dumped if exists 2013-08-19 04:39:13 -03:00
Luís Otávio Cobucci Oblonczyk d4043b6b9a Package options must be passed as argument to downloader 2013-08-19 04:38:25 -03:00
Jordi Boggiano d017e3f209 Adjust GitDriver tag parsing to resolve to SHAs 2013-08-19 01:21:45 +02:00
Jordi Boggiano e0051a4652 Update tests 2013-08-18 23:03:48 +02:00
Jordi Boggiano 051d219438 Fix whatProvides returning too many results when no constraint is given 2013-08-12 18:37:34 +02:00
Jordi Boggiano 0044c75ca0 Fix detection of tags when the current tag is not a valid version 2013-08-12 10:27:25 +02:00
Jordi Boggiano 8b293633ae Merge remote-tracking branch 'simensen/non-dev-version'
Conflicts:
	src/Composer/Package/Loader/RootPackageLoader.php
	tests/Composer/Test/Package/Loader/RootPackageLoaderTest.php
2013-08-12 02:39:52 +02:00
Jordi Boggiano f59f443fce CS fixes and one more test for safety, fixes #1855 2013-08-12 02:22:32 +02:00
Jordi Boggiano 533512879e Merge remote-tracking branch 'sminnee/fix-tilde-constraint-stabililty' 2013-08-12 02:17:00 +02:00
Jordi Boggiano b4c0b18896 Add tests, refs #2017 2013-08-12 00:52:16 +02:00
Jordi Boggiano 21299e0bc4 Make sure all installers are installed first unless they have requirements, refs #2107, fixes #1147 2013-08-12 00:28:33 +02:00
Jordi Boggiano 815f7687c5 Merge pull request #2157 from hason/125
Throw exception if the local repository does not contain a package to uninstall
2013-08-10 05:49:14 -07:00
Jordi Boggiano bd345c3b43 Add IO to proc executor in a few more places to get more debug info out 2013-08-10 02:44:11 +02:00
Martin Hasoň b1c4eed57f Throw exception if the local repository does not contain a package to uninstall 2013-08-07 10:50:12 +02:00
Jordi Boggiano af1f5a3423 Merge pull request #2091 from jaypea/archivemanager
cleanup temporary download location when archiving
2013-08-05 06:26:02 -07:00
Andreas Hennings 5369904dd3 autoload_files.php should return an array of files, instead of directly including them. 2013-08-01 15:53:54 +02:00
Andreas Hennings 8e9bdfb4da Factor the filesCode generation into a separate method. 2013-08-01 15:53:54 +02:00
Andreas Hennings f98a8f472e Generate an autoload_files.php next to autoload_namespaces.php and autoload_classes.php 2013-08-01 15:53:54 +02:00
Jordi Boggiano 7912253df6 Retry downloading when a corrupt zip is found, fixes #2133, fixes #2128, fixes #2125 2013-07-31 20:33:20 +02:00
Jordi Boggiano 12d63b0a35 Fix test 2013-07-31 14:40:53 +02:00
Jordi Boggiano d740f50277 Fix parsing of inferred stability flags that are more stable than the min stability 2013-07-28 19:40:37 +02:00
Jordi Boggiano 7252078508 Attempt to fix travis build 2013-07-26 15:44:52 +02:00
Jordi Boggiano 5c7af783f6 Merge pull request #2114 from kibao/init-command-utf8-author-name
Init command - diacritical marks in author name
2013-07-26 04:04:29 -07:00
Jordi Boggiano 771233a5a0 Make it clear what is going on when a vcs folder is missing, fixes #2108 2013-07-26 12:25:05 +02:00
Przemysław Piechota 95cbb177dd Init command - diacritical marks in author name 2013-07-25 22:40:41 +02:00
Jan Prieser c6db86e444 cleanup temporary download location when archiving 2013-07-17 13:28:15 +02:00
Jordi Boggiano ab731b1197 Oops 2013-07-05 00:47:18 +02:00
Jordi Boggiano be235ffc19 Fix 5.3.3 build 2013-07-05 00:44:29 +02:00
Jordi Boggiano 0822683706 Fix tests 2013-06-28 20:42:06 +02:00
Jordi Boggiano 7755564962 Add test assertion 2013-06-26 16:24:49 +02:00
Kris Wallsmith fa4b13d95a fix when composite repo has no delegates 2013-06-19 14:21:13 -07:00
Jordi Boggiano 7f2b321044 Fix tests 2013-06-19 10:05:21 +02:00
Jordi Boggiano f6aa3a6336 Fix test 2013-06-19 09:43:02 +02:00
Jordi Boggiano ca69917969 Merge pull request #2008 from phansys/svn-auth
Allowed to 5 auth requests in svn before fail
2013-06-18 06:24:00 -07:00
Jordi Boggiano 7aa03410e2 Merge pull request #2015 from jaypea/filedownloader_basicauth
allow FileDownloader to use username:password@ info when downloading
2013-06-18 06:03:32 -07:00
Jordi Boggiano 6b876958b9 Fix tests 2013-06-18 14:23:51 +02:00
Jan Prieser cc1e10e8ae allow FileDownloader to use username:password@ info when downloading through https? 2013-06-17 15:41:48 +02:00
Stéphane Klein 42119dde6b Use github protocols setting for push urls 2013-06-16 04:50:16 +02:00
Phansys 57dd70a185 Updated tests for SVN driver. 2013-06-14 21:16:24 -03:00
Jordi Boggiano d498e73363 Merge pull request #2004 from jaypea/recursive_artifactrepository
ArtifactRepository needs recursive iteration
2013-06-13 08:45:05 -07:00
Jan Prieser c6b61854bc changed Test to make sure subfolder packages are found correctly 2013-06-13 16:20:52 +02:00
Jordi Boggiano 55927f983a Remove author to fix phpunit group detection 2013-06-13 13:37:35 +02:00
Jordi Boggiano 8d0b7f278e CS fixes 2013-06-13 13:28:24 +02:00
Pavel Savinov 831bd844bd Almost PHPDoc problems fixed 2013-06-13 11:05:44 +11:00
Jordi Boggiano f56b985884 Merge pull request #1979 from hason/filesystem
Fixed the Filesystem methods for a directory with a name that is a substring of a another directory
2013-06-08 09:27:41 -07:00
Jordi Boggiano c479a26d71 Add workaround for msysgit failing to handle symlinks on windows, fixes #1048, fixes #1418 2013-06-08 17:51:30 +02:00
Jordi Boggiano 4cac2caf70 Make sure cd call allows switching drives on windows, fixes #1971 2013-06-08 16:41:34 +02:00
Jordi Boggiano 8b8dc1fd70 Remove all possible cd calls, refs #1971 2013-06-08 16:40:42 +02:00
Martin Hasoň 81e41bac4b Fixed the Filesystem methods for a directory with a name that is a substring of a another directory 2013-06-07 13:20:17 +02:00
Jordi Boggiano 1a7f734bc7 Fix test 2013-06-04 15:39:55 +02:00
Jordi Boggiano 93d37833dc Fix tests 2013-05-30 15:28:38 +02:00
Jordi Boggiano 1debe22412 Add HTTPS_PROXY_REQUEST_FULLURI to disable the request_fulluri only for https requests, fixes #1946, fixes #1839 2013-05-30 14:59:02 +02:00
Jordi Boggiano 5d360ab43b Abort if a script fails to execute, and exit with the exit code of the process, fixes #1943 2013-05-28 19:15:22 +02:00
Jordi Boggiano 1dd8bffce5 CS fixes 2013-05-27 10:41:50 +02:00
Francesc Rosàs 7c273d1ee4 Test parseAuthorString() actual result 2013-05-26 15:10:17 +01:00
Francesc Rosàs 991b4fe208 Fix namespace 2013-05-26 12:44:26 +01:00
Francesc Rosàs 9aa0aba77c Extract email validation into a method 2013-05-25 17:01:14 +01:00
Francesc Rosàs e3b9dd10c2 Test InitCommand::parseAuthorString() 2013-05-25 16:56:02 +01:00
Jordi Boggiano e4b48d39d0 Merge pull request #1922 from Seldaek/matchbranches
Only compare branches as versions in the policy to sort packages, but not in the solver, fixes #1817
2013-05-24 00:55:04 -07:00
Jordi Boggiano 59bda2bb9b Skip pear tests when repos are unreachable 2013-05-23 21:51:17 +02:00
Jordi Boggiano e848c76cbc Only compare branches as versions in the policy to sort packages, but not in the solver, fixes #1817 2013-05-23 18:12:54 +02:00
David Simon 2665c60b2f Test for bug parsing multiline strings with 'escaped' newlines 2013-05-21 16:29:11 -04:00
Beau Simensen 215556df7c Use --tags to get non-annotated tags as well. 2013-05-21 09:59:41 -05:00
Beau Simensen f9fe39e624 Fixed the existing test and added a new one for git tag version guessing. 2013-05-21 06:14:34 -05:00
Sam Minnee 324ef0f9bb Fixed upper bound of wildcard matches.
Follow-on from 95b4348afa
2013-05-20 19:10:04 +12:00
Sam Minnee 95b4348afa Fixed lower bound of tilde and wildcard matches.
The lower bound of ~1.2 and 1.2.* style version requirements now uses >= 1.2.0.0-dev instead of
> 1.1.9999999.9999999.  This is more straightforward to read, and behaves equivalently.
2013-05-20 19:03:21 +12:00
Sam Minnee 34a21516c8 Fix tilde constraints without a stability suffix to work like wildcard constraints.
With this fix, a tilde constraint such as ~3.1 won't match unstable versions of 3.1,
but a wildcard constraint such as 3.1.* would.  This seems like a confusing
inconsistency, and so I have corrected it.
2013-05-13 11:04:15 +12:00
Jordi Boggiano df7114869b Fix handling of multilines in previous commit 2013-05-12 23:14:55 +02:00
Jordi Boggiano 3b48a1fea6 Fix JsonManipulator handling of package links, fixes #1465 2013-05-12 22:54:53 +02:00
Jordi Boggiano 3bd6af690d Allow JsonManipulator::addMainKey to update top level keys as well 2013-05-12 13:24:18 +02:00
Taylor Otwell 60cd875cc2 Added "pre-autoload-dump" event.
This event is fired before the autoload file is generated, for either
an install or update command.
2013-05-06 09:37:21 -05:00
Jordi Boggiano 5ba147663d Use ClassLoader::set to initialize the class loader paths 2013-05-05 10:57:21 +02:00
Jordi Boggiano dc71ba557b Consistently use arrays as paths for a given namespace prefix 2013-05-05 10:56:46 +02:00
Jordi Boggiano 9d948eb795 Merge branch 'disjunctive' 2013-05-04 10:48:14 +02:00
Jordi Boggiano 9d814c948e Adjust circular dep test 2013-04-30 10:34:58 +02:00
Marco Pivetta d7e8aa49a5 Adding failing test to show the current failure in circular deps resolution 2013-04-29 23:35:44 +02:00
Jordi Boggiano 5264d0637b Fix regression added in 33af9eea95, fixes #1841 2013-04-28 22:50:24 +02:00
Jordi Boggiano faa419cc0e Merge remote-tracking branch 'hason/alias' 2013-04-28 12:54:59 +02:00
Jordi Boggiano 3fd883a489 Set cwd instead of using cd in GitDownloader, refs #1832 2013-04-28 11:12:09 +02:00
Jordi Boggiano e50173ff93 Merge remote-tracking branch 'nfx/artefact-repo-type' 2013-04-27 17:26:02 +02:00
Jordi Boggiano 0cccafbe81 Add disjunctive multi-constraints with |, refs #643, fixes #1342 2013-04-27 15:20:35 +02:00
Jordi Boggiano e16caa9bd7 Add EmptyConstraint 2013-04-27 14:32:22 +02:00
Jordi Boggiano cc9dac8fe2 Fix tests and convert all package lists to Name[Versions] format 2013-04-27 00:31:22 +02:00
Jordi Boggiano 3aa7843146 Use ExecutableFinder instead of relying on exit codes, refs #1829 2013-04-26 11:02:53 +02:00
Jordi Boggiano 91db9d920b Merge remote-tracking branch 'RobLoach/versioncontrolnotfound' 2013-04-26 10:59:25 +02:00
Beau Simensen ffd45b7678 Validate autoload options are of a supported type
Checks to ensure that the autoload options are one of the three supported
autoload types.

closes #952
2013-04-25 14:02:15 -05:00
Rob Loach 692c63cdd2 Fix for tests when Mercurial or git are not available 2013-04-25 14:57:58 -04:00
Robert Gruendler 5160dd2f5e Return different error code for SolverProblemsException
To make it easier for external tools to detect SolverProblems and react
to them accordingly,
this PR introduces a new exit code.
2013-04-25 14:37:47 +02:00
Jordi Boggiano b41fd35c2b Remove unused use statement 2013-04-17 18:38:05 +02:00
Jordi Boggiano 0700cd9186 Adjust according to feedback 2013-04-17 17:37:22 +02:00
Jordi Boggiano db4055b778 Put a higher prio on replacers of the same vendor as the required package 2013-04-17 15:39:42 +02:00
Martin Hasoň fa0d62ab6a Settings of the same repository for a package is allowed. 2013-04-11 13:25:04 +02:00
Martin Hasoň 02f92e678f Fixed update alias packages in dry-run mode 2013-04-11 13:20:35 +02:00
Martin Hasoň 753a8345cb Added support for the alias of an aliased package 2013-04-11 13:20:34 +02:00
Martin Hasoň c39e958a6f Added test for ComposerRepository::whatProvides 2013-04-11 13:19:59 +02:00
Jordi Boggiano 3d953384fa Fix indenting detection in JsonManipulator, fixes #1788 2013-04-11 10:34:26 +02:00
Jordi Boggiano 91f995c871 Fix tests 2013-04-09 10:34:51 +02:00
Jordi Boggiano 069109e0f0 Add readme entry to lock file to explain what it is 2013-04-08 18:15:08 +02:00
Jordi Boggiano 3ce71466f1 Treat empty paths in autoloader as ".", fixes #1727 2013-04-07 11:34:58 +02:00
Martin Hasoň 07d2f17afe [Autoload] Make all paths relative for file portability 2013-04-05 15:01:51 +02:00
Jordi Boggiano 0a561d7bf1 Merge pull request #1773 from hason/filesystem
Fix normalization of relative paths
2013-04-05 03:59:10 -07:00
Jordi Boggiano 784dd0aad0 Fix tests 2013-04-05 12:58:50 +02:00
Martin Hasoň 97f67c09e4 Fix normalization of relative paths 2013-04-05 06:41:50 +02:00
Jordi Boggiano 1f79f36227 Add a couple version parser tests 2013-04-04 17:35:55 +02:00
Serge Smertin 07920c48a6 Removed dev-master as default version for versionless artifact 2013-04-03 23:49:32 +02:00
Jordi Boggiano f744ec16f5 Fix normalization of relative paths going up a few dirs, fixes #1759 2013-04-03 19:30:36 +02:00
Nils Adermann 57c34033ff Merge pull request #1754 from njam/issue-1754
Fix file pattern start matching if no slash
2013-04-03 05:45:50 -07:00
Jordi Boggiano b0297ef67a Add prefer-stable flag to pick stable package over unstable ones when possible 2013-04-02 18:40:42 +02:00
Jordi Boggiano fc54a48b52 Fix archiver tests on windows 2013-04-02 11:32:11 +02:00
Jordi Boggiano 59c4df5ba3 Merge remote-tracking branch 'hason/autoload' 2013-04-02 10:41:08 +02:00
Reto Kaiser 6f72e9570c Add a / to the beginning of a file matchin pattern if no / in rule.
See https://www.kernel.org/pub/software/scm/git/docs/gitignore.html
2013-04-01 23:04:00 +02:00
Reto Kaiser 918a55659e Call realpath() on result of sys_get_temp_dir()
On OSX the temp dir is within /var, which is a symlink to /private/var.
If this is not resolved, the comparison will fail when comparing to the result of `git archive` in testGitExcludes().
2013-04-01 21:37:47 +02:00
Martin Hasoň 3499610631 Fixed tests for autoloader generator 2013-04-01 09:28:02 +02:00
Martin Hasoň 48444a028c Added support for vendor dir excluded from working dir 2013-04-01 09:27:50 +02:00
Martin Hasoň 0851ef1afb Fixed behaviour of Filesystem::findShortestPath[Code] for paths with up-level references 2013-04-01 08:30:11 +02:00
Serge Smertin b0aa98f287 modified test in order not to depend on sorting order 2013-03-31 22:01:55 +02:00
Serge Smertin ac75a9e6d8 travis locale version order fixed 2013-03-31 21:53:34 +02:00
Serge Smertin b5e1457470 set version to dev-master to artifacts without version 2013-03-31 21:44:48 +02:00
Serge Smertin d45844fb63 added fixture dummy artifacts 2013-03-31 21:08:11 +02:00
Serge Smertin f25bfe09c5 added support for nested location of composer.json files within artifacts 2013-03-31 21:08:11 +02:00
Serge Smertin 586911f7a1 added verbose logging for artifact directory scan 2013-03-31 21:08:11 +02:00
Serge Smertin 4b176f11f2 added artifact repository initial functionality 2013-03-31 21:08:10 +02:00
Jordi Boggiano bf307de1d6 Fix tests 2013-03-28 20:42:25 +01:00
Nils Adermann 4af69c85ca Fix tests by passing proper working directory to processes 2013-03-28 13:33:40 +01:00
Nils Adermann 6066359944 Skip directories in zip generation, empty dirs won't get archived
This seems ok as we currently rely on git generating archives which does
not archive empty directories either.
2013-03-28 12:49:53 +01:00
Nils Adermann deae50392f Respect gitignore, gitattributes and hgignore files in archiving 2013-03-28 12:49:53 +01:00
Nils Adermann afcdad4b23 Define an option to exclude files in the archive command 2013-03-28 12:49:52 +01:00
Nils Adermann 3e26502561 Remove Mercurial and Git Archivers as they cannot implement exclude rules 2013-03-28 12:49:52 +01:00
Nils Adermann 33828b38df Use a saner file name for package archives 2013-03-28 12:49:52 +01:00
Nils Adermann bcbc50c0d6 Git can handle commit references in git archive just fine so use them 2013-03-28 12:49:52 +01:00
Nils Adermann ba51027680 Reorder ArchiveManager parameters to make the download manager optional 2013-03-28 12:49:52 +01:00
Matthieu Moquet a2b404e421 Cleaned archiver tests 2013-03-28 12:49:52 +01:00
Matthieu Moquet 9d24e17003 Fix workflow & typos 2013-03-28 12:49:52 +01:00
Matthieu Moquet c248115e04 Fix how download manager is constructed
This fixes tests due to upstream changes.
The createDownloadManager in the Factory now takes the config as extra
parameter.
2013-03-28 12:49:52 +01:00
Matthieu Moquet 60b1cc7d24 Create ArchiveManager with the Factory 2013-03-28 12:49:52 +01:00
Matthieu Moquet a733d76b33 Merged zip & tar archivers 2013-03-28 12:49:52 +01:00
Matthieu Moquet bfd2275cb0 Update interface to merge vcs with basic archivers 2013-03-28 12:49:52 +01:00
Matthieu Moquet 2fd17ecff8 Changed Package class due to upstream changes 2013-03-28 12:49:52 +01:00
Matthieu Moquet 20e717f975 Refactored the archiver package 2013-03-28 12:49:52 +01:00
Matthieu Moquet 3d0ce85db2 Moved archive Dumpers into its own Archiver package 2013-03-28 12:49:52 +01:00
Till Klampaeckel 2acb033057 Initial feature-dist
* extends BaseDumper, implements interface
 * put $keys into BaseDumper

 * WIP WIP WIP WIP
 * BaseDumper for utilities
 * interface to enforce 'dump()'
 * feature:
   * supports git
   * supports zip output
   * basic test to cover feature

 * add @todo for later
 * add vendor namespace to package name

 * add extension to getFilename() so we don't need to switch in there (HT, @naderman)

 * add extension (obviously 'zip' in ZipDumper)

 * create archive in destination dir (provided by __construct())

 * condensed ZipDumper
 * moved code to BaseDumper (hopefully easier re-use)

 * use ProcessExecutor from BaseDumper

 * fix assignments in __construct()
 * allow injection of ProcessExecutor

 * fix parameters

 * fix regex

 * write in 'system temp dir'
 * update test case (oh look, a duplicate regex)

 * move working directory related to BaseDumper

 * add quotes

 * place holder for these methods

 * use PharData to create zip/tar when necessary

 * add placeholder calls
 * add call to package() using PharData

 * finish downloadHg(), downloadSvn()

 * put to use

 * make BaseDumper abstract (to force extension)
 * make BaseDumper implement Interface (makes for less code in the implementation)

new functionality for dumping as .tar.gz

tar instead of tar.gz, new abstract dumpertest class

creates a local git repo instead of fetching a remote one

more oo-ish version of it

no constructor

 * refactor tests to be less linux-specific (used Composer\Util to wrap calls)

 * make filename only the version

 * various cs fixes (idention, tabs/spaces, doc blocks, etc.)
 * fixed a typo'd exception name

 * refactored downloading:
   * removed download*() methods
   * added dep on Composer\Factory to setup a DownloadManager instance

 * update CS with feedback from @stof

 * ArrayDumper doesn't extend BaseDumper anymore (hence no conflict on the interface)
 * move keys from BaseDumper back to ArrayDumper
 * interface now declares dump() to always return void

Apparently I had to update the lock.

CS fixes (tabs for spaces)
Bugfix: sprintf() was missing.

Fix docblock for @stof. ;)

Pull in lock from master.

Update lock one more time (hope it still merges).

whitespace

Revert ArrayDumper static keys
2013-03-28 12:49:52 +01:00
Jordi Boggiano 3cc5698e7b Allow PHP 5.2 autoloaders to consume namespace, classmap and include path files, fixes #1730 2013-03-27 18:45:33 +01:00
Jordi Boggiano d929a0813a Prepend the ClassLoader autoloader to avoid calling other previously registered autoloaders, fixes #1699 2013-03-16 16:14:55 +01:00
Jordi Boggiano ee60df708d Handle stability changes correctly, fixes #877
On update, packages that are less stable than the minimum-stability allows will
now be downgraded to their correct versions, even if they were installed as
unstable already.
2013-03-10 19:55:26 +01:00
Jordi Boggiano cfc8bf0730 Make phar build fails more debuggable 2013-03-10 13:58:49 +01:00
Jordi Boggiano be861f090a Remove filterPackages and add RepositoryInterface::search, refactor all commands to use new methods and remove all usage of the full package list for Composer repositories that support providers, fixes #1646 2013-03-10 13:40:52 +01:00
Jordi Boggiano 636aa965f7 Fix tests 2013-03-07 09:40:22 +01:00
Jordi Boggiano ea7d79ab03 Make sure platform requirements of the root package are enforced when installing from lock, fixes #1611 2013-03-03 20:05:46 +01:00
Jordi Boggiano c32470c7df Update docs, fix tests 2013-03-03 17:59:07 +01:00
Jordi Boggiano 4207fc3b19 Refactor require-dev handling to use one single repository and a one pass solving, fixes #719, fixes #1185, fixes #1330, fixes #789, fixes #640 2013-03-03 00:41:12 +01:00