SunCalc
SunCalc is a tiny Ruby library for calculating sun position, sunlight phases (times for sunrise, sunset, dusk, etc.), moon position and lunar phase for the given location and time. This library is a port of Vladmir Agafonkin's (@mourner) excellent SunCalc.js library.
Installation
Add this line to your application's Gemfile:
gem 'suncalc'
And then execute:
$ bundle
Or install it yourself as:
$ gem install suncalc
Usage
TODO: Write usage instructions here
Contributing
- Fork it ( https://github.com/[my-github-username]/suncalc/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