Skip to content

Commit 0445ddd

Browse files
committed
Merge branch 'release/1.0.0'
* release/1.0.0: (71 commits) version bumped to 1.0.0 Updated CHANGELOG [ci skip] [Bug] NormalizeArrayListener should not run on FormRequest [Travis] Changed dist from precise to trusty. [Test] Use mocked HTTP client in testGetAccessTokenFail [CHANGELOG] Imported 0.8.4 version from support [ci skip] [CHANGELOG] Imported missing versions from support [ci skip] Update docblock for Client::setApiVersion [docs] Request shields.io badges over SSL [ci skip] BranchRestrictions.php wurden online mit Bitbucket bearbeitet [README] Updated link to license file [README] migrate from .org to .io [docs] updated permalink for refs/branches & refs/tags [docs] updated permalink for refs/branches & refs/tags updated changelog [docs] updated min req. PHP version Removed Credits section from Readme Added Security section in Readme Added CONTRIBUTING.md & update Contribute section from Readme Updated scripts section from composer.json ...
2 parents ddce875 + ec84bc9 commit 0445ddd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+1844
-1088
lines changed

.editorconfig

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
; This file is for unifying the coding style for different editors and IDEs.
2+
; More information at http://editorconfig.org
3+
4+
root = true
5+
6+
[*]
7+
indent_style = space
8+
indent_size = 4
9+
end_of_line = lf
10+
charset = utf-8
11+
trim_trailing_whitespace = true
12+
insert_final_newline = true
13+
14+
[*.md]
15+
trim_trailing_whitespace = false
16+
17+
[{package.json,.travis.yml}]
18+
indent_size = 2
19+
indent_style = space
20+
21+
# The JSON files contain newlines inconsistently
22+
[*.json]
23+
indent_size = 4
24+
insert_final_newline = false

.gitignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
vendor/
22
report/
3-
.idea/
4-
.dev/
5-
build
3+
build/
4+
composer.lock

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
language: php
2+
dist: trusty
23
sudo: false
34
php:
4-
- 5.3
55
- 5.4
66
- 5.5
77
- 5.6
8+
- 7.0
89
- hhvm
910

1011
matrix:
1112
fast_finish: true
1213
allow_failures:
13-
- php: 5.3
14+
- php: 5.4
1415

1516
before_script:
1617
- travis_retry composer self-update

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,27 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## 1.0.0 / 2017-06-12
6+
7+
### Added:
8+
- Endpoint to get a list of teams to which caller has access.
9+
- Endpoint to get emails for authenticated user.
10+
- Basic pager in order to support response pagination. (_@see #17_)
11+
- Refs/Branches and Refs/Tags endpoints.
12+
13+
### Changed:
14+
- Minimum required PHP version has been bumped to 5.4 from 5.3
15+
- SSL certificate verification is now enabled by default.
16+
- `Api` constructor signature was modified in order to reflect removal of transport object dependency. (_@see Removed[2]_)
17+
18+
### Removed:
19+
- Removed deprecated methods from `Api` (_childFactory, processResponse, authorize_)
20+
- Removed transport object dependency from `Api`.
21+
22+
### Fixed:
23+
- NormalizeArrayListener should not run on `FormRequest` (issue #62)
24+
- [Tests] Use mocked HTTP client in `OAuth2ListenerTest:testGetAccessTokenFail`
25+
526
## 0.8.4 / 2017-05-15
627

728
### Fixed:

CONTRIBUTING.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Contributing
2+
3+
First of all, thank you for taking time to contribute!
4+
5+
Contributions are accepted via Pull Requests on [Bitbucket][repo]. Sometimes, our free time is very limited and could take a while until we review your pull request, so please be patient while you wait for code review.
6+
7+
We don't mind getting questions, so if you have any, please open a new issue on our [tracker][repo].
8+
9+
## Pull Requests
10+
11+
Here are a few rules which you should follow, in order to ease code review and merging:
12+
13+
1. **Follow [PSR-2 Coding Standard][PSR-2]**
14+
- **Create feature branches** - We don't pull from your (master|develop) branch!
15+
- **One pull request per feature** - If you need/want to change more than one thing, please send multiple pull requests.
16+
- **Consider our release cycle** - We follow [SemVer v2.0.0][semver]. Breaking public APIs is not acceptable.
17+
- **(Add|Update) tests when applicable.**
18+
- **Document any change in behaviour** - Update documentation and/or readme file when applicable.
19+
20+
Sometimes you might be asked to also [squash your commits][squash] (*we don't want commits such as `fix 1`, `fix <n>`, `now its working`, etc*). This is done in order to keep a clean and coherent VCS history.
21+
22+
## Running tests
23+
24+
``` bash
25+
$ composer test
26+
```
27+
28+
To check against [PSR-2][PSR-2] coding standard:
29+
30+
``` bash
31+
$ composer style
32+
```
33+
34+
[repo]: https://bitbucket.org/gentlero/bitbucket-api/overview
35+
[PSR-2]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md
36+
[squash]: http://www.git-scm.com/book/en/v2/Git-Tools-Rewriting-History#Changing-Multiple-Commit-Messages
37+
[semver]: http://semver.org/

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# PHP Bitbucket API
22

33
[![Latest Version](https://img.shields.io/packagist/v/gentle/bitbucket-api.svg?style=flat-square)](https://packagist.org/packages/gentle/bitbucket-api)
4-
[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/gentlero/bitbucket-api/blob/master/LICENSE)
4+
[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://bitbucket.org/gentlero/bitbucket-api/src/master/LICENSE)
55
[![Build Status](https://img.shields.io/travis/gentlero/bitbucket-api/master.svg?style=flat-square)](https://travis-ci.org/gentlero/bitbucket-api)
66
[![Coverage Status](https://img.shields.io/scrutinizer/coverage/b/gentlero/bitbucket-api.svg?style=flat-square)](https://scrutinizer-ci.com/b/gentlero/bitbucket-api/?branch=develop)
77
[![Code quality](https://img.shields.io/scrutinizer/b/gentlero/bitbucket-api.svg?style=flat-square)](https://scrutinizer-ci.com/b/gentlero/bitbucket-api/?branch=develop)
88

9-
Simple Bitbucket API wrapper for PHP >= 5.3.2.
9+
Simple Bitbucket API wrapper for PHP >= 5.4
1010

1111
## Requirements
1212

13-
* PHP >= 5.3 with [cURL](http://php.net/manual/en/book.curl.php) extension.
13+
* PHP >= 5.4.0 with [cURL](http://php.net/manual/en/book.curl.php) extension.
1414
* [Buzz](https://github.com/kriswallsmith/Buzz) library,
1515
* PHPUnit to run tests. ( _optional_ )
1616

@@ -20,16 +20,18 @@ Read [Introduction](https://gentlero.bitbucket.io/bitbucket-api/#introduction) a
2020

2121
## Documentation
2222

23-
See [https://gentlero.bitbucket.io/bitbucket-api/](https://gentlero.bitbucket.io/bitbucket-api/0.8/) for more detailed documentation.
23+
See [https://gentlero.bitbucket.io/bitbucket-api/](https://gentlero.bitbucket.io/bitbucket-api/) for more detailed documentation.
2424

2525
## License
2626

2727
`bitbucket-api` is licensed under the MIT License - see the LICENSE file for details
2828

2929
## Contribute
3030

31-
Send pull requests on [Bitbucket](https://bitbucket.org/gentlero/bitbucket-api).
31+
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
3232

33-
## Credits
33+
## Security
3434

35-
- [Alexandru G.](https://bitbucket.org/vimishor)
35+
For any security related issues, please send an email at [alex@gentle.ro][maintainer-pgp] instead of using the issue tracker.
36+
37+
[maintainer-pgp]: https://keybase.io/vimishor/key.asc

composer.json

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "gentle/bitbucket-api",
33
"type": "library",
4-
"description": "Bitbucket API wrapper for PHP >= 5.3",
4+
"description": "Bitbucket API wrapper for PHP >= 5.4",
55
"homepage": "https://bitbucket.org/gentlero/bitbucket-api",
66
"keywords": ["bitbucket", "api"],
77
"license": "MIT",
@@ -14,15 +14,17 @@
1414
}
1515
],
1616
"require": {
17-
"php": ">=5.3",
18-
"kriswallsmith/buzz": "~0.13",
19-
"jacobkiers/oauth": "~1.0.10"
17+
"php": ">=5.4.0",
18+
"kriswallsmith/buzz": "~0.15",
19+
"jacobkiers/oauth": "~1.0"
2020
},
2121
"require-dev": {
22-
"phpunit/phpunit": "3.7.*"
22+
"phpunit/phpunit": "3.7.*",
23+
"squizlabs/php_codesniffer": "~2.7"
2324
},
2425
"conflict": {
25-
"eabay/bitbucket-repo-sync": "*"
26+
"eabay/bitbucket-repo-sync": "*",
27+
"rlacerda83/bitbucket-api": "*"
2628
},
2729
"suggest": {
2830
"ext-curl": "*"
@@ -32,6 +34,7 @@
3234
"files": ["polyfill-55.php"]
3335
},
3436
"scripts": {
35-
"test": "vendor/bin/phpunit"
37+
"style": "php vendor/bin/phpcs --standard=psr2 lib/",
38+
"test": "php vendor/bin/phpunit"
3639
}
3740
}

0 commit comments

Comments
 (0)