example_calculator_cr
Version, currently master branch1 version
- master branchlatestApr 17, 2019
github.com/drhuffman12/example_calculator_cr
Example Calculator (Crystal)
Installation
# Add this to your shard.yml
dependencies:
example_calculator_cr:
github: drhuffman12/example_calculator_cr
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.27.2- License
- MIT
- Author
- your-name-here <your-email-here>
Dependencies
Development Dependencies
README
example_calculator_cr
Write calculations using functions and get the results. (See OBJECTIVES.md for details.)
This is a Crystal-lang implementation.
For the Crystal-lang implementation, see: https://github.com/drhuffman12/example_calculator_rb
Installation
-
Add the dependency to your
shard.yml:dependencies: example_calculator_cr: github: your-github-user/example_calculator_cr -
Run
shards install
Usage
To use in your Crystal code, add the following:
require "example_calculator_cr"
Development
Clone the repo
cd $SOME_PARENT_FOLDER
git clone https://github.com/drhuffman12/example_calculator_cr.git
cd example_calculator_cr
Pre-merge checks
cd $SOME_PARENT_FOLDER/example_calculator_cr
bin/pre_merge_checks
.. and then open qa/index.html in your browser to view a page with links to the tests/coverage/style/etc report pages. (To re-run these individually, see contents of bin/pre_merge_checks.)
Merging to master
Make sure the Pre-merge checks all pass before merging your code to the master branch.
Contributing
- Fork it (https://github.com/your-github-user/example_calculator_cr/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- your-name-here - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Apr 17, 2019
- Crystal
0.27.2- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/drhuffman12/example_calculator_cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Nov 10, 2026
- Synced
- Nov 10, 2026
- Versions
- 1