momentjs-rails 2.15.1 → 2.17.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/news.md +3 -0
  4. data/test/integration/navigation_test.rb +1 -1
  5. data/vendor/assets/javascripts/moment.js +3653 -3586
  6. data/vendor/assets/javascripts/moment/af.js +59 -59
  7. data/vendor/assets/javascripts/moment/ar-dz.js +59 -0
  8. data/vendor/assets/javascripts/moment/ar-ly.js +111 -107
  9. data/vendor/assets/javascripts/moment/ar-ma.js +46 -46
  10. data/vendor/assets/javascripts/moment/ar-sa.js +90 -89
  11. data/vendor/assets/javascripts/moment/ar-tn.js +46 -46
  12. data/vendor/assets/javascripts/moment/ar.js +125 -120
  13. data/vendor/assets/javascripts/moment/az.js +90 -90
  14. data/vendor/assets/javascripts/moment/be.js +112 -112
  15. data/vendor/assets/javascripts/moment/bg.js +74 -74
  16. data/vendor/assets/javascripts/moment/bn.js +104 -104
  17. data/vendor/assets/javascripts/moment/bo.js +104 -104
  18. data/vendor/assets/javascripts/moment/br.js +89 -89
  19. data/vendor/assets/javascripts/moment/bs.js +125 -125
  20. data/vendor/assets/javascripts/moment/ca.js +63 -63
  21. data/vendor/assets/javascripts/moment/cs.js +154 -154
  22. data/vendor/assets/javascripts/moment/cv.js +49 -49
  23. data/vendor/assets/javascripts/moment/cy.js +65 -65
  24. data/vendor/assets/javascripts/moment/da.js +47 -47
  25. data/vendor/assets/javascripts/moment/de-at.js +62 -62
  26. data/vendor/assets/javascripts/moment/de.js +62 -62
  27. data/vendor/assets/javascripts/moment/dv.js +84 -83
  28. data/vendor/assets/javascripts/moment/el.js +81 -81
  29. data/vendor/assets/javascripts/moment/en-au.js +54 -54
  30. data/vendor/assets/javascripts/moment/en-ca.js +50 -50
  31. data/vendor/assets/javascripts/moment/en-gb.js +54 -54
  32. data/vendor/assets/javascripts/moment/en-ie.js +54 -54
  33. data/vendor/assets/javascripts/moment/en-nz.js +54 -54
  34. data/vendor/assets/javascripts/moment/eo.js +57 -57
  35. data/vendor/assets/javascripts/moment/es-do.js +63 -63
  36. data/vendor/assets/javascripts/moment/es.js +63 -63
  37. data/vendor/assets/javascripts/moment/et.js +64 -64
  38. data/vendor/assets/javascripts/moment/eu.js +53 -53
  39. data/vendor/assets/javascripts/moment/fa.js +92 -91
  40. data/vendor/assets/javascripts/moment/fi.js +92 -92
  41. data/vendor/assets/javascripts/moment/fo.js +47 -47
  42. data/vendor/assets/javascripts/moment/fr-ca.js +47 -47
  43. data/vendor/assets/javascripts/moment/fr-ch.js +51 -51
  44. data/vendor/assets/javascripts/moment/fr.js +51 -51
  45. data/vendor/assets/javascripts/moment/fy.js +58 -58
  46. data/vendor/assets/javascripts/moment/gd.js +58 -58
  47. data/vendor/assets/javascripts/moment/gl.js +61 -61
  48. data/vendor/assets/javascripts/moment/he.js +78 -78
  49. data/vendor/assets/javascripts/moment/hi.js +109 -109
  50. data/vendor/assets/javascripts/moment/hr.js +128 -128
  51. data/vendor/assets/javascripts/moment/hu.js +92 -92
  52. data/vendor/assets/javascripts/moment/hy-am.js +79 -79
  53. data/vendor/assets/javascripts/moment/id.js +68 -68
  54. data/vendor/assets/javascripts/moment/is.js +106 -106
  55. data/vendor/assets/javascripts/moment/it.js +54 -54
  56. data/vendor/assets/javascripts/moment/ja.js +62 -62
  57. data/vendor/assets/javascripts/moment/jv.js +69 -69
  58. data/vendor/assets/javascripts/moment/ka.js +71 -71
  59. data/vendor/assets/javascripts/moment/kk.js +73 -73
  60. data/vendor/assets/javascripts/moment/km.js +45 -45
  61. data/vendor/assets/javascripts/moment/ko.js +51 -51
  62. data/vendor/assets/javascripts/moment/ky.js +73 -73
  63. data/vendor/assets/javascripts/moment/lb.js +114 -114
  64. data/vendor/assets/javascripts/moment/lo.js +56 -56
  65. data/vendor/assets/javascripts/moment/lt.js +100 -100
  66. data/vendor/assets/javascripts/moment/lv.js +81 -81
  67. data/vendor/assets/javascripts/moment/me.js +93 -93
  68. data/vendor/assets/javascripts/moment/mi.js +51 -51
  69. data/vendor/assets/javascripts/moment/mk.js +74 -74
  70. data/vendor/assets/javascripts/moment/ml.js +67 -67
  71. data/vendor/assets/javascripts/moment/mr.js +139 -139
  72. data/vendor/assets/javascripts/moment/ms-my.js +68 -68
  73. data/vendor/assets/javascripts/moment/ms.js +68 -68
  74. data/vendor/assets/javascripts/moment/my.js +79 -78
  75. data/vendor/assets/javascripts/moment/nb.js +49 -49
  76. data/vendor/assets/javascripts/moment/ne.js +108 -108
  77. data/vendor/assets/javascripts/moment/nl-be.js +86 -0
  78. data/vendor/assets/javascripts/moment/nl.js +67 -67
  79. data/vendor/assets/javascripts/moment/nn.js +47 -47
  80. data/vendor/assets/javascripts/moment/pa-in.js +109 -109
  81. data/vendor/assets/javascripts/moment/pl.js +88 -88
  82. data/vendor/assets/javascripts/moment/pt-br.js +47 -47
  83. data/vendor/assets/javascripts/moment/pt.js +51 -51
  84. data/vendor/assets/javascripts/moment/ro.js +59 -59
  85. data/vendor/assets/javascripts/moment/ru.js +153 -153
  86. data/vendor/assets/javascripts/moment/se.js +47 -47
  87. data/vendor/assets/javascripts/moment/si.js +57 -57
  88. data/vendor/assets/javascripts/moment/sk.js +132 -132
  89. data/vendor/assets/javascripts/moment/sl.js +144 -144
  90. data/vendor/assets/javascripts/moment/sq.js +55 -55
  91. data/vendor/assets/javascripts/moment/sr-cyrl.js +93 -93
  92. data/vendor/assets/javascripts/moment/sr.js +93 -93
  93. data/vendor/assets/javascripts/moment/ss.js +73 -73
  94. data/vendor/assets/javascripts/moment/sv.js +56 -56
  95. data/vendor/assets/javascripts/moment/sw.js +46 -46
  96. data/vendor/assets/javascripts/moment/ta.js +115 -114
  97. data/vendor/assets/javascripts/moment/te.js +75 -75
  98. data/vendor/assets/javascripts/moment/tet.js +68 -0
  99. data/vendor/assets/javascripts/moment/th.js +53 -53
  100. data/vendor/assets/javascripts/moment/tl-ph.js +49 -49
  101. data/vendor/assets/javascripts/moment/tlh.js +100 -100
  102. data/vendor/assets/javascripts/moment/tr.js +74 -74
  103. data/vendor/assets/javascripts/moment/tzl.js +75 -75
  104. data/vendor/assets/javascripts/moment/tzm-latn.js +45 -45
  105. data/vendor/assets/javascripts/moment/tzm.js +45 -45
  106. data/vendor/assets/javascripts/moment/uk.js +125 -125
  107. data/vendor/assets/javascripts/moment/uz.js +45 -45
  108. data/vendor/assets/javascripts/moment/vi.js +65 -65
  109. data/vendor/assets/javascripts/moment/x-pseudo.js +55 -55
  110. data/vendor/assets/javascripts/moment/yo.js +60 -0
  111. data/vendor/assets/javascripts/moment/zh-cn.js +107 -107
  112. data/vendor/assets/javascripts/moment/zh-hk.js +89 -89
  113. data/vendor/assets/javascripts/moment/zh-tw.js +89 -89
  114. metadata +6 -2
@@ -8,97 +8,97 @@
8
8
  && typeof require === 'function' ? factory(require('../moment')) :
9
9
  typeof define === 'function' && define.amd ? define(['../moment'], factory) :
10
10
  factory(global.moment)
11
- }(this, function (moment) { 'use strict';
11
+ }(this, (function (moment) { 'use strict';
12
12
 
13
13
 
14
- var zh_tw = 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年MMMD日Ah點mm分',
26
- LLLL : 'YYYY年MMMD日ddddAh點mm分',
27
- l : 'YYYY年MMMD日',
28
- ll : 'YYYY年MMMD日',
29
- lll : 'YYYY年MMMD日Ah點mm分',
30
- llll : 'YYYY年MMMD日ddddAh點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
- ordinalParse: /\d{1,2}(日|月|週)/,
70
- ordinal : function (number, period) {
71
- switch (period) {
72
- case 'd' :
73
- case 'D' :
74
- case 'DDD' :
75
- return number + '日';
76
- case 'M' :
77
- return number + '月';
78
- case 'w' :
79
- case 'W' :
80
- return number + '週';
81
- default :
82
- return number;
83
- }
84
- },
85
- relativeTime : {
86
- future : '%s內',
87
- past : '%s前',
88
- s : '幾秒',
89
- m : '1 分鐘',
90
- mm : '%d 分鐘',
91
- h : '1 小時',
92
- hh : '%d 小時',
93
- d : '1 天',
94
- dd : '%d 天',
95
- M : '1 個月',
96
- MM : '%d 個月',
97
- y : '1 年',
98
- yy : '%d 年'
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 : 'Ah點mm分',
22
+ LTS : 'Ah點m分s秒',
23
+ L : 'YYYY年MMMD日',
24
+ LL : 'YYYY年MMMD日',
25
+ LLL : 'YYYY年MMMD日Ah點mm分',
26
+ LLLL : 'YYYY年MMMD日ddddAh點mm分',
27
+ l : 'YYYY年MMMD日',
28
+ ll : 'YYYY年MMMD日',
29
+ lll : 'YYYY年MMMD日Ah點mm分',
30
+ llll : 'YYYY年MMMD日ddddAh點mm分'
31
+ },
32
+ meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
33
+ meridiemHour : function (hour, meridiem) {
34
+ if (hour === 12) {
35
+ hour = 0;
99
36
  }
100
- });
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
+ ordinalParse: /\d{1,2}(日|月|週)/,
70
+ ordinal : function (number, period) {
71
+ switch (period) {
72
+ case 'd' :
73
+ case 'D' :
74
+ case 'DDD' :
75
+ return number + '日';
76
+ case 'M' :
77
+ return number + '月';
78
+ case 'w' :
79
+ case 'W' :
80
+ return number + '週';
81
+ default :
82
+ return number;
83
+ }
84
+ },
85
+ relativeTime : {
86
+ future : '%s內',
87
+ past : '%s前',
88
+ s : '幾秒',
89
+ m : '1 分鐘',
90
+ mm : '%d 分鐘',
91
+ h : '1 小時',
92
+ hh : '%d 小時',
93
+ d : '1 天',
94
+ dd : '%d 天',
95
+ M : '1 個月',
96
+ MM : '%d 個月',
97
+ y : '1 年',
98
+ yy : '%d 年'
99
+ }
100
+ });
101
101
 
102
- return zh_tw;
102
+ return zhTw;
103
103
 
104
- }));
104
+ })));
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.15.1
4
+ version: 2.17.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-09-22 00:00:00.000000000 Z
11
+ date: 2017-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -91,6 +91,7 @@ files:
91
91
  - test/test_helper.rb
92
92
  - vendor/assets/javascripts/moment.js
93
93
  - vendor/assets/javascripts/moment/af.js
94
+ - vendor/assets/javascripts/moment/ar-dz.js
94
95
  - vendor/assets/javascripts/moment/ar-ly.js
95
96
  - vendor/assets/javascripts/moment/ar-ma.js
96
97
  - vendor/assets/javascripts/moment/ar-sa.js
@@ -160,6 +161,7 @@ files:
160
161
  - vendor/assets/javascripts/moment/my.js
161
162
  - vendor/assets/javascripts/moment/nb.js
162
163
  - vendor/assets/javascripts/moment/ne.js
164
+ - vendor/assets/javascripts/moment/nl-be.js
163
165
  - vendor/assets/javascripts/moment/nl.js
164
166
  - vendor/assets/javascripts/moment/nn.js
165
167
  - vendor/assets/javascripts/moment/pa-in.js
@@ -180,6 +182,7 @@ files:
180
182
  - vendor/assets/javascripts/moment/sw.js
181
183
  - vendor/assets/javascripts/moment/ta.js
182
184
  - vendor/assets/javascripts/moment/te.js
185
+ - vendor/assets/javascripts/moment/tet.js
183
186
  - vendor/assets/javascripts/moment/th.js
184
187
  - vendor/assets/javascripts/moment/tl-ph.js
185
188
  - vendor/assets/javascripts/moment/tlh.js
@@ -191,6 +194,7 @@ files:
191
194
  - vendor/assets/javascripts/moment/uz.js
192
195
  - vendor/assets/javascripts/moment/vi.js
193
196
  - vendor/assets/javascripts/moment/x-pseudo.js
197
+ - vendor/assets/javascripts/moment/yo.js
194
198
  - vendor/assets/javascripts/moment/zh-cn.js
195
199
  - vendor/assets/javascripts/moment/zh-hk.js
196
200
  - vendor/assets/javascripts/moment/zh-tw.js