From 0b3c7f89b6d245d65b3df3cb1ef6603289df27a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Pich?= Date: Thu, 31 Aug 2017 19:05:34 +0200 Subject: [PATCH] Change project name --- .gitignore | 2 +- README.md | 2 +- bin/generate | 14 +++++++------- composer.json | 6 +++--- composer.lock | 2 +- src/AndroidXmlGenerator.php | 8 ++++---- src/Checker.php | 2 +- src/Extractor.php | 2 +- src/GeneratorInterface.php | 2 +- src/Parser.php | 2 +- src/SimpleListGenerator.php | 2 +- src/StringFormatter.php | 2 +- 12 files changed, 23 insertions(+), 23 deletions(-) diff --git a/.gitignore b/.gitignore index e136172..287879b 100644 --- a/.gitignore +++ b/.gitignore @@ -3,5 +3,5 @@ .php_cs.cache /tmp/ /vendor/ -generated_counties.xml symbols.txt +symbols.xml diff --git a/README.md b/README.md index ee2c5a7..b5a933f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Generator listy powiatów dla wulkanowego +# Generator symboli dla wulkanowego [![Dependency Status](https://www.versioneye.com/user/projects/5992e36d0fb24f15c513d383/badge.svg?style=flat-square)](https://www.versioneye.com/user/projects/5992e36d0fb24f15c513d383) [![StyleCI](https://styleci.io/repos/88377290/shield?branch=master)](https://styleci.io/repos/88377290) diff --git a/bin/generate b/bin/generate index c215963..8eedc94 100755 --- a/bin/generate +++ b/bin/generate @@ -3,11 +3,11 @@ use Colors\Color; use GuzzleHttp\Client; -use Wulkanowy\Checker; -use Wulkanowy\AndroidXmlGenerator; -use Wulkanowy\Extractor; -use Wulkanowy\Parser; -use Wulkanowy\SimpleListGenerator; +use Wulkanowy\SymbolsGenerator\Checker; +use Wulkanowy\SymbolsGenerator\AndroidXmlGenerator; +use Wulkanowy\SymbolsGenerator\Extractor; +use Wulkanowy\SymbolsGenerator\Parser; +use Wulkanowy\SymbolsGenerator\SimpleListGenerator; define('ROOT_DIR', dirname(__DIR__)); @@ -37,11 +37,11 @@ try { echo $c('Generowanie pliku...')->fg('green'); $xmlGenerator = new AndroidXmlGenerator($filteredCounties); - $xmlGenerator->save(ROOT_DIR.'/generated_counties.xml'); + $xmlGenerator->save(ROOT_DIR.'/symbols.xml'); $textGenerator = new SimpleListGenerator($filteredCounties); $textGenerator->save(ROOT_DIR.'/symbols.txt'); echo ' zakończone.'.PHP_EOL; - echo $c('Zapisano do pliku `generated_counties.xml` i symbols.txt.')->fg('green').PHP_EOL; + echo $c('Zapisano do pliku symbols.xml i symbols.txt.')->fg('green').PHP_EOL; } catch (Throwable $e) { echo PHP_EOL; diff --git a/composer.json b/composer.json index 3eebdb3..607f255 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { - "name": "wulkanowy/couties-generator", - "description": "Generator listy powiatów dla wulkanowego", + "name": "wulkanowy/symbols-generator", + "description": "Symbols generator for wulkanowy", "type": "project", "require": { "php": "^7.0", @@ -16,7 +16,7 @@ ], "autoload": { "psr-4": { - "Wulkanowy\\": "src/" + "Wulkanowy\\SymbolsGenerator\\": "src/" } } } diff --git a/composer.lock b/composer.lock index 78c052a..9a47d28 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" ], - "content-hash": "cdce81d48f3489c2271cac52c9f2c801", + "content-hash": "f3e99003753ceb1063df1aed9733c317", "packages": [ { "name": "guzzlehttp/guzzle", diff --git a/src/AndroidXmlGenerator.php b/src/AndroidXmlGenerator.php index 1e7848c..3c61777 100644 --- a/src/AndroidXmlGenerator.php +++ b/src/AndroidXmlGenerator.php @@ -1,6 +1,6 @@ addAttribute('android:tools:ignore', 'MissingTranslation'); $countiesKeys = $xml->addChild('string-array'); - $countiesKeys->addAttribute('name', 'counties'); + $countiesKeys->addAttribute('name', 'symbols'); foreach ($this->counties as $name) { $countiesKeys->addChild('item', $name[0]); } $countiesValues = $xml->addChild('string-array'); - $countiesValues->addAttribute('name', 'counties_values'); + $countiesValues->addAttribute('name', 'symbols_values'); foreach ($this->counties as $name) { $countiesValues->addChild('item', $name[1]); @@ -40,7 +40,7 @@ public function save(string $filename) : bool $dom->loadXML($xml->asXML()); $output = preg_replace_callback('/^( +)saveXML()); return file_put_contents($filename, $output); diff --git a/src/Checker.php b/src/Checker.php index f28bebb..59a318c 100644 --- a/src/Checker.php +++ b/src/Checker.php @@ -1,6 +1,6 @@