70 Commits (3fa7a6cb5104cc2235a767ee7b2df1475c4763a0)

Author SHA1 Message Date
Calin Marian a888b082b0 Make urlEncodeAll private 8 years ago
Calin Marian 862a13a17e Urlencode Gitlab project names
Url encode all non alphanumeric characters in project name for GitLabDriver.

If the project name has "." characters in it, which is supported in Gitlab, the Gitlab API will 404 when requesting the branches or tags of the repository. This commit urlencodes all non alphanumeric characters in the project name in requests to the Gitlab API.
8 years ago
ianlet 5874132857 return https url of the repository given gitlab project is public 8 years ago
Jordi Boggiano 40df5dddee Add secure-http:false option to disable the https default of gitlab driver when using ssh urls, fixes #5254 8 years ago
msarca 9f58c3d6e3 Fixed a bug that prevented interactive authentication to work properly 8 years ago
Jordi Boggiano 49d7d65933 Add verbosity input support to IOInterface 9 years ago
Jordi Boggiano 64b0d72183 Add missing git fallback function in gitlab driver 9 years ago
Jordi Boggiano 6d9e04c0e9 Tweak regex usage 9 years ago
Jaapio df92cb09ab extract regex to const. To be able to reuse it 9 years ago
Jaapio b471440ea0 Adds support for gitlab install in subfolder
Since gitlab can be hosted on any url also subdirectories should be
supported. (e.g https://mycompany.com/gitlab).
This supports only http and https protocols since the gitlab api url
is derived from the package repository url. And the ssh protocol doesn't
support folders this way.
9 years ago
Jordi Boggiano 020c126c27 Fix CS 9 years ago
Jérôme Tamarelle 4255db9e31 Allows SSH urls for gitlab and detect the scheme
SSH urls uses HTTPS to request the API
9 years ago
Jerome TAMARELLE db056b8383 Fix retry authentification on gitlab oauth 9 years ago
Jerome TAMARELLE 211d4632bb Fix compatibility with PHP 5.3 9 years ago
Roshan Gautam 98bc4e4483 Gitlab:Use proper fallbacks if archive download is failing 9 years ago
Roshan Gautam 4d5e5b3fb5 Remove parasite 9 years ago
Roshan Gautam f870396568 Add oauth2 support for gitlab 9 years ago
Jérôme Tamarelle c1edfbb65c Add tests on GitLabDriver
Add an interactive prompt for gitlab token

Update doc for gitlab-domains

Add tests on GitLabDriver::supports

Update doc + CS

Optimize branch detection + fix typos

Fix test on GitLab support as it depends on SSL

Remove useless method + fix repository URL containing .git
9 years ago
Jerome TAMARELLE 5fece6ae83 Use Gitlab blob API to retreive composer.json files
Store missing composer.json into the cache

[GitLab] Reduce API calls by caching

Download ZIP archives from gitlab + fix repo URL

Fix cached commit objects
9 years ago
Henrik Bjørnskov 782c6303bc Initial GitLab Driver
This is a proof of concept, and mostly done to gather feedback on the
structure of the driver and to see if this is something that Composer
should include in core.

Various review changes based on Stof comments.

* Remove cleanup() as it is implemented by the abstract class.
* Remove wrong comment in getReferences
* Implement getSource (as GitHubDriver does)
* Finish phpDocs for methods.
9 years ago