momentjs-rails 1.6.2 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. data/README.md +1 -1
  2. data/changelog.md +4 -0
  3. data/vendor/assets/javascripts/moment.js +407 -219
  4. data/vendor/assets/javascripts/moment/bg.js +66 -0
  5. data/vendor/assets/javascripts/moment/ca.js +5 -1
  6. data/vendor/assets/javascripts/moment/cv.js +54 -0
  7. data/vendor/assets/javascripts/moment/da.js +6 -2
  8. data/vendor/assets/javascripts/moment/de.js +5 -1
  9. data/vendor/assets/javascripts/moment/en-ca.js +58 -0
  10. data/vendor/assets/javascripts/moment/en-gb.js +5 -1
  11. data/vendor/assets/javascripts/moment/es.js +5 -1
  12. data/vendor/assets/javascripts/moment/eu.js +5 -1
  13. data/vendor/assets/javascripts/moment/fi.js +6 -2
  14. data/vendor/assets/javascripts/moment/fr-ca.js +54 -0
  15. data/vendor/assets/javascripts/moment/fr.js +5 -1
  16. data/vendor/assets/javascripts/moment/gl.js +5 -1
  17. data/vendor/assets/javascripts/moment/hu.js +108 -0
  18. data/vendor/assets/javascripts/moment/is.js +5 -1
  19. data/vendor/assets/javascripts/moment/it.js +8 -4
  20. data/vendor/assets/javascripts/moment/ja.js +61 -0
  21. data/vendor/assets/javascripts/moment/jp.js +12 -5
  22. data/vendor/assets/javascripts/moment/ko.js +58 -0
  23. data/vendor/assets/javascripts/moment/kr.js +9 -2
  24. data/vendor/assets/javascripts/moment/nb.js +5 -1
  25. data/vendor/assets/javascripts/moment/nl.js +15 -3
  26. data/vendor/assets/javascripts/moment/pl.js +5 -1
  27. data/vendor/assets/javascripts/moment/pt-br.js +58 -0
  28. data/vendor/assets/javascripts/moment/pt.js +6 -2
  29. data/vendor/assets/javascripts/moment/ru.js +38 -8
  30. data/vendor/assets/javascripts/moment/sv.js +5 -1
  31. data/vendor/assets/javascripts/moment/tr.js +40 -6
  32. data/vendor/assets/javascripts/moment/zh-cn.js +6 -2
  33. data/vendor/assets/javascripts/moment/zh-tw.js +5 -1
  34. metadata +12 -4
@@ -1,10 +1,14 @@
1
+ // moment.js language configuration
2
+ // language : portuguese (pt)
3
+ // author : Jefferson : https://github.com/jalex79
1
4
  (function () {
2
5
  var lang = {
3
6
  months : "Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),
4
7
  monthsShort : "Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),
5
8
  weekdays : "Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),
6
9
  weekdaysShort : "Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),
7
- longDateFormat : {
10
+ weekdaysMin : "Dom_2ª_3ª_4ª_5ª_6ª_Sáb".split("_"),
11
+ longDateFormat : {
8
12
  LT : "HH:mm",
9
13
  L : "DD/MM/YYYY",
10
14
  LL : "D \\de MMMM \\de YYYY",
@@ -44,7 +48,7 @@
44
48
  };
45
49
 
46
50
  // Node
47
- if (typeof module !== 'undefined') {
51
+ if (typeof module !== 'undefined' && module.exports) {
48
52
  module.exports = lang;
49
53
  }
50
54
  // Browser
@@ -1,3 +1,6 @@
1
+ // moment.js language configuration
2
+ // language : russian (ru)
3
+ // author : Viktorminator : https://github.com/Viktorminator
1
4
  (function () {
2
5
 
3
6
  var pluralRules = [
@@ -36,17 +39,44 @@
36
39
  }
37
40
  },
38
41
 
42
+ monthsCaseReplace = function (m, format) {
43
+ var months = {
44
+ 'nominative': 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'),
45
+ 'accusative': 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split('_')
46
+ },
47
+
48
+ nounCase = (/D[oD]? *MMMM?/).test(format) ?
49
+ 'accusative' :
50
+ 'nominative';
51
+
52
+ return months[nounCase][m.month()];
53
+ },
54
+
55
+ weekdaysCaseReplace = function (m, format) {
56
+ var weekdays = {
57
+ 'nominative': 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split('_'),
58
+ 'accusative': 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split('_'),
59
+ },
60
+
61
+ nounCase = (/\[ ?[Вв] ?(?:прошлую|следующую)? ?\] ?dddd/).test(format) ?
62
+ 'accusative' :
63
+ 'nominative';
64
+
65
+ return weekdays[nounCase][m.day()];
66
+ },
67
+
39
68
  lang = {
40
- months : "январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),
69
+ months : monthsCaseReplace,
41
70
  monthsShort : "янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),
42
- weekdays : "воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),
43
- weekdaysShort : "вск_пнд_втр_срд_чтв_птн_суб".split("_"),
71
+ weekdays : weekdaysCaseReplace,
72
+ weekdaysShort : "вск_пнд_втр_срд_чтв_птн_сбт".split("_"),
73
+ weekdaysMin : "вс_пн_вт_ср_чт_пт_сб".split("_"),
44
74
  longDateFormat : {
45
75
  LT : "HH:mm",
46
- L : "DD-MM-YYYY",
47
- LL : "D MMMM YYYY",
48
- LLL : "D MMMM YYYY LT",
49
- LLLL : "dddd, D MMMM YYYY LT"
76
+ L : "DD.MM.YYYY",
77
+ LL : "D MMMM YYYY г.",
78
+ LLL : "D MMMM YYYY г., LT",
79
+ LLLL : "dddd, D MMMM YYYY г., LT"
50
80
  },
51
81
  calendar : {
52
82
  sameDay: '[Сегодня в] LT',
@@ -93,7 +123,7 @@
93
123
  };
94
124
 
95
125
  // Node
96
- if (typeof module !== 'undefined') {
126
+ if (typeof module !== 'undefined' && module.exports) {
97
127
  module.exports = lang;
98
128
  }
99
129
  // Browser
@@ -1,9 +1,13 @@
1
+ // moment.js language configuration
2
+ // language : swedish (sv)
3
+ // author : Jens Alm : https://github.com/ulmus
1
4
  (function () {
2
5
  var lang = {
3
6
  months : "januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),
4
7
  monthsShort : "jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),
5
8
  weekdays : "söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),
6
9
  weekdaysShort : "sön_mån_tis_ons_tor_fre_lör".split("_"),
10
+ weekdaysMin : "sö_må_ti_on_to_fr_lö".split("_"),
7
11
  longDateFormat : {
8
12
  LT : "HH:mm",
9
13
  L : "YYYY-MM-DD",
@@ -44,7 +48,7 @@
44
48
  };
45
49
 
46
50
  // Node
47
- if (typeof module !== 'undefined') {
51
+ if (typeof module !== 'undefined' && module.exports) {
48
52
  module.exports = lang;
49
53
  }
50
54
  // Browser
@@ -1,9 +1,39 @@
1
+ // moment.js language configuration
2
+ // language : turkish (tr)
3
+ // authors : Erhan Gundogan : https://github.com/erhangundogan,
4
+ // Burak Yiğit Kaya: https://github.com/BYK
1
5
  (function () {
6
+ var suffixes = {
7
+ 1: "'inci",
8
+ 5: "'inci",
9
+ 8: "'inci",
10
+ 70: "'inci",
11
+ 80: "'inci",
12
+
13
+ 2: "'nci",
14
+ 7: "'nci",
15
+ 20: "'nci",
16
+ 50: "'nci",
17
+
18
+ 3: "'üncü",
19
+ 4: "'üncü",
20
+ 100: "'üncü",
21
+
22
+ 6: "'ncı",
23
+
24
+ 9: "'uncu",
25
+ 10: "'uncu",
26
+ 30: "'uncu",
27
+
28
+ 60: "'ıncı",
29
+ 90: "'ıncı"
30
+ };
2
31
  var lang = {
3
32
  months : "Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),
4
33
  monthsShort : "Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),
5
34
  weekdays : "Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),
6
35
  weekdaysShort : "Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),
36
+ weekdaysMin : "Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),
7
37
  longDateFormat : {
8
38
  LT : "HH:mm",
9
39
  L : "DD.MM.YYYY",
@@ -35,16 +65,20 @@
35
65
  yy : "%d yıl"
36
66
  },
37
67
  ordinal : function (number) {
38
- var b = number % 10;
39
- return (~~ (number % 100 / 10) === 1) ? 'th' :
40
- (b === 1) ? 'st' :
41
- (b === 2) ? 'nd' :
42
- (b === 3) ? 'rd' : 'th';
68
+ if (number === 0) { // special case for zero
69
+ return "'ıncı";
70
+ }
71
+
72
+ var a = number % 10;
73
+ var b = number % 100 - a;
74
+ var c = number >= 100 ? 100 : null;
75
+
76
+ return suffixes[a] || suffixes[b] || suffixes[c];
43
77
  }
44
78
  };
45
79
 
46
80
  // Node
47
- if (typeof module !== 'undefined') {
81
+ if (typeof module !== 'undefined' && module.exports) {
48
82
  module.exports = lang;
49
83
  }
50
84
  // Browser
@@ -1,9 +1,13 @@
1
+ // moment.js language configuration
2
+ // language : chinese
3
+ // author : suupic : https://github.com/suupic
1
4
  (function () {
2
5
  var lang = {
3
6
  months : "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),
4
7
  monthsShort : "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),
5
8
  weekdays : "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),
6
9
  weekdaysShort : "周日_周一_周二_周三_周四_周五_周六".split("_"),
10
+ weekdaysMin : "日_一_二_三_四_五_六".split("_"),
7
11
  longDateFormat : {
8
12
  LT : "Ah点mm",
9
13
  L : "YYYY年MMMD日",
@@ -48,12 +52,12 @@
48
52
  yy : "%d年"
49
53
  },
50
54
  ordinal : function (number) {
51
- return '';
55
+ return '';
52
56
  }
53
57
  };
54
58
 
55
59
  // Node
56
- if (typeof module !== 'undefined') {
60
+ if (typeof module !== 'undefined' && module.exports) {
57
61
  module.exports = lang;
58
62
  }
59
63
  // Browser
@@ -1,9 +1,13 @@
1
+ // moment.js language configuration
2
+ // language : traditional chinese (zh-tw)
3
+ // author : Ben : https://github.com/ben-lin
1
4
  (function () {
2
5
  var lang = {
3
6
  months : "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),
4
7
  monthsShort : "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),
5
8
  weekdays : "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),
6
9
  weekdaysShort : "週日_週一_週二_週三_週四_週五_週六".split("_"),
10
+ weekdaysMin : "日_一_二_三_四_五_六".split("_"),
7
11
  longDateFormat : {
8
12
  LT : "Ah點mm",
9
13
  L : "YYYY年MMMD日",
@@ -53,7 +57,7 @@
53
57
  };
54
58
 
55
59
  // Node
56
- if (typeof module !== 'undefined') {
60
+ if (typeof module !== 'undefined' && module.exports) {
57
61
  module.exports = lang;
58
62
  }
59
63
  // Browser
metadata CHANGED
@@ -5,9 +5,9 @@ version: !ruby/object:Gem::Version
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
- - 6
9
- - 2
10
- version: 1.6.2
8
+ - 7
9
+ - 0
10
+ version: 1.7.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Derek Prior
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-06-07 00:00:00 -04:00
18
+ date: 2012-08-06 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -43,22 +43,30 @@ extra_rdoc_files: []
43
43
 
44
44
  files:
45
45
  - lib/momentjs-rails.rb
46
+ - vendor/assets/javascripts/moment/bg.js
46
47
  - vendor/assets/javascripts/moment/ca.js
48
+ - vendor/assets/javascripts/moment/cv.js
47
49
  - vendor/assets/javascripts/moment/da.js
48
50
  - vendor/assets/javascripts/moment/de.js
51
+ - vendor/assets/javascripts/moment/en-ca.js
49
52
  - vendor/assets/javascripts/moment/en-gb.js
50
53
  - vendor/assets/javascripts/moment/es.js
51
54
  - vendor/assets/javascripts/moment/eu.js
52
55
  - vendor/assets/javascripts/moment/fi.js
56
+ - vendor/assets/javascripts/moment/fr-ca.js
53
57
  - vendor/assets/javascripts/moment/fr.js
54
58
  - vendor/assets/javascripts/moment/gl.js
59
+ - vendor/assets/javascripts/moment/hu.js
55
60
  - vendor/assets/javascripts/moment/is.js
56
61
  - vendor/assets/javascripts/moment/it.js
62
+ - vendor/assets/javascripts/moment/ja.js
57
63
  - vendor/assets/javascripts/moment/jp.js
64
+ - vendor/assets/javascripts/moment/ko.js
58
65
  - vendor/assets/javascripts/moment/kr.js
59
66
  - vendor/assets/javascripts/moment/nb.js
60
67
  - vendor/assets/javascripts/moment/nl.js
61
68
  - vendor/assets/javascripts/moment/pl.js
69
+ - vendor/assets/javascripts/moment/pt-br.js
62
70
  - vendor/assets/javascripts/moment/pt.js
63
71
  - vendor/assets/javascripts/moment/ru.js
64
72
  - vendor/assets/javascripts/moment/sv.js