rails-timeago 2.16.0 → 2.17.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.rubocop.yml +53 -0
- data/.travis.yml +20 -8
- data/CHANGELOG.md +8 -0
- data/Gemfile +3 -5
- data/Rakefile +14 -12
- data/lib/assets/javascripts/rails-timeago-all.js +4 -0
- data/lib/rails-timeago.rb +21 -17
- data/lib/rails-timeago/helper.rb +13 -10
- data/lib/rails-timeago/version.rb +4 -2
- data/rails-timeago.gemspec +13 -11
- data/spec/rails-timeago_spec.rb +2 -0
- data/spec/spec_helper.rb +2 -0
- data/spec/support/stub.rb +11 -9
- data/spec/timeago/helper_spec.rb +27 -25
- data/vendor/assets/javascripts/jquery.timeago.js +1 -1
- data/vendor/assets/javascripts/locales/jquery.timeago.af.js +30 -20
- data/vendor/assets/javascripts/locales/jquery.timeago.am.js +30 -0
- data/vendor/assets/javascripts/locales/jquery.timeago.ar.js +12 -4
- data/vendor/assets/javascripts/locales/jquery.timeago.az-short.js +30 -20
- data/vendor/assets/javascripts/locales/jquery.timeago.az.js +30 -20
- data/vendor/assets/javascripts/locales/jquery.timeago.be.js +43 -0
- data/vendor/assets/javascripts/locales/jquery.timeago.bg.js +28 -18
- data/vendor/assets/javascripts/locales/jquery.timeago.bs.js +13 -7
- data/vendor/assets/javascripts/locales/jquery.timeago.ca.js +30 -20
- data/vendor/assets/javascripts/locales/jquery.timeago.cs.js +34 -24
- data/vendor/assets/javascripts/locales/jquery.timeago.cy.js +30 -20
- data/vendor/assets/javascripts/locales/jquery.timeago.da.js +28 -18
- data/vendor/assets/javascripts/locales/jquery.timeago.de-short.js +30 -20
- data/vendor/assets/javascripts/locales/jquery.timeago.de.js +28 -18
- data/vendor/assets/javascripts/locales/jquery.timeago.dv.js +32 -22
- data/vendor/assets/javascripts/locales/jquery.timeago.el.js +28 -18
- data/vendor/assets/javascripts/locales/jquery.timeago.en-short.js +30 -20
- data/vendor/assets/javascripts/locales/jquery.timeago.es-short.js +31 -20
- data/vendor/assets/javascripts/locales/jquery.timeago.es.js +29 -18
- data/vendor/assets/javascripts/locales/jquery.timeago.et.js +28 -18
- data/vendor/assets/javascripts/locales/jquery.timeago.eu.js +28 -17
- data/vendor/assets/javascripts/locales/jquery.timeago.fa-short.js +30 -20
- data/vendor/assets/javascripts/locales/jquery.timeago.fa.js +32 -22
- data/vendor/assets/javascripts/locales/jquery.timeago.fi.js +38 -28
- data/vendor/assets/javascripts/locales/jquery.timeago.fr-short.js +26 -16
- data/vendor/assets/javascripts/locales/jquery.timeago.fr.js +27 -17
- data/vendor/assets/javascripts/locales/jquery.timeago.gl.js +28 -18
- data/vendor/assets/javascripts/locales/jquery.timeago.he.js +26 -16
- data/vendor/assets/javascripts/locales/jquery.timeago.hr.js +53 -48
- data/vendor/assets/javascripts/locales/jquery.timeago.hu.js +28 -18
- data/vendor/assets/javascripts/locales/jquery.timeago.hy.js +28 -18
- data/vendor/assets/javascripts/locales/jquery.timeago.id.js +29 -18
- data/vendor/assets/javascripts/locales/jquery.timeago.is.js +29 -19
- data/vendor/assets/javascripts/locales/jquery.timeago.it-short.js +30 -20
- data/vendor/assets/javascripts/locales/jquery.timeago.it.js +28 -16
- data/vendor/assets/javascripts/locales/jquery.timeago.ja.js +29 -19
- data/vendor/assets/javascripts/locales/jquery.timeago.jv.js +28 -18
- data/vendor/assets/javascripts/locales/jquery.timeago.ko.js +31 -20
- data/vendor/assets/javascripts/locales/jquery.timeago.ky.js +11 -3
- data/vendor/assets/javascripts/locales/jquery.timeago.lt.js +30 -20
- data/vendor/assets/javascripts/locales/jquery.timeago.lv.js +30 -20
- data/vendor/assets/javascripts/locales/jquery.timeago.mk.js +30 -20
- data/vendor/assets/javascripts/locales/jquery.timeago.nl.js +30 -20
- data/vendor/assets/javascripts/locales/jquery.timeago.no.js +28 -18
- data/vendor/assets/javascripts/locales/jquery.timeago.pl.js +11 -3
- data/vendor/assets/javascripts/locales/jquery.timeago.pt-br-short.js +30 -20
- data/vendor/assets/javascripts/locales/jquery.timeago.pt-br.js +28 -18
- data/vendor/assets/javascripts/locales/jquery.timeago.pt-short.js +30 -20
- data/vendor/assets/javascripts/locales/jquery.timeago.pt.js +26 -16
- data/vendor/assets/javascripts/locales/jquery.timeago.ro.js +29 -18
- data/vendor/assets/javascripts/locales/jquery.timeago.rs.js +53 -48
- data/vendor/assets/javascripts/locales/jquery.timeago.ru.js +11 -3
- data/vendor/assets/javascripts/locales/jquery.timeago.rw.js +30 -20
- data/vendor/assets/javascripts/locales/jquery.timeago.si.js +28 -18
- data/vendor/assets/javascripts/locales/jquery.timeago.sk.js +34 -24
- data/vendor/assets/javascripts/locales/jquery.timeago.sl.js +45 -39
- data/vendor/assets/javascripts/locales/jquery.timeago.sq.js +26 -0
- data/vendor/assets/javascripts/locales/jquery.timeago.sr.js +53 -48
- data/vendor/assets/javascripts/locales/jquery.timeago.sv.js +28 -18
- data/vendor/assets/javascripts/locales/jquery.timeago.th.js +30 -20
- data/vendor/assets/javascripts/locales/jquery.timeago.tr-short.js +30 -20
- data/vendor/assets/javascripts/locales/jquery.timeago.tr.js +26 -16
- data/vendor/assets/javascripts/locales/jquery.timeago.uk.js +11 -3
- data/vendor/assets/javascripts/locales/jquery.timeago.ur.js +30 -0
- data/vendor/assets/javascripts/locales/jquery.timeago.uz.js +29 -19
- data/vendor/assets/javascripts/locales/jquery.timeago.vi.js +30 -20
- data/vendor/assets/javascripts/locales/jquery.timeago.zh-CN.js +31 -20
- data/vendor/assets/javascripts/locales/jquery.timeago.zh-TW.js +30 -20
- metadata +8 -4
@@ -1,5 +1,13 @@
|
|
1
|
-
|
2
|
-
(function
|
1
|
+
(function (factory) {
|
2
|
+
if (typeof define === 'function' && define.amd) {
|
3
|
+
define(['jquery'], factory);
|
4
|
+
} else if (typeof module === 'object' && typeof module.exports === 'object') {
|
5
|
+
factory(require('jquery'));
|
6
|
+
} else {
|
7
|
+
factory(jQuery);
|
8
|
+
}
|
9
|
+
}(function (jQuery) {
|
10
|
+
// Ukrainian
|
3
11
|
function numpf(n, f, s, t) {
|
4
12
|
// f - 1, 21, 31, ...
|
5
13
|
// s - 2-4, 22-24, 32-34 ...
|
@@ -31,4 +39,4 @@
|
|
31
39
|
year: "рік",
|
32
40
|
years: function(value) { return numpf(value, "%d рік", "%d роки", "%d років"); }
|
33
41
|
};
|
34
|
-
})
|
42
|
+
}));
|
@@ -0,0 +1,30 @@
|
|
1
|
+
(function (factory) {
|
2
|
+
if (typeof define === 'function' && define.amd) {
|
3
|
+
define(['jquery'], factory);
|
4
|
+
} else if (typeof module === 'object' && typeof module.exports === 'object') {
|
5
|
+
factory(require('jquery'));
|
6
|
+
} else {
|
7
|
+
factory(jQuery);
|
8
|
+
}
|
9
|
+
}(function (jQuery) {
|
10
|
+
// Urdu
|
11
|
+
jQuery.timeago.settings.strings["ur"] = {
|
12
|
+
prefixAgo: null,
|
13
|
+
prefixFromNow: null,
|
14
|
+
suffixAgo: "پہلے",
|
15
|
+
suffixFromNow: "اب سے",
|
16
|
+
seconds: "کچھ سیکنڈز",
|
17
|
+
minute: "تقریباً ایک منٹ",
|
18
|
+
minutes: "%d منٹ",
|
19
|
+
hour: "تقریباً ایک گھنٹہ",
|
20
|
+
hours: "تقریباً %d گھنٹے",
|
21
|
+
day: "ایک دن",
|
22
|
+
days: "%d دن",
|
23
|
+
month: "تقریباً ایک مہینہ",
|
24
|
+
months: "%d مہینے",
|
25
|
+
year: "تقریباً ایک سال",
|
26
|
+
years: "%d سال",
|
27
|
+
wordSeparator: " ",
|
28
|
+
numbers: []
|
29
|
+
};
|
30
|
+
}));
|
@@ -1,19 +1,29 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
1
|
+
(function (factory) {
|
2
|
+
if (typeof define === 'function' && define.amd) {
|
3
|
+
define(['jquery'], factory);
|
4
|
+
} else if (typeof module === 'object' && typeof module.exports === 'object') {
|
5
|
+
factory(require('jquery'));
|
6
|
+
} else {
|
7
|
+
factory(jQuery);
|
8
|
+
}
|
9
|
+
}(function (jQuery) {
|
10
|
+
//Uzbek
|
11
|
+
jQuery.timeago.settings.strings["uz"] = {
|
12
|
+
prefixAgo: null,
|
13
|
+
prefixFromNow: "keyin",
|
14
|
+
suffixAgo: "avval",
|
15
|
+
suffixFromNow: null,
|
16
|
+
seconds: "bir necha soniya",
|
17
|
+
minute: "1 daqiqa",
|
18
|
+
minutes: function(value) { return "%d daqiqa"; },
|
19
|
+
hour: "1 soat",
|
20
|
+
hours: function(value) { return "%d soat"; },
|
21
|
+
day: "1 kun",
|
22
|
+
days: function(value) { return "%d kun"; },
|
23
|
+
month: "1 oy",
|
24
|
+
months: function(value) { return "%d oy"; },
|
25
|
+
year: "1 yil",
|
26
|
+
years: function(value) { return "%d yil"; },
|
27
|
+
wordSeparator: " "
|
28
|
+
};
|
29
|
+
}));
|
@@ -1,20 +1,30 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
1
|
+
(function (factory) {
|
2
|
+
if (typeof define === 'function' && define.amd) {
|
3
|
+
define(['jquery'], factory);
|
4
|
+
} else if (typeof module === 'object' && typeof module.exports === 'object') {
|
5
|
+
factory(require('jquery'));
|
6
|
+
} else {
|
7
|
+
factory(jQuery);
|
8
|
+
}
|
9
|
+
}(function (jQuery) {
|
10
|
+
// Vietnamese
|
11
|
+
jQuery.timeago.settings.strings["vi"] = {
|
12
|
+
prefixAgo: 'cách đây',
|
13
|
+
prefixFromNow: null,
|
14
|
+
suffixAgo: "trước",
|
15
|
+
suffixFromNow: "kể từ bây giờ",
|
16
|
+
seconds: "chưa đến một phút",
|
17
|
+
minute: "khoảng một phút",
|
18
|
+
minutes: "%d phút",
|
19
|
+
hour: "khoảng một tiếng",
|
20
|
+
hours: "khoảng %d tiếng",
|
21
|
+
day: "một ngày",
|
22
|
+
days: "%d ngày",
|
23
|
+
month: "khoảng một tháng",
|
24
|
+
months: "%d tháng",
|
25
|
+
year: "khoảng một năm",
|
26
|
+
years: "%d năm",
|
27
|
+
wordSeparator: " ",
|
28
|
+
numbers: []
|
29
|
+
};
|
30
|
+
}));
|
@@ -1,20 +1,31 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
1
|
+
(function (factory) {
|
2
|
+
if (typeof define === 'function' && define.amd) {
|
3
|
+
define(['jquery'], factory);
|
4
|
+
} else if (typeof module === 'object' && typeof module.exports === 'object') {
|
5
|
+
factory(require('jquery'));
|
6
|
+
} else {
|
7
|
+
factory(jQuery);
|
8
|
+
}
|
9
|
+
}(function (jQuery) {
|
10
|
+
// Simplified Chinese
|
11
|
+
jQuery.timeago.settings.strings["zh-CN"] = {
|
12
|
+
prefixAgo: null,
|
13
|
+
prefixFromNow: null,
|
14
|
+
suffixAgo: "之前",
|
15
|
+
suffixFromNow: "之后",
|
16
|
+
seconds: "不到1分钟",
|
17
|
+
minute: "大约1分钟",
|
18
|
+
minutes: "%d分钟",
|
19
|
+
hour: "大约1小时",
|
20
|
+
hours: "大约%d小时",
|
21
|
+
day: "1天",
|
22
|
+
days: "%d天",
|
23
|
+
month: "大约1个月",
|
24
|
+
months: "%d月",
|
25
|
+
year: "大约1年",
|
26
|
+
years: "%d年",
|
27
|
+
numbers: [],
|
28
|
+
wordSeparator: ""
|
29
|
+
};
|
30
|
+
}));
|
31
|
+
|
@@ -1,20 +1,30 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
1
|
+
(function (factory) {
|
2
|
+
if (typeof define === 'function' && define.amd) {
|
3
|
+
define(['jquery'], factory);
|
4
|
+
} else if (typeof module === 'object' && typeof module.exports === 'object') {
|
5
|
+
factory(require('jquery'));
|
6
|
+
} else {
|
7
|
+
factory(jQuery);
|
8
|
+
}
|
9
|
+
}(function (jQuery) {
|
10
|
+
// Traditional Chinese, zh-tw
|
11
|
+
jQuery.timeago.settings.strings["zh-TW"] = {
|
12
|
+
prefixAgo: null,
|
13
|
+
prefixFromNow: null,
|
14
|
+
suffixAgo: "之前",
|
15
|
+
suffixFromNow: "之後",
|
16
|
+
seconds: "不到1分鐘",
|
17
|
+
minute: "大約1分鐘",
|
18
|
+
minutes: "%d分鐘",
|
19
|
+
hour: "大約1小時",
|
20
|
+
hours: "%d小時",
|
21
|
+
day: "大約1天",
|
22
|
+
days: "%d天",
|
23
|
+
month: "大約1個月",
|
24
|
+
months: "%d個月",
|
25
|
+
year: "大約1年",
|
26
|
+
years: "%d年",
|
27
|
+
numbers: [],
|
28
|
+
wordSeparator: ""
|
29
|
+
};
|
30
|
+
}));
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-timeago
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.17.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Graichen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -46,6 +46,7 @@ extensions: []
|
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
48
|
- ".gitignore"
|
49
|
+
- ".rubocop.yml"
|
49
50
|
- ".travis.yml"
|
50
51
|
- CHANGELOG.md
|
51
52
|
- Gemfile
|
@@ -65,9 +66,11 @@ files:
|
|
65
66
|
- spec/timeago/helper_spec.rb
|
66
67
|
- vendor/assets/javascripts/jquery.timeago.js
|
67
68
|
- vendor/assets/javascripts/locales/jquery.timeago.af.js
|
69
|
+
- vendor/assets/javascripts/locales/jquery.timeago.am.js
|
68
70
|
- vendor/assets/javascripts/locales/jquery.timeago.ar.js
|
69
71
|
- vendor/assets/javascripts/locales/jquery.timeago.az-short.js
|
70
72
|
- vendor/assets/javascripts/locales/jquery.timeago.az.js
|
73
|
+
- vendor/assets/javascripts/locales/jquery.timeago.be.js
|
71
74
|
- vendor/assets/javascripts/locales/jquery.timeago.bg.js
|
72
75
|
- vendor/assets/javascripts/locales/jquery.timeago.bs.js
|
73
76
|
- vendor/assets/javascripts/locales/jquery.timeago.ca.js
|
@@ -118,12 +121,14 @@ files:
|
|
118
121
|
- vendor/assets/javascripts/locales/jquery.timeago.si.js
|
119
122
|
- vendor/assets/javascripts/locales/jquery.timeago.sk.js
|
120
123
|
- vendor/assets/javascripts/locales/jquery.timeago.sl.js
|
124
|
+
- vendor/assets/javascripts/locales/jquery.timeago.sq.js
|
121
125
|
- vendor/assets/javascripts/locales/jquery.timeago.sr.js
|
122
126
|
- vendor/assets/javascripts/locales/jquery.timeago.sv.js
|
123
127
|
- vendor/assets/javascripts/locales/jquery.timeago.th.js
|
124
128
|
- vendor/assets/javascripts/locales/jquery.timeago.tr-short.js
|
125
129
|
- vendor/assets/javascripts/locales/jquery.timeago.tr.js
|
126
130
|
- vendor/assets/javascripts/locales/jquery.timeago.uk.js
|
131
|
+
- vendor/assets/javascripts/locales/jquery.timeago.ur.js
|
127
132
|
- vendor/assets/javascripts/locales/jquery.timeago.uz.js
|
128
133
|
- vendor/assets/javascripts/locales/jquery.timeago.vi.js
|
129
134
|
- vendor/assets/javascripts/locales/jquery.timeago.zh-CN.js
|
@@ -147,8 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
147
152
|
- !ruby/object:Gem::Version
|
148
153
|
version: '0'
|
149
154
|
requirements: []
|
150
|
-
|
151
|
-
rubygems_version: 2.6.11
|
155
|
+
rubygems_version: 3.0.2
|
152
156
|
signing_key:
|
153
157
|
specification_version: 4
|
154
158
|
summary: A Rails Helper to create time tags usable for jQuery Timeago plugin
|