1
0
Fork 0
Commit Graph

177 Commits (9ecbc5176ec9fb877b87df186009824c8ee07c8d)

Author SHA1 Message Date
Henrique Moody 14adc0213e Added suport for PEAR2 repositories. 2012-02-11 12:57:39 -02:00
Beau Simensen d05f0a6e40 Addressed coding standard issues reported by @stof 2012-02-05 18:25:41 -08:00
Beau Simensen e1370be7a0 Continued refactoring of install() method, mainly by way of adding Composite Repository
* Rewritten `install()` method now takes a repository instead of a list of packages (per @nadermen)
 * Added Composite Repository
 * Added tests for Composite Repository
 * Removed "local repository" concept from Platform Repository
 * Removed some `use` statements for Platform Repository where it was not actually being used
2012-02-05 18:25:41 -08:00
François Pluchino a0afb88d5d Fix bug on authorization of file download for the private repositories 2012-02-05 20:21:06 +01:00
Jordi Boggiano 568d9dabf6 fix previous commit 2012-02-03 20:32:09 +01:00
Pádraic Brady 3f7e7dff33 Fix a small bug where some PEAR channels' category link href doesn't contain a starting forward slash 2012-02-02 19:57:37 +00:00
Brian Clozel 23d85f1900 fix typo 2012-01-24 10:38:32 +01:00
Brian Clozel 33a0ba69de fix issue #251 - Using $this not in object context 2012-01-23 19:41:44 +01:00
Jordi Boggiano 702d415472 Fix usage of the ProcessExecutor 2012-01-22 20:08:57 +01:00
Jordan Alliot 9c27e38654 Moved proxy handling to a new class so that it can be reused in other parts of Composer 2012-01-21 20:58:36 +01:00
digitalkaoz 627deab51c fixed #230 2012-01-20 20:50:21 +01:00
François Pluchino 6d4ccaa398 Fix display overwrite() 2012-01-18 13:58:44 +01:00
Jordi Boggiano e218b811e0 Convert static Process into an executor that can be injected 2012-01-18 09:27:57 +01:00
Jordi Boggiano 434c9ecdeb Cleanups of IOInterface 2012-01-17 23:08:12 +01:00
Jordi Boggiano 6492118f29 Merge remote-tracking branch 'francoispluchino/master'
Conflicts:
	src/Composer/Repository/Vcs/GitDriver.php
	src/Composer/Repository/Vcs/HgDriver.php
	src/Composer/Repository/Vcs/SvnDriver.php
2012-01-17 22:31:27 +01:00
Jordi Boggiano 6cfed52aae Merge remote-tracking branch 'digitalkaoz/process' 2012-01-17 21:47:37 +01:00
François Pluchino 8053878b6a Merge branch 'master'
Conflicts:
	src/Composer/Console/Application.php
2012-01-17 17:56:06 +01:00
François Pluchino 03f5eee3fa Fix some improvements 2012-01-17 14:53:50 +01:00
François Pluchino 541285022d Replace CURL with copy() and file_get_contents() 2012-01-17 12:52:14 +01:00
François Pluchino a5fb4abb36 Fix some improvements 2012-01-17 10:29:54 +01:00
Christophe Coevoet bca786d5c3 Fixed the tests
array_filter preserves the keys even when filtering an array indexed
numerically.
2012-01-16 22:40:14 +01:00
Christophe Coevoet bd1d20b2c9 Fixed CS 2012-01-16 22:11:31 +01:00
François Pluchino 7888ec5313 Add Authentification in FileDownloader 2012-01-16 20:09:32 +01:00
François Pluchino a10f92aafe Convert Wrapper class to ConsoleIO class 2012-01-16 14:14:15 +01:00
Christophe Coevoet fc17e26bc3 Added a method to find packages by name 2012-01-16 12:44:47 +01:00
François Pluchino f65b34860f Merge branch 'test'
Conflicts:
	src/Composer/Downloader/FileDownloader.php
	src/Composer/Repository/Vcs/HgBitbucketDriver.php
2012-01-12 12:19:13 +01:00
François Pluchino 9af46ad800 Add Helper Wrapper 2012-01-11 13:55:05 +01:00
Hugo Hamon 398efbb894 [Repository] removed unused local $versions variable from VcsRepository::initialize() method. 2012-01-11 11:38:51 +01:00
Hugo Hamon 09f0ba6604 [Repository] removed unused local $match variable from HgBitbucketDriver::supports() method. 2012-01-11 11:35:36 +01:00
Hugo Hamon 70d7ab43ee [Repository] removed unused local $match variable from GitHubDriver::supports() method. 2012-01-11 11:34:45 +01:00
Hugo Hamon 7842149a51 [Repository] removed unused local $match variable from GitBitbucketDriver::supports() method. 2012-01-11 11:33:21 +01:00
Hugo Hamon 66f214e446 [Repository] removed unused $requires local variable from PearRepository::fetchFromServer() method. 2012-01-11 11:30:46 +01:00
François Pluchino 86070a8b6e Replace getHttpSupport() to getScheme() 2012-01-11 01:11:56 +01:00
François Pluchino 9b0e50cdc2 Restore the old regex 2012-01-11 01:09:30 +01:00
François Pluchino 013d145bcd Add InputInterface and OutputInterface 2012-01-10 18:50:16 +01:00
François Pluchino fa793649fa Add a VcsDriver abstract class.
All XxxDriver extends this abstract class now.
2012-01-10 15:44:13 +01:00
Jordi Boggiano 126c57d07c Fix notice 2012-01-08 19:26:40 +01:00
digitalkaoz 897ff9126d seperate class for Process, using this one all over the place 2012-01-05 11:12:54 +01:00
digitalkaoz a15567cea6 make use of process component fixes #105 2012-01-03 17:07:56 +01:00
Jordi Boggiano f051778192 Clean up unneeded initialization stuff 2011-12-21 16:43:37 +01:00
Per Bernhardt df5da58b87 Made HgDriver work on Ubuntu 2011-12-13 06:50:35 +01:00
root 399a406018 Fixed notices for edge cases. 2011-12-13 06:49:55 +01:00
Per Bernhardt 2fc49aa88b Stop hg from parsing project's repository information while installing dependencies from source (HgDownloader) or initializing a VcsRepository (HgDriver). 2011-12-13 06:49:03 +01:00
Per Bernhardt d78548cbf9 Added mercurial's "default" branch as a valid dev version (same as master / trunk). 2011-12-13 06:47:33 +01:00
Per Bernhardt f74dafc08c Fixed root identifier: Use global hash instead of local revision 2011-12-13 06:47:00 +01:00
Jordi Boggiano f6b9488bf0 Move root package handling to a dedicated loader and make ArrayLoader more strict 2011-12-13 01:05:29 +01:00
Matthias Pigulla ebbc807de0 Fix whitespaces and add strict return code checking 2011-12-12 10:57:57 +01:00
Matthias Pigulla 8ab60b7030 Still did not get it right 2011-12-10 14:23:37 +01:00
Matthias Pigulla f24164dc16 forgot this when testing 2011-12-10 14:15:00 +01:00
Matthias Pigulla 7cdb8b6b3b Some changes as suggested in the pr 2011-12-10 14:11:51 +01:00
Matthias Pigulla 4e1cb32f8c Allow for file://-URLs here as well 2011-12-09 23:37:52 +01:00
Matthias Pigulla 2fc8e06d81 hg repos must not be hosted somewhere in particular, but detection may become expensive.
Additionally, suppress warnings and support file://-local repos
2011-12-09 23:10:31 +01:00
Jordi Boggiano 381fcb248a Allow parsing of branches with invalid names but explicit versions in composer.json 2011-12-07 11:44:03 +01:00
Jordi Boggiano 139de0f79d Fix handling of git repos with no tag, fixes #146 2011-12-06 22:19:24 +01:00
Jordi Boggiano 2e8762744f Fix ComposerRepository ctor 2011-12-03 12:43:38 +01:00
Jordi Boggiano 1277277ec6 Fix CS 2011-11-27 20:25:30 +01:00
Jordi Boggiano 8df7eb0475 Add SvnDriver for the VcsRepository 2011-11-27 20:07:42 +01:00
Jordi Boggiano 9f55335011 Expose the Driver of the VcsRepository 2011-11-27 20:02:28 +01:00
Jordi Boggiano 8a127ed131 Fix URL handling for PEAR repositories 2011-11-20 21:33:54 +01:00
Jordi Boggiano 4fdc602037 Make VcsRepository drivers configurable 2011-11-20 21:23:50 +01:00
Jordi Boggiano 63d52b3e1b Minor fixes to allow branch -dev versions 2011-11-20 21:13:17 +01:00
Jordi Boggiano 3b8ee5dd54 Use pretty name/version in lock file and debug:packages, fixes #98 2011-11-20 15:42:32 +01:00
Jordi Boggiano 8e6f8ae57e Add prettyVersion to packages, fixes #76 2011-11-20 15:06:12 +01:00
Jordi Boggiano e6710e311c Merge remote-tracking branch 'webfactory/mercurial-support' 2011-11-15 15:12:15 +01:00
Jordi Boggiano 8a2afee55f Rethrow on unexpected failures 2011-11-15 14:59:49 +01:00
Jordi Boggiano 22a93e7273 Check we have a driver before using it 2011-11-15 11:54:26 +01:00
Jordi Boggiano 1fd9174c0d Fix auto-date parsing in GitDriver 2011-11-15 11:53:26 +01:00
Jordi Boggiano b350dda0fe Skip GitHub driver if openssl is disabled 2011-11-15 11:29:25 +01:00
Per Bernhardt b969309440 Register new drivers... 2011-11-12 13:23:47 +01:00
Per Bernhardt bf21dfeb31 Added drivers for bitbucket (hg and git) 2011-11-12 13:22:41 +01:00
Per Bernhardt 38198a5f36 Fixed blank lines. 2011-11-10 13:39:51 +01:00
Per Bernhardt b0d2897af3 Fixed unused variables. 2011-11-10 13:12:19 +01:00
Per Bernhardt 3e5fd85768 Fixed CS and unused variables 2011-11-10 13:10:05 +01:00
Per Bernhardt ee4d4ee3fa Added HgDriver for the VcsRepository 2011-11-10 11:58:48 +01:00
Jordi Boggiano 4b5abaf44f Fixes in PEAR support 2011-11-06 20:24:52 +01:00
Jordi Boggiano f2ab4d08e5 Fetch default HEAD branch from remote 2011-11-04 10:07:31 +01:00
Jordi Boggiano b6537324ef Change to GitHub API v3 and fetch default branch 2011-11-04 09:59:55 +01:00
Jordi Boggiano 4c2e8596aa Add VCS Repository and Git + GitHub drivers 2011-11-03 19:24:20 +01:00
Fabien Potencier 1450ebd837 Fix bug in an exception, added unit tests 2011-10-30 09:09:46 +01:00
Jordi Boggiano 305856f2f5 Merge pull request #68 from fabpot/small-opt
Move loader creation to avoid creating it more than once, unified the way
2011-10-29 07:12:14 -07:00
Fabien Potencier 5ffc349642 Add an exception when a Filesystem repository is corrupted 2011-10-29 07:48:23 +02:00
Fabien Potencier 527c711149 Move loader creation to avoid creating it more than once, unified the way packages are loading across repository classes 2011-10-29 07:43:26 +02:00
Jordi Boggiano 23c1c40b3d Fix missing reference in local repository 2011-10-28 00:36:02 +02:00
Jordi Boggiano dcfe310cff Fix PEAR repository 2011-10-28 00:35:35 +02:00
Jordi Boggiano 5e52d5c1ad Fix tests 2011-10-23 19:55:43 +02:00
Jordi Boggiano aeab3c16fd Add PackageRepository to define inline packages
Example:

{
    "repositories": {
        "Monolog": {
            "package": {
                "source": {
                    "url": "git://github.com/Seldaek/monolog.git",
                    "type": "git",
                    "reference": "1.0.1"
                },
                "version": "1.0.1",
                "name": "monolog/monolog"
            }
        }
    }
}
2011-10-23 19:40:36 +02:00
Jordi Boggiano 9b24734c9d Add parsing and on-the-fly loading of repositories defined in packages 2011-10-23 19:40:34 +02:00
Jordi Boggiano 450095e61d Adjust RepositoryManager to handle multiple repositories of one type 2011-10-23 19:40:30 +02:00
Jordi Boggiano c8cfa15f52 Use wrapped PlatformRepository only in the Solver 2011-10-23 19:40:20 +02:00
Igor Wiedler 72a1f66b7a rename installAs to target-dir 2011-10-23 19:40:10 +02:00
Igor Wiedler ea31039556 [autoload] autoloading prototype 2011-10-23 19:40:06 +02:00
everzet d5ba884f8b fixed potential error 2011-10-01 17:06:14 +03:00
everzet 1cca62dc97 move json parsing instructions into single class object 2011-10-01 16:01:33 +03:00
everzet cc2f2b79ca added findPackage() method to the RepositoryManager and RepositoryInterface 2011-10-01 15:34:09 +03:00
Jordi Boggiano c863c31881 Rename platform packages so they avoid conflicts with any vendor 2011-09-27 01:10:21 +02:00
Jordi Boggiano 2e10b5c17e Expand normalization feature and adjust tests 2011-09-26 00:59:32 +02:00
Jordi Boggiano 46a67733f8 Adjust codebase to the new VersionParser 2011-09-26 00:01:22 +02:00
Jordi Boggiano e5907a3431 Remove WrapperRepository in favor of PlatformRepository wrapping the local repo 2011-09-25 23:42:40 +02:00
Jordi Boggiano 4fe80d7abb Add WrapperRepository class 2011-09-25 23:05:29 +02:00
everzet 0694f5217a Implemented RepositoryManager 2011-09-25 21:00:05 +03:00