momentjs-rails 2.11.0 → 2.11.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 354d30c82ad5089b4a3ee59bb3d46d14272f3196
4
- data.tar.gz: 8c45370efde838b27f4b49ae406bbb875362ae4e
3
+ metadata.gz: adcc691d5bcbc0e7b45c636d3052f098433d4fac
4
+ data.tar.gz: 86357f04f7af5ef633e55b4df6213bc08fac1790
5
5
  SHA512:
6
- metadata.gz: 65438b10f1d20dc30e7dee62610587c139cd5e47a386f4b3550ead83d9af4d6f2f7b91739764c85a31558db170f84181b1bd18261d42f580f9ee9e1bab0c8e56
7
- data.tar.gz: 70c9163f8f3eed6a2691abee5bfe59e6df662faf46e926a92f0e6a5446c24f6498c19c13a8194e5e68430bf5ffe721e6af97a11be7024b304defce38eb4075d8
6
+ metadata.gz: 34933ade67afd6d3570490ff1bb0e285d69839b4efc63bf7369cd223e3f56daddb0a8019b7ed48637848b15cc8e406940158d20cfdf4f42611d10e4460f48cd4
7
+ data.tar.gz: 209b6481c1e1abcf07710eb7e9971e890d31824d277c29c79f794b69d76d550fa3002180921fc1837a72caecd5ab9018d1bb8868d697dd61db59fdf034a4aeb5
data/README.md CHANGED
@@ -26,7 +26,7 @@ If you want to include a localization file, also add the following directive:
26
26
 
27
27
  ## Versioning
28
28
 
29
- momentjs-rails 2.11.0 == Moment.js 2.11.0
29
+ momentjs-rails 2.11.1 == Moment.js 2.11.1
30
30
 
31
31
  Every attempt is made to mirror the currently shipping Moment.js version number
32
32
  wherever possible. The major, minor, and patch version numbers will always
data/news.md CHANGED
@@ -1,3 +1,6 @@
1
+ ### Version 2.11.1 (2016-04-12)
2
+ - Updated Moment.js to 2.11.1
3
+
1
4
  ### Version 2.11.0 (2016-01-08)
2
5
  - Updated Moment.js to 2.11.0
3
6
 
@@ -38,3 +38,10 @@ Started GET "/assets/moment/fr.js" for 127.0.0.1 at 2016-01-08 09:20:12 -0500
38
38
  Served asset /moment/fr.js - 200 OK (1ms)
39
39
  Started GET "/assets/moment.js" for 127.0.0.1 at 2016-01-08 09:20:12 -0500
40
40
  Served asset /moment.js - 200 OK (0ms)
41
+ Started GET "/assets/moment.js" for 127.0.0.1 at 2016-04-12 21:10:01 -0400
42
+ Compiled moment.js (1ms) (pid 35306)
43
+ Served asset /moment.js - 200 OK (13ms)
44
+ Started GET "/assets/moment/fr.js" for 127.0.0.1 at 2016-04-12 21:10:01 -0400
45
+ Served asset /moment/fr.js - 200 OK (2ms)
46
+ Started GET "/assets/moment.js" for 127.0.0.1 at 2016-04-12 21:10:01 -0400
47
+ Served asset /moment.js - 200 OK (0ms)
@@ -8,7 +8,7 @@ class NavigationTest < ActionDispatch::IntegrationTest
8
8
 
9
9
  test 'momentjs response is for the expected version' do
10
10
  get '/assets/moment.js'
11
- assert_match(/utils_hooks__hooks.version = '2\.11\.0'/, @response.body)
11
+ assert_match(/utils_hooks__hooks.version = '2\.11\.1'/, @response.body)
12
12
  end
13
13
 
14
14
  test 'can access momentjs translation' do
@@ -1,5 +1,5 @@
1
1
  //! moment.js
2
- //! version : 2.11.0
2
+ //! version : 2.11.1
3
3
  //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
4
4
  //! license : MIT
5
5
  //! momentjs.com
@@ -270,7 +270,7 @@
270
270
  function loadLocale(name) {
271
271
  var oldLocale = null;
272
272
  // TODO: Find a better way to register and load all the locales in Node
273
- if (!locales[name] && !isUndefined(module) &&
273
+ if (!locales[name] && (typeof module !== 'undefined') &&
274
274
  module && module.exports) {
275
275
  try {
276
276
  oldLocale = globalLocale._abbr;
@@ -538,13 +538,13 @@
538
538
 
539
539
  // any word (or two) characters or numbers including two/three word month in arabic.
540
540
  // includes scottish gaelic two word and hyphenated months
541
- var matchWord = /[0-9]*(a[mn]\s?)?['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF\-]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i;
541
+ var matchWord = /[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i;
542
542
 
543
543
 
544
544
  var regexes = {};
545
545
 
546
546
  function addRegexToken (token, regex, strictRegex) {
547
- regexes[token] = isFunction(regex) ? regex : function (isStrict) {
547
+ regexes[token] = isFunction(regex) ? regex : function (isStrict, localeData) {
548
548
  return (isStrict && strictRegex) ? strictRegex : regex;
549
549
  };
550
550
  }
@@ -559,9 +559,13 @@
559
559
 
560
560
  // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
561
561
  function unescapeFormat(s) {
562
- return s.replace('\\', '').replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (matched, p1, p2, p3, p4) {
562
+ return regexEscape(s.replace('\\', '').replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (matched, p1, p2, p3, p4) {
563
563
  return p1 || p2 || p3 || p4;
564
- }).replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
564
+ }));
565
+ }
566
+
567
+ function regexEscape(s) {
568
+ return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
565
569
  }
566
570
 
567
571
  var tokens = {};
@@ -630,8 +634,12 @@
630
634
 
631
635
  addRegexToken('M', match1to2);
632
636
  addRegexToken('MM', match1to2, match2);
633
- addRegexToken('MMM', matchWord);
634
- addRegexToken('MMMM', matchWord);
637
+ addRegexToken('MMM', function (isStrict, locale) {
638
+ return locale.monthsShortRegex(isStrict);
639
+ });
640
+ addRegexToken('MMMM', function (isStrict, locale) {
641
+ return locale.monthsRegex(isStrict);
642
+ });
635
643
 
636
644
  addParseToken(['M', 'MM'], function (input, array) {
637
645
  array[MONTH] = toInt(input) - 1;
@@ -656,7 +664,7 @@
656
664
  this._months[MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'][m.month()];
657
665
  }
658
666
 
659
- var defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sept_Oct_Nov_Dec'.split('_');
667
+ var defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_');
660
668
  function localeMonthsShort (m, format) {
661
669
  return isArray(this._monthsShort) ? this._monthsShort[m.month()] :
662
670
  this._monthsShort[MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'][m.month()];
@@ -731,6 +739,72 @@
731
739
  return daysInMonth(this.year(), this.month());
732
740
  }
733
741
 
742
+ var defaultMonthsShortRegex = matchWord;
743
+ function monthsShortRegex (isStrict) {
744
+ if (this._monthsParseExact) {
745
+ if (!hasOwnProp(this, '_monthsRegex')) {
746
+ computeMonthsParse.call(this);
747
+ }
748
+ if (isStrict) {
749
+ return this._monthsShortStrictRegex;
750
+ } else {
751
+ return this._monthsShortRegex;
752
+ }
753
+ } else {
754
+ return this._monthsShortStrictRegex && isStrict ?
755
+ this._monthsShortStrictRegex : this._monthsShortRegex;
756
+ }
757
+ }
758
+
759
+ var defaultMonthsRegex = matchWord;
760
+ function monthsRegex (isStrict) {
761
+ if (this._monthsParseExact) {
762
+ if (!hasOwnProp(this, '_monthsRegex')) {
763
+ computeMonthsParse.call(this);
764
+ }
765
+ if (isStrict) {
766
+ return this._monthsStrictRegex;
767
+ } else {
768
+ return this._monthsRegex;
769
+ }
770
+ } else {
771
+ return this._monthsStrictRegex && isStrict ?
772
+ this._monthsStrictRegex : this._monthsRegex;
773
+ }
774
+ }
775
+
776
+ function computeMonthsParse () {
777
+ function cmpLenRev(a, b) {
778
+ return b.length - a.length;
779
+ }
780
+
781
+ var shortPieces = [], longPieces = [], mixedPieces = [],
782
+ i, mom;
783
+ for (i = 0; i < 12; i++) {
784
+ // make the regex if we don't have it already
785
+ mom = create_utc__createUTC([2000, i]);
786
+ shortPieces.push(this.monthsShort(mom, ''));
787
+ longPieces.push(this.months(mom, ''));
788
+ mixedPieces.push(this.months(mom, ''));
789
+ mixedPieces.push(this.monthsShort(mom, ''));
790
+ }
791
+ // Sorting makes sure if one month (or abbr) is a prefix of another it
792
+ // will match the longer piece.
793
+ shortPieces.sort(cmpLenRev);
794
+ longPieces.sort(cmpLenRev);
795
+ mixedPieces.sort(cmpLenRev);
796
+ for (i = 0; i < 12; i++) {
797
+ shortPieces[i] = regexEscape(shortPieces[i]);
798
+ longPieces[i] = regexEscape(longPieces[i]);
799
+ mixedPieces[i] = regexEscape(mixedPieces[i]);
800
+ }
801
+
802
+ this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
803
+ this._monthsShortRegex = this._monthsRegex;
804
+ this._monthsStrictRegex = new RegExp('^(' + longPieces.join('|') + ')$', 'i');
805
+ this._monthsShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')$', 'i');
806
+ }
807
+
734
808
  function checkOverflow (m) {
735
809
  var overflow;
736
810
  var a = m._a;
@@ -762,7 +836,8 @@
762
836
  }
763
837
 
764
838
  function warn(msg) {
765
- if (utils_hooks__hooks.suppressDeprecationWarnings === false && !isUndefined(console) && console.warn) {
839
+ if (utils_hooks__hooks.suppressDeprecationWarnings === false &&
840
+ (typeof console !== 'undefined') && console.warn) {
766
841
  console.warn('Deprecation warning: ' + msg);
767
842
  }
768
843
  }
@@ -930,6 +1005,11 @@
930
1005
 
931
1006
  // FORMATTING
932
1007
 
1008
+ addFormatToken('Y', 0, 0, function () {
1009
+ var y = this.year();
1010
+ return y <= 9999 ? '' + y : '+' + y;
1011
+ });
1012
+
933
1013
  addFormatToken(0, ['YY', 2], 0, function () {
934
1014
  return this.year() % 100;
935
1015
  });
@@ -957,6 +1037,9 @@
957
1037
  addParseToken('YY', function (input, array) {
958
1038
  array[YEAR] = utils_hooks__hooks.parseTwoDigitYear(input);
959
1039
  });
1040
+ addParseToken('Y', function (input, array) {
1041
+ array[YEAR] = parseInt(input, 10);
1042
+ });
960
1043
 
961
1044
  // HELPERS
962
1045
 
@@ -1208,6 +1291,8 @@
1208
1291
  for (i = 0; i < tokens.length; i++) {
1209
1292
  token = tokens[i];
1210
1293
  parsedInput = (string.match(getParseRegexForToken(token, config)) || [])[0];
1294
+ // console.log('token', token, 'parsedInput', parsedInput,
1295
+ // 'regex', getParseRegexForToken(token, config));
1211
1296
  if (parsedInput) {
1212
1297
  skipped = string.substr(0, string.indexOf(parsedInput));
1213
1298
  if (skipped.length > 0) {
@@ -1483,8 +1568,8 @@
1483
1568
  return pickBy('isAfter', args);
1484
1569
  }
1485
1570
 
1486
- var now = Date.now || function () {
1487
- return +(new Date());
1571
+ var now = function () {
1572
+ return Date.now ? Date.now() : +(new Date());
1488
1573
  };
1489
1574
 
1490
1575
  function Duration (duration) {
@@ -3042,11 +3127,15 @@
3042
3127
  prototype__proto.set = locale_set__set;
3043
3128
 
3044
3129
  // Month
3045
- prototype__proto.months = localeMonths;
3046
- prototype__proto._months = defaultLocaleMonths;
3047
- prototype__proto.monthsShort = localeMonthsShort;
3048
- prototype__proto._monthsShort = defaultLocaleMonthsShort;
3049
- prototype__proto.monthsParse = localeMonthsParse;
3130
+ prototype__proto.months = localeMonths;
3131
+ prototype__proto._months = defaultLocaleMonths;
3132
+ prototype__proto.monthsShort = localeMonthsShort;
3133
+ prototype__proto._monthsShort = defaultLocaleMonthsShort;
3134
+ prototype__proto.monthsParse = localeMonthsParse;
3135
+ prototype__proto._monthsRegex = defaultMonthsRegex;
3136
+ prototype__proto.monthsRegex = monthsRegex;
3137
+ prototype__proto._monthsShortRegex = defaultMonthsShortRegex;
3138
+ prototype__proto.monthsShortRegex = monthsShortRegex;
3050
3139
 
3051
3140
  // Week
3052
3141
  prototype__proto.week = localeWeek;
@@ -3115,9 +3204,6 @@
3115
3204
  }
3116
3205
 
3117
3206
  locale_locales__getSetGlobalLocale('en', {
3118
- monthsParse : [/^jan/i, /^feb/i, /^mar/i, /^apr/i, /^may/i, /^jun/i, /^jul/i, /^aug/i, /^sep/i, /^oct/i, /^nov/i, /^dec/i],
3119
- longMonthsParse : [/^january$/i, /^february$/i, /^march$/i, /^april$/i, /^may$/i, /^june$/i, /^july$/i, /^august$/i, /^september$/i, /^october$/i, /^november$/i, /^december$/i],
3120
- shortMonthsParse : [/^jan$/i, /^feb$/i, /^mar$/i, /^apr$/i, /^may$/i, /^jun$/i, /^jul$/i, /^aug/i, /^sept?$/i, /^oct$/i, /^nov$/i, /^dec$/i],
3121
3207
  ordinalParse: /\d{1,2}(th|st|nd|rd)/,
3122
3208
  ordinal : function (number) {
3123
3209
  var b = number % 10,
@@ -3485,7 +3571,7 @@
3485
3571
  // Side effect imports
3486
3572
 
3487
3573
 
3488
- utils_hooks__hooks.version = '2.11.0';
3574
+ utils_hooks__hooks.version = '2.11.1';
3489
3575
 
3490
3576
  setHookCallback(local__createLocal);
3491
3577
 
@@ -11,10 +11,7 @@
11
11
 
12
12
  var en_au = moment.defineLocale('en-au', {
13
13
  months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
14
- monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sept_Oct_Nov_Dec'.split('_'),
15
- monthsParse : [/^jan/i, /^feb/i, /^mar/i, /^apr/i, /^may/i, /^jun/i, /^jul/i, /^aug/i, /^sep/i, /^oct/i, /^nov/i, /^dec/i],
16
- longMonthsParse : [/^january$/i, /^february$/i, /^march$/i, /^april$/i, /^may$/i, /^june$/i, /^july$/i, /^august$/i, /^september$/i, /^october$/i, /^november$/i, /^december$/i],
17
- shortMonthsParse : [/^jan$/i, /^feb$/i, /^mar$/i, /^apr$/i, /^may$/i, /^jun$/i, /^jul$/i, /^aug/i, /^sept?$/i, /^oct$/i, /^nov$/i, /^dec$/i],
14
+ monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
18
15
  weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
19
16
  weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
20
17
  weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
@@ -12,10 +12,7 @@
12
12
 
13
13
  var en_ca = moment.defineLocale('en-ca', {
14
14
  months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
15
- monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sept_Oct_Nov_Dec'.split('_'),
16
- monthsParse : [/^jan/i, /^feb/i, /^mar/i, /^apr/i, /^may/i, /^jun/i, /^jul/i, /^aug/i, /^sep/i, /^oct/i, /^nov/i, /^dec/i],
17
- longMonthsParse : [/^january$/i, /^february$/i, /^march$/i, /^april$/i, /^may$/i, /^june$/i, /^july$/i, /^august$/i, /^september$/i, /^october$/i, /^november$/i, /^december$/i],
18
- shortMonthsParse : [/^jan$/i, /^feb$/i, /^mar$/i, /^apr$/i, /^may$/i, /^jun$/i, /^jul$/i, /^aug/i, /^sept?$/i, /^oct$/i, /^nov$/i, /^dec$/i],
15
+ monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
19
16
  weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
20
17
  weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
21
18
  weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
@@ -12,10 +12,7 @@
12
12
 
13
13
  var en_gb = moment.defineLocale('en-gb', {
14
14
  months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
15
- monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sept_Oct_Nov_Dec'.split('_'),
16
- monthsParse : [/^jan/i, /^feb/i, /^mar/i, /^apr/i, /^may/i, /^jun/i, /^jul/i, /^aug/i, /^sep/i, /^oct/i, /^nov/i, /^dec/i],
17
- longMonthsParse : [/^january$/i, /^february$/i, /^march$/i, /^april$/i, /^may$/i, /^june$/i, /^july$/i, /^august$/i, /^september$/i, /^october$/i, /^november$/i, /^december$/i],
18
- shortMonthsParse : [/^jan$/i, /^feb$/i, /^mar$/i, /^apr$/i, /^may$/i, /^jun$/i, /^jul$/i, /^aug/i, /^sept?$/i, /^oct$/i, /^nov$/i, /^dec$/i],
15
+ monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
19
16
  weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
20
17
  weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
21
18
  weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
@@ -13,9 +13,6 @@
13
13
  var en_ie = moment.defineLocale('en-ie', {
14
14
  months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
15
15
  monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
16
- monthsParse : [/^jan/i, /^feb/i, /^mar/i, /^apr/i, /^may/i, /^jun/i, /^jul/i, /^aug/i, /^sep/i, /^oct/i, /^nov/i, /^dec/i],
17
- longMonthsParse : [/^january$/i, /^february$/i, /^march$/i, /^april$/i, /^may$/i, /^june$/i, /^july$/i, /^august$/i, /^september$/i, /^october$/i, /^november$/i, /^december$/i],
18
- shortMonthsParse : [/^jan$/i, /^feb$/i, /^mar$/i, /^apr$/i, /^may$/i, /^jun$/i, /^jul$/i, /^aug/i, /^sept?$/i, /^oct$/i, /^nov$/i, /^dec$/i],
19
16
  weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
20
17
  weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
21
18
  weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
@@ -11,10 +11,7 @@
11
11
 
12
12
  var en_nz = moment.defineLocale('en-nz', {
13
13
  months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
14
- monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sept_Oct_Nov_Dec'.split('_'),
15
- monthsParse : [/^jan/i, /^feb/i, /^mar/i, /^apr/i, /^may/i, /^jun/i, /^jul/i, /^aug/i, /^sep/i, /^oct/i, /^nov/i, /^dec/i],
16
- longMonthsParse : [/^january$/i, /^february$/i, /^march$/i, /^april$/i, /^may$/i, /^june$/i, /^july$/i, /^august$/i, /^september$/i, /^october$/i, /^november$/i, /^december$/i],
17
- shortMonthsParse : [/^jan$/i, /^feb$/i, /^mar$/i, /^apr$/i, /^may$/i, /^jun$/i, /^jul$/i, /^aug/i, /^sept?$/i, /^oct$/i, /^nov$/i, /^dec$/i],
14
+ monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
18
15
  weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
19
16
  weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
20
17
  weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
@@ -11,18 +11,7 @@
11
11
 
12
12
 
13
13
  var months = [
14
- 'Am Faoilleach',
15
- 'An Gearran',
16
- 'Am Màrt',
17
- 'An Giblean',
18
- 'An Cèitean',
19
- 'An t-Ògmhios',
20
- 'An t-Iuchar',
21
- 'An Lùnastal',
22
- 'An t-Sultain',
23
- 'An Dàmhair',
24
- 'An t-Samhain',
25
- 'An Dùbhlachd'
14
+ 'Am Faoilleach', 'An Gearran', 'Am Màrt', 'An Giblean', 'An Cèitean', 'An t-Ògmhios', 'An t-Iuchar', 'An Lùnastal', 'An t-Sultain', 'An Dàmhair', 'An t-Samhain', 'An Dùbhlachd'
26
15
  ];
27
16
 
28
17
  var monthsShort = ['Faoi', 'Gear', 'Màrt', 'Gibl', 'Cèit', 'Ògmh', 'Iuch', 'Lùn', 'Sult', 'Dàmh', 'Samh', 'Dùbh'];
@@ -36,6 +25,7 @@
36
25
  var gd = moment.defineLocale('gd', {
37
26
  months : months,
38
27
  monthsShort : monthsShort,
28
+ monthsParseExact : true,
39
29
  weekdays : weekdays,
40
30
  weekdaysShort : weekdaysShort,
41
31
  weekdaysMin : weekdaysMin,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: momentjs-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.11.0
4
+ version: 2.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derek Prior
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-08 00:00:00.000000000 Z
11
+ date: 2016-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties