1
0
Fork 0
Commit Graph

148 Commits (b6c1afaa47e963e354279b6efc8682dcd20a8889)

Author SHA1 Message Date
Mathias Brodala ad56577223 Ensure scripts description items are strings 2017-12-18 10:43:30 +01:00
Mathias Brodala 80d0c2029b Move "scripts-description" to toplevel
Fixes #6881
2017-12-18 10:14:24 +01:00
Jordi Boggiano b07be842a0 Remove feature-branches option as it is misnamed and duplicates the non-feature-branches option, refs #6475 2017-08-07 18:14:04 +02:00
Wil Hall f0924fb878 Add htaccess-protect option for disabling the creation of .htaccess files 2017-06-15 11:06:13 -04:00
Claus Due 965f1f42d1 Add support for feature-branches setting
A negative list of non-feature-branches names
is already supported - this patch adds a list of
branches names which *will* be considered as
feature branches.

Allows changing the currently hardcoded set of
expected feature branch names, from:

* master|trunk|default|develop

To any set of names or patterns that you desire.
2017-06-11 19:02:51 +02:00
Jordi Boggiano 95987f4aca Do not validate URLs properly in json schema, fixes #6243 2017-03-10 09:27:24 +01:00
Jordi Boggiano e556649ad9 Allow trunk-path, branches-path and tags-path to be bool as well as string, fixes #6238 2017-03-09 09:56:45 +01:00
Jordi Boggiano 0b27952dec Fix typo 2017-01-03 11:34:29 +01:00
Christophe Coevoet a012311077 Refactor the validation of inline package definitions
Reusing the root schema was a mistake, because the root schema does
not have the dist and source properties (which are populated by repository
objects).
2017-01-03 11:16:13 +01:00
Christophe Coevoet 37505f40f4 Loosen the validation for the URL field of VCS repositories
The URL of the VCS repository may not match the uri pattern of the JSON
schema spec, for instance when using a SSH URL of the repository.
2017-01-02 16:24:55 +01:00
Christophe Coevoet 8cc1859492 Fix the validation of required properties for inline packages 2017-01-02 12:22:26 +01:00
Mike Gladysch 9a38d0a222 Fixed #6021 2017-01-02 10:29:40 +01:00
Christophe Coevoet 40e6d19d73 Implement schema validation for repositories 2016-12-29 17:09:22 +01:00
Nicolas Grekas 6d4e60b991 Add --apcu-autoloader option to enable APCu caching of found/not-found classes 2016-12-06 11:21:44 +01:00
Jordi Boggiano 43903a3979 Merge branch '1.2' 2016-11-06 17:38:53 +01:00
Christophe Coevoet 1882f9a502 Enhance the json schema with validation for map objects 2016-11-03 13:19:20 +01:00
moyo c4ac59601f Update related docs and config definitions 2016-07-06 16:25:18 +08:00
gitname 4f58c24195 Fix typo 2016-06-19 13:26:30 -07:00
Jordi Boggiano 98b0af1386 Add _comment to schema to make it valid, fixes #5364 2016-05-24 10:48:11 +01:00
Tomáš Markacz bb05ce5c7f Add RSS channel to support section in composer schema (closes #5073) 2016-03-28 10:23:34 +02:00
Serghei Ilin dacb97d6ad Add missing "secure-http" config property
"secure-http" configuration property recently introduced and available in documentation https://getcomposer.org/doc/06-config.md#secure-http is missing in the schema.
2016-03-11 07:04:12 +01:00
Jordi Boggiano 06be9b88c2 Merge remote-tracking branch 'slbmeh/feature/gh-2787' 2016-02-25 19:03:36 +00:00
Rob Bast 474541e9aa apply comments
- add capath to json schema
- simplify factory
- hash_file and sha256 for CA checking
- remove exception as scenario should not occur
- remove executable bit from CA file
- make CA file also group/world writable (we overwrite invalid content anyway)
    to avoid permission errors as much as possible
2016-01-22 09:14:37 +01:00
Jordi Boggiano 96ff17c520 Cleanups of XDG support, refs #1407 2016-01-18 18:26:05 +00:00
Jordi Boggiano f8dff0867c Remove --disable-tls/--cafile flags and rely solely on config options plus some wording clarifications 2016-01-10 16:37:11 +00:00
Michal Gebauer ce74477899 Configuration of GitLab driver 2015-12-03 14:30:07 +01:00
Jordi Boggiano 430c6f3972 Allow string in abandoned format as well, refs #4621 2015-11-21 14:13:13 +00:00
Thiago Carvalho 320533bcf9 Fixes #4610 2015-11-21 08:58:52 +01:00
Jordi Boggiano 084f6de24e Merge remote-tracking branch 'trivago/add_exclude'
Conflicts:
	doc/04-schema.md
	src/Composer/Autoload/AutoloadGenerator.php
2015-10-30 00:00:44 +00:00
Jordi Boggiano 615638c7c3 Simplify bin-compat by removing the nosymlink option, refs #3704 2015-10-27 15:36:12 +00:00
Kocsis Máté 1bfb4faac6 Removed unnecessary type in the JSON schema 2015-10-02 20:29:52 +02:00
Kocsis Máté 87c16073ec Merge branch 'master' of https://github.com/composer/composer into feature-bin-compat 2015-07-22 15:54:20 +02:00
Thibault Jamet 3ab05fb54f Update composer-schema with archive configuration 2015-06-17 20:53:09 +02:00
Rob Bast 95dbb6d9db add docs to support section in composer schema, closes #4055
Note that this does not yet add this attribute @ packagist though
2015-05-28 13:15:56 +02:00
Josh Di Fabio 03b7388eb2 Fix typo in composer-schema.json 2015-05-06 09:57:35 +01:00
Possum 2e99b9fdf5 Use https where possible 2015-05-04 19:37:57 +02:00
Jordi Boggiano a57c51e8d7 Finalize platform override feature
- Added tests, docs
- Persist to lock file
- Add support in config command
- Added to json schema
2015-04-29 22:38:07 +01:00
msiebeneicher 7522a33079 Merge branch 'master' of https://github.com/composer/composer into add_exclude
# By Jordi Boggiano (30) and others
# Via Jordi Boggiano (37) and Morgan Campbell (1)
* 'master' of https://github.com/composer/composer: (83 commits)
  Update 01-basic-usage.md
  Revert 331425bcb3 as well, fixes #3612
  Revert "Disable overwrites when no-ansi is present, fixes #3612"
  Update deps
  Use justinrainbow/json-schema 1.4
  Improved wording
  Fix docs basic-auth => http-basic
  Add test for Generics class
  Single variable for traits and enums
  Use HHVM_VERSION instead of HPHP_VERSION
  Add support for using classmap to autoload Hack enums
  Re-use existing autoloader suffix if available, fixes #3701
  Report Travis CI build success early
  Test on HHVM nightly releases. Allow to fail.
  Make parseJson safer
  Use get home from Config instead of factory
  Fix env override regression, fixes #3820
  [create-project] Used no progress value for dependencies
  Add docBlock and fix CS
  Fix output of first line of progress when output is not decorated, refs #3818
  ...
2015-03-25 16:27:23 +01:00
isoroku e0657b60a2 Fix misspellings 2015-03-20 14:23:24 +00:00
Steve Buzonas bf08b6eb90 add support for package based install type preferences 2015-02-26 11:21:14 -05:00
Kocsis Máté ca0b5495b6 Made the type of bin-compat to enum in Composer schema 2015-02-21 20:19:32 +01:00
Jordi Boggiano 53925295c3 Merge pull request #3699 from trivago/non_feature_branches
added non-feature-branches
2015-02-14 15:44:45 +00:00
msiebeneicher f28785a49d Merge branches 'add_exclude' and 'master' of https://github.com/trivago/composer into add_exclude
* 'add_exclude' of https://github.com/trivago/composer:

# By Jordi Boggiano (239) and others
# Via Jordi Boggiano (184) and others
* 'master' of https://github.com/trivago/composer: (638 commits)
  Simplified syntax
  github deprecation changes
  fix bug in GitDriver::supports for remote repo
  strict check, testcase(s)
  Fix regex matching and add more tests for addSubNode, refs #3721, fixes #3716
  solve edge case for `composer remove vendor/pkg`
  chmod 644 src/Composer/Command/RemoveCommand.php
  Avoid failing on composer show of lazy providers
  Show more info when a download fails
  Add notion of autoloader skipping autoload-dev rules
  Satis grammar fix.
  remove unused statements
  removed needless output param
  + limit git ls-remote to heads + escape repo url
  add check for remote Repository in GitDriver::supports
  suppress the prefix
  Improve notice about /usr/local/bin
  Reuse current file permissions
  Add the P character to the regex pattern
  Added deprecated warning for the dev option
  ...

Conflicts:
	src/Composer/Autoload/AutoloadGenerator.php
	src/Composer/Autoload/ClassMapGenerator.php
2015-02-11 17:54:35 +01:00
Rob Bast d02eb8760b strict check, testcase(s) 2015-02-10 12:55:49 +01:00
Kocsis Máté 63b3bc61b2 Added docs for bin-compat 2015-02-03 21:06:53 +01:00
rkerner abc9d60fcc added non-feature-branches to handle non-numeric branches matching configured patterns not been handled as feature branches 2015-02-02 14:36:50 +01:00
Bryan Davis ad1f8e6c5a Add classmap-authoritative config setting
Add a "classmap-authoritative" configuration setting that can be used to
disable searching the various prefix and fallback directories for
classes that have not been registered with the
Composer\Autoload\ClassLoader class map. This setting can be used to
optimize performance by avoiding a potentially large number of
`file_exists` calls when Composer is being used in a program with
additional autoloader facilities. Use of the setting implies
"optimize-autoloader" to ensure that the most complete class map
possible is generated.

Closes #3603
2015-01-03 17:35:25 -07:00
Mads Kristensen acf3638762 Converted to draft v4 schema
Editors such as Visual Studio leverages JSON Schema draft v4, but this schema was authored in the old draft v3. With just a few minor changes, the schema is now draft v4.

* Added `$schema` property to state it is using schema draft v4
* Changed `required` properties to arrays instead of strings. This is the only real difference from v3 to v4 in this schema
2014-11-28 14:02:05 -08:00
Jordi Boggiano 751190aafd Add new github-expose-hostname to docs/schema/config command, refs #3164 2014-10-17 17:21:59 +01:00
Jordi Boggiano 8035dbd714 Add full timezone date example, fixes #3038 2014-06-07 17:04:06 +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
Bilal Amarni db91454a13 added an autoload-dev section 2014-02-28 00:27:03 +01:00
René Kerner b0ec8ee096 * added exclude-from-classmap feature
* updated to latest master version
2014-01-27 11:42:54 +01:00
Robert Boloc 8a221854b1 changed name of the option to optimize-autoloader 2014-01-17 14:43:54 +01:00
Robert Boloc f67f04adfb added config option to optimize the autoloader always 2014-01-16 20:44:16 +01:00
Jordi Boggiano 8775a89710 deprecate target-dir and update docs to recommend psr-4, refs #2459 2014-01-03 16:46:56 +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
Jordi Boggiano f85a366eb9 Finalize new autoloader-suffix config value, refs #2524, fixes #1413 2013-12-26 17:40:52 +01:00
Stan Lemon 5fd3223aec Updates per @stof 2013-12-23 11:27:33 -05:00
Stan Lemon d6c46f2091 Allow the autoloader suffix to be configured from a project's composer.json 2013-12-22 22:01:42 -05:00
Andreas Hennings 39c09d5192 Add psr-4 stuff in a few more places. 2013-12-14 16:28:27 +01: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 34dd0e2850 Add new config option to json schema 2013-10-16 18:35:44 +02:00
Nils Adermann 01a08a2ff3 As preparation for composer plugins, rename custom installers to plugins 2013-08-30 12:51:40 +02:00
Sascha Egerer e31a0f8296 Add pre-status-cmd and post-status-cmd hooks 2013-08-01 08:44:07 +02:00
Tobias Munk dac2f03847 added script events to schema 2013-05-31 11:47:31 +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 b0297ef67a Add prefer-stable flag to pick stable package over unstable ones when possible 2013-04-02 18:40:42 +02:00
Nils Adermann 0b23643a44 Update json schema as archive include was removed 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
Miklós Márton 72a4146383 Scratch 'prefer-source'; 'preferred-install' is the bee's knees 2013-03-05 12:56:09 +01:00
Miklós Márton c92c69b10e Config option 'prefer-source' added to schema, refs #553 2013-03-04 20:23:55 +01:00
Jordi Boggiano f06c0cb580 Code reorgs and make bool values real booleans, refs #1637 2013-03-01 23:47:24 +01:00
Ricard Clau 48ac383599 initial steps with new config value, implementation of discard changes for git and svn 2013-02-28 19:02:19 +01:00
Jordi Boggiano 8518cd1be8 Add post-autoload-dump event to docs/schema 2013-02-22 18:44:50 +01:00
Jordi Boggiano 94e99b9c8b Update docs, config command and schema with all the config values 2013-02-12 11:16:52 +01:00
Jordi Boggiano e05391dc44 Improve validating array loader to avoid false positives 2012-11-05 14:18:04 +01:00
Jordi Boggiano 7023767501 Update docs and schema for new config option 2012-09-08 00:44:19 +02:00
Benjamin Eberlei 5c5e962b5a Add Files Autoloading key. This is a necessary feature to allow purely or partly functional libraries to be "autoloadable" by composer by calling require_once on every file in the "autoload"."files" list. 2012-06-02 18:18:33 +02:00
Jordi Boggiano 8c16c1bbef Update schema and add docs for support 2012-05-28 01:57:12 +02:00
Jordi Boggiano c694bd57a3 Merge remote-tracking branch 'digitalkaoz/issue_397' 2012-05-28 01:36:19 +02:00
Jordi Boggiano 66068fedcb Add minimum-stability flag on root package to filter packages by stability 2012-05-09 19:10:03 +02:00
Jordi Boggiano 14f7d10478 Fix typos 2012-05-01 16:03:46 +02:00
Michael Cullum 0edc94cdce Adding role to author information 2012-05-01 16:03:44 +02:00
Jordi Boggiano e88a831bd1 Update JSON schema 2012-04-14 23:38:07 +02:00
Jordi Boggiano 3c07b4338a Rename include-paths to include-path, add deprecated warnings, only generate file if it is needed 2012-04-08 17:42:57 +02:00
Christoph Hochstrasser f369104bb1 Packages can define include paths. 2012-04-04 09:46:31 +02:00
Jordi Boggiano 30cfb69739 Add support for mapping a namespace prefix onto many dirs in the autoload config 2012-03-28 17:09:33 +02:00
Jordi Boggiano f0a0d7ffa7 Add docs for metapackages 2012-03-24 18:20:27 +01:00
Igor Wiedler 0fe90c5d87 update some links to point to getcomposer.org 2012-03-23 09:08:52 +01:00
digitalkaoz 20ae7efa2b fixed CS 2012-03-17 13:07:13 +01:00
digitalkaoz 7bbe60459f added source key, and support section to arraydumper 2012-03-16 08:44:36 +01:00
digitalkaoz 7cdb793b40 added support section to composer.json 2012-03-16 08:44:07 +01:00
Jordi Boggiano 27eb249aab Merge remote-tracking branch 'beberlei/ClassMaps' 2012-03-10 01:22:40 +01:00
Benjamin Eberlei 1af3604303 Add support for class-map generation. 2012-03-05 13:26:46 +01:00
digitalkaoz 6929c42848 added schema/syntax validation for composer.json 2012-02-23 21:54:49 +01:00
Jordi Boggiano a71f9c71f0 Move schema into res folder 2012-02-20 16:35:13 +01:00