Skip to content

Little re-factoring #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 29 commits into from
Nov 3, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
376537a
Add ignores for IDE and composer
sergej-kurakin Jul 7, 2014
0823ba8
Split Calc to separate files by PSR standards - one class per file, u…
sergej-kurakin Jul 7, 2014
dad7ef7
Add initial composer file with phpunit in development requirments
sergej-kurakin Jul 7, 2014
aef6c75
Ignore composer
sergej-kurakin Jul 7, 2014
b37c56c
Add phpunit configuration file, add test loader/bootsrap
sergej-kurakin Jul 7, 2014
1115122
Add Coding Style fixer to required development
sergej-kurakin Jul 7, 2014
732db50
Fix CS for tests bootstrap
sergej-kurakin Jul 7, 2014
ec1b736
First few little test for Rolling ant math
sergej-kurakin Jul 7, 2014
6fa6ddc
Return data of calc as is, without HTML in boolean types
sergej-kurakin Jul 7, 2014
ba418e9
Add php code sniffer to development requirments
sergej-kurakin Jul 7, 2014
4c0e328
Fix tests according PSR standards
sergej-kurakin Jul 7, 2014
d974e55
Fix main library code by PSR standards
sergej-kurakin Jul 7, 2014
2ec4c78
Add php mess detector to composer file
sergej-kurakin Jul 7, 2014
2cdc66f
Fix exception namespace
sergej-kurakin Jul 7, 2014
04e8ac0
Add phpqa tools, move development requirements to proper place in jso…
sergej-kurakin Jul 13, 2014
e560dc0
Remove unused variables and parameters
sergej-kurakin Jul 13, 2014
4cd62f4
Tests for Calc Operation
sergej-kurakin Jul 13, 2014
2789743
Add phpDoc blocks to define parameters types, throw exceptions and de…
sergej-kurakin Jul 13, 2014
b6cc87f
Add false on return in case of errors, fix some unexpected behaviour
sergej-kurakin Jul 13, 2014
0b71faf
Keep postfix test
sergej-kurakin Jul 13, 2014
f844ee8
Highest/Lowest test
sergej-kurakin Jul 13, 2014
427c4ff
Use "stable" development dependencies
sergej-kurakin Sep 28, 2014
9e59006
Description update
sergej-kurakin Sep 28, 2014
ff75498
Enable travis CI testing
sergej-kurakin Sep 28, 2014
1398c03
Add PHP 5.3
sergej-kurakin Sep 28, 2014
c9befb2
Add Travis CI status
sergej-kurakin Sep 28, 2014
544e320
Add Travis CI status
sergej-kurakin Sep 28, 2014
74f6602
Add scrutinizer ci
sergej-kurakin Sep 28, 2014
96d3743
Add scrutinizer ci badge
sergej-kurakin Sep 28, 2014
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.idea
composer.phar
/vendor/
11 changes: 11 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
imports:
- php

tools:
# PHP
php_sim: true
php_code_sniffer: true
php_hhvm: true
php_mess_detector: true
php_pdepend: true
php_loc: true
16 changes: 16 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
- hhvm

branches:
only:
- master
- dev

script: phpunit --coverage-text

install: composer install
11 changes: 11 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@
Dice Roller
===========

This is a PSR compatible fork from https://github.com/ringmaster/dicecalc

Project status
--------------

.. image:: https://travis-ci.org/sergej-kurakin/dicecalc.svg?branch=master
:target: https://travis-ci.org/sergej-kurakin/dicecalc

.. image:: https://scrutinizer-ci.com/g/sergej-kurakin/dicecalc/badges/quality-score.png?b=master
:target: https://scrutinizer-ci.com/g/sergej-kurakin/dicecalc/?branch=master

How to use
----------
Create a new Calc class, and pass the dice expression to the constructor::
Expand Down
Loading