datejs-rails

2.0.1last stable release 12 years ago
Complexity Score
Medium
Open Issues
0
Dependent Projects
1
Weekly Downloadsglobal
176

License

  • MIT
    • Yesattribution
    • Permissivelinking
    • Permissivedistribution
    • Permissivemodification
    • Nopatent grant
    • Yesprivate use
    • Permissivesublicensing
    • Notrademark grant

Downloads

Readme

datejs-rails

datejs-rails wraps the datejs library in a rails engine for simple use with the asset pipeline provided by rails 3.1. From version 2.0 onward, the gem includes the fork of Datejs maintained by Eric Lindvall

datejs extends the Javascript date object to allow for simple date parsing, calculation, and formatting.

Archived

There are a number of more suitable ways to work with Dates in JavaScript these days, as well as a number of better ways to work with JavaScript in Rails. This projects in now archived and will see no more releases.

Usage

Add the following to your gemfile:

gem 'datejs-rails'

Add the following directive to your Javascript manifest file (application.js):

//= require date

This will require the en-US version of datejs. All other localizations are available as well. For instance, you could instead:

//= require date
//= require date/fr-FR

Optionally, require extras.js for strftime-style FormatSpecifiers.

//= require date/extras

Dependencies

CVE IssuesActive
0
Scorecards Score
No Data
Test Coverage
No Data
Follows Semver
Yes
Github Stars
18
Dependenciestotal
1
DependenciesOutdated
0
DependenciesDeprecated
0
Threat Modelling
No
Repo Audits
No

Learn how to distribute datejs-rails in your own private RubyGems registry

gem install datejs-rails
Processing...
Done

5 Releases

RubyGems on Cloudsmith

Getting started with RubyGems on Cloudsmith is fast and easy.