Categories
4.69
A gem providing "time travel" and "time freezing" capabilities, making it dead simple to test time-dependent code. It provides a unified method to mock Time.now, Date.today, and DateTime.now in a single call.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Activity
3.66
The official date library for Ruby.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Activity
Chronic is a natural language date/time parser written in pure Ruby.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Activity
2.51
ice_cube is a recurring date library for Ruby. It allows for quick, programatic expansion of recurring date rules.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Popularity
Activity
Precise and fast user agent parser and device detector, backed by the largest and most up-to-date agent and device database
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Popularity
Activity
0.0
Little helper for the classes Date, DateTime and Time.
//
date_time_compare.rb:
Allows to compare Date and Time objects (allows to sort by mixed Date/Time-keys).
//
date_creator.rb:
New date creations:
Date#new_by_mday: Allows "Third sunday in june 2010"...
//
date_locale.rb:
Localization of Date, DateTime and Time.
strftime gets a optional parameter to determine the language.
Default is en, or if locale is used the current locale.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Activity
0.63
Moment.js is a lightweight javascript date library for parsing, manipulating, and formatting dates.
This gem allows for its easy inclusion into the rails asset pipeline.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Activity
1.18
MOVED: See `scss_lint` (with an underscore) for up-to-date project
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Activity
0.49
A date picker for Twitter Bootstrap
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Activity
0.0
Date and DateTime don't have sensible constructors. You can't construct
one using an existing Date/Time, nor by passing a string to be parsed.
Instead you have to call special-purpose routines. This gem adds some
sensible options to the existing modes of the constructors
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
1.05
Chronic is a natural language date/time parser written in pure Ruby.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Popularity
Activity
0.07
date-formats - read / parse and print dates (and times) from around the world
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Activity
0.0
Render a date/time span according to an strftime pattern. Only works with sensibly ordered date-formats (so not US!)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Activity
0.0
Render a date/time span according to an strftime pattern. Only works with sensibly ordered date-formats (so not US!)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Activity
0.0
= Livedate
A simple Rack middleware that parses a dates using Chronic, and
returns the result in a standardized manner. The idea is to use
this to verify the input in date input fields using AJAX, to
provide immediate feedback to the user.
== Usage
Include Livedate in your middleware stack. In Rails, this
is done in environment.rb
config.gem 'livedate'
config.middleware.use "Livedate"
Specify the desired date + datetime formats you want too. Default
error message for strings that Chronic can't pass can also
be provided. The defaults are:
config.middleware.use "Livedate",
:date_format => '%Y-%m-%d',
:datetime_format => ''%Y-%m-%d %H:%M',
:invalid_format => ''
This will catch requests to /parsedate. Use GET requests and
provide a parameter 'date' or 'datetime'. The value will be
parsed by Chronic and returned formatted as 2009-01-01 or
2009-01-01 12:45, depending on the parameter name.
== Scripts
There are two generators available to get simple javascripts
that use livedate. Both will replace the contents on input
elements with classes .date or .datetime on change with the
result from the Chronic parse.
script/generate livedate_jquery
script/generate livedate_prototype
Will put the appropriate version of the script in your
public/javascripts directory. Feel free to change these
if you need a different behavior.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Activity
0.0
= input_chronic A simple Rack middleware that parses a dates using Chronic, and returns the result in a standardized manner. The idea is to use this to verify the input in date input fields using AJAX, to provide immediate feedback to the user. == Usage Include "input_chronic" in your middleware stack. In Rails, this is done in environment.rb config.gem 'bjornblomqvist-input_chronic', :lib => 'input_chronic', :source => 'http://gems.github.com' config.middleware.use "input_chronic" This will catch requests to /gems.github.com/bjornblomqvist/input_chronic. Use GET requests and provide a parameter 'date' or 'datetime'. The value will be parsed by Chronic and returned formatted as 2009-01-01 or 2009-01-01 12:45, depending on the parameter name. Don't forget to add the javascript found at /javascript/input_chronic.js This is also implemented by catching the request before it reaches rails. To use this on a text input add the class chronic_date or chronic_datetime <input type="text" class="chronic_datetime" /> == Copyright Copyright (c) 2009 Erik Hansson, Bjorn Blomqvist. See LICENSE for details.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Activity
0.89
counter_culture provides turbo-charged counter caches that are kept up-to-date not just on create and destroy, that support multiple levels of indirection through relationships, allow dynamic column names and that avoid deadlocks by updating in the after_commit callback.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Activity
0.02
Helper for creating a date or date-time picker that uses the Unobtrusive Date-Picker Widge
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
0.0
Humans want to think of date and datetime attributes in a natural manner. Standard ruby Date and DateTime objects do not support this well.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Activity
0.0
Rails gem/plugin that implements an ActiveRecord validation helper called validates_as_date_time which validates U.S. dates, times, and date-times
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Activity