Skip to content

Commit

Permalink
Update to Moment 2.29.1
Browse files Browse the repository at this point in the history
Long time no update! By the maintainer's of Moment's own admission,
Moment.JS is in maintenance mode so the updates are not very frequent.
Nonetheless, updates to this gem are even more infrequent. There are
simply better ways to manage JavaScript dependencies in Rails apps and
there have been for many years.

I had some time to clean up some older OSS projects of mine so I figured
I'd give this one last bump before I consider archiving the project.
  • Loading branch information
derekprior committed Dec 20, 2021
1 parent 8957c83 commit 833ba75
Show file tree
Hide file tree
Showing 141 changed files with 11,339 additions and 8,384 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ test/dummy/tmp
.idea
.DS_Store
pkg/
tmp/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ If you want to include a localization file, also add the following directive:

## Versioning

momentjs-rails 2.20.1 == Moment.js 2.20.1
momentjs-rails 2.29.1 == Moment.js 2.29.1

Every attempt is made to mirror the currently shipping Moment.js version number
wherever possible. The major, minor, and patch version numbers will always
Expand Down
2 changes: 1 addition & 1 deletion momentjs-rails.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ $:.push File.expand_path("../lib", __FILE__)

Gem::Specification.new do |s|
s.name = "momentjs-rails"
s.version = "2.20.1"
s.version = "2.29.1"
s.authors = ["Derek Prior"]
s.homepage = "https://github.com/derekprior/momentjs-rails"
s.summary = "The Moment.js JavaScript library ready to play with Rails."
Expand Down
3 changes: 3 additions & 0 deletions news.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### Version 2.29.1 (2021-12-20)
- Updated Moment.js to 2.29.1

### Version 2.20.1 (2018-03-22)
- Updated Moment.js to 2.20.1

Expand Down
2 changes: 1 addition & 1 deletion test/integration/navigation_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class NavigationTest < ActionDispatch::IntegrationTest

test 'momentjs response is for the expected version' do
get '/assets/moment.js'
assert_match(/hooks.version = '2\.20\.1'/, @response.body)
assert_match(/hooks.version = '2\.29\.1'/, @response.body)
end

test 'can access momentjs translation' do
Expand Down
Loading

0 comments on commit 833ba75

Please sign in to comment.