momentjs-rails 2.4.0 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/news.md +3 -0
- data/test/dummy/log/test.log +21 -146
- data/test/dummy/tmp/cache/assets/D1C/680/sprockets%2F16ed4d5afdb2919596e6f8790e2116c2 +0 -0
- data/test/dummy/tmp/cache/assets/D35/CA0/sprockets%2F493e64bce2d302801dc01cf7cd096a58 +0 -0
- data/test/dummy/tmp/cache/assets/D3F/5F0/sprockets%2F4a6c53eae7c6e41a69a191578bbb6417 +0 -0
- data/test/dummy/tmp/cache/assets/D58/BD0/sprockets%2F4de9ddc9b725c715a54c98697b2528fe +0 -0
- data/test/dummy/tmp/cache/assets/D75/510/sprockets%2Fe690787ac522f47a6be024bfcc1767ee +0 -0
- data/test/dummy/tmp/cache/assets/E10/250/sprockets%2Fe4badb9ddfda484eb9671bf88567be61 +0 -0
- data/test/integration/navigation_test.rb +1 -1
- data/vendor/assets/javascripts/moment.js +105 -56
- data/vendor/assets/javascripts/moment/et.js +29 -13
- data/vendor/assets/javascripts/moment/it.js +1 -1
- data/vendor/assets/javascripts/moment/ko.js +10 -3
- data/vendor/assets/javascripts/moment/lb.js +160 -0
- data/vendor/assets/javascripts/moment/mk.js +86 -0
- data/vendor/assets/javascripts/moment/pl.js +1 -1
- data/vendor/assets/javascripts/moment/ro.js +25 -9
- data/vendor/assets/javascripts/moment/rs.js +139 -0
- data/vendor/assets/javascripts/moment/sq.js +2 -2
- data/vendor/assets/javascripts/moment/ta.js +112 -0
- data/vendor/assets/javascripts/moment/zh-cn.js +3 -3
- metadata +6 -2
@@ -0,0 +1,112 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : tamil (ta)
|
3
|
+
// author : Arjunkumar Krishnamoorthy : https://github.com/tk120404
|
4
|
+
|
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(window.moment); // Browser global
|
12
|
+
}
|
13
|
+
}(function (moment) {
|
14
|
+
/*var symbolMap = {
|
15
|
+
'1': '௧',
|
16
|
+
'2': '௨',
|
17
|
+
'3': '௩',
|
18
|
+
'4': '௪',
|
19
|
+
'5': '௫',
|
20
|
+
'6': '௬',
|
21
|
+
'7': '௭',
|
22
|
+
'8': '௮',
|
23
|
+
'9': '௯',
|
24
|
+
'0': '௦'
|
25
|
+
},
|
26
|
+
numberMap = {
|
27
|
+
'௧': '1',
|
28
|
+
'௨': '2',
|
29
|
+
'௩': '3',
|
30
|
+
'௪': '4',
|
31
|
+
'௫': '5',
|
32
|
+
'௬': '6',
|
33
|
+
'௭': '7',
|
34
|
+
'௮': '8',
|
35
|
+
'௯': '9',
|
36
|
+
'௦': '0'
|
37
|
+
}; */
|
38
|
+
|
39
|
+
return moment.lang('ta', {
|
40
|
+
months : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split("_"),
|
41
|
+
monthsShort : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split("_"),
|
42
|
+
weekdays : 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split("_"),
|
43
|
+
weekdaysShort : 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split("_"),
|
44
|
+
weekdaysMin : 'ஞா_தி_செ_பு_வி_வெ_ச'.split("_"),
|
45
|
+
longDateFormat : {
|
46
|
+
LT : "HH:mm",
|
47
|
+
L : "DD/MM/YYYY",
|
48
|
+
LL : "D MMMM YYYY",
|
49
|
+
LLL : "D MMMM YYYY, LT",
|
50
|
+
LLLL : "dddd, D MMMM YYYY, LT"
|
51
|
+
},
|
52
|
+
calendar : {
|
53
|
+
sameDay : '[இன்று] LT',
|
54
|
+
nextDay : '[நாளை] LT',
|
55
|
+
nextWeek : 'dddd, LT',
|
56
|
+
lastDay : '[நேற்று] LT',
|
57
|
+
lastWeek : '[கடந்த வாரம்] dddd, LT',
|
58
|
+
sameElse : 'L'
|
59
|
+
},
|
60
|
+
relativeTime : {
|
61
|
+
future : "%s இல்",
|
62
|
+
past : "%s முன்",
|
63
|
+
s : "ஒரு சில விநாடிகள்",
|
64
|
+
m : "ஒரு நிமிடம்",
|
65
|
+
mm : "%d நிமிடங்கள்",
|
66
|
+
h : "ஒரு மணி நேரம்",
|
67
|
+
hh : "%d மணி நேரம்",
|
68
|
+
d : "ஒரு நாள்",
|
69
|
+
dd : "%d நாட்கள்",
|
70
|
+
M : "ஒரு மாதம்",
|
71
|
+
MM : "%d மாதங்கள்",
|
72
|
+
y : "ஒரு வருடம்",
|
73
|
+
yy : "%d ஆண்டுகள்"
|
74
|
+
},
|
75
|
+
/* preparse: function (string) {
|
76
|
+
return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {
|
77
|
+
return numberMap[match];
|
78
|
+
});
|
79
|
+
},
|
80
|
+
postformat: function (string) {
|
81
|
+
return string.replace(/\d/g, function (match) {
|
82
|
+
return symbolMap[match];
|
83
|
+
});
|
84
|
+
},*/
|
85
|
+
ordinal : function (number) {
|
86
|
+
return number + 'வது';
|
87
|
+
},
|
88
|
+
|
89
|
+
|
90
|
+
// refer http://ta.wikipedia.org/s/1er1
|
91
|
+
|
92
|
+
meridiem : function (hour, minute, isLower) {
|
93
|
+
if (hour >= 6 && hour <= 10) {
|
94
|
+
return " காலை";
|
95
|
+
} else if (hour >= 10 && hour <= 14) {
|
96
|
+
return " நண்பகல்";
|
97
|
+
} else if (hour >= 14 && hour <= 18) {
|
98
|
+
return " எற்பாடு";
|
99
|
+
} else if (hour >= 18 && hour <= 20) {
|
100
|
+
return " மாலை";
|
101
|
+
} else if (hour >= 20 && hour <= 24) {
|
102
|
+
return " இரவு";
|
103
|
+
} else if (hour >= 0 && hour <= 6) {
|
104
|
+
return " வைகறை";
|
105
|
+
}
|
106
|
+
},
|
107
|
+
week : {
|
108
|
+
dow : 0, // Sunday is the first day of the week.
|
109
|
+
doy : 6 // The week that contains Jan 1st is the first week of the year.
|
110
|
+
}
|
111
|
+
});
|
112
|
+
}));
|
@@ -20,11 +20,11 @@
|
|
20
20
|
weekdaysMin : "日_一_二_三_四_五_六".split("_"),
|
21
21
|
longDateFormat : {
|
22
22
|
LT : "Ah点mm",
|
23
|
-
L : "YYYY
|
23
|
+
L : "YYYY-MM-DD",
|
24
24
|
LL : "YYYY年MMMD日",
|
25
25
|
LLL : "YYYY年MMMD日LT",
|
26
26
|
LLLL : "YYYY年MMMD日ddddLT",
|
27
|
-
l : "YYYY
|
27
|
+
l : "YYYY-MM-DD",
|
28
28
|
ll : "YYYY年MMMD日",
|
29
29
|
lll : "YYYY年MMMD日LT",
|
30
30
|
llll : "YYYY年MMMD日ddddLT"
|
@@ -67,7 +67,7 @@
|
|
67
67
|
prefix = this.unix() < startOfWeek.unix() ? '[上]' : '[本]';
|
68
68
|
return this.minutes() === 0 ? prefix + "dddAh点整" : prefix + "dddAh点mm";
|
69
69
|
},
|
70
|
-
sameElse : '
|
70
|
+
sameElse : 'LL'
|
71
71
|
},
|
72
72
|
ordinal : function (number, period) {
|
73
73
|
switch (period) {
|
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.
|
4
|
+
version: 2.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Derek Prior
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -82,8 +82,10 @@ files:
|
|
82
82
|
- vendor/assets/javascripts/moment/ja.js
|
83
83
|
- vendor/assets/javascripts/moment/ka.js
|
84
84
|
- vendor/assets/javascripts/moment/ko.js
|
85
|
+
- vendor/assets/javascripts/moment/lb.js
|
85
86
|
- vendor/assets/javascripts/moment/lt.js
|
86
87
|
- vendor/assets/javascripts/moment/lv.js
|
88
|
+
- vendor/assets/javascripts/moment/mk.js
|
87
89
|
- vendor/assets/javascripts/moment/ml.js
|
88
90
|
- vendor/assets/javascripts/moment/mr.js
|
89
91
|
- vendor/assets/javascripts/moment/ms-my.js
|
@@ -95,11 +97,13 @@ files:
|
|
95
97
|
- vendor/assets/javascripts/moment/pt-br.js
|
96
98
|
- vendor/assets/javascripts/moment/pt.js
|
97
99
|
- vendor/assets/javascripts/moment/ro.js
|
100
|
+
- vendor/assets/javascripts/moment/rs.js
|
98
101
|
- vendor/assets/javascripts/moment/ru.js
|
99
102
|
- vendor/assets/javascripts/moment/sk.js
|
100
103
|
- vendor/assets/javascripts/moment/sl.js
|
101
104
|
- vendor/assets/javascripts/moment/sq.js
|
102
105
|
- vendor/assets/javascripts/moment/sv.js
|
106
|
+
- vendor/assets/javascripts/moment/ta.js
|
103
107
|
- vendor/assets/javascripts/moment/th.js
|
104
108
|
- vendor/assets/javascripts/moment/tl-ph.js
|
105
109
|
- vendor/assets/javascripts/moment/tr.js
|