1
0
Fork 0
Commit Graph

332 Commits (aacdcb1570a0a3796fe68fb3339e34df112a67e0)

Author SHA1 Message Date
Jordi Boggiano 418e2e28f3 Merge remote-tracking branch 'chEbba/tar-phar-downloader'
Conflicts:
	src/Composer/Downloader/PearDownloader.php
2011-11-15 11:20:47 +01:00
Jordi Boggiano 3ad905ae99 Lift openssl requirement for github archives (thanks @pborreli) 2011-11-15 11:07:05 +01:00
Jordi Boggiano 61d17524b8 Merge remote-tracking branch 'origin/master' 2011-11-15 10:51:32 +01:00
Joseph Bielawski d6cd6a4aef Use `RuntimeException` instead of `UnexpectedValueException` when zip extension is not enabled 2011-11-14 23:05:08 +01:00
Igor Wiedler 3c036428de replace current file in self-update command 2011-11-13 00:31:38 +01:00
Igor Wiedler b2f71dcb6a trim getcomposer.org/version output 2011-11-13 00:23:10 +01:00
Igor Wiedler 6697385ee2 also check for non-zero status code for git command 2011-11-13 00:22:52 +01:00
Igor Wiedler b15ec17a06 implement a self-update command (closes #83) 2011-11-12 19:44:28 +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 ad8e85ab32 Previous change was wrong... We want to update to a specific version, so hg pull -u won't work. 2011-11-12 12:05:27 +01:00
Per Bernhardt ee508725c6 Simpler 2011-11-12 10:27:45 +01:00
Jordi Boggiano e060ead6c2 Use script-safe git argument to check for modifications 2011-11-11 12:02:08 +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
Per Bernhardt 25e86fc6c9 Merge remote-tracking branch 'upstream/master' into mercurial-support 2011-11-10 11:04:42 +01:00
Henrik Bjørnskov 25fa4ec60c Rename HelpCommand to AboutCommand
Because of the native Symfony\Component\Console\Command\HelpCommand it
is not possible to have a custom HelpCommand unless a lot of code is
duplicated. Therefor change the HelpCommand to AboutCommand.
2011-11-08 11:51:01 +01:00
Per Bernhardt c6e4984a62 New downloader for mercurial 2011-11-08 09:14:34 +01:00
Henrik Bjørnskov f85a31e2b0 Change the wording and link directly to packagist.org. 2011-11-07 14:30:01 +01:00
Henrik Bjørnskov 247f237f93 HelpCommand
Simple HelpCommand that displays the same information about Composer
that is availible in the README.md file.
2011-11-07 14:19:15 +01:00
Henrik Bjørnskov 8180117584 AutoloadGenerator.php miscalculates the path
Add tenary check to make sure relative specified paths arent seen as
absolute.

Fixises #94
2011-11-07 09:29:37 +01:00
Nils Adermann 20db55e3aa Merge pull request #88 from Seldaek/installerinstaller
Add InstallerInstaller, refactored AutoloadGenerator, fixes #59
2011-11-06 16:08:52 -08:00
Jordi Boggiano 4b5abaf44f Fixes in PEAR support 2011-11-06 20:24:52 +01:00
Jordi Boggiano 1a7bf8a7f8 Bugfixes 2011-11-06 01:09:48 +01:00
Jordi Boggiano b7f6cf69ab Add tests and fixes some issues 2011-11-05 23:54:05 +01:00
Jordi Boggiano d4b7f802df Fix typos 2011-11-05 23:54:03 +01:00
Jordi Boggiano c8859240d2 Add InstallerInstaller, refactored AutoloadGenerator, fixes #59 2011-11-05 23:54:01 +01:00
Jordi Boggiano f572bbb0bf Allow JsonLoader to load by file name 2011-11-05 23:53:40 +01:00
Jordi Boggiano 293c45fabe Fix unescaped backslash issue 2011-11-05 23:53:20 +01:00
Jordi Boggiano 4002cab25b Merge pull request #87 from Seldaek/vcs
Add VCS Repository and Git + GitHub drivers
2011-11-04 08:15:34 -07:00
Jordi Boggiano 60db5d2c3b Adjust phar compiler to work with composer autoloader 2011-11-04 11:11:06 +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 5e3c55f171 Add support for multiple packages defining the same namespace prefix 2011-11-03 21:10:39 +01:00
Jordi Boggiano bd712db727 Reverse-orders namespaces by specificity 2011-11-03 21:05:01 +01:00
Jordi Boggiano 0cfbea624e Add warnings if OpenSSL is not enabled, fixes #84 2011-11-03 19:58:49 +01:00
Jordi Boggiano 82c1170fa1 Allow any package type to be installed by the default installer, fixes #86 2011-11-03 19:41:17 +01:00
Jordi Boggiano 1844940a39 Stricter validation for the repositories config 2011-11-03 19:32:28 +01:00
Jordi Boggiano 4c2e8596aa Add VCS Repository and Git + GitHub drivers 2011-11-03 19:24:20 +01:00
Jordi Boggiano 066a0db752 Add detection for unescaped backslashes 2011-11-01 16:02:56 +01:00
Jordi Boggiano f5aa3e6c79 Add detection for extra commas in arrays 2011-11-01 14:13:22 +01:00
Nils Adermann bca917db49 Merge pull request #79 from Seldaek/json_parsing
Add more json validation rules
2011-10-31 08:57:02 -07:00
Jordi Boggiano c129d570e8 Add more json validation rules 2011-10-31 15:01:46 +01:00
Nils Adermann 5bd1722d7e Merge pull request #77 from benja-M-1/master
Fix the exception "Invalid argument supplied for foreach()"
2011-10-30 16:24:05 -07:00
Benjamin Grandfond 72bfe8b92c Fix Exception in Request
Fix the exception "Invalid argument supplied for foreach()" when the
install command is launched multiple times.
2011-10-30 23:53:44 +01:00
Jordi Boggiano 1feebcafe2 Add update command, fixes #28 2011-10-30 23:16:12 +01:00
Jordi Boggiano 7493cf7654 Fix locked installs 2011-10-30 22:56:10 +01:00
Jordi Boggiano 9108a3af7f Fix PlatformRepo packages not being seen as installed 2011-10-30 22:09:00 +01:00
Jordi Boggiano 8aaac35ca1 Make installer type case insensitive 2011-10-30 22:01:37 +01:00
Jordi Boggiano 6b6d6b6d82 Add --dev flag to InstallCommand to do source installs, fixes #26 2011-10-30 20:59:41 +01:00
Jordi Boggiano 36a724fa51 Search only for packages from the local repository in the locker 2011-10-30 20:29:52 +01:00
Jordi Boggiano 1ca3e5e5e2 Generate a map separated from the autoloader, fixes #74
Also the loader is now returned by the autoload.php
2011-10-30 20:29:06 +01:00
Jordi Boggiano b100df33d8 Make ArrayDumper and ArrayLoader reversible 2011-10-30 20:16:41 +01:00
Jordi Boggiano 4904e76185 Install every package in its own directory, fixes #73 2011-10-30 19:10:37 +01:00
Nils Adermann 56fab04c93 Merge pull request #71 from fabpot/filesystem-bug
Filesystem bug

Object of class Composer\Json\JsonFile could not be converted to string
2011-10-30 05:04:37 -07:00
Fabien Potencier 03b06ebbca Fix path for autoloaded libs as the .composer/ dir is now under the vendor/ one. 2011-10-30 09:51:16 +01:00
Fabien Potencier 1450ebd837 Fix bug in an exception, added unit tests 2011-10-30 09:09:46 +01:00
Nils Adermann e4f40272a3 Conflict handling: lastWeakWhy stores a rule, not a rule id 2011-10-29 20:05:06 +02:00
Nils Adermann 3e0e893f26 Correctly output decision map when debugging 2011-10-29 20:04:52 +02:00
Nils Adermann 85d38c653f Also detect updates resulting from feature rules rather than update rules 2011-10-29 19:39:18 +02:00
Nils Adermann 2056c4c732 Allow downgrades and uninstalls in the default policy 2011-10-29 19:23:52 +02:00
Jordi Boggiano d3aa8336dc Fix typo 2011-10-29 19:21:34 +02:00
Jordi Boggiano 1e0710b32f Move .composer into vendor (hardcoded for now) 2011-10-29 18:13:48 +02: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
Nils Adermann 4827ea95e5 Merge pull request #69 from fabpot/added-exception
Add an exception when a Filesystem repository is corrupted
2011-10-29 03:36:03 -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
Fabien Potencier 9e7ebd9280 Fix autoload.php generator 2011-10-29 07:24:30 +02:00
Jordi Boggiano d16b928baf Add DebugPackagesCommand 2011-10-28 01:19:46 +02:00
Jordi Boggiano 220ab7f4ee Comments 2011-10-28 01:05:56 +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 a263a3cb7d Dont enforce optional fields 2011-10-28 00:34:59 +02:00
Jordi Boggiano 89caa9b117 Rewrite autoloader to use only PSR-0, remove splitting of PEAR path 2011-10-27 22:09:01 +02:00
Jordi Boggiano c03a739548 Use psr-0 instead of psr0 2011-10-24 12:03:11 +02:00
Jordi Boggiano be47991b36 Build a standalone autoload file 2011-10-23 21:23:37 +02:00
Jordi Boggiano 8b0fee3f35 Fix platform packages not being added to the pool 2011-10-23 21:10:45 +02:00
Jordi Boggiano 5e52d5c1ad Fix tests 2011-10-23 19:55:43 +02:00
Jordi Boggiano b667cf98c2 Clone added packages in update 2011-10-23 19:40:42 +02:00
Jordi Boggiano 2b15c4321b Typo fix 2011-10-23 19:40:40 +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 17286e993c Add exception when json files can not be read 2011-10-23 19:40:32 +02:00
Jordi Boggiano 450095e61d Adjust RepositoryManager to handle multiple repositories of one type 2011-10-23 19:40:30 +02:00
Jordi Boggiano 33e7001d7e Fix typo 2011-10-23 19:40:26 +02:00
Jordi Boggiano c33fc80d23 Add supports() to the InstallerInterface 2011-10-23 19:40:24 +02:00
Jordi Boggiano 8a571c05db Fix issues in new autoloader code 2011-10-23 19:40:22 +02:00
Jordi Boggiano c8cfa15f52 Use wrapped PlatformRepository only in the Solver 2011-10-23 19:40:20 +02:00
Jordi Boggiano 28369ea623 Add missing docblock 2011-10-23 19:40:18 +02:00
Igor Wiedler 808a2c9448 [composer] wrap UniversalClassLoader require in if class_exists 2011-10-23 19:40:16 +02:00
Igor Wiedler aa7c4b8ef7 [autoload] refactor getFullPackage into populateAutoloadInformation 2011-10-23 19:40:14 +02:00
Igor Wiedler 9d238330b3 [autoload] refactor autoload generation code into a AutoloadGenerator 2011-10-23 19:40:12 +02:00
Igor Wiedler 72a1f66b7a rename installAs to target-dir 2011-10-23 19:40:10 +02:00
Igor Wiedler 409b2e47ae return early (this is very important) 2011-10-23 19:40:08 +02:00
Igor Wiedler ea31039556 [autoload] autoloading prototype 2011-10-23 19:40:06 +02:00
Nils Adermann 571c14adf9 Prefer original packages over replaced packages of same repository priority 2011-10-22 17:20:45 +02:00
Nils Adermann 44369472be Define the calculation of package priorities in a single method 2011-10-22 16:48:23 +02:00
Nils Adermann 1b6f57e651 Correctly implement priorities and version numbers in the default policy 2011-10-22 16:44:10 +02:00