Skip to content

Commit 37fa4e8

Browse files
committed
Update dependencies (replace authentication and encoding with message)
1 parent b9aa5c3 commit 37fa4e8

7 files changed

+19
-21
lines changed

composer.json

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Plugins for HTTPlug",
44
"license": "MIT",
55
"keywords": ["plugin", "http", "psr7"],
6-
"homepage": "http://php-http.org",
6+
"homepage": "http://httplug.io",
77
"authors": [
88
{
99
"name": "Joel Wurtz",
@@ -16,27 +16,25 @@
1616
"php-http/client-tools": "^0.1@dev"
1717
},
1818
"require-dev": {
19-
"phpspec/phpspec": "^2.4-alpha",
20-
"henrikbjorn/phpspec-code-coverage" : "^1.0",
21-
"php-http/authentication": "^0.1@dev",
19+
"php-http/message": "^0.1",
2220
"php-http/cookie": "^0.1@dev",
2321
"symfony/stopwatch": "^2.3",
2422
"psr/log": "^1.0",
25-
"psr/cache": "1.0.0",
26-
"php-http/encoding": "^0.1@dev"
23+
"psr/cache": "^1.0",
24+
"phpspec/phpspec": "^2.4",
25+
"henrikbjorn/phpspec-code-coverage" : "^1.0"
2726
},
2827
"autoload": {
2928
"psr-4": {
3029
"Http\\Client\\Plugin\\": "src/"
3130
}
3231
},
3332
"suggest": {
34-
"php-http/authentication": "Allow to use the AuthenticationPlugin",
33+
"php-http/message": "Allow to use Authentication and Encoding plugins",
3534
"php-http/cookie": "Allow to use CookiePlugin",
3635
"symfony/stopwatch": "Allow to use the StopwatchPlugin",
3736
"psr/log-implementation": "Allow to use the LoggerPlugin",
38-
"psr/cache-implementation": "Allow to use the CachePlugin",
39-
"php-http/encoding": "Allow to use the Decoder and Encoder plugin"
37+
"psr/cache-implementation": "Allow to use the CachePlugin"
4038
},
4139
"scripts": {
4240
"test": "vendor/bin/phpspec run",

spec/AuthenticationPluginSpec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace spec\Http\Client\Plugin;
44

5-
use Http\Authentication\Authentication;
5+
use Http\Message\Authentication;
66
use Http\Promise\Promise;
77
use Psr\Http\Message\RequestInterface;
88
use PhpSpec\ObjectBehavior;

spec/ContentLengthPluginSpec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function it_streams_chunked_if_no_size(RequestInterface $request, StreamInterfac
3636
$request->getBody()->shouldBeCalled()->willReturn($stream);
3737

3838
$stream->getSize()->shouldBeCalled()->willReturn(null);
39-
$request->withBody(Argument::type('Http\Encoding\ChunkStream'))->shouldBeCalled()->willReturn($request);
39+
$request->withBody(Argument::type('Http\Message\Encoding\ChunkStream'))->shouldBeCalled()->willReturn($request);
4040

4141
$this->handleRequest($request, function () {}, function () {});
4242
}

spec/DecoderPluginSpec.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function it_decodes(RequestInterface $request, ResponseInterface $response, Stre
3737
$response->hasHeader('Transfer-Encoding')->willReturn(true);
3838
$response->getHeader('Transfer-Encoding')->willReturn(['chunked']);
3939
$response->getBody()->willReturn($stream);
40-
$response->withBody(Argument::type('Http\Encoding\DechunkStream'))->willReturn($response);
40+
$response->withBody(Argument::type('Http\Message\Encoding\DechunkStream'))->willReturn($response);
4141
$response->withHeader('Transfer-Encoding', [])->willReturn($response);
4242
$response->hasHeader('Content-Encoding')->willReturn(false);
4343

@@ -60,7 +60,7 @@ function it_decodes_gzip(RequestInterface $request, ResponseInterface $response,
6060
$response->hasHeader('Content-Encoding')->willReturn(true);
6161
$response->getHeader('Content-Encoding')->willReturn(['gzip']);
6262
$response->getBody()->willReturn($stream);
63-
$response->withBody(Argument::type('Http\Encoding\GzipDecodeStream'))->willReturn($response);
63+
$response->withBody(Argument::type('Http\Message\Encoding\GzipDecodeStream'))->willReturn($response);
6464
$response->withHeader('Content-Encoding', [])->willReturn($response);
6565

6666
$stream->isReadable()->willReturn(true);
@@ -82,7 +82,7 @@ function it_decodes_deflate(RequestInterface $request, ResponseInterface $respon
8282
$response->hasHeader('Content-Encoding')->willReturn(true);
8383
$response->getHeader('Content-Encoding')->willReturn(['deflate']);
8484
$response->getBody()->willReturn($stream);
85-
$response->withBody(Argument::type('Http\Encoding\InflateStream'))->willReturn($response);
85+
$response->withBody(Argument::type('Http\Message\Encoding\InflateStream'))->willReturn($response);
8686
$response->withHeader('Content-Encoding', [])->willReturn($response);
8787

8888
$stream->isReadable()->willReturn(true);
@@ -104,7 +104,7 @@ function it_decodes_inflate(RequestInterface $request, ResponseInterface $respon
104104
$response->hasHeader('Content-Encoding')->willReturn(true);
105105
$response->getHeader('Content-Encoding')->willReturn(['compress']);
106106
$response->getBody()->willReturn($stream);
107-
$response->withBody(Argument::type('Http\Encoding\DecompressStream'))->willReturn($response);
107+
$response->withBody(Argument::type('Http\Message\Encoding\DecompressStream'))->willReturn($response);
108108
$response->withHeader('Content-Encoding', [])->willReturn($response);
109109

110110
$stream->isReadable()->willReturn(true);

src/AuthenticationPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Http\Client\Plugin;
44

5-
use Http\Authentication\Authentication;
5+
use Http\Message\Authentication;
66
use Psr\Http\Message\RequestInterface;
77

88
/**

src/ContentLengthPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Http\Client\Plugin;
44

5-
use Http\Encoding\ChunkStream;
5+
use Http\Message\Encoding\ChunkStream;
66
use Psr\Http\Message\RequestInterface;
77

88
/**

src/DecoderPlugin.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
namespace Http\Client\Plugin;
44

5-
use Http\Encoding\DechunkStream;
6-
use Http\Encoding\DecompressStream;
7-
use Http\Encoding\GzipDecodeStream;
8-
use Http\Encoding\InflateStream;
5+
use Http\Message\Encoding\DechunkStream;
6+
use Http\Message\Encoding\DecompressStream;
7+
use Http\Message\Encoding\GzipDecodeStream;
8+
use Http\Message\Encoding\InflateStream;
99
use Psr\Http\Message\RequestInterface;
1010
use Psr\Http\Message\ResponseInterface;
1111
use Psr\Http\Message\StreamInterface;

0 commit comments

Comments
 (0)