NamedayApi is a custom Ruby gem that provides a simple interface to fetch nameday information from the "nameday.abalin.net" API. Namedays are a tradition in many countries where each day of the year is associated with one or more names. This gem allows you to retrieve nameday information for a specific date, country, or name.
To use the NamedayApi gem, you need to include it in your Ruby project. You can do this by adding it to your Gemfile or installing it manually.
gem 'nameday_api', '~> 1.0.0'
Install the gem using Bundler:
bundle install
require 'nameday_api'
The NamedayApi gem provides several methods to fetch nameday information:
Fetches namedays for the current date.
country_code
(optional): Country code to specify a country for nameday information.
time_zone
(optional): Time zone to adjust the date.
Fetches namedays for the next day.
country_code
(optional): Country code to specify a country for nameday information.
time_zone
(optional): Time zone to adjust the date.
Fetches namedays for the previous day.
country_code
(optional): Country code to specify a country for nameday information.
time_zone
(optional): Time zone to adjust the date.
Fetches namedays for a specific day and month.
day
: The day of the month (1-31).
month
: The month (1-12).
country_code
(optional): Country code to specify a country for nameday information.
Fetches namedays for a specific name and country code.
name
: The name you want to search for.
country_code
: Country code to specify the country for the search.
#require version
require 'nameday_api'
# Fetch today's namedays
today_info = NamedayApi.today
# Fetch namedays for a specific day and country
specific_day_info = NamedayApi.specific_day(1, 1, 'us')
# Search namedays for a specific name and country
name_info = NamedayApi.search_by_name('Alois', 'us')
The NamedayApi gem was initiated by Daniyal Qureshi. I warmly welcome contributions from the open-source community to further improve and expand this project. Feel free to reach out to Daniyal Qureshi at [email protected] with your ideas, questions, and suggestions.
##Getting Started with Contributions:
You can begin contributing to the project by following these steps:
-
Create Issues: Start by creating issues that address bugs, propose enhancements, or discuss new features. This provides a structured way to share your ideas and collaborate on improvements.
-
Submit Pull Requests: Once you've identified an issue or have a contribution in mind, you can submit a pull request to implement the changes. Our collaborative environment ensures that your contributions are reviewed and integrated effectively.
By following these steps, you can actively participate in the growth of the NamedayApi gem. We value your input and look forward to working together to make this project even better.
The gem is available as open source under the terms of the MIT License.