1
0
Fork 0
Commit Graph

4130 Commits (825b4585938b692e0b20430a6fbd3054e4f0e7c9)

Author SHA1 Message Date
Pádraic Brady 825b458593 Fix missing opts for diagnose command 2014-03-02 19:50:48 +00:00
Pádraic Brady 6c7dd39837 Merge branch 'master' of github.com:composer/composer into tls-config 2014-03-02 18:58:31 +00:00
Pádraic Brady 69bbe0918d Minimal documentation updates 2014-03-02 18:24:03 +00:00
Pádraic Brady 49414a9790 Remove InputInterface passing from previous commits
- no longer necessary with IOInterface update
2014-03-02 17:43:31 +00:00
Pádraic Brady 470fb58273 Add a bundled cacert.pem as a last resort option 2014-03-02 14:06:47 +00:00
Jordi Boggiano fff913d6de Update deps 2014-03-01 21:25:32 +01:00
Jordi Boggiano 5fb005631a Tweaking dispatchScript method to be in line with the rest, and add devMode to *_AUTOLOAD_DUMP events 2014-03-01 21:22:01 +01: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 cea7c07cf2 Fix CS 2014-03-01 19:58:37 +01:00
Jordi Boggiano 1f2d8908f3 Merge remote-tracking branch 'olvlvl/fix_issue_2598' 2014-03-01 19:56:33 +01:00
Pádraic Brady 306ba77e93 Implement the RemoteFilesystem Factory everywhere...
- also fixes impacted test
2014-03-01 17:01:44 +00:00
Pádraic Brady 9881d76216 Adds Composer\Factory::createRemoteFilesystem():
- Implemented in self-update command
- Added to Composer\IO\BaseIO the getInputOption() and getInputArgument() getters to allow access to input
- Fixed some minor bugs
2014-03-01 14:32:07 +00:00
Pádraic Brady 6f0f17355f Small fix for validated NULL cafile in config 2014-02-28 20:43:53 +00:00
Pádraic Brady cb32c480be Validate disable-tls and cafile config file values 2014-02-28 20:40:57 +00:00
Pádraic Brady d8cbd9f057 Expand cli TLS options to other commands + misc fixes 2014-02-28 20:35:08 +00:00
Pádraic Brady bf01a55e53 Patch RFS test to set private fileUrl property and pass 2014-02-28 18:46:49 +00:00
Bilal Amarni db91454a13 added an autoload-dev section 2014-02-28 00:27:03 +01:00
Pádraic Brady 81b86acc53 Merge branch 'master' of github.com:composer/composer into tls-config
Conflicts:
	src/Composer/Util/RemoteFilesystem.php
2014-02-27 17:56:32 +00:00
Pádraic Brady a23d87520c Remove duplicate 5.6 ref from PR 2014-02-27 17:54:18 +00:00
Pádraic Brady 8abff794cd Fix CN matching to use correct host (should almost eliminate TLS retries where wildcard CNs are used) 2014-02-26 20:48:39 +00:00
Jordi Boggiano 0d4c2bb7d7 Fix github test 2014-02-26 17:38:58 +01:00
Jordi Boggiano 5b0dc99fec Reuse github existing tokens instead of failing, fixes #2724 2014-02-26 17:20:47 +01:00
Jordi Boggiano 1851c29dd3 Update code to work with #2766 2014-02-26 17:19:54 +01:00
Jordi Boggiano 9db2a537e5 Merge remote-tracking branch 'cs278/github-otp-support' 2014-02-26 16:16:13 +01:00
Nils Adermann edbc22f6bb Merge pull request #2766 from Seldaek/rfs_errors
Capture response bodies in exceptions when http requests fail
2014-02-26 16:11:09 +01:00
Jordi Boggiano 5067d76dbc Adjust test suite 2014-02-26 16:01:31 +01:00
Jordi Boggiano 28bb781324 Capture response bodies in exceptions when http requests fail 2014-02-26 15:53:27 +01:00
Jordi Boggiano e1e48b28f7 Update vendor dir modified time after every install/update, fixes #2764 2014-02-26 10:43:42 +01:00
Pádraic Brady 2972ec3d86 Show warning when we retry a TLS connection for downloads 2014-02-26 00:09:47 +00:00
Pádraic Brady c9c6849df0 Add Common Name (CN) matching checks and TLS connection retry (by default).
For example, the communicated host will be github.com, but the CN is *.github.com. Also not matching api.github.com.
The logic detects an initial TLS CN-mismatch error, and parses the correct CN from the error, then checks if the CN and URL have same host before retrying.
2014-02-25 22:50:24 +00:00
Pádraic Brady 30c6aa3183 Merge branch 'master' of github.com:composer/composer into tls-config 2014-02-25 18:49:33 +00:00
Nils Adermann b808ff5e28 Don't hardcode the URL to an https one either 2014-02-25 15:57:35 +01:00
Nils Adermann edfaf727e5 When using the github driver with no-api don't reset to an ssh url 2014-02-25 15:55:44 +01:00
Jordi Boggiano 665a2bd0c0 Tweak error message and make TransportException extend from RuntimeException, refs #2753 2014-02-25 13:34:39 +01:00
Jordi Boggiano a612b2affe Merge remote-tracking branch 'naderman/download-failover' 2014-02-25 13:25:27 +01:00
Jordi Boggiano c698c8655c Merge pull request #2754 from naderman/github-no-api
Make the github driver behave like git if "no-api" is specified.
2014-02-25 13:19:03 +01:00
Jordi Boggiano e4a3078685 Merge pull request #2751 from sndpl/issue/1966
Fix for #1966, use the preferred-install from the rootPackage
2014-02-25 13:13:23 +01:00
Pádraic Brady 83d4e3a940 Fixes from functional testing (need to automate this stuff!) 2014-02-24 20:59:04 +00:00
Pádraic Brady 600b6c8cb3 TLS support for Factory::createComposer() - for JsonFile remotes 2014-02-24 20:07:18 +00:00
Pádraic Brady a2bf14e381 Make disableTls a core RemoteFilesystem option - per method invites human error 2014-02-24 19:15:54 +00:00
Pádraic Brady 3cd979b324 Merge remote-tracking branch 'upstream/master' into tls-config 2014-02-24 18:56:45 +00:00
Nils Adermann 31fd6c233c Rethrow download exceptions when no options left & clean up code 2014-02-24 19:52:20 +01:00
Nils Adermann 1ccf4b0fc3 Correct the tests for dist urls for github 2014-02-24 19:51:03 +01:00
Nils Adermann a80fde97d5 Make the github driver behave like git if "no-api" is specified. 2014-02-24 19:36:56 +01:00
Nils Adermann 35fbe3fd42 Download failover means we can now always try github zip urls for dist 2014-02-24 18:53:34 +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
Sandy Pleyte ee62ec60f0 Remove old comment 2014-02-24 16:22:44 +01:00
Sandy Pleyte ab8f67e8cf Always use rootPackage config 2014-02-24 16:20:10 +01:00
Sandy Pleyte 9af5eaa574 Refactored the code with the switch statement. 2014-02-24 15:27:41 +01:00