Skip to content

Commit f3175f6

Browse files
committed
Merge branch 'release/0.6.1'
2 parents cf4a70b + aafdb47 commit f3175f6

Some content is hidden

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

73 files changed

+1284
-987
lines changed

.coveralls.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.gitattributes

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Path-based git attributes
2+
# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html
3+
4+
# Ignore all test, documentation and build artifacts with "export-ignore".
5+
/build export-ignore
6+
/docs export-ignore
7+
/example export-ignore
8+
/output export-ignore
9+
/test export-ignore
10+
/.gitattributes export-ignore
11+
/.gitignore export-ignore
12+
/.mailmap export-ignore
13+
/.travis.yml export-ignore
14+
/phpunit.xml.dist export-ignore

.mailmap

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#
2+
# This list is used by git-shortlog to fix a few botched name translations
3+
# in the git archive, either because the author's full name was messed up
4+
# and/or not always written the same way, making contributions from the
5+
# same person appearing not to be so.
6+
#
7+
8+
Alexandru Guzinschi <alex@gentle.ro> <b3nyb3ny@gmail.com>
9+
Alexandru Guzinschi <alex@gentle.ro> Alexandru G <alex@gentle.ro>

.travis.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,19 @@ php:
33
- 5.3
44
- 5.4
55
- 5.5
6+
- 5.6
7+
- hhvm
68

79
matrix:
810
allow_failures:
9-
- php: 5.5
11+
- php: 5.3
1012

1113
before_script:
1214
- curl -s http://getcomposer.org/installer | php
13-
- php composer.phar install --dev --prefer-source
15+
- php composer.phar install --prefer-source
1416

1517
script:
1618
- mkdir -p build/logs
17-
- php vendor/bin/phpunit -c phpunit.xml
19+
- php vendor/bin/phpunit
1820

1921
after_script:
20-
- php vendor/bin/coveralls --env=test

CHANGELOG.md

Lines changed: 52 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,133 @@
11
# Change Log
2-
All notable changes to this project will be documented in this file.
2+
All notable changes to this project will be documented in this file.
3+
This project adheres to [Semantic Versioning](http://semver.org/).
4+
5+
## 0.6.1 / 2015-03-24
6+
7+
### Changed:
8+
- Better parameters validation and type hints.
9+
- Documentation has been updated and is available at http://gentlero.bitbucket.org/bitbucket-api/
10+
11+
### Fixed:
12+
- Request body was build the wrong way when no ( _or wrong type of_ ) additional params where passed to Repository::create()
13+
- `Commits::all()` should use GET instead of POST
14+
- `Listener::delListener` did not properly deleted the listener.
15+
- Forward all available listener when a child class is requested via Api::api or Api::childClass.
316

417
## 0.6.0 / 2014-10-21
518

19+
### Added:
620
- Added Changelog
721
- Added `Api::api()*` as a single entry point for concrete apis ( *thanks to @digitalkaoz* )
22+
23+
### Fixed:
824
- Fixed `Privileges::grant()` parameters format ( [Fixes #22] )
25+
26+
### Changed:
927
- Marked `eabay/bitbucket-repo-sync` as conflict in composer.json
1028
- CS fixes
1129

1230
[Fixes #22]: https://bitbucket.org/gentlero/bitbucket-api/issue/22/grant-account-privileges-to-repo
1331

1432
## 0.5.2 / 2014-07-09
1533

34+
### Fixed:
1635
- Make tests go green again. ( *My bad and I'm sorry* ).
1736

1837
## 0.5.1 / 2014-07-08
1938

39+
### Fixed:
2040
- Bug: A default content-type is added for POST and PUT, if none was given. ( [Fixes #19] )
2141

2242
[Fixes #19]: https://bitbucket.org/gentlero/bitbucket-api/issue/19
2343

2444
## 0.5.0 / 2014-06-09
2545

46+
### Added:
2647
- Allow setting custom `Request` and `Response` inside HTTP client, which should facilitate integration in 3rd party software.
27-
- Implemented basic prioriy for listeners.
48+
49+
### Changed:
50+
- Implemented basic priority for listeners.
51+
52+
### Fixed:
2853
- Bug: Missing content-type made `PullRequests::merge` and `PullRequests::declined` unusable.
2954

3055
## 0.4.1 / 2014-06-01
3156

57+
### Fixed:
3258
- Bug: OAuthListener: Parameters may be included from the body if the content-type is urlencoded. ( [Fixes #18] )
3359

3460
[Fixes #18]: https://bitbucket.org/gentlero/bitbucket-api/issue/18
3561

3662
## 0.4.0 / 2014-05-14
3763

64+
### Added:
3865
- Added API 2.0 endpoints for `Users` ( *get, followers, following, repositories* )
3966
- Added API 2.0 endpoints for `Teams`. ( *profile, members, followers, following, repositories* )
4067
- Added API 2.0 endpoints for `BranchRestrictions`. ( *all, create, get, update, delete* )
4168
- Added `delListener()` method for `ClientInterface`.
69+
70+
### Fixed:
4271
- Bug: Mandatory parameters inside PullRequest's methods were not checked.
72+
73+
### Changed:
4374
- Documentation updated.
4475

4576
## 0.3.0 / 2014-05-12
4677

47-
Started to implement version 2.0 of the API.
48-
- All 1.0 endpoints that have a "twin" in version 2.0 will be updated to use the never version.
49-
- All specific 2.0 endpoints will be added gradual.
78+
Started to implement version 2.0 of the API.
79+
- All 1.0 endpoints that have a "twin" in version 2.0 will be updated to use the never version.
80+
- All specific 2.0 endpoints will be added gradual.
5081

82+
### Added:
5183
- Implemented `Commits` and `Commits::Comments` endpoints for API 2.0
52-
- Updated `Repository` to use API 2.0 (create, delete) and implemented endpoints specific to API 2.0 ( *watchers, forks* )
5384
- Added `Repository::get()` ( *API 2.0* )
54-
- Updated `PullRequests::all()` to API 2.0
55-
- Updated `PullRequests::Comments::get()` and `PullRequests::Comments::all()` to API 2.0
5685
- Added all endpoints for PullRequests ( *API 2.0* )
5786
- Added repositories endpoint ( *API 2.0* )
87+
88+
### Changed:
89+
- Updated `Repository` to use API 2.0 (create, delete) and implemented endpoints specific to API 2.0 ( *watchers, forks* )
90+
- Updated `PullRequests::all()` to API 2.0
91+
- Updated `PullRequests::Comments::get()` and `PullRequests::Comments::all()` to API 2.0
5892
- Updated `Repositories::PullRequests::all()` to allow `state` param.
5993
- CS fixes.
6094

6195

6296
## 0.2.1 / 2014-04-21
6397

98+
### Added:
6499
- Added `Repositories::PullRequests::all()` method to get a list of all pull requests.
65100

66101

67102
## 0.2.0 / 2014-02-24
68103

104+
### Fixed:
69105
- Bug: group privileges returned 400 error ( [Fixes #14] )
106+
107+
### Added:
70108
- Implemented HttpClient which abstracts HTTP layer from base clases and allows custom HTTP libraries to be used.
71109
- Implemented simple EventListener which can be used to change request before and after its executed.
110+
111+
### Changed:
72112
- Updated `Api::setCredentials()` to use our new EventListener.
73113

74114
[Fixes #14]: https://bitbucket.org/gentlero/bitbucket-api/issue/14
75115

76116
## 0.1.2 / 2013-12-24
77117

118+
### Fixed:
78119
- Bug: Duplicate array keys in groups filters. ( [Fixes #12] )
79120

80121
[Fixes #12]: https://bitbucket.org/gentlero/bitbucket-api/issue/12
81122

82123

83124
## 0.1.1 / 2013-11-26
84125

126+
### Removed:
85127
- Removed `newuser` endpoint. ( [Fixes #10] )
86128
- Removed `repositories/changesets/likes` endpoint. ( [ref #1] )
129+
130+
### Changed:
87131
- Code clean, fixed typos.
88132

89133
[Fixes #10]: https://bitbucket.org/gentlero/bitbucket-api/issue/10

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
# PHP Bitbucket API [![Build Status](https://travis-ci.org/gentlero/bitbucket-api.png?branch=develop)](https://travis-ci.org/gentlero/bitbucket-api) [![Coverage Status](https://coveralls.io/repos/gentlero/bitbucket-api/badge.png?branch=develop)](https://coveralls.io/r/gentlero/bitbucket-api?branch=develop)
1+
# PHP Bitbucket API
2+
3+
[![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)
5+
[![Build Status](http://img.shields.io/travis/gentlero/bitbucket-api/master.svg?style=flat-square)](https://travis-ci.org/gentlero/bitbucket-api)
6+
[![Coverage Status](https://img.shields.io/scrutinizer/coverage/b/gentlero/bitbucket-api/master.svg?style=flat-square)](https://scrutinizer-ci.com/b/gentlero/bitbucket-api/?branch=master)
7+
[![Code quality](http://img.shields.io/scrutinizer/b/gentlero/bitbucket-api/master.svg?style=flat-square)](https://scrutinizer-ci.com/b/gentlero/bitbucket-api/?branch=master)
28

39
Simple Bitbucket API wrapper for PHP >= 5.3.2.
410

@@ -10,17 +16,11 @@ Simple Bitbucket API wrapper for PHP >= 5.3.2.
1016

1117
## Getting started
1218

13-
1. Install dependencies with composer:
14-
15-
```
16-
$ php composer.phar install
17-
```
18-
19-
2. See `examples/` directory and tests.
19+
Read [Introduction](http://gentlero.bitbucket.org/bitbucket-api/#introduction) and [Installation](http://gentlero.bitbucket.org/bitbucket-api/installation.html) from the documentation.
2020

2121
## Documentation
2222

23-
See the `docs` directory for more detailed documentation.
23+
See [http://gentlero.bitbucket.org/bitbucket-api/](http://gentlero.bitbucket.org/bitbucket-api/) for more detailed documentation.
2424

2525
## License
2626

composer.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,19 @@
77
"license": "MIT",
88
"authors": [
99
{
10-
"name": "Alexandru G.",
10+
"name": "Alexandru Guzinschi",
1111
"email": "alex@gentle.ro",
12-
"homepage": "http://vim.gentle.ro",
12+
"homepage": "http://www.sebi.me",
1313
"role": "Developer"
1414
}
1515
],
1616
"require": {
1717
"php": "~5.3",
18-
"kriswallsmith/buzz": "~0.10",
18+
"kriswallsmith/buzz": "~0.13",
1919
"jacobkiers/oauth": "~1.0.10"
2020
},
2121
"require-dev": {
22-
"phpunit/phpunit": "3.7.*",
23-
"satooshi/php-coveralls": "0.6.*"
22+
"phpunit/phpunit": "3.7.*"
2423
},
2524
"conflict": {
2625
"eabay/bitbucket-repo-sync": "*"

0 commit comments

Comments
 (0)