Skip to content

Commit 23d8e8e

Browse files
committed
Merge branch 'release/0.0.1'
2 parents 7b6a704 + 36a86ba commit 23d8e8e

Some content is hidden

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

52 files changed

+3700
-494
lines changed

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
vendor
2-
composer.lock
3-
node_modules
2+
node_modules
3+
bin

.scrutinizer.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
tools:
2+
php_sim: true
3+
php_pdepend: true
4+
php_analyzer: true
5+
php_code_sniffer:
6+
config:
7+
standard: PSR2
8+
php_changetracking: true
9+
php_cs_fixer:
10+
config: { level: psr2 }
11+
php_mess_detector: true
12+
sensiolabs_security_checker: true
13+
external_code_coverage:
14+
timeout: 600
15+
filter:
16+
excluded_paths:
17+
- 'spec/*'
18+
- 'tests/*'
19+
- 'examples/*'

.travis.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,11 @@ matrix:
1414
branches:
1515
only:
1616
- master
17+
- dev
1718

1819
before_script:
1920
- curl -s https://getcomposer.org/installer | php
2021
- $(which php) composer.phar --dev --no-progress --no-interaction install
2122

2223
script:
2324
- bin/phpunit
24-
25-

Gulpfile.coffee

-1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@ gulp.task 'watch', (event) ->
1212
watcher = gulp.watch ['**/*.php'], ['phpunit']
1313
watcher.on 'change', (event) ->
1414

15-
1615
gulp.task 'default', ['watch']

Manager/PatchManager.php

-258
This file was deleted.

README.md

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
Patch Manager
2+
=============
3+
4+
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/matteosister/patch-manager/badges/quality-score.png?b=dev)](https://scrutinizer-ci.com/g/matteosister/patch-manager/?branch=dev)
5+
[![Build Status](https://travis-ci.org/matteosister/patch-manager.svg?branch=dev)](https://travis-ci.org/matteosister/patch-manager)
6+
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/3c24052a-6051-4125-ad12-ad4e210de114/mini.png)](https://insight.sensiolabs.com/projects/3c24052a-6051-4125-ad12-ad4e210de114)
7+
8+
A php library to manage PATCH requests in a standardized (and elegant) way
9+
10+
Install with composer
11+
12+
``` json
13+
{
14+
"require": {
15+
"cypresslab/patch-manager": "1.0.*@dev"
16+
}
17+
}
18+
```
19+
20+
The idea for this library comes from this blog post: [Please. Don't Patch Like An Idiot.](http://williamdurand.fr/2014/02/14/please-do-not-patch-like-an-idiot/) by
21+
22+
It lets you patch resources in an expressive way
23+
24+
**PATCH /users/1**
25+
``` json
26+
{ "op": "data", "property": "username", "value": "new username" }
27+
```
28+
29+
And let you patch entire collections with multiple operations
30+
31+
**PATCH /books**
32+
``` json
33+
[{ "op": "set_as_read" }, { "op": "return_to_library", "address": "221 B Baker St, London, England"}]
34+
```
35+
36+
It comes with a Symfony bundle.
37+
38+
Still interested? [Head over to the wiki...](https://github.com/matteosister/patch-manager/wiki) for documentation
39+

circle.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
dependencies:
2+
pre:
3+
- sed -i 's/^;//' ~/.phpenv/versions/$(phpenv global)/etc/conf.d/xdebug.ini
4+
cache_directories:
5+
- "~/.composer"
6+
override:
7+
- composer install --no-progress
8+
9+
machine:
10+
php:
11+
version: 5.6.2
12+
13+
test:
14+
override:
15+
- bin/phpunit --coverage-clover=coverage.clover
16+
post:
17+
- wget https://scrutinizer-ci.com/ocular.phar
18+
- php ocular.phar code-coverage:upload --access-token="e4c700772ac67a0210fa0054a54c34bfb5eac71883df0bd2d23ccb03e264be14" --format=php-clover coverage.clover

0 commit comments

Comments
 (0)