Project

fora

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Simple classes to work wxith dates and times
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 2.1, ~> 2.1.4
~> 13.0, >= 13.0.1
>= 3.9.0, ~> 3.9.0

Runtime

>= 0.12.0, ~> 0.16.0
 Project Readme

Fora

Why "fora"? Its kind of the phoenetic pronunciation of the ancient greek word for time, φορά

Uses? simple transform of Time/Dates <-> String

Dependencies:

  • ruby > 2.1
  • contracts gem > 0.12.0
  • rspec

Goals: Create ruby only methods that can be mixed into a class for transforming strings to time or dates to strings. A lot of these methods exist natively in ActiveSupport. This class isn't trying to imitate those methods but instead is geared towards a quick well guarded, by contracts, way of transforming back and forth.

Mostly this is a demo of the Contracts gem, but I also use these methods in my classes so I figured I'd just create a quick gem out of them.

Installation

Add this line to your application's Gemfile:

gem 'fora'

And then execute:

$ bundle

Or install it yourself as:

$ gem install fora

Usage

Just include these methods in your class

class MyAwesomeClass
  include Fora

  ...
end

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/nacengineer/fora. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.