rails-timeago 2.15.0 → 2.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -3
- data/CHANGELOG.md +4 -0
- data/lib/rails-timeago/version.rb +1 -1
- data/vendor/assets/javascripts/jquery.timeago.js +3 -2
- data/vendor/assets/javascripts/locales/jquery.timeago.ca.js +13 -11
- data/vendor/assets/javascripts/locales/jquery.timeago.fa-short.js +1 -1
- data/vendor/assets/javascripts/locales/jquery.timeago.ru.js +3 -2
- data/vendor/assets/javascripts/locales/jquery.timeago.sk.js +23 -17
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e222f14c7d1cb6e5c1866fa9155239acf3de0cd5
|
4
|
+
data.tar.gz: 1fb324458d3a7f7d080bee1a675432abf74c31f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9feab0dd1ff9b30c4e43a9f8b5019375bbec20631f89a5a0e632b9880232328c2ced4b7e42863fc7978248ad02dd84702442a4e48e2d503e59926dd7f0444541
|
7
|
+
data.tar.gz: 65e9377f69879575f6b35a93daf1ba2578e50bbd1b2043f13df52f20186bbde6952bef21e4c7be018f4541d6992860520a249941491ea86905132af7f46017f5
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
* updating fuzzy timestamps (e.g. "4 minutes ago" or "about 1 day ago").
|
4
4
|
*
|
5
5
|
* @name timeago
|
6
|
-
* @version 1.5.
|
6
|
+
* @version 1.5.4
|
7
7
|
* @requires jQuery v1.2.3+
|
8
8
|
* @author Ryan McGeary
|
9
9
|
* @license MIT License - http://www.opensource.org/licenses/mit-license.php
|
@@ -11,7 +11,7 @@
|
|
11
11
|
* For usage and examples, visit:
|
12
12
|
* http://timeago.yarp.com/
|
13
13
|
*
|
14
|
-
* Copyright (c) 2008-
|
14
|
+
* Copyright (c) 2008-2017, Ryan McGeary (ryan -[at]- mcgeary [*dot*] org)
|
15
15
|
*/
|
16
16
|
|
17
17
|
(function (factory) {
|
@@ -143,6 +143,7 @@
|
|
143
143
|
// functions are called with context of a single element
|
144
144
|
var functions = {
|
145
145
|
init: function() {
|
146
|
+
functions.dispose.call(this);
|
146
147
|
var refresh_el = $.proxy(refresh, this);
|
147
148
|
refresh_el();
|
148
149
|
var $s = $t.settings;
|
@@ -1,18 +1,20 @@
|
|
1
1
|
// Catalan
|
2
2
|
jQuery.timeago.settings.strings["ca"] = {
|
3
3
|
prefixAgo: "fa",
|
4
|
-
prefixFromNow: "d'
|
4
|
+
prefixFromNow: "d'aquí",
|
5
5
|
suffixAgo: null,
|
6
6
|
suffixFromNow: null,
|
7
|
-
seconds: "menys d'
|
8
|
-
minute: "
|
9
|
-
minutes: "
|
10
|
-
hour: "
|
11
|
-
hours: "
|
12
|
-
day: "
|
7
|
+
seconds: "menys d'un minut",
|
8
|
+
minute: "un minut",
|
9
|
+
minutes: "%d minuts",
|
10
|
+
hour: "una hora",
|
11
|
+
hours: "%d hores",
|
12
|
+
day: "un dia",
|
13
13
|
days: "%d dies",
|
14
|
-
month: "
|
14
|
+
month: "un mes",
|
15
15
|
months: "%d mesos",
|
16
|
-
year: "
|
17
|
-
years: "%d anys"
|
18
|
-
|
16
|
+
year: "un any",
|
17
|
+
years: "%d anys",
|
18
|
+
wordSeparator: " ",
|
19
|
+
numbers: []
|
20
|
+
};
|
@@ -4,6 +4,7 @@
|
|
4
4
|
// f - 1, 21, 31, ...
|
5
5
|
// s - 2-4, 22-24, 32-34 ...
|
6
6
|
// t - 5-20, 25-30, ...
|
7
|
+
n = n % 100;
|
7
8
|
var n10 = n % 10;
|
8
9
|
if ( (n10 === 1) && ( (n === 1) || (n > 20) ) ) {
|
9
10
|
return f;
|
@@ -21,7 +22,7 @@
|
|
21
22
|
suffixFromNow: null,
|
22
23
|
seconds: "меньше минуты",
|
23
24
|
minute: "минуту",
|
24
|
-
minutes: function(value) { return numpf(value, "%d
|
25
|
+
minutes: function(value) { return numpf(value, "%d минуту", "%d минуты", "%d минут"); },
|
25
26
|
hour: "час",
|
26
27
|
hours: function(value) { return numpf(value, "%d час", "%d часа", "%d часов"); },
|
27
28
|
day: "день",
|
@@ -31,4 +32,4 @@
|
|
31
32
|
year: "год",
|
32
33
|
years: function(value) { return numpf(value, "%d год", "%d года", "%d лет"); }
|
33
34
|
};
|
34
|
-
})();
|
35
|
+
})();
|
@@ -1,18 +1,24 @@
|
|
1
1
|
// Slovak
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
}
|
2
|
+
(function() {
|
3
|
+
function f(n, d, a) {
|
4
|
+
return a[d>=0 ? 0 : a.length===2 || n<5 ? 1 : 2];
|
5
|
+
}
|
6
|
+
|
7
|
+
jQuery.timeago.settings.strings["sk"] = {
|
8
|
+
prefixAgo: 'pred',
|
9
|
+
prefixFromNow: 'o',
|
10
|
+
suffixAgo: null,
|
11
|
+
suffixFromNow: null,
|
12
|
+
seconds: function(n, d) {return f(n, d, ['menej ako minútou', 'menej ako minútu']);},
|
13
|
+
minute: function(n, d) {return f(n, d, ['minútou', 'minútu']);},
|
14
|
+
minutes: function(n, d) {return f(n, d, ['%d minútami', '%d minúty', '%d minút']);},
|
15
|
+
hour: function(n, d) {return f(n, d, ['hodinou', 'hodinu']);},
|
16
|
+
hours: function(n, d) {return f(n, d, ['%d hodinami', '%d hodiny', '%d hodín']);},
|
17
|
+
day: function(n, d) {return f(n, d, ['%d dňom', '%d deň']);},
|
18
|
+
days: function(n, d) {return f(n, d, ['%d dňami', '%d dni', '%d dní']);},
|
19
|
+
month: function(n, d) {return f(n, d, ['%d mesiacom', '%d mesiac']);},
|
20
|
+
months: function(n, d) {return f(n, d, ['%d mesiacmi', '%d mesiace', '%d mesiacov']);},
|
21
|
+
year: function(n, d) {return f(n, d, ['%d rokom', '%d rok']);},
|
22
|
+
years: function(n, d) {return f(n, d, ['%d rokmi', '%d roky', '%d rokov']);}
|
23
|
+
};
|
24
|
+
})();
|
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.16.0
|
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: 2017-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -148,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
148
148
|
version: '0'
|
149
149
|
requirements: []
|
150
150
|
rubyforge_project:
|
151
|
-
rubygems_version: 2.6.
|
151
|
+
rubygems_version: 2.6.11
|
152
152
|
signing_key:
|
153
153
|
specification_version: 4
|
154
154
|
summary: A Rails Helper to create time tags usable for jQuery Timeago plugin
|