299 Commits (ff59bbdab0fb5bef212f291bbf9f152c7467fd7d)

Author SHA1 Message Date
Jordi Boggiano 53925295c3 Merge pull request #3699 from trivago/non_feature_branches
added non-feature-branches
10 years ago
rkerner abc9d60fcc added non-feature-branches to handle non-numeric branches matching configured patterns not been handled as feature branches 10 years ago
Jordi Boggiano cd38d1e096 Tweaks to also support 1.0-dev style aliases, refs #3480 10 years ago
Damian Mooyman 7bb85ff21e Support aliases for numeric branches. Fixes #3461 10 years ago
Christophe Coevoet 267af928df Add a failing testcase for stability flags in complex constraints
Refs #3570
10 years ago
Nicolas Grekas e821ac2772 Persist prefer-lowest in composer.lock 10 years ago
Jordi Boggiano d4523119ea Use caret operator for 0.x releases when guessing versions, fixes #3518 10 years ago
Jordi Boggiano 06e96a78e2 Update ranges for 0.N versions, refs #3518 10 years ago
Jordi Boggiano 9438f3a58f Use better semver ranges for 0.x versions, fixes #3518 10 years ago
Jordi Boggiano 92f4c1fb35 Allow and ignore semver build metadata, fixes #2422 10 years ago
Jordi Boggiano f363f9d370 Add support for caret (^) operator 10 years ago
Jordi Boggiano ebab9db27a Add support for hyphen ranges 10 years ago
Jordi Boggiano 69ef80124f Add support for capital X in 3.X and || for OR 10 years ago
Jordi Boggiano 4c713978e9 Add more tests and validate that there is only one comma 10 years ago
Jordi Boggiano ca168d478b Spaces are now equivalent to comma in constraints and mean AND 10 years ago
Jordi Boggiano 029f709300 Fix parsing stability suffixes in multi constraints, fixes #1732 10 years ago
Nils Adermann 6f4be698a5 Merge pull request #3325 from rdohms/implementing-abandoned-packages
Abandoned Package Warnings
10 years ago
Jordi Boggiano 94926218e8 CS fixes 10 years ago
Jordi Boggiano 95d49ce638 Add additional test for beta without dash separator support, fixes #3331 10 years ago
Rafael Dohms 346133d2a1 PR Review
- reverted comma removal
- made getReplacementPackage consistent
- removed abandoned flag if false
10 years ago
Rafael Dohms d6d087d348 Support for Abandoned in Packages
Added parsing for abandoned property into the CompletePackage Object.
10 years ago
Jordi Boggiano e6165e6495 Tweak rules to allow guessing based on branch aliases and avoid greedy constraints on alpha/beta/RC packages, refs #3096 10 years ago
Jordi Boggiano cf75ec7763 Merge remote-tracking branch 'weaverryan/require-version-select' 10 years ago
François Pluchino 6c6a623229 Fix invalid version format 10 years ago
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).
10 years ago
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.
10 years ago
David Zuelke d47d9eb253 remember prefer-stable setting in composer.lock 10 years ago
Jordi Boggiano ac497feaba CS fixes 10 years ago
Jordi Boggiano 64ac32fca9 Merge pull request #2785 from Firehed/master
Add @generated annotation to lockfile (ref PR 2210)
10 years ago
Jordi Boggiano 32cd883daa Rename options to transport-options, refs #2189 10 years ago
Jordi Boggiano 31092843fd Only load options when they come from the lock file, not from standard metadata, refs #2189 10 years ago
Jordi Boggiano 016a016455 Merge remote-tracking branch 'lcobucci/master'
Conflicts:
	src/Composer/Downloader/FileDownloader.php
10 years ago
Jordi Boggiano e7b82cdd88 Only check in require and for non-platform packages, add flag to make this warning optional, refs #2320 10 years ago
Jordi Boggiano e0004d0656 Merge remote-tracking branch 'stof/validate_unbound_constraints' 10 years ago
Eric Stern 634d1aba63 Add @generated annotation to lockfile readme, giving a hint for linters and other static analysis tools 10 years ago
Sandy Pleyte 3e161e8ea9 Updated the regexp and added an other test case for sub dirs 10 years ago
Sandy Pleyte 1d51e54a31 Updated the regexp and added more test cases. 10 years ago
Sandy Pleyte 21109ada22 Fix for #2739 (and #1755), added support for directory excludes in the .gitignore file like /directory or directory/ 10 years ago
Zbigniew a4a9d0f0e4 [Archiver] Rules in GitExcludeFilter are too broad 11 years ago
Jan Prieser d57e2b9ffb added ZipArchiver to actually compress zip files 11 years ago
Jordi Boggiano b23742e30c Merge remote-tracking branch 'donquixote/feature/psr4-complete' 11 years ago
Luís Otávio Cobucci Oblonczyk 0f2c0ab389 Merge remote-tracking branch 'upstream/master'
Conflicts:
	src/Composer/Downloader/FileDownloader.php
11 years ago
Pascal Borreli 2f4df9d459 Fixed typos 11 years ago
Andreas Hennings e4bbd83f13 expected message in ValidatingArrayLoaderTest should also contain psr-4 as allowed key. 11 years ago
Jordi Boggiano 80499bb024 Detect ~> misuse and suggest fix, fixes #2476 11 years ago
Morgan BRUNOT ca7cb68dd5 Check exclude from downloaded composer.json 11 years ago
Christophe Coevoet 6cc95c43e3 Add a warning for unbound constraints in the validating loader
Closes #2165
11 years ago
Jordi Boggiano 11a0d16ccc CS fixes 11 years ago
Jordi Boggiano 38917c2047 Add parallel build to travis script 11 years ago
Luís Otávio Cobucci Oblonczyk 8630aab93f Package options must be a non mandatory array and should be loaded when
exists
11 years ago
Luís Otávio Cobucci Oblonczyk 28d0e08785 Package options should be dumped if exists 11 years ago
Jordi Boggiano 0044c75ca0 Fix detection of tags when the current tag is not a valid version 11 years ago
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
11 years ago
Jordi Boggiano f59f443fce CS fixes and one more test for safety, fixes #1855 11 years ago
Jordi Boggiano 533512879e Merge remote-tracking branch 'sminnee/fix-tilde-constraint-stabililty' 11 years ago
Jordi Boggiano bd345c3b43 Add IO to proc executor in a few more places to get more debug info out 11 years ago
Jordi Boggiano af1f5a3423 Merge pull request #2091 from jaypea/archivemanager
cleanup temporary download location when archiving
11 years ago
Jordi Boggiano d740f50277 Fix parsing of inferred stability flags that are more stable than the min stability 11 years ago
Jan Prieser c6db86e444 cleanup temporary download location when archiving 11 years ago
Jordi Boggiano 8d0b7f278e CS fixes 11 years ago
Jordi Boggiano e848c76cbc Only compare branches as versions in the policy to sort packages, but not in the solver, fixes #1817 11 years ago
Beau Simensen 215556df7c Use --tags to get non-annotated tags as well. 11 years ago
Beau Simensen f9fe39e624 Fixed the existing test and added a new one for git tag version guessing. 11 years ago
Sam Minnee 324ef0f9bb Fixed upper bound of wildcard matches.
Follow-on from 95b4348afa
11 years ago
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.
11 years ago
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.
11 years ago
Jordi Boggiano 9d948eb795 Merge branch 'disjunctive' 11 years ago
Jordi Boggiano faa419cc0e Merge remote-tracking branch 'hason/alias' 11 years ago
Jordi Boggiano 0cccafbe81 Add disjunctive multi-constraints with |, refs #643, fixes #1342 11 years ago
Jordi Boggiano e16caa9bd7 Add EmptyConstraint 11 years ago
Jordi Boggiano 3aa7843146 Use ExecutableFinder instead of relying on exit codes, refs #1829 11 years ago
Jordi Boggiano 91db9d920b Merge remote-tracking branch 'RobLoach/versioncontrolnotfound' 11 years ago
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
11 years ago
Rob Loach 692c63cdd2 Fix for tests when Mercurial or git are not available 11 years ago
Martin Hasoň fa0d62ab6a Settings of the same repository for a package is allowed. 11 years ago
Martin Hasoň 753a8345cb Added support for the alias of an aliased package 11 years ago
Jordi Boggiano 069109e0f0 Add readme entry to lock file to explain what it is 11 years ago
Jordi Boggiano 1f79f36227 Add a couple version parser tests 11 years ago
Nils Adermann 57c34033ff Merge pull request #1754 from njam/issue-1754
Fix file pattern start matching if no slash
11 years ago
Jordi Boggiano fc54a48b52 Fix archiver tests on windows 11 years ago
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
11 years ago
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().
11 years ago
Jordi Boggiano bf307de1d6 Fix tests 11 years ago
Nils Adermann 4af69c85ca Fix tests by passing proper working directory to processes 11 years ago
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.
11 years ago
Nils Adermann deae50392f Respect gitignore, gitattributes and hgignore files in archiving 11 years ago
Nils Adermann afcdad4b23 Define an option to exclude files in the archive command 11 years ago
Nils Adermann 3e26502561 Remove Mercurial and Git Archivers as they cannot implement exclude rules 11 years ago
Nils Adermann 33828b38df Use a saner file name for package archives 11 years ago
Nils Adermann bcbc50c0d6 Git can handle commit references in git archive just fine so use them 11 years ago
Nils Adermann ba51027680 Reorder ArchiveManager parameters to make the download manager optional 11 years ago
Matthieu Moquet a2b404e421 Cleaned archiver tests 11 years ago
Matthieu Moquet 9d24e17003 Fix workflow & typos 11 years ago
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.
11 years ago
Matthieu Moquet 60b1cc7d24 Create ArchiveManager with the Factory 11 years ago
Matthieu Moquet a733d76b33 Merged zip & tar archivers 11 years ago
Matthieu Moquet bfd2275cb0 Update interface to merge vcs with basic archivers 11 years ago
Matthieu Moquet 2fd17ecff8 Changed Package class due to upstream changes 11 years ago
Matthieu Moquet 20e717f975 Refactored the archiver package 11 years ago
Matthieu Moquet 3d0ce85db2 Moved archive Dumpers into its own Archiver package 11 years ago
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
11 years ago
Jordi Boggiano ea7d79ab03 Make sure platform requirements of the root package are enforced when installing from lock, fixes #1611 11 years ago
Christian Riesen 6f5ab3ed5c Add other valid versions to test for stability 12 years ago
Jordi Boggiano 97dfbefa72 Add support for arbitrary values for the references in version constraints 12 years ago
Jordi Boggiano 908d2d91da Fix case insensitive matching 12 years ago
perprogramming 704837c574 - Sort links and keywords in ArrayDumper result (fixes issue #1499)
- Adapt ArrayDumperTest
12 years ago
Jordi Boggiano cea4c05021 Fix parsing of ~ version constraint with unstable versions, fixes #1476 12 years ago
Igor Wiedler e7c7e2f70d Consistently describe composer as dep mgr as opposed to package mgr
Closes #1207.
12 years ago
Jordi Boggiano bb685d9c7f Fix license validation and add feedback of values to ease reading 12 years ago
Jordi Boggiano cbd91b5952 Fix FILTER_VALIDATE_URL not supporting IDNs 12 years ago
Jordi Boggiano e05391dc44 Improve validating array loader to avoid false positives 12 years ago
Jordi Boggiano 967c771b26 Add warnings to ValidatingArrayLoader that are simply stripped by default, add reporting of warnings when loading branches 12 years ago
Jordi Boggiano 4b531771bd Add validators for package links and minimum-stability 12 years ago
Jordi Boggiano 573e4b2a7c Merge branch 'newrepo' 12 years ago
Jordi Boggiano a59a5c4581 Merge remote-tracking branch 'simensen/sem-version-support' 12 years ago
Jordi Boggiano beb9a5bd72 Code optimizations: avoid loops in match() 12 years ago
Beau Simensen 081ead1635 Version Parsing: Consider <x.y.z to be <x.y.z-dev
> Consider `<x.y.z` to be `<x.y.z-dev.` Because in 99%
> of the cases that's what the intent is. Could be
> overriden with `<x.y.z-stable`.

- @Seldaek

refs #643
12 years ago
Beau Simensen 96a76eeffc Semantic Version Parsing: ~version
Implemented `~` according to #643 and used the following versions
as a test case as defined by @Seldaek:

 * "~1.2.3.4" = ">=1.2.3.4 <1.2.4.0-dev"
 * "~1.2.3" = ">=1.2.3 <1.3.0-dev"
 * "~1.2" = ">=1.2.0 <2.0.0-dev"
 * "~1" = ">=1.0.0 <2.0.0-dev"

Refs #643
12 years ago
Jordi Boggiano 62bb5b339b Allow parsing of stability modifiers combined with multi-constraints 12 years ago
Martin Hasoň 29034ea3e0 Added support for the root package in the array dumper 12 years ago
Jordi Boggiano 8d7e5cdda5 Fix target-dir with multiple slashes too 12 years ago
Jordi Boggiano a9195eb05f Add a couple test cases 12 years ago
Jordi Boggiano f377e9ca87 Fix possible vendor-dir "evasion" via target-dir 12 years ago
Jordi Boggiano 83239aa338 Update lock file to contain the complete package info, fixes #890 12 years ago
Jordi Boggiano 0932f65a17 Return 7 chars and not 6 for short git hashes, formatting fixes 12 years ago
Jordi Boggiano 338730b19b Merge remote-tracking branch 'zczapran/issue/1043_wrong_output_for_versions_when_updating' 12 years ago
Jordi Boggiano e01a9c564d Fix parsing of stability for lowercased RC versions 12 years ago
Zbigniew Czapran 730f206cea removed unneccesary PackageMock and trailing whitespaces 12 years ago
Zbigniew Czapran 80c2736021 in VersionParser only truncate the version if hash 12 years ago
Jordi Boggiano d6de4a0036 Rename Package interfaces to reduce BC issues 12 years ago
Jordi Boggiano fe15c6a827 Make dev version matches preserve the proper case, fixes #935 12 years ago
Jordi Boggiano c65af3e3a1 Add ValidatingArrayLoader and more validation for the validate command 12 years ago
Kirill chEbba Chebunin c62d4179b3 Remove unnecessary use statement from ArrayDumperTet 12 years ago
Kirill chEbba Chebunin 75d756f665 Add getSupport method to the PackageInterface. 12 years ago
Jordi Boggiano d87b8d3493 Merge pull request #886 from palex-fpt/pear-binaries
Pear binaries
12 years ago
Nils Adermann 560c3254d4 Correctly treat dev versions for other types of comparisons and add tests 12 years ago
Jordi Boggiano 2f7130200a Prevent seeing dev versions as equal when they are not, fixes #848 12 years ago
Alexey Prilipko 75d3d57117 Version parser stability regexp update 12 years ago
Alexey Prilipko 22aef0124e Revert Locker change, ignore PEAR packages whose version cannot be parsed. 12 years ago
Alexey Prilipko ac3cebc633 Update PEAR Package Extractor to use 'task:replace', 'phprelease' commands and install role='script' files
Add PearInstaller
Change PEAR packages type from 'library' to 'pear-library' and dist type from 'pear' to 'file'
Remove PearDownloader
Refactor Channel Installer
12 years ago
Jordi Boggiano ffecd39d33 Refactor repositories handling in config/factory/loader, fixes #828, fixes #826 12 years ago
Jordi Boggiano 3ac11b932c Expose default repositories in system config file 12 years ago
Jordi Boggiano 4a6ae454c2 Merge remote-tracking branch 'dpb587/multiple-repos'
Conflicts:
	src/Composer/Factory.php
	src/Composer/Package/Loader/RootPackageLoader.php
	tests/Composer/Test/Package/Loader/RootPackageLoaderTest.php
12 years ago
Jordi Boggiano 4fcc114f97 Merge pull request #808 from palex-fpt/not-equal-operator
Add '<>' operator to Version Parser
12 years ago
Nils Adermann a756f7f880 Merge pull request #798 from cs278/dev-hash-detached-head
Ensure composer works with a detached head
12 years ago
Jordi Boggiano 73a865bf2a Fix tests 12 years ago
Alexey Prilipko 9f08764e9a Add '!=' handling to VersionConstraint::matchSpecific 12 years ago
Alexey Prilipko e130386612 Add '<>' operator for Version Parser 12 years ago
Grégoire Pineau f4e9dd4fb8 Fixed PSR rules 12 years ago
Chris Smith 5e4b2fcc8d Test for detached heads yielding an invalid version 12 years ago