Stefan Grootscholten
78fcb5a366
Add support section to composer data for bitbucket repositories.
2016-06-17 17:35:43 +02:00
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.
2016-06-16 07:40:54 +01:00
Stefan Grootscholten
ccfd9018b8
Add unit tests for the GitBitbucketDriver class.
2016-06-11 17:33:58 +02:00
Stefan Grootscholten
2d52531365
Add unit tests for the Bitbucket class.
2016-06-11 17:33:58 +02:00
Stefan Grootscholten
1241e3e83c
Simplify the if statement.
2016-06-11 17:33:58 +02:00
Stefan Grootscholten
42f4d344a4
Fix the replacement of the credentials.
...
://username:password@domain
was replaced by ://://:***@domain
instead of ://username:***@domain or ://***:***@domain
2016-06-11 17:33:58 +02:00
Stefan Grootscholten
ea11a95359
Provide fallback when using basic authentication.
...
When composer is configured to use bitbucket basic authentication (a bitbucket username and password), you get an error
when trying to install dependencies.
This commit prevent the install process to be aborted due to uncaught exceptions.
2016-06-11 17:33:58 +02:00
Stefan Grootscholten
7716ef059b
Add the access token as query string parameter.
2016-06-11 17:33:58 +02:00
Stefan Grootscholten
d9fd9fca6b
Implement changes after review of stof.
...
Rename getContents to getContentsWithOAuthCredentials.
Make gitDriver a private property.
2016-06-11 17:33:58 +02:00
Stefan Grootscholten
1084a3927e
Implement Bitbucket Util in GitBitbucketDriver.
2016-06-11 17:33:58 +02:00
Stefan Grootscholten
307fd4023b
Fetch composer.json using the oauth api.
2016-06-11 17:33:58 +02:00
Stefan Grootscholten
6c8b0cc2c1
Change authentication for bitbucket to oauth.
2016-06-11 17:33:58 +02:00
Stefan Grootscholten
0e500d4c91
Make API URL available for external use.
2016-06-11 17:33:58 +02:00
Jordi Boggiano
a8edaad381
Merge pull request #5335 from carlcraig/1.1
...
Update bitbucket oauth instructions
2016-06-11 17:00:13 +02:00
Jordi Boggiano
5a3d60c0cf
Output warning for invalid-looking packagist config, fixes #5404
2016-06-11 15:48:44 +01:00
Jordi Boggiano
73d9a4717d
Update list of ciphers /cc @cs278
2016-06-11 11:19:58 +01:00
Jordi Boggiano
08ef916bed
Change default value
2016-06-06 11:22:06 +01:00
Jordi Boggiano
151ed2a0e5
Merge pull request #5392 from donatj/master
...
Adds --no-suggest to install and update commands
2016-06-06 11:18:24 +02:00
Steve Buzonas
576721946c
show pretty version in both scenarios
2016-06-03 19:05:04 -04:00
Steve Buzonas
7b6e06c686
normalize version to provide consistent output from package version vs vcs version
2016-06-03 17:57:23 -04:00
Sven Wittevrongel
ca6f7b365b
revert 3ad5f1843b
2016-06-03 12:09:50 +01:00
Sven Wittevrongel
b80c33ba5c
type-hint array for setConfig & setScripts
2016-06-03 12:00:32 +01:00
Sven Wittevrongel
3ad5f1843b
Remove getScript from CompletePackage (it is root-only)
2016-06-03 12:00:17 +01:00
Sven Wittevrongel
cccfb2fb22
RootAliasPackage fix
2016-06-03 11:51:07 +01:00
Sven Wittevrongel
d0b0d1ad24
RootPackage::getScripts
2016-06-02 14:33:26 +01:00
Sven Wittevrongel
dec44e6ba9
getconfig in RootAliasPackage
2016-06-02 14:20:36 +01:00
Sven Wittevrongel
3905f275d6
RootPackage::getConfig
2016-06-02 14:02:11 +01:00
Jordi Boggiano
a8bb93aa1f
Fix typo
2016-06-02 11:59:21 +01:00
Jordi Boggiano
02628acf26
Merge branch '1.1'
2016-06-02 10:22:15 +01:00
Jordi Boggiano
cb71873aa1
Update semver dep, fixes #5397
2016-06-02 10:22:07 +01:00
Steve Buzonas
64afdcc2aa
remove var_dump
2016-06-01 21:47:19 -04:00
Jordi Boggiano
72c9fab976
Merge pull request #5394 from svengerlach/more-no-scripts
...
--no-scripts option for remove and require command
2016-06-01 23:34:08 +02:00
Jordi Boggiano
11e53e6f84
Merge pull request #5396 from Soullivaneuh/patch-1
...
Use caret operator for unbound version constraints doc
2016-06-01 23:33:21 +02:00
Jordi Boggiano
5ae816d508
Merge pull request #5393 from mlocati/eval-strict-types
...
Strip out declare strict_types from plugins
2016-06-01 23:32:45 +02:00
Jordi Boggiano
c2129dedbc
Merge pull request #5398 from fulldecent/patch-3
...
More specific language and clearer warning
2016-06-01 23:22:42 +02:00
William Entriken
618026fd3e
More specific language and clearer warning
2016-06-01 16:25:50 -04:00
Sullivan SENECHAL
567497ae9f
Use caret operator for unbound version constraints doc
...
Because the caret is closer to semver than the tilde.
2016-06-01 15:24:13 +02:00
Sven Gerlach
da4d5c670a
Added option --no-scripts for require and remove command to 03-cli.md
2016-06-01 12:32:54 +02:00
Michele Locati
0b08daff02
Simplify evaluation of PHP code
2016-06-01 12:32:06 +02:00
Sven Gerlach
4fd35baf1f
Added --no-scripts InputOption for RemoveCommand
2016-06-01 12:30:42 +02:00
Sven Gerlach
28b88dd675
Added --no-scripts InputOption for RequireCommand
2016-06-01 12:28:00 +02:00
Michele Locati
097003b5bb
Add test case for strict types declaration
2016-06-01 10:00:37 +02:00
Michele Locati
759987da62
Strip out declare strict_types
2016-06-01 09:51:26 +02:00
Jesse Donat
b108ed9484
Adds --no-suggest to UpdateCommand
2016-05-31 17:52:00 -05:00
Jesse Donat
cbfd81dc99
Adds flag to allow suggestions to be skipped
2016-05-31 17:48:43 -05:00
Jordi Boggiano
b81210d9f8
Use stronger language and link to faq, fixes #5382 , closes #5383
2016-05-31 21:00:15 +01:00
Jordi Boggiano
78fd5bd14f
Add new FAQ, refs #5382
2016-05-31 20:57:31 +01:00
Jordi Boggiano
d1425ec008
Merge branch '1.1'
2016-05-31 19:51:30 +01:00
Jordi Boggiano
50b101414e
Update changelog
2016-05-31 19:47:41 +01:00
Jordi Boggiano
c289776d94
Force-collapse multiple slashes into one, fixes #5387
2016-05-31 19:37:39 +01:00