Zodiacly ♈︎
Zodiacly is a lightweight Ruby gem for calculating zodiac signs and basic astronomical ephemeris data.
It provides:
- ♈︎ Zodiac sign calculation (with correct boundary handling)
- ☀️ Major celestial body positions
- 🔁 Retrograde detection (based on negative speed)
- 🧮 Simple CLI interface
Installation
Add to your Gemfile:
bundle add zodiaclyOr install directly:
gem install zodiaclyUsage
CLI – Ephemeris
zodiacly ephemeris --bodies allOptions:
-
--timeUTC time (ISO8601 ornow) -
--bodiesComma-separated list (sun,moon,mars) orall -
--versionShow gem version -
--helpShow help
Example:
zodiacly ephemeris --time 2026-02-07T00:00:00Z --bodies sun,moonRuby Usage
require "zodiacly"
# Example zodiac usage
Zodiacly::Zodiac.sign_for(Date.new(1990, 3, 21))
# Example ephemeris usage
Zodiacly::Ephemeris.calculate(time: Time.now.utc, bodies: :all)Development
Run tests:
bundle exec rspecBuild gem:
gem build zodiacly.gemspecRelease:
bundle exec rake releaseLicense
MIT License.