Permalink
Browse files

Rename from GifSocket to Gifsocket

  • Loading branch information...
1 parent 8e9e496 commit f76803e4cadd806009d4cae3b368bb9b2962b4d4 @igorw igorw committed Oct 27, 2012
View
@@ -1,4 +1,4 @@
-# React/GifSocket
+# React/Gifsocket
"Real Time communication library using Animated Gifs as a transport™" - Alvaro
Videla.
View
@@ -10,6 +10,6 @@
"react/http": "0.2.*"
},
"autoload": {
- "psr-0": { "React\\GifSocket": "src" }
+ "psr-0": { "React\\Gifsocket": "src" }
}
}
View
@@ -1,5 +1,5 @@
{
- "hash": "02319abba8c47478cd7a3c377119bcce",
+ "hash": "2016f01ab2c94b55969def364597a84b",
"packages": [
{
"name": "evenement/evenement",
@@ -205,12 +205,12 @@
"target-dir": "React/EventLoop",
"source": {
"type": "git",
- "url": "https://github.com/react-php/event-loop.git",
+ "url": "https://github.com/reactphp/event-loop",
"reference": "v0.2.1"
},
"dist": {
"type": "zip",
- "url": "https://github.com/react-php/event-loop/zipball/v0.2.1",
+ "url": "https://github.com/reactphp/event-loop/zipball/v0.2.1",
"reference": "v0.2.1",
"shasum": ""
},
@@ -247,12 +247,12 @@
"target-dir": "React/Http",
"source": {
"type": "git",
- "url": "https://github.com/react-php/http.git",
+ "url": "https://github.com/reactphp/http",
"reference": "v0.2.1"
},
"dist": {
"type": "zip",
- "url": "https://github.com/react-php/http/zipball/v0.2.1",
+ "url": "https://github.com/reactphp/http/zipball/v0.2.1",
"reference": "v0.2.1",
"shasum": ""
},
@@ -289,12 +289,12 @@
"target-dir": "React/Socket",
"source": {
"type": "git",
- "url": "https://github.com/react-php/socket.git",
+ "url": "https://github.com/reactphp/socket",
"reference": "v0.2.1"
},
"dist": {
"type": "zip",
- "url": "https://github.com/react-php/socket/zipball/v0.2.1",
+ "url": "https://github.com/reactphp/socket/zipball/v0.2.1",
"reference": "v0.2.1",
"shasum": ""
},
@@ -331,12 +331,12 @@
"target-dir": "React/Stream",
"source": {
"type": "git",
- "url": "https://github.com/react-php/stream",
+ "url": "https://github.com/reactphp/stream",
"reference": "v0.2.1"
},
"dist": {
"type": "zip",
- "url": "https://github.com/react-php/stream/zipball/v0.2.1",
+ "url": "https://github.com/reactphp/stream/zipball/v0.2.1",
"reference": "v0.2.1",
"shasum": ""
},
View
@@ -31,9 +31,9 @@ function sendEmptyFrameAfter($gifServer)
$socket = new React\Socket\Server($loop);
$http = new React\Http\Server($socket);
-$gifServer = new React\GifSocket\Server($loop);
+$gifServer = new React\Gifsocket\Server($loop);
-$messages = array();
+$messages = [];
$addMessage = function ($message) use ($gifServer, &$messages) {
$messages[] = $message;
if (count($messages) > 18) {
@@ -44,7 +44,7 @@ function sendEmptyFrameAfter($gifServer)
$gifServer->addFrame($frame);
};
-$router = new React\GifSocket\Router([
+$router = new React\Gifsocket\Router([
'/socket.gif' => sendEmptyFrameAfter($gifServer),
'/' => function ($request, $response) use ($loop) {
$response->writeHead(200, ['Content-Type' => 'text/html']);
View
@@ -31,9 +31,9 @@ function sendEmptyFrameAfter($gifServer)
$socket = new React\Socket\Server($loop);
$http = new React\Http\Server($socket);
-$gifServer = new React\GifSocket\Server($loop);
+$gifServer = new React\Gifsocket\Server($loop);
-$messages = array();
+$messages = [];
$addMessage = function ($message) use ($gifServer, &$messages) {
$messages[] = $message;
if (count($messages) > 18) {
@@ -52,7 +52,7 @@ function sendEmptyFrameAfter($gifServer)
}
});
-$router = new React\GifSocket\Router([
+$router = new React\Gifsocket\Router([
'/' => sendEmptyFrameAfter($gifServer),
]);
@@ -2,7 +2,7 @@
// based on GIFEncoder by László Zsidi, http://gifs.hu
-namespace React\GifSocket;
+namespace React\Gifsocket;
class GifEncoder
{
@@ -1,6 +1,6 @@
<?php
-namespace React\GifSocket;
+namespace React\Gifsocket;
use Evenement\EventEmitter;
use React\Stream\ReadableStreamInterface;
@@ -46,7 +46,7 @@ public function close()
$this->removeAllListeners();
}
- public function pipe(WritableStreamInterface $dest, array $options = array())
+ public function pipe(WritableStreamInterface $dest, array $options = [])
{
Util::pipe($this, $dest, $options);
@@ -1,6 +1,6 @@
<?php
-namespace React\GifSocket;
+namespace React\Gifsocket;
class Router
{
@@ -1,6 +1,6 @@
<?php
-namespace React\GifSocket;
+namespace React\Gifsocket;
use React\Curry\Util as Curry;
use React\EventLoop\LoopInterface;

0 comments on commit f76803e

Please sign in to comment.