vendor/assets/javascripts/locales/jquery.timeago.it-short.js in rails-timeago-2.16.0 vs vendor/assets/javascripts/locales/jquery.timeago.it-short.js in rails-timeago-2.17.1

- old
+ new

@@ -1,20 +1,30 @@ -// Italian shortened -jQuery.timeago.settings.strings["it-short"] = { - prefixAgo: null, - prefixFromNow: null, - suffixAgo: "", - suffixFromNow: "", - seconds: "1m", - minute: "1m", - minutes: "%dm", - hour: "1h", - hours: "%dh", - day: "1g", - days: "%dg", - month: "1me", - months: "%dme", - year: "1a", - years: "%da", - wordSeparator: " ", - numbers: [] -}; +(function (factory) { + if (typeof define === 'function' && define.amd) { + define(['jquery'], factory); + } else if (typeof module === 'object' && typeof module.exports === 'object') { + factory(require('jquery')); + } else { + factory(jQuery); + } +}(function (jQuery) { + // Italian shortened + jQuery.timeago.settings.strings["it-short"] = { + prefixAgo: null, + prefixFromNow: null, + suffixAgo: "", + suffixFromNow: "", + seconds: "1m", + minute: "1m", + minutes: "%dm", + hour: "1h", + hours: "%dh", + day: "1g", + days: "%dg", + month: "1me", + months: "%dme", + year: "1a", + years: "%da", + wordSeparator: " ", + numbers: [] + }; +}));