GitXplorerGitXplorer
d

momentjs-rails

public
219 stars
66 forks
1 issues

Commits

List of commits on branch main.
Verified
de473b81db40d0dc19e277895746c79b41a0607a

replace MomentJS 2.29.4 assets with actual files (#68)

aashkulz committed 2 years ago
Verified
dd60c117e22212c3c33385d47b7f8ca2a33af808

Update assets to moment 2.29.4 (#66)

mmuruvetri committed 2 years ago
Verified
b7ff0d1a6da70cce64bddb5311cf09bbbaa9286d

Prepare v2.29.1.1

dderekprior committed 3 years ago
Verified
9c85a6c5974cc88cfe2d8f6c8b6eadd1a1c8b274

replace MomentJS 2.29.1 assets with actual files (#62)

aashkulz committed 3 years ago
Verified
eed25703210731dbbba5c4729359c56036d98d1e

Update to Moment 2.29.1 (#60)

dderekprior committed 3 years ago
Verified
8957c835416dde825daf4e77aa89fc0c17d6a8a6

Get the gem running on modern Rails version

dderekprior committed 3 years ago

README

The README file for this repository.

momentjs-rails

momentjs-rails wraps the Moment.js library in a rails engine for simple use with the asset pipeline provided by Rails 3.1 and higher. The gem includes the development (non-minified) source for ease of exploration. The asset pipeline will minify in production.

Moment.js is "a lightweight javascript date library for parsing, manipulating, and formatting dates." Moment.js does not modify the native Date object. Rather, it creates a wrapper for it. Please see the documentation for details.

Usage

Add the following to your gemfile:

gem 'momentjs-rails'

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

//= require moment

If you want to include a localization file, also add the following directive:

//= require moment/<locale>.js

Versioning

momentjs-rails 2.29.4.1 == Moment.js 2.29.4

Every attempt is made to mirror the currently shipping Moment.js version number wherever possible. The major, minor, and patch version numbers will always represent the Moment.js version. Should a gem bug be discovered, a 4th version identifier will be added and incremented.