{"repo":"gocardless/business","free":true,"listed":false,"github":"https://github.com/gocardless/business","clone":"git clone https://github.com/gocardless/business.git","description":"Ruby business day calculations","language":"Ruby","stars":510,"topics":["ruby","calendar"],"license":"MIT","category":"productivity","readme_excerpt":"Business Date calculations based on business calendars. - v2.0.0 breaking changes - Getting Started - Creating a calendar - Using a calendar file - Checking for business days - Business day arithmetic - But other libraries already do this - License & Contributing v2.0.0 breaking changes We have removed the bundled calendars as of version 2.0.0, if you need the calendars that were included: - Download the calendars you wish to use from v1.18.0 - Place them in a suitable directory in your project, typically lib/calendars - Add this directory path to your instance of Business::Calendar using the load paths method.dd the directory to where you placed the yml files before you load the calendar If you wish to stay on the last version that contained bundled calendars, pin business to v1.18.0 Getting started To install business, simply: If you are using a Gemfile: Creating a calendar Get started with business by creating an instance of the calendar class, that accepts a hash that specifies which days of the week are considered working days, which days are holidays and which are extra working dates. Additionally each calendar instance can be given a name. This can come in handy if you use multiple calendars. Use a calendar file Defining a calendar as a Ruby object may not be convenient, so we provide a way of defining these calendars as YAML. Below we will walk through the necessary steps to build your first calendar. All keys are optional and will default to the following: Note: Elem","default_branch":null,"files":null,"tree":[],"storefront":"/r/gocardless","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/gocardless/business/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}