From 4d137fdf586bf13e09c6c389d42d41062f7be143 Mon Sep 17 00:00:00 2001 From: Shouichi Kamiya Date: Tue, 28 Dec 2021 13:00:30 +0900 Subject: [PATCH] Limit the highest momentjs-rails version to 2.20.1 v2.29.1 causes "export declarations may only appear at top level of a module" error. See https://github.com/derekprior/momentjs-rails/issues/61. --- Gemfile.lock | 2 +- administrate.gemspec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 1d6cfdbbed..4ea64c4535 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -8,7 +8,7 @@ PATH datetime_picker_rails (~> 0.0.7) jquery-rails (>= 4.0) kaminari (>= 1.0) - momentjs-rails (~> 2.8) + momentjs-rails (>= 2.8, <= 2.20.1) sassc-rails (~> 2.1) selectize-rails (~> 0.6) diff --git a/administrate.gemspec b/administrate.gemspec index 555c7fda5f..86f2cfd174 100644 --- a/administrate.gemspec +++ b/administrate.gemspec @@ -21,7 +21,7 @@ Gem::Specification.new do |s| s.add_dependency "datetime_picker_rails", "~> 0.0.7" s.add_dependency "jquery-rails", ">= 4.0" s.add_dependency "kaminari", ">= 1.0" - s.add_dependency "momentjs-rails", "~> 2.8" + s.add_dependency "momentjs-rails", ">= 2.8", "<= 2.20.1" s.add_dependency "sassc-rails", "~> 2.1" s.add_dependency "selectize-rails", "~> 0.6"