-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from umpirsky/feature/update-dependencies
Update dependencies
- Loading branch information
Showing
10 changed files
with
35 additions
and
885 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
bin | ||
vendor | ||
phpunit.xml | ||
composer.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
language: php | ||
|
||
before_script: | ||
- curl -s http://getcomposer.org/installer | php | ||
- php composer.phar install --dev | ||
|
||
php: | ||
- 5.3 | ||
- 5.4 | ||
- 5.5 | ||
- 5.6 | ||
- 7.0 | ||
- hhvm | ||
|
||
before_script: | ||
- composer install --dev | ||
|
||
script: | ||
- phpunit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Copyright (c) Саша Стаменковић <[email protected]> | ||
Copyright (c) Saša Stamenković <[email protected]> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
/** | ||
* This file is part of the Twig Gettext utility. | ||
* | ||
* (c) Саша Стаменковић <[email protected]> | ||
* (c) Saša Stamenković <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
@@ -16,7 +16,7 @@ | |
/** | ||
* Extracts translations from twig templates. | ||
* | ||
* @author Саша Стаменковић <[email protected]> | ||
* @author Saša Stamenković <[email protected]> | ||
*/ | ||
class Extractor | ||
{ | ||
|
@@ -70,8 +70,8 @@ public function setGettextParameters(array $parameters) | |
public function extract() | ||
{ | ||
$command = 'xgettext'; | ||
$command .= ' '.join(' ', $this->parameters); | ||
$command .= ' '.join(' ', $this->templates); | ||
$command .= ' '.implode(' ', $this->parameters); | ||
$command .= ' '.implode(' ', $this->templates); | ||
|
||
$error = 0; | ||
$output = system($command, $error); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
/** | ||
* This file is part of the Twig Gettext utility. | ||
* | ||
* (c) Саша Стаменковић <[email protected]> | ||
* (c) Saša Stamenković <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
@@ -14,7 +14,7 @@ | |
/** | ||
* Loads template from the filesystem. | ||
* | ||
* @author Саша Стаменковић <[email protected]> | ||
* @author Saša Stamenković <[email protected]> | ||
*/ | ||
class Filesystem extends \Twig_Loader_Filesystem | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
/** | ||
* This file is part of the Twig Gettext utility. | ||
* | ||
* (c) Саша Стаменковић <[email protected]> | ||
* (c) Saša Stamenković <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
@@ -17,7 +17,7 @@ | |
/** | ||
* Dummy url generator. | ||
* | ||
* @author Саша Стаменковић <[email protected]> | ||
* @author Saša Stamenković <[email protected]> | ||
*/ | ||
class UrlGenerator implements UrlGeneratorInterface | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
/** | ||
* This file is part of the Twig Gettext utility. | ||
* | ||
* (c) Саша Стаменковић <[email protected]> | ||
* (c) Saša Stamenković <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
@@ -16,7 +16,7 @@ | |
use Symfony\Component\Translation\Loader\PoFileLoader; | ||
|
||
/** | ||
* @author Саша Стаменковић <[email protected]> | ||
* @author Saša Stamenković <[email protected]> | ||
*/ | ||
class ExtractorTest extends \PHPUnit_Framework_TestCase | ||
{ | ||
|
@@ -33,8 +33,8 @@ class ExtractorTest extends \PHPUnit_Framework_TestCase | |
protected function setUp() | ||
{ | ||
$this->twig = new \Twig_Environment(new Filesystem('/'), array( | ||
'cache' => '/tmp/cache/'.uniqid(), | ||
'auto_reload' => true | ||
'cache' => '/tmp/cache/'.uniqid(), | ||
'auto_reload' => true, | ||
)); | ||
$this->twig->addExtension(new \Twig_Extensions_Extension_I18n()); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.