Project

zodiacly

0.0
The project is in a healthy, maintained state
Zodiacly is a small Ruby library that fetches public NASA/JPL Horizons ephemeris data and converts it into astrology-friendly output (ecliptic longitude, zodiac sign, retrograde flag, and simple speed estimates) for common bodies like Sun and Moon. Designed for server-side use with caching.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 13.0
~> 3.10

Runtime

~> 3.3
~> 0.21
 Project Readme

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 zodiacly

Or install directly:

gem install zodiacly

Usage

CLI – Ephemeris

zodiacly ephemeris --bodies all

Options:

  • --time UTC time (ISO8601 or now)
  • --bodies Comma-separated list (sun,moon,mars) or all
  • --version Show gem version
  • --help Show help

Example:

zodiacly ephemeris --time 2026-02-07T00:00:00Z --bodies sun,moon

Ruby 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 rspec

Build gem:

gem build zodiacly.gemspec

Release:

bundle exec rake release

License

MIT License.