38 Commits (0f94dcd848512a284ede8095732902db894712a5)

Author SHA1 Message Date
Jordi Boggiano c89f6338c2 CS tweaks, refs #6592 7 years ago
Jordi Boggiano 6fd504ef41 Add per_page to do less pagination, refs #6592 7 years ago
Helmut Januschka be1f675992 GitlabDriver V4 Paging
V4 of gitlab api requires paging in tags/branches
7 years ago
Jordi Boggiano 6832eacb01 Update GitLab API usage to v4, fixes #6453 7 years ago
Martin Hasoň 88ec172bd8 Fix CS 7 years ago
Rob Bast e2eb8f2201
support for gitlab subgroups, closes #6349 7 years ago
Jordi Boggiano be201924cd Revert "Changes the query string parameter `sha` to `ref` to reflect the GitLab API"
Fixes #6344, refs #6198

This reverts commit 8a496cd2a7.
7 years ago
Jordi Boggiano 122e422682 CS fixes 7 years ago
Sjoerd Adema 8a496cd2a7 Changes the query string parameter `sha` to `ref` to reflect the GitLab API
Updated the unit test to reflect the change
Fixes #6198
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
Jordi Boggiano f3d0e4660d Fix urlencoding of gitlab dots, fixes #6064 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 ec27777341 code improvements as suggested
Thanks for your input!
8 years ago
Thomas Flori d70dfd2df3 revert style changes 8 years ago
Thomas Flori 33d026bb06 fix code style to be PSR-2 conform
I tried to solve all PSR-2 style guide violations in files that I changed. One I could not solve: const can not concatenate in php 5.3.
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 285c4a1ac6 Merge branch '1.2' 8 years ago
Jordi Boggiano f78f6c963d Add note about rawurlencode, refs #5503 8 years ago
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