Skip to content
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

Feat: implement calculator into unit converter & unit calculate methods #53

Merged
merged 5 commits into from
Nov 13, 2017

Conversation

jordanbrauer
Copy link
Owner

@jordanbrauer jordanbrauer commented Nov 13, 2017

Closes #12

The BinaryCalculator (bcmath) won't work quite yet, as it require it's arguments to be strings. To do this, I imagine we can cast our hard-coded parameters to strings if the currently active calculator is the BinaryCalculator

@jordanbrauer jordanbrauer added this to the Production Ready v1.0.0 milestone Nov 13, 2017
@jordanbrauer jordanbrauer self-assigned this Nov 13, 2017
@jordanbrauer jordanbrauer added this to To Do in Units of Measurement via automation Nov 13, 2017
@jordanbrauer jordanbrauer merged commit 7e3ed21 into develop Nov 13, 2017
Units of Measurement automation moved this from To Do to Done Nov 13, 2017
@jordanbrauer jordanbrauer deleted the converter-calc branch November 13, 2017 05:02
@jordanbrauer jordanbrauer changed the title Converter calc Feat: implement calculator into unit converter & unit calculate methods Nov 13, 2017
jordanbrauer added a commit that referenced this pull request Nov 13, 2017
* Update: changelog config file & composer script

* Feat: add explicit calculator classes to handle all math related operations (#52)

* Update: remove redundant import

* Feat: add abstract calculator class interface

* Feat: add simple calculator concrete class & write tests

* Feat: add binary calculator (bcmath) concrete class & write tests

* Feat: implement calculator into unit converter & unit calculate methods (#53)

* Fix: simplecalc bugs

* Feat: add new exceptin for missing calculator

* Fix: tests to use new calculator

* Fix: example file to use new calculator

* Feat: implement the calculator into the unit converter

* Update: scripts

* Update: readme to reflect new api

* Fix: formatting & docblocks

* Update: add codeclimate config & travis script updates

* Update: Add codeclimate badges:

* Fix: unit test missing @Covers & @uses docblock annotations

* Update: coverage scripts

* Update: add missing Code Climate YAML config file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

None yet

1 participant