From 6ddf1071a320a108ebcf440619a2ac64156b8083 Mon Sep 17 00:00:00 2001 From: Vagner do Carmo Date: Wed, 24 Jun 2015 20:46:59 -0300 Subject: [PATCH] Fixed composer.json and added translated messages on console command line --- app/Console/Commands/Command.php | 76 +++ app/Console/Commands/SlackStatusCommand.php | 21 +- app/Console/Commands/SlackTeamInfoCommand.php | 9 +- artisan | 4 + bootstrap/app.php | 4 +- composer.json | 7 +- composer.lock | 639 +++++++++--------- resources/lang/en/slackin.php | 13 +- resources/lang/pt-br/slackin.php | 13 +- 9 files changed, 449 insertions(+), 337 deletions(-) create mode 100644 app/Console/Commands/Command.php diff --git a/app/Console/Commands/Command.php b/app/Console/Commands/Command.php new file mode 100644 index 0000000..9bf0913 --- /dev/null +++ b/app/Console/Commands/Command.php @@ -0,0 +1,76 @@ + $value) { + $lines[] = $this->getTableLine($key, $value); + } + + $linesMaxLength = $this->getStringsMaxLength($lines); + + $this->writeTableLine($linesMaxLength); + + foreach($lines as $line) { + $this->output->writeln($line); + } + + $this->writeTableLine($linesMaxLength); + } + + /** + * + * Get a string for a given row (header, content) + * + * @param string $header Title of the header + * @param string $content content of the header + * + * @return string + */ + private function getTableLine($header, $content) + { + return sprintf("%s: %s", $header, $content); + } + + /** + * Get max length of strings on a given array of headers + * + * @param array $strings + * + * @return int + */ + private function getStringsMaxLength(array $strings) + { + $size = 0; + + foreach($strings as $string) { + $size = max($size, strlen($string)); + } + + return $size; + } + + /** + * Writes a line with a given separator + * @param int $length Length of the line + * @param string $separator Chacactere used for the line + */ + private function writeTableLine($length, $separator = '-') { + $this->output->writeln(substr(str_repeat($separator, $length), 0, $length)); + } +} diff --git a/app/Console/Commands/SlackStatusCommand.php b/app/Console/Commands/SlackStatusCommand.php index bfb5960..08c5f49 100644 --- a/app/Console/Commands/SlackStatusCommand.php +++ b/app/Console/Commands/SlackStatusCommand.php @@ -3,7 +3,6 @@ namespace App\Console\Commands; use App\Services\SlackStatusService; -use Illuminate\Console\Command; class SlackStatusCommand extends Command { @@ -39,10 +38,24 @@ public function __construct(SlackStatusService $slack) */ public function fire() { - $this->info('Checking for new status...'); + $this->info(trans('slackin.updating_status')); - $this->slack->refreshUsersStatus(); + $status = $this->slack->refreshUsersStatus(); - $this->info('Done!'); + $this->infoStatusUser($status); + + $this->info(trans('slackin.command_done')); + } + + /** + * Show info message about status of users + * + * @param array $status + */ + public function infoStatusUser(array $status) + { + $message = strip_tags(trans_choice('slackin.users_online', $status['active'], $status)); + + $this->info($message); } } diff --git a/app/Console/Commands/SlackTeamInfoCommand.php b/app/Console/Commands/SlackTeamInfoCommand.php index 9eaab3a..229a8cc 100644 --- a/app/Console/Commands/SlackTeamInfoCommand.php +++ b/app/Console/Commands/SlackTeamInfoCommand.php @@ -3,7 +3,6 @@ namespace App\Console\Commands; use App\Services\SlackStatusService; -use Illuminate\Console\Command; class SlackTeamInfoCommand extends Command { @@ -39,10 +38,12 @@ public function __construct(SlackStatusService $slack) */ public function fire() { - $this->info('Checking slack team info...'); + $this->info(trans('slackin.updating_team_info')); - $this->slack->refreshTeamInfo(); + $info = $this->slack->refreshTeamInfo(); - $this->info('Done!'); + $this->horizontalTable($info); + + $this->info(trans('slackin.command_done')); } } diff --git a/artisan b/artisan index 6a9d095..3148611 100644 --- a/artisan +++ b/artisan @@ -17,6 +17,10 @@ use Symfony\Component\Console\Output\ConsoleOutput; $app = require __DIR__.'/bootstrap/app.php'; +if(class_exists('Vluzrmos\Tinker\TinkerServiceProvider')) { + $app->register('Vluzrmos\Tinker\TinkerServiceProvider'); +} + /* |-------------------------------------------------------------------------- | Run The Artisan Application diff --git a/bootstrap/app.php b/bootstrap/app.php index c95492b..07d5f0d 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -83,14 +83,12 @@ $app->register('App\Providers\ValidationServiceProvider'); -$app->register('\App\Providers\TranslatorServiceProvider'); +$app->register('App\Providers\TranslatorServiceProvider'); $app->register('Vluzrmos\SlackApi\SlackApiServiceProvider'); $app->register('Vluzrmos\BadgePoser\BadgePoserServiceProvider'); -$app->register('Vluzrmos\Tinker\TinkerServiceProvider'); - /* |-------------------------------------------------------------------------- | Load The Application Routes diff --git a/composer.json b/composer.json index 3cab76f..a160180 100644 --- a/composer.json +++ b/composer.json @@ -10,12 +10,11 @@ "vluzrmos/badge-poser": "1.0.*", "predis/predis": "1.0.*", "illuminate/redis": "5.0.*", - "badges/poser": "1.1.*", - "vluzrmos/slack-api": "0.4.*", - "vluzrmos/tinker":"1.0.*" + "vluzrmos/slack-api": "0.4.*" }, "require-dev": { - "phpunit/phpunit": "~4.0" + "phpunit/phpunit": "~4.0", + "vluzrmos/tinker":"1.0.*" }, "autoload": { "psr-4": { diff --git a/composer.lock b/composer.lock index 85dbcaa..f0fae72 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "hash": "49f06d9c8b1bb52f865251991186a82b", + "hash": "14c5e95fc5199d6522e812131811ba41", "packages": [ { "name": "badges/poser", @@ -125,39 +125,6 @@ ], "time": "2015-02-10 06:19:18" }, - { - "name": "dnoegel/php-xdg-base-dir", - "version": "0.1", - "source": { - "type": "git", - "url": "https://github.com/dnoegel/php-xdg-base-dir.git", - "reference": "265b8593498b997dc2d31e75b89f053b5cc9621a" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/dnoegel/php-xdg-base-dir/zipball/265b8593498b997dc2d31e75b89f053b5cc9621a", - "reference": "265b8593498b997dc2d31e75b89f053b5cc9621a", - "shasum": "" - }, - "require": { - "php": ">=5.3.2" - }, - "require-dev": { - "phpunit/phpunit": "@stable" - }, - "type": "project", - "autoload": { - "psr-4": { - "XdgBaseDir\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "implementation of xdg base directory specification for php", - "time": "2014-10-24 07:27:01" - }, { "name": "doctrine/inflector", "version": "v1.0.1", @@ -1522,92 +1489,6 @@ ], "time": "2014-11-20 16:49:30" }, - { - "name": "jakub-onderka/php-console-color", - "version": "0.1", - "source": { - "type": "git", - "url": "https://github.com/JakubOnderka/PHP-Console-Color.git", - "reference": "e0b393dacf7703fc36a4efc3df1435485197e6c1" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/JakubOnderka/PHP-Console-Color/zipball/e0b393dacf7703fc36a4efc3df1435485197e6c1", - "reference": "e0b393dacf7703fc36a4efc3df1435485197e6c1", - "shasum": "" - }, - "require": { - "php": ">=5.3.2" - }, - "require-dev": { - "jakub-onderka/php-code-style": "1.0", - "jakub-onderka/php-parallel-lint": "0.*", - "jakub-onderka/php-var-dump-check": "0.*", - "phpunit/phpunit": "3.7.*", - "squizlabs/php_codesniffer": "1.*" - }, - "type": "library", - "autoload": { - "psr-0": { - "JakubOnderka\\PhpConsoleColor": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-2-Clause" - ], - "authors": [ - { - "name": "Jakub Onderka", - "email": "jakub.onderka@gmail.com", - "homepage": "http://www.acci.cz" - } - ], - "time": "2014-04-08 15:00:19" - }, - { - "name": "jakub-onderka/php-console-highlighter", - "version": "v0.3.1", - "source": { - "type": "git", - "url": "https://github.com/JakubOnderka/PHP-Console-Highlighter.git", - "reference": "05bce997da20acf873e6bf396276798f3cd2c76a" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/JakubOnderka/PHP-Console-Highlighter/zipball/05bce997da20acf873e6bf396276798f3cd2c76a", - "reference": "05bce997da20acf873e6bf396276798f3cd2c76a", - "shasum": "" - }, - "require": { - "jakub-onderka/php-console-color": "~0.1", - "php": ">=5.3.0" - }, - "require-dev": { - "jakub-onderka/php-code-style": "~1.0", - "jakub-onderka/php-parallel-lint": "~0.5", - "phpunit/phpunit": "~4.0", - "squizlabs/php_codesniffer": "~1.5" - }, - "type": "library", - "autoload": { - "psr-0": { - "JakubOnderka\\PhpConsoleHighlighter": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jakub Onderka", - "email": "acci@acci.cz", - "homepage": "http://www.acci.cz/" - } - ], - "time": "2014-07-14 20:59:35" - }, { "name": "laravel/lumen-framework", "version": "v5.0.10", @@ -1782,16 +1663,16 @@ }, { "name": "monolog/monolog", - "version": "1.13.1", + "version": "1.14.0", "source": { "type": "git", "url": "https://github.com/Seldaek/monolog.git", - "reference": "c31a2c4e8db5da8b46c74cf275d7f109c0f249ac" + "reference": "b287fbbe1ca27847064beff2bad7fb6920bf08cc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Seldaek/monolog/zipball/c31a2c4e8db5da8b46c74cf275d7f109c0f249ac", - "reference": "c31a2c4e8db5da8b46c74cf275d7f109c0f249ac", + "url": "https://api.github.com/repos/Seldaek/monolog/zipball/b287fbbe1ca27847064beff2bad7fb6920bf08cc", + "reference": "b287fbbe1ca27847064beff2bad7fb6920bf08cc", "shasum": "" }, "require": { @@ -1802,12 +1683,14 @@ "psr/log-implementation": "1.0.0" }, "require-dev": { - "aws/aws-sdk-php": "~2.4, >2.4.8", + "aws/aws-sdk-php": "^2.4.9", "doctrine/couchdb": "~1.0@dev", "graylog2/gelf-php": "~1.0", - "phpunit/phpunit": "~4.0", - "raven/raven": "~0.5", - "ruflin/elastica": "0.90.*", + "php-console/php-console": "^3.1.3", + "phpunit/phpunit": "~4.5", + "phpunit/phpunit-mock-objects": "2.3.0", + "raven/raven": "~0.8", + "ruflin/elastica": ">=0.90 <3.0", "swiftmailer/swiftmailer": "~5.3", "videlalvaro/php-amqplib": "~2.4" }, @@ -1817,6 +1700,7 @@ "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)", "ext-mongo": "Allow sending log messages to a MongoDB server", "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server", + "php-console/php-console": "Allow sending log messages to Google Chrome", "raven/raven": "Allow sending log messages to a Sentry server", "rollbar/rollbar": "Allow sending log messages to Rollbar", "ruflin/elastica": "Allow sending log messages to an Elastic Search server", @@ -1825,7 +1709,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.13.x-dev" + "dev-master": "1.14.x-dev" } }, "autoload": { @@ -1851,7 +1735,7 @@ "logging", "psr-3" ], - "time": "2015-03-09 09:58:04" + "time": "2015-06-19 13:29:54" }, { "name": "mtdowling/cron-expression", @@ -1987,51 +1871,6 @@ ], "time": "2015-02-26 15:33:07" }, - { - "name": "nikic/php-parser", - "version": "v1.3.0", - "source": { - "type": "git", - "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "dff239267fd1befa1cd40430c9ed12591aa720ca" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/dff239267fd1befa1cd40430c9ed12591aa720ca", - "reference": "dff239267fd1befa1cd40430c9ed12591aa720ca", - "shasum": "" - }, - "require": { - "ext-tokenizer": "*", - "php": ">=5.3" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.3-dev" - } - }, - "autoload": { - "files": [ - "lib/bootstrap.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Nikita Popov" - } - ], - "description": "A PHP parser written in PHP", - "keywords": [ - "parser", - "php" - ], - "time": "2015-05-02 15:40:40" - }, { "name": "predis/predis", "version": "v1.0.1", @@ -2120,77 +1959,6 @@ ], "time": "2012-12-21 11:40:51" }, - { - "name": "psy/psysh", - "version": "v0.4.4", - "source": { - "type": "git", - "url": "https://github.com/bobthecow/psysh.git", - "reference": "489816db71649bd95b416e3ed9062d40528ab0ac" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/bobthecow/psysh/zipball/489816db71649bd95b416e3ed9062d40528ab0ac", - "reference": "489816db71649bd95b416e3ed9062d40528ab0ac", - "shasum": "" - }, - "require": { - "dnoegel/php-xdg-base-dir": "0.1", - "jakub-onderka/php-console-highlighter": "0.3.*", - "nikic/php-parser": "~1.0", - "php": ">=5.3.0", - "symfony/console": "~2.3.10|~2.4.2|~2.5" - }, - "require-dev": { - "fabpot/php-cs-fixer": "~1.5", - "phpunit/phpunit": "~3.7|~4.0", - "squizlabs/php_codesniffer": "~2.0", - "symfony/finder": "~2.1|~3.0" - }, - "suggest": { - "ext-pcntl": "Enabling the PCNTL extension makes PsySH a lot happier :)", - "ext-pdo-sqlite": "The doc command requires SQLite to work.", - "ext-posix": "If you have PCNTL, you'll want the POSIX extension as well.", - "ext-readline": "Enables support for arrow-key history navigation, and showing and manipulating command history." - }, - "bin": [ - "bin/psysh" - ], - "type": "library", - "extra": { - "branch-alias": { - "dev-develop": "0.4.x-dev" - } - }, - "autoload": { - "files": [ - "src/Psy/functions.php" - ], - "psr-0": { - "Psy\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Justin Hileman", - "email": "justin@justinhileman.info", - "homepage": "http://justinhileman.com" - } - ], - "description": "An interactive shell for modern PHP.", - "homepage": "http://psysh.org", - "keywords": [ - "REPL", - "console", - "interactive", - "shell" - ], - "time": "2015-03-26 18:43:54" - }, { "name": "react/promise", "version": "v2.2.0", @@ -2879,20 +2647,21 @@ }, { "name": "vluzrmos/badge-poser", - "version": "v1.0.0", + "version": "v1.0.1", "source": { "type": "git", "url": "https://github.com/vluzrmos/laravel-badge-poser.git", - "reference": "25eefc40e1dfe51d22bd9ff003573264bab07f8f" + "reference": "7fdf0405351da9d0311b8bf7e1fc5fe85eb6348f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/vluzrmos/laravel-badge-poser/zipball/25eefc40e1dfe51d22bd9ff003573264bab07f8f", - "reference": "25eefc40e1dfe51d22bd9ff003573264bab07f8f", + "url": "https://api.github.com/repos/vluzrmos/laravel-badge-poser/zipball/7fdf0405351da9d0311b8bf7e1fc5fe85eb6348f", + "reference": "7fdf0405351da9d0311b8bf7e1fc5fe85eb6348f", "shasum": "" }, "require": { - "badges/poser": "~1.1" + "badges/poser": "1.1.*", + "illuminate/support": "5.0.*|5.1.*" }, "type": "library", "autoload": { @@ -2904,31 +2673,32 @@ "license": [ "DBAD" ], - "description": "Laravel Badge Generator", + "description": "Laravel and Lumen Badge Generator", "keywords": [ "Poser", "badge", "laravel", "lumen" ], - "time": "2015-05-19 03:00:16" + "time": "2015-06-24 21:47:53" }, { "name": "vluzrmos/slack-api", - "version": "v0.4.0", + "version": "v0.4.1", "source": { "type": "git", "url": "https://github.com/vluzrmos/laravel-slack-api.git", - "reference": "a17e5e58d22f5ba591d9e4a4b1c995d1dcb555bd" + "reference": "2792dc7c8941629e90365d4a5d3ef9197f9a29a7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/vluzrmos/laravel-slack-api/zipball/a17e5e58d22f5ba591d9e4a4b1c995d1dcb555bd", - "reference": "a17e5e58d22f5ba591d9e4a4b1c995d1dcb555bd", + "url": "https://api.github.com/repos/vluzrmos/laravel-slack-api/zipball/2792dc7c8941629e90365d4a5d3ef9197f9a29a7", + "reference": "2792dc7c8941629e90365d4a5d3ef9197f9a29a7", "shasum": "" }, "require": { "guzzlehttp/guzzle": "~4.0|~5.0", + "illuminate/cache": "5.0.*|5.1.*", "illuminate/support": "5.0.*|5.1.*", "php": ">=5.5.9" }, @@ -2954,54 +2724,43 @@ "lumen", "slack" ], - "time": "2015-06-16 06:53:33" - }, + "time": "2015-06-16 15:47:03" + } + ], + "packages-dev": [ { - "name": "vluzrmos/tinker", - "version": "v1.0.1", + "name": "dnoegel/php-xdg-base-dir", + "version": "0.1", "source": { "type": "git", - "url": "https://github.com/vluzrmos/lumen-tinker.git", - "reference": "81e0dd8993dec14ecbb17966c4b649b2c01ac398" + "url": "https://github.com/dnoegel/php-xdg-base-dir.git", + "reference": "265b8593498b997dc2d31e75b89f053b5cc9621a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/vluzrmos/lumen-tinker/zipball/81e0dd8993dec14ecbb17966c4b649b2c01ac398", - "reference": "81e0dd8993dec14ecbb17966c4b649b2c01ac398", + "url": "https://api.github.com/repos/dnoegel/php-xdg-base-dir/zipball/265b8593498b997dc2d31e75b89f053b5cc9621a", + "reference": "265b8593498b997dc2d31e75b89f053b5cc9621a", "shasum": "" }, "require": { - "illuminate/console": "5.0.*", - "illuminate/support": "5.0.*", - "psy/psysh": "0.4.*" + "php": ">=5.3.2" }, - "type": "package", + "require-dev": { + "phpunit/phpunit": "@stable" + }, + "type": "project", "autoload": { "psr-4": { - "Vluzrmos\\Tinker\\": "src/" + "XdgBaseDir\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], - "authors": [ - { - "name": "Vagner do Carmo", - "email": "vluzrmos@gmail.com" - } - ], - "description": "An Interactive Shell to Lumen Framework.", - "keywords": [ - "Tinker", - "laravel", - "lumen", - "shell" - ], - "time": "2015-05-27 08:02:27" - } - ], - "packages-dev": [ + "description": "implementation of xdg base directory specification for php", + "time": "2014-10-24 07:27:01" + }, { "name": "doctrine/instantiator", "version": "1.0.5", @@ -3056,6 +2815,138 @@ ], "time": "2015-06-14 21:17:01" }, + { + "name": "jakub-onderka/php-console-color", + "version": "0.1", + "source": { + "type": "git", + "url": "https://github.com/JakubOnderka/PHP-Console-Color.git", + "reference": "e0b393dacf7703fc36a4efc3df1435485197e6c1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/JakubOnderka/PHP-Console-Color/zipball/e0b393dacf7703fc36a4efc3df1435485197e6c1", + "reference": "e0b393dacf7703fc36a4efc3df1435485197e6c1", + "shasum": "" + }, + "require": { + "php": ">=5.3.2" + }, + "require-dev": { + "jakub-onderka/php-code-style": "1.0", + "jakub-onderka/php-parallel-lint": "0.*", + "jakub-onderka/php-var-dump-check": "0.*", + "phpunit/phpunit": "3.7.*", + "squizlabs/php_codesniffer": "1.*" + }, + "type": "library", + "autoload": { + "psr-0": { + "JakubOnderka\\PhpConsoleColor": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-2-Clause" + ], + "authors": [ + { + "name": "Jakub Onderka", + "email": "jakub.onderka@gmail.com", + "homepage": "http://www.acci.cz" + } + ], + "time": "2014-04-08 15:00:19" + }, + { + "name": "jakub-onderka/php-console-highlighter", + "version": "v0.3.2", + "source": { + "type": "git", + "url": "https://github.com/JakubOnderka/PHP-Console-Highlighter.git", + "reference": "7daa75df45242c8d5b75a22c00a201e7954e4fb5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/JakubOnderka/PHP-Console-Highlighter/zipball/7daa75df45242c8d5b75a22c00a201e7954e4fb5", + "reference": "7daa75df45242c8d5b75a22c00a201e7954e4fb5", + "shasum": "" + }, + "require": { + "jakub-onderka/php-console-color": "~0.1", + "php": ">=5.3.0" + }, + "require-dev": { + "jakub-onderka/php-code-style": "~1.0", + "jakub-onderka/php-parallel-lint": "~0.5", + "jakub-onderka/php-var-dump-check": "~0.1", + "phpunit/phpunit": "~4.0", + "squizlabs/php_codesniffer": "~1.5" + }, + "type": "library", + "autoload": { + "psr-0": { + "JakubOnderka\\PhpConsoleHighlighter": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jakub Onderka", + "email": "acci@acci.cz", + "homepage": "http://www.acci.cz/" + } + ], + "time": "2015-04-20 18:58:01" + }, + { + "name": "nikic/php-parser", + "version": "v1.3.0", + "source": { + "type": "git", + "url": "https://github.com/nikic/PHP-Parser.git", + "reference": "dff239267fd1befa1cd40430c9ed12591aa720ca" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/dff239267fd1befa1cd40430c9ed12591aa720ca", + "reference": "dff239267fd1befa1cd40430c9ed12591aa720ca", + "shasum": "" + }, + "require": { + "ext-tokenizer": "*", + "php": ">=5.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.3-dev" + } + }, + "autoload": { + "files": [ + "lib/bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Nikita Popov" + } + ], + "description": "A PHP parser written in PHP", + "keywords": [ + "parser", + "php" + ], + "time": "2015-05-02 15:40:40" + }, { "name": "phpdocumentor/reflection-docblock", "version": "2.0.4", @@ -3167,16 +3058,16 @@ }, { "name": "phpunit/php-code-coverage", - "version": "2.1.5", + "version": "2.1.6", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "be2286cb8c7e1773eded49d9719219e6f74f9e3e" + "reference": "631e365cf26bb2c078683e8d9bcf8bc631ac4d44" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/be2286cb8c7e1773eded49d9719219e6f74f9e3e", - "reference": "be2286cb8c7e1773eded49d9719219e6f74f9e3e", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/631e365cf26bb2c078683e8d9bcf8bc631ac4d44", + "reference": "631e365cf26bb2c078683e8d9bcf8bc631ac4d44", "shasum": "" }, "require": { @@ -3225,7 +3116,7 @@ "testing", "xunit" ], - "time": "2015-06-09 13:05:42" + "time": "2015-06-19 07:11:55" }, { "name": "phpunit/php-file-iterator", @@ -3276,16 +3167,16 @@ }, { "name": "phpunit/php-text-template", - "version": "1.2.0", + "version": "1.2.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-text-template.git", - "reference": "206dfefc0ffe9cebf65c413e3d0e809c82fbf00a" + "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/206dfefc0ffe9cebf65c413e3d0e809c82fbf00a", - "reference": "206dfefc0ffe9cebf65c413e3d0e809c82fbf00a", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686", + "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686", "shasum": "" }, "require": { @@ -3294,20 +3185,17 @@ "type": "library", "autoload": { "classmap": [ - "Text/" + "src/" ] }, "notification-url": "https://packagist.org/downloads/", - "include-path": [ - "" - ], "license": [ "BSD-3-Clause" ], "authors": [ { "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", + "email": "sebastian@phpunit.de", "role": "lead" } ], @@ -3316,7 +3204,7 @@ "keywords": [ "template" ], - "time": "2014-01-30 17:20:04" + "time": "2015-06-21 13:50:34" }, { "name": "phpunit/php-timer", @@ -3361,16 +3249,16 @@ }, { "name": "phpunit/php-token-stream", - "version": "1.4.2", + "version": "1.4.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-token-stream.git", - "reference": "db63be1159c81df649cd0260e30249a586d4129e" + "reference": "7a9b0969488c3c54fd62b4d504b3ec758fd005d9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/db63be1159c81df649cd0260e30249a586d4129e", - "reference": "db63be1159c81df649cd0260e30249a586d4129e", + "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/7a9b0969488c3c54fd62b4d504b3ec758fd005d9", + "reference": "7a9b0969488c3c54fd62b4d504b3ec758fd005d9", "shasum": "" }, "require": { @@ -3406,20 +3294,20 @@ "keywords": [ "tokenizer" ], - "time": "2015-06-12 07:34:24" + "time": "2015-06-19 03:43:16" }, { "name": "phpunit/phpunit", - "version": "4.7.3", + "version": "4.7.5", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "41fea1e84ed84d373f5ac099a1276c4358c90708" + "reference": "f6701ef3faea759acd1910a7751d8d102a7fd5bc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/41fea1e84ed84d373f5ac099a1276c4358c90708", - "reference": "41fea1e84ed84d373f5ac099a1276c4358c90708", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/f6701ef3faea759acd1910a7751d8d102a7fd5bc", + "reference": "f6701ef3faea759acd1910a7751d8d102a7fd5bc", "shasum": "" }, "require": { @@ -3433,7 +3321,7 @@ "phpunit/php-code-coverage": "~2.1", "phpunit/php-file-iterator": "~1.4", "phpunit/php-text-template": "~1.2", - "phpunit/php-timer": "~1.0", + "phpunit/php-timer": ">=1.0.6", "phpunit/phpunit-mock-objects": "~2.3", "sebastian/comparator": "~1.1", "sebastian/diff": "~1.2", @@ -3478,7 +3366,7 @@ "testing", "xunit" ], - "time": "2015-06-11 16:20:25" + "time": "2015-06-21 07:23:36" }, { "name": "phpunit/phpunit-mock-objects", @@ -3535,6 +3423,77 @@ ], "time": "2015-06-11 15:55:48" }, + { + "name": "psy/psysh", + "version": "v0.4.4", + "source": { + "type": "git", + "url": "https://github.com/bobthecow/psysh.git", + "reference": "489816db71649bd95b416e3ed9062d40528ab0ac" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/bobthecow/psysh/zipball/489816db71649bd95b416e3ed9062d40528ab0ac", + "reference": "489816db71649bd95b416e3ed9062d40528ab0ac", + "shasum": "" + }, + "require": { + "dnoegel/php-xdg-base-dir": "0.1", + "jakub-onderka/php-console-highlighter": "0.3.*", + "nikic/php-parser": "~1.0", + "php": ">=5.3.0", + "symfony/console": "~2.3.10|~2.4.2|~2.5" + }, + "require-dev": { + "fabpot/php-cs-fixer": "~1.5", + "phpunit/phpunit": "~3.7|~4.0", + "squizlabs/php_codesniffer": "~2.0", + "symfony/finder": "~2.1|~3.0" + }, + "suggest": { + "ext-pcntl": "Enabling the PCNTL extension makes PsySH a lot happier :)", + "ext-pdo-sqlite": "The doc command requires SQLite to work.", + "ext-posix": "If you have PCNTL, you'll want the POSIX extension as well.", + "ext-readline": "Enables support for arrow-key history navigation, and showing and manipulating command history." + }, + "bin": [ + "bin/psysh" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-develop": "0.4.x-dev" + } + }, + "autoload": { + "files": [ + "src/Psy/functions.php" + ], + "psr-0": { + "Psy\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Justin Hileman", + "email": "justin@justinhileman.info", + "homepage": "http://justinhileman.com" + } + ], + "description": "An interactive shell for modern PHP.", + "homepage": "http://psysh.org", + "keywords": [ + "REPL", + "console", + "interactive", + "shell" + ], + "time": "2015-03-26 18:43:54" + }, { "name": "sebastian/comparator", "version": "1.1.1", @@ -3873,16 +3832,16 @@ }, { "name": "sebastian/version", - "version": "1.0.5", + "version": "1.0.6", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/version.git", - "reference": "ab931d46cd0d3204a91e1b9a40c4bc13032b58e4" + "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/ab931d46cd0d3204a91e1b9a40c4bc13032b58e4", - "reference": "ab931d46cd0d3204a91e1b9a40c4bc13032b58e4", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/58b3a85e7999757d6ad81c787a1fbf5ff6c628c6", + "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6", "shasum": "" }, "type": "library", @@ -3904,7 +3863,7 @@ ], "description": "Library that helps with managing the version number of Git-hosted PHP projects", "homepage": "https://github.com/sebastianbergmann/version", - "time": "2015-02-24 06:35:25" + "time": "2015-06-21 13:59:46" }, { "name": "symfony/yaml", @@ -3954,6 +3913,50 @@ "description": "Symfony Yaml Component", "homepage": "https://symfony.com", "time": "2015-06-10 15:30:22" + }, + { + "name": "vluzrmos/tinker", + "version": "v1.0.2", + "source": { + "type": "git", + "url": "https://github.com/vluzrmos/lumen-tinker.git", + "reference": "2f8193fc64c1d74bfd94ade459bcb5faef4aa8c4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/vluzrmos/lumen-tinker/zipball/2f8193fc64c1d74bfd94ade459bcb5faef4aa8c4", + "reference": "2f8193fc64c1d74bfd94ade459bcb5faef4aa8c4", + "shasum": "" + }, + "require": { + "illuminate/console": "5.0.*|5.1.*", + "illuminate/support": "5.0.*|5.1.*", + "psy/psysh": "0.4.*" + }, + "type": "package", + "autoload": { + "psr-4": { + "Vluzrmos\\Tinker\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Vagner do Carmo", + "email": "vluzrmos@gmail.com" + } + ], + "description": "An Interactive Shell to Lumen Framework.", + "keywords": [ + "Tinker", + "laravel", + "lumen", + "shell" + ], + "time": "2015-06-18 20:10:24" } ], "aliases": [], diff --git a/resources/lang/en/slackin.php b/resources/lang/en/slackin.php index 2c0957d..9bca6a0 100644 --- a/resources/lang/en/slackin.php +++ b/resources/lang/en/slackin.php @@ -1,8 +1,12 @@ 'Done!', + + 'invited' => 'Invitation sent, please verify your inbox mail!', + 'join' => 'Join on :team on Slack.', - 'users_online' => '{0} There is no online users of :total registred.|{1} There is :active online user of :total registred.|[2,Inf] There are :active online users of :total registred.', + 'placeholders' => [ 'username' => 'Enter your name and last name', 'email' => 'example@example.com', @@ -10,5 +14,10 @@ 'submit' => 'Join', - 'invited' => 'Invitation sent, please verify your inbox mail!', + 'updating_status' => 'Checking for new status...', + + 'updating_team_info' => 'Checking slack team info...', + + 'users_online' => '{0} There is no online users of :total registred.|{1} There is :active online user of :total registred.|[2,Inf] There are :active online users of :total registred.', + ]; diff --git a/resources/lang/pt-br/slackin.php b/resources/lang/pt-br/slackin.php index 39261a4..051883d 100644 --- a/resources/lang/pt-br/slackin.php +++ b/resources/lang/pt-br/slackin.php @@ -1,13 +1,22 @@ 'Pronto!', + + 'invited' => 'Convite enviado, por favor verifique sua caixa de email!', + 'join' => 'Entre no Slack do :team.', - 'users_online' => '{0} Nenhum usuário online de :total registrados.|{1} Há :active usuário online de :total registrados.|[2,Inf] Há :active usuários online de :total registrados.', + 'placeholders' => [ 'username' => 'Digite seu nome e sobrenome', 'email' => 'exemplo@exemplo.com', ], 'submit' => 'Entrar', - 'invited' => 'Convite enviado, por favor verifique sua caixa de email!', + + 'updating_status' => 'Verificando novo status...', + + 'updating_team_info' => 'Verificando informações do Slack Team...', + + 'users_online' => '{0} Nenhum usuário online de :total registrados.|{1} Há :active usuário online de :total registrados.|[2,Inf] Há :active usuários online de :total registrados.', ];