momentjs-rails 2.9.0 → 2.20.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (133) hide show
  1. checksums.yaml +5 -5
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +13 -11
  4. data/news.md +24 -7
  5. data/test/dummy/tmp/cache/assets/D1C/680/sprockets%2F16ed4d5afdb2919596e6f8790e2116c2 +0 -0
  6. data/test/dummy/tmp/cache/assets/D35/CA0/sprockets%2F493e64bce2d302801dc01cf7cd096a58 +0 -0
  7. data/test/dummy/tmp/cache/assets/D3F/5F0/sprockets%2F4a6c53eae7c6e41a69a191578bbb6417 +0 -0
  8. data/test/dummy/tmp/cache/assets/D58/BD0/sprockets%2F4de9ddc9b725c715a54c98697b2528fe +0 -0
  9. data/test/dummy/tmp/cache/assets/D75/510/sprockets%2Fe690787ac522f47a6be024bfcc1767ee +0 -0
  10. data/test/dummy/tmp/cache/assets/E10/250/sprockets%2Fe4badb9ddfda484eb9671bf88567be61 +0 -0
  11. data/test/integration/navigation_test.rb +1 -2
  12. data/vendor/assets/javascripts/moment/af.js +72 -69
  13. data/vendor/assets/javascripts/moment/ar-dz.js +60 -0
  14. data/vendor/assets/javascripts/moment/ar-kw.js +60 -0
  15. data/vendor/assets/javascripts/moment/ar-ly.js +127 -0
  16. data/vendor/assets/javascripts/moment/ar-ma.js +59 -55
  17. data/vendor/assets/javascripts/moment/ar-sa.js +103 -98
  18. data/vendor/assets/javascripts/moment/ar-tn.js +58 -53
  19. data/vendor/assets/javascripts/moment/ar.js +140 -131
  20. data/vendor/assets/javascripts/moment/az.js +100 -101
  21. data/vendor/assets/javascripts/moment/be.js +106 -125
  22. data/vendor/assets/javascripts/moment/bg.js +78 -75
  23. data/vendor/assets/javascripts/moment/bm.js +60 -0
  24. data/vendor/assets/javascripts/moment/bn.js +117 -108
  25. data/vendor/assets/javascripts/moment/bo.js +117 -105
  26. data/vendor/assets/javascripts/moment/br.js +92 -92
  27. data/vendor/assets/javascripts/moment/bs.js +81 -68
  28. data/vendor/assets/javascripts/moment/ca.js +83 -71
  29. data/vendor/assets/javascripts/moment/cs.js +102 -79
  30. data/vendor/assets/javascripts/moment/cv.js +62 -59
  31. data/vendor/assets/javascripts/moment/cy.js +78 -75
  32. data/vendor/assets/javascripts/moment/da.js +59 -56
  33. data/vendor/assets/javascripts/moment/de-at.js +77 -71
  34. data/vendor/assets/javascripts/moment/de-ch.js +79 -0
  35. data/vendor/assets/javascripts/moment/de.js +76 -70
  36. data/vendor/assets/javascripts/moment/dv.js +101 -0
  37. data/vendor/assets/javascripts/moment/el.js +96 -89
  38. data/vendor/assets/javascripts/moment/en-au.js +66 -62
  39. data/vendor/assets/javascripts/moment/en-ca.js +62 -59
  40. data/vendor/assets/javascripts/moment/en-gb.js +66 -63
  41. data/vendor/assets/javascripts/moment/en-ie.js +68 -0
  42. data/vendor/assets/javascripts/moment/en-nz.js +68 -0
  43. data/vendor/assets/javascripts/moment/eo.js +72 -69
  44. data/vendor/assets/javascripts/moment/es-do.js +92 -0
  45. data/vendor/assets/javascripts/moment/es-us.js +84 -0
  46. data/vendor/assets/javascripts/moment/es.js +87 -71
  47. data/vendor/assets/javascripts/moment/et.js +78 -74
  48. data/vendor/assets/javascripts/moment/eu.js +65 -60
  49. data/vendor/assets/javascripts/moment/fa.js +105 -100
  50. data/vendor/assets/javascripts/moment/fi.js +77 -74
  51. data/vendor/assets/javascripts/moment/fo.js +59 -56
  52. data/vendor/assets/javascripts/moment/fr-ca.js +73 -54
  53. data/vendor/assets/javascripts/moment/fr-ch.js +79 -0
  54. data/vendor/assets/javascripts/moment/fr.js +82 -58
  55. data/vendor/assets/javascripts/moment/fy.js +73 -66
  56. data/vendor/assets/javascripts/moment/gd.js +77 -0
  57. data/vendor/assets/javascripts/moment/gl.js +74 -69
  58. data/vendor/assets/javascripts/moment/gom-latn.js +124 -0
  59. data/vendor/assets/javascripts/moment/gu.js +125 -0
  60. data/vendor/assets/javascripts/moment/he.js +95 -75
  61. data/vendor/assets/javascripts/moment/hi.js +122 -118
  62. data/vendor/assets/javascripts/moment/hr.js +82 -68
  63. data/vendor/assets/javascripts/moment/hu.js +82 -82
  64. data/vendor/assets/javascripts/moment/hy-am.js +80 -102
  65. data/vendor/assets/javascripts/moment/id.js +82 -79
  66. data/vendor/assets/javascripts/moment/is.js +75 -68
  67. data/vendor/assets/javascripts/moment/it.js +68 -65
  68. data/vendor/assets/javascripts/moment/ja.js +79 -61
  69. data/vendor/assets/javascripts/moment/jv.js +84 -0
  70. data/vendor/assets/javascripts/moment/ka.js +82 -101
  71. data/vendor/assets/javascripts/moment/kk.js +88 -0
  72. data/vendor/assets/javascripts/moment/km.js +57 -54
  73. data/vendor/assets/javascripts/moment/kn.js +127 -0
  74. data/vendor/assets/javascripts/moment/ko.js +82 -64
  75. data/vendor/assets/javascripts/moment/ky.js +89 -0
  76. data/vendor/assets/javascripts/moment/lb.js +126 -127
  77. data/vendor/assets/javascripts/moment/lo.js +71 -0
  78. data/vendor/assets/javascripts/moment/lt.js +110 -111
  79. data/vendor/assets/javascripts/moment/lv.js +92 -72
  80. data/vendor/assets/javascripts/moment/me.js +113 -0
  81. data/vendor/assets/javascripts/moment/mi.js +65 -0
  82. data/vendor/assets/javascripts/moment/mk.js +80 -77
  83. data/vendor/assets/javascripts/moment/ml.js +80 -67
  84. data/vendor/assets/javascripts/moment/mr.js +158 -116
  85. data/vendor/assets/javascripts/moment/ms-my.js +82 -78
  86. data/vendor/assets/javascripts/moment/ms.js +83 -0
  87. data/vendor/assets/javascripts/moment/mt.js +61 -0
  88. data/vendor/assets/javascripts/moment/my.js +95 -87
  89. data/vendor/assets/javascripts/moment/nb.js +62 -57
  90. data/vendor/assets/javascripts/moment/ne.js +121 -118
  91. data/vendor/assets/javascripts/moment/nl-be.js +89 -0
  92. data/vendor/assets/javascripts/moment/nl.js +86 -66
  93. data/vendor/assets/javascripts/moment/nn.js +59 -56
  94. data/vendor/assets/javascripts/moment/pa-in.js +125 -0
  95. data/vendor/assets/javascripts/moment/pl.js +99 -72
  96. data/vendor/assets/javascripts/moment/pt-br.js +60 -56
  97. data/vendor/assets/javascripts/moment/pt.js +64 -60
  98. data/vendor/assets/javascripts/moment/ro.js +72 -68
  99. data/vendor/assets/javascripts/moment/ru.js +156 -147
  100. data/vendor/assets/javascripts/moment/sd.js +99 -0
  101. data/vendor/assets/javascripts/moment/se.js +62 -0
  102. data/vendor/assets/javascripts/moment/si.js +72 -0
  103. data/vendor/assets/javascripts/moment/sk.js +80 -80
  104. data/vendor/assets/javascripts/moment/sl.js +117 -89
  105. data/vendor/assets/javascripts/moment/sq.js +69 -65
  106. data/vendor/assets/javascripts/moment/sr-cyrl.js +96 -91
  107. data/vendor/assets/javascripts/moment/sr.js +96 -91
  108. data/vendor/assets/javascripts/moment/ss.js +90 -0
  109. data/vendor/assets/javascripts/moment/sv.js +68 -63
  110. data/vendor/assets/javascripts/moment/sw.js +60 -0
  111. data/vendor/assets/javascripts/moment/ta.js +126 -125
  112. data/vendor/assets/javascripts/moment/te.js +90 -0
  113. data/vendor/assets/javascripts/moment/tet.js +69 -0
  114. data/vendor/assets/javascripts/moment/th.js +66 -61
  115. data/vendor/assets/javascripts/moment/tl-ph.js +61 -58
  116. data/vendor/assets/javascripts/moment/tlh.js +123 -0
  117. data/vendor/assets/javascripts/moment/tr.js +85 -88
  118. data/vendor/assets/javascripts/moment/tzl.js +93 -0
  119. data/vendor/assets/javascripts/moment/tzm-latn.js +57 -54
  120. data/vendor/assets/javascripts/moment/tzm.js +57 -54
  121. data/vendor/assets/javascripts/moment/uk.js +123 -133
  122. data/vendor/assets/javascripts/moment/ur.js +100 -0
  123. data/vendor/assets/javascripts/moment/uz-latn.js +59 -0
  124. data/vendor/assets/javascripts/moment/uz.js +57 -54
  125. data/vendor/assets/javascripts/moment/vi.js +78 -62
  126. data/vendor/assets/javascripts/moment/x-pseudo.js +69 -0
  127. data/vendor/assets/javascripts/moment/yo.js +61 -0
  128. data/vendor/assets/javascripts/moment/zh-cn.js +99 -112
  129. data/vendor/assets/javascripts/moment/zh-hk.js +106 -0
  130. data/vendor/assets/javascripts/moment/zh-tw.js +92 -86
  131. data/vendor/assets/javascripts/moment.js +4128 -2636
  132. metadata +67 -16
  133. data/test/dummy/log/test.log +0 -61
@@ -0,0 +1,106 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Chinese (Hong Kong) [zh-hk]
3
+ //! author : Ben : https://github.com/ben-lin
4
+ //! author : Chris Lam : https://github.com/hehachris
5
+ //! author : Konstantin : https://github.com/skfd
6
+
7
+ ;(function (global, factory) {
8
+ typeof exports === 'object' && typeof module !== 'undefined'
9
+ && typeof require === 'function' ? factory(require('../moment')) :
10
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
11
+ factory(global.moment)
12
+ }(this, (function (moment) { 'use strict';
13
+
14
+
15
+ var zhHk = moment.defineLocale('zh-hk', {
16
+ months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
17
+ monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
18
+ weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
19
+ weekdaysShort : '週日_週一_週二_週三_週四_週五_週六'.split('_'),
20
+ weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
21
+ longDateFormat : {
22
+ LT : 'HH:mm',
23
+ LTS : 'HH:mm:ss',
24
+ L : 'YYYY/MM/DD',
25
+ LL : 'YYYY年M月D日',
26
+ LLL : 'YYYY年M月D日 HH:mm',
27
+ LLLL : 'YYYY年M月D日dddd HH:mm',
28
+ l : 'YYYY/M/D',
29
+ ll : 'YYYY年M月D日',
30
+ lll : 'YYYY年M月D日 HH:mm',
31
+ llll : 'YYYY年M月D日dddd HH:mm'
32
+ },
33
+ meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
34
+ meridiemHour : function (hour, meridiem) {
35
+ if (hour === 12) {
36
+ hour = 0;
37
+ }
38
+ if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
39
+ return hour;
40
+ } else if (meridiem === '中午') {
41
+ return hour >= 11 ? hour : hour + 12;
42
+ } else if (meridiem === '下午' || meridiem === '晚上') {
43
+ return hour + 12;
44
+ }
45
+ },
46
+ meridiem : function (hour, minute, isLower) {
47
+ var hm = hour * 100 + minute;
48
+ if (hm < 600) {
49
+ return '凌晨';
50
+ } else if (hm < 900) {
51
+ return '早上';
52
+ } else if (hm < 1130) {
53
+ return '上午';
54
+ } else if (hm < 1230) {
55
+ return '中午';
56
+ } else if (hm < 1800) {
57
+ return '下午';
58
+ } else {
59
+ return '晚上';
60
+ }
61
+ },
62
+ calendar : {
63
+ sameDay : '[今天]LT',
64
+ nextDay : '[明天]LT',
65
+ nextWeek : '[下]ddddLT',
66
+ lastDay : '[昨天]LT',
67
+ lastWeek : '[上]ddddLT',
68
+ sameElse : 'L'
69
+ },
70
+ dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
71
+ ordinal : function (number, period) {
72
+ switch (period) {
73
+ case 'd' :
74
+ case 'D' :
75
+ case 'DDD' :
76
+ return number + '日';
77
+ case 'M' :
78
+ return number + '月';
79
+ case 'w' :
80
+ case 'W' :
81
+ return number + '週';
82
+ default :
83
+ return number;
84
+ }
85
+ },
86
+ relativeTime : {
87
+ future : '%s內',
88
+ past : '%s前',
89
+ s : '幾秒',
90
+ ss : '%d 秒',
91
+ m : '1 分鐘',
92
+ mm : '%d 分鐘',
93
+ h : '1 小時',
94
+ hh : '%d 小時',
95
+ d : '1 天',
96
+ dd : '%d 天',
97
+ M : '1 個月',
98
+ MM : '%d 個月',
99
+ y : '1 年',
100
+ yy : '%d 年'
101
+ }
102
+ });
103
+
104
+ return zhHk;
105
+
106
+ })));
@@ -1,72 +1,74 @@
1
- // moment.js locale configuration
2
- // locale : traditional chinese (zh-tw)
3
- // author : Ben : https://github.com/ben-lin
1
+ //! moment.js locale configuration
2
+ //! locale : Chinese (Taiwan) [zh-tw]
3
+ //! author : Ben : https://github.com/ben-lin
4
+ //! author : Chris Lam : https://github.com/hehachris
4
5
 
5
- (function (factory) {
6
- if (typeof define === 'function' && define.amd) {
7
- define(['moment'], factory); // AMD
8
- } else if (typeof exports === 'object') {
9
- module.exports = factory(require('../moment')); // Node
10
- } else {
11
- factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
12
- }
13
- }(function (moment) {
14
- return moment.defineLocale('zh-tw', {
15
- months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
16
- monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
17
- weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
18
- weekdaysShort : '週日_週一_週二_週三_週四_週五_週六'.split('_'),
19
- weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
20
- longDateFormat : {
21
- LT : 'Ah點mm',
22
- LTS : 'Ah點m分s秒',
23
- L : 'YYYY年MMMD日',
24
- LL : 'YYYY年MMMD日',
25
- LLL : 'YYYY年MMMDLT',
26
- LLLL : 'YYYY年MMMD日ddddLT',
27
- l : 'YYYY年MMMD日',
28
- ll : 'YYYY年MMMD日',
29
- lll : 'YYYY年MMMDLT',
30
- llll : 'YYYY年MMMD日ddddLT'
31
- },
32
- meridiemParse: /早上|上午|中午|下午|晚上/,
33
- meridiemHour : function (hour, meridiem) {
34
- if (hour === 12) {
35
- hour = 0;
36
- }
37
- if (meridiem === '早上' || meridiem === '上午') {
38
- return hour;
39
- } else if (meridiem === '中午') {
40
- return hour >= 11 ? hour : hour + 12;
41
- } else if (meridiem === '下午' || meridiem === '晚上') {
42
- return hour + 12;
43
- }
44
- },
45
- meridiem : function (hour, minute, isLower) {
46
- var hm = hour * 100 + minute;
47
- if (hm < 900) {
48
- return '早上';
49
- } else if (hm < 1130) {
50
- return '上午';
51
- } else if (hm < 1230) {
52
- return '中午';
53
- } else if (hm < 1800) {
54
- return '下午';
55
- } else {
56
- return '晚上';
57
- }
58
- },
59
- calendar : {
60
- sameDay : '[今天]LT',
61
- nextDay : '[明天]LT',
62
- nextWeek : '[]ddddLT',
63
- lastDay : '[昨天]LT',
64
- lastWeek : '[]ddddLT',
65
- sameElse : 'L'
66
- },
67
- ordinalParse: /\d{1,2}(日|月|週)/,
68
- ordinal : function (number, period) {
69
- switch (period) {
6
+ ;(function (global, factory) {
7
+ typeof exports === 'object' && typeof module !== 'undefined'
8
+ && typeof require === 'function' ? factory(require('../moment')) :
9
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
10
+ factory(global.moment)
11
+ }(this, (function (moment) { 'use strict';
12
+
13
+
14
+ var zhTw = moment.defineLocale('zh-tw', {
15
+ months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
16
+ monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
17
+ weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
18
+ weekdaysShort : '週日_週一_週二_週三_週四_週五_週六'.split('_'),
19
+ weekdaysMin : '______'.split('_'),
20
+ longDateFormat : {
21
+ LT : 'HH:mm',
22
+ LTS : 'HH:mm:ss',
23
+ L : 'YYYY/MM/DD',
24
+ LL : 'YYYY年M月D日',
25
+ LLL : 'YYYY年M月D HH:mm',
26
+ LLLL : 'YYYY年M月Ddddd HH:mm',
27
+ l : 'YYYY/M/D',
28
+ ll : 'YYYY年M月D日',
29
+ lll : 'YYYY年M月D HH:mm',
30
+ llll : 'YYYY年M月Ddddd HH:mm'
31
+ },
32
+ meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
33
+ meridiemHour : function (hour, meridiem) {
34
+ if (hour === 12) {
35
+ hour = 0;
36
+ }
37
+ if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
38
+ return hour;
39
+ } else if (meridiem === '中午') {
40
+ return hour >= 11 ? hour : hour + 12;
41
+ } else if (meridiem === '下午' || meridiem === '晚上') {
42
+ return hour + 12;
43
+ }
44
+ },
45
+ meridiem : function (hour, minute, isLower) {
46
+ var hm = hour * 100 + minute;
47
+ if (hm < 600) {
48
+ return '凌晨';
49
+ } else if (hm < 900) {
50
+ return '早上';
51
+ } else if (hm < 1130) {
52
+ return '上午';
53
+ } else if (hm < 1230) {
54
+ return '中午';
55
+ } else if (hm < 1800) {
56
+ return '下午';
57
+ } else {
58
+ return '晚上';
59
+ }
60
+ },
61
+ calendar : {
62
+ sameDay : '[今天]LT',
63
+ nextDay : '[明天]LT',
64
+ nextWeek : '[]ddddLT',
65
+ lastDay : '[昨天]LT',
66
+ lastWeek : '[上]ddddLT',
67
+ sameElse : 'L'
68
+ },
69
+ dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
70
+ ordinal : function (number, period) {
71
+ switch (period) {
70
72
  case 'd' :
71
73
  case 'D' :
72
74
  case 'DDD' :
@@ -78,22 +80,26 @@
78
80
  return number + '週';
79
81
  default :
80
82
  return number;
81
- }
82
- },
83
- relativeTime : {
84
- future : '%s內',
85
- past : '%s前',
86
- s : '幾秒',
87
- m : '一分鐘',
88
- mm : '%d分鐘',
89
- h : '一小時',
90
- hh : '%d小時',
91
- d : '一天',
92
- dd : '%d天',
93
- M : '一個月',
94
- MM : '%d個月',
95
- y : '一年',
96
- yy : '%d年'
97
83
  }
98
- });
99
- }));
84
+ },
85
+ relativeTime : {
86
+ future : '%s內',
87
+ past : '%s前',
88
+ s : '幾秒',
89
+ ss : '%d 秒',
90
+ m : '1 分鐘',
91
+ mm : '%d 分鐘',
92
+ h : '1 小時',
93
+ hh : '%d 小時',
94
+ d : '1 天',
95
+ dd : '%d 天',
96
+ M : '1 個月',
97
+ MM : '%d 個月',
98
+ y : '1 年',
99
+ yy : '%d 年'
100
+ }
101
+ });
102
+
103
+ return zhTw;
104
+
105
+ })));