From 9e7d86f7cd59c71f08d45c18da4ffa9e20883f6d Mon Sep 17 00:00:00 2001 From: Kilte Leichnam Date: Sun, 31 Aug 2014 17:01:00 +0400 Subject: [PATCH] Moved sources to the `source` directory. Other small changes. --- .php_cs | 6 +++--- .travis.yml | 2 +- README.md | 12 +++++++++++- composer.json | 4 ++-- phpunit.xml.dist | 12 ++++++++++-- {src/Kilte/Pagination => source}/Pagination.php | 0 .../Pagination => source}/Tests/PaginationTest.php | 0 7 files changed, 27 insertions(+), 9 deletions(-) rename {src/Kilte/Pagination => source}/Pagination.php (100%) rename {src/Kilte/Pagination => source}/Tests/PaginationTest.php (100%) diff --git a/.php_cs b/.php_cs index f6b1b49..b21b0c1 100644 --- a/.php_cs +++ b/.php_cs @@ -3,7 +3,7 @@ $finder = \Symfony\CS\Finder\DefaultFinder::create() ->files() ->name('*.php') - ->in(__DIR__ . '/src/') -; + ->in(__DIR__ . '/source/'); -return \Symfony\CS\Config\Config::create()->finder($finder); +return \Symfony\CS\Config\Config::create() + ->finder($finder); diff --git a/.travis.yml b/.travis.yml index 029f0fe..4664513 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,4 +9,4 @@ before_script: - composer self-update - composer install --dev --prefer-source -script: vendor/bin/phpunit --coverage-text \ No newline at end of file +script: vendor/bin/phpunit --coverage-text diff --git a/README.md b/README.md index 792d020..7e28952 100644 --- a/README.md +++ b/README.md @@ -4,10 +4,12 @@ The simple pagination [![Build Status](https://travis-ci.org/Kilte/pagination.svg?branch=master)](https://travis-ci.org/Kilte/pagination) + ## Requirements - PHP >= 5.3.3 + ## Usage ```php @@ -40,13 +42,15 @@ $pages = $pagination->build(); // Contains associative array with a numbers of a Note: Tags (like *first*, *current*, ...) are defined as constants in the Pagination class (```TAG_FIRST```, ```TAG_CURRENT```, ...). + ## Tests ```bash -$ composer install --dev +$ composer install $ vendor/bin/phpunit ``` + ## Contributing - Fork it @@ -71,8 +75,13 @@ Now you can to remove your branch: git branch -d awesome-feature git push origin :awesome-feature + ## CHANGELOG +### 1.1.1 \[31.01.2014\] + +- Small improvements + ### 1.1.0 \[16.06.2014\] - Improved pages array to include relative positions @@ -82,6 +91,7 @@ Now you can to remove your branch: - Initial release + # LICENSE The MIT License (MIT) diff --git a/composer.json b/composer.json index 0d77efd..4232502 100644 --- a/composer.json +++ b/composer.json @@ -14,11 +14,11 @@ "php": ">=5.3" }, "require-dev": { - "phpunit/phpunit": "~4.1" + "phpunit/phpunit": "@stable" }, "autoload": { "psr-4": { - "Kilte\\Pagination\\": "src/Kilte/Pagination" + "Kilte\\Pagination\\": "source" } }, "extra": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist index c2e25b5..3dceddf 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -8,7 +8,15 @@ > - ./src/Kilte/Pagination/Tests + source - \ No newline at end of file + + + source + + source/Tests + + + + diff --git a/src/Kilte/Pagination/Pagination.php b/source/Pagination.php similarity index 100% rename from src/Kilte/Pagination/Pagination.php rename to source/Pagination.php diff --git a/src/Kilte/Pagination/Tests/PaginationTest.php b/source/Tests/PaginationTest.php similarity index 100% rename from src/Kilte/Pagination/Tests/PaginationTest.php rename to source/Tests/PaginationTest.php