94 Commits (713bc4de1d506a83f341e033569ded22bff7d228)

Author SHA1 Message Date
Jordi Boggiano 713bc4de1d Minor fixes and updated the rest of the code/tests to use HttpDownloader 6 years ago
Jordi Boggiano 734735c691
Merge pull request #7574 from seferov/patch-1
Remove github API request retries as it is not needed anymore
6 years ago
Pierre du Plessis 33341130a9
Fix typo in variable name in GitHubDriver 6 years ago
Farhad Safarov 4014c914ab remove Github 404 retries 6 years ago
Jordi Boggiano e718f34ba4 Properly detect rate limit errors on github before outputting messages, fixes #6621 6 years ago
Jordi Boggiano 1933532ec5 Fix github authentication request, fixes #5767 7 years ago
Jordi Boggiano 97d09a9b77 Make github driver code more robust 7 years ago
Jordi Boggiano 122e422682 CS fixes 7 years ago
Jordi Boggiano f200343cf2 Fix gitlab driver issues not asking for auth when token is missing, and not falling back properly to git driver 7 years ago
Pete Akins 95e9ad57d4 Don’t add github specials if there is no composer data
This can happen if an identifier doesn’t have a composer.json file (but other identifiers do)
8 years ago
Thomas Flori 7896b1ffab cache only rendered composer information
As suggested we cache now only composer information and also the rendered version again. Perforce is using the same property cache as others and the `Util\Perforce::getComposerInformation()` is using the newly created methods.
8 years ago
Thomas Flori 597f834ae9 add getFileContent function
This function is very similar to a part from getComposerInformation - so we can use this function in getComposerInformation too. And because it is almost everywhere the same we can put it to abstract class.

By implementing getComposerInformation in abstract class we need to add the getChangeDate to interface too. Only Problem: perforce seems not to support a ChangeDate. For this we use 'now' to have at least something.
8 years ago
Jordi Boggiano 1c4acf3583 Refactor code to use RemoteFilesystem facilities for header parsing, refs #5435 8 years ago
Phil Lello 7a112b0395 Check headers for missing scopes before asking for new OAuth token
This patch stops the GitHub VCS driver prompting for a new access
token when a repository is deleted/hidden.

Specifically, it checks the X-OAuth-Scopes and X-Accepted-OAuth-Scopes
response headers to see if the scopes on the current request match
those needed by the API call. If they do, the 404 means that the repo
is deleted/hidden, and there's no point asking for a new OAuth token.
8 years ago
Jordi Boggiano 8bfb2e8bc2 Add a getter to fetch the repo data from the outside of the github driver 8 years ago
Jordi Boggiano 4c50136522 Avoid caching nulls, refs #5234 8 years ago
Jordi Boggiano 49d7d65933 Add verbosity input support to IOInterface 9 years ago
Jordi Boggiano 29312be4df Strict typing fixes 9 years ago
Jordi Boggiano afd98b74f1 Fix handling of www.github.com in GitHubDriver, fixes composer/packagist#572 9 years ago
Rob Bast cb336a5416 Implement writeError throughout Composer 9 years ago
Jordi Boggiano 2b7b605839 Skip empty time values 10 years ago
Jordi Boggiano d5294ef91b Update repo url from github and handle trailing slashes, refs composer/packagist#354 refs composer/packagist#423 10 years ago
Jordi Boggiano b7402c3b2d Ignore gh-pages branches, fixes #3073 10 years ago
Jordi Boggiano ac497feaba CS fixes 10 years ago
Jordi Boggiano eebffacd9f Use pagination to get tags/branches from the github API 10 years ago
Nils Adermann b808ff5e28 Don't hardcode the URL to an https one either 11 years ago
Nils Adermann edfaf727e5 When using the github driver with no-api don't reset to an ssh url 11 years ago
Jordi Boggiano a612b2affe Merge remote-tracking branch 'naderman/download-failover' 11 years ago
Nils Adermann a80fde97d5 Make the github driver behave like git if "no-api" is specified. 11 years ago
Nils Adermann 35fbe3fd42 Download failover means we can now always try github zip urls for dist 11 years ago
Kim Laï Trinh 691f784f92 fix bug introduced in https://github.com/composer/composer/pull/2375 11 years ago
Gennady Feldman e5045ce215 Per request from Jordi Boggiano (Seldaek) making Config 2nd parameter in supports() 11 years ago
Gennady Feldman 93ebfd54b1 Adding Config as parameter to the Driver::supports(), updating all drivers, user and tests. 11 years ago
Gennady Feldman d8dbcab710 Refactoring my code to use a protected function to generate API Url. 11 years ago
Gennady Feldman e78499d28d First working version of GitHub Enterprise API. 11 years ago
Nicolas Bastien 52711d121c Remove unused use statement. 11 years ago
Jordi Boggiano 444bdb2e25 Fix VCS drivers to always use identifiers and not tag names since those can change or disappear 11 years ago
Jordi Boggiano 1a50f74c4c Improve reporting of github rate limiting errors, fixes #2183 11 years ago
Jordi Boggiano 5267bafa2c Retry fetching composer.json files twice since github returns 404s at random at the moment
@bhuga confirmed it is the best approach until github finds a fix. /cc @gillesruppert enjoy whatever your bet wins you
11 years ago
Andrey Utkin 340e960614 Allow svn repositories to reside deeper than module root 11 years ago
Jordi Boggiano 259a25344d Use the api to get file contents instead of raw.github.com
raw.github does not like the access_token query param
12 years ago
Jordi Boggiano 17a5bdf162 Normalize github URLs generated by the GitHubDriver, fixes #1551 12 years ago
Jordi Boggiano 432955e0ae Fix github url escaping, raw.github.com doesnt like escaped slashes 12 years ago
Jordi Boggiano 224934831d Change all github archive URLs to API URLs and handle fallback for those to nodeload 12 years ago
Chris Smith 120f52c632 Generate private zipball urls for private repositories 12 years ago
Jordi Boggiano 15475f0ef2 Rename cache dirs to consolidate them by purpose 12 years ago
Igor Wiedler 4959c2bdc6 Replace references of a11n with a12n where appropriate
Authorization => Authentication.
12 years ago
Jordi Boggiano 1682532b80 Update code to use new github archive URLs 12 years ago
Jordi Boggiano bebd1ce9c7 Always check for OAuth token in git config, fixes #1243 12 years ago
Jordi Boggiano 39e69a3b12 Refactor OAuth acquisition code to generalize it 12 years ago