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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 52c588e6702f5ed8be2688fa204b41e66b626cae
4
- data.tar.gz: 50facebfe354668e18cbe509b809091498e02a6a
3
+ metadata.gz: e222f14c7d1cb6e5c1866fa9155239acf3de0cd5
4
+ data.tar.gz: 1fb324458d3a7f7d080bee1a675432abf74c31f9
5
5
  SHA512:
6
- metadata.gz: ca5c71b745ff0a0e5c0a3d6d6b85a38fd2b1f6a25f8b3c8b832e72be4caa4a3568040d2586cac0a312b14a429462a7967aa192b67e00bdf9a9da4d466ba878d4
7
- data.tar.gz: c175013070da3d694d1681b2bca2f1ba01e7c6c82cc240b07721785c24f6ee0f388d5c0de5b64e80fd7a424913ffe0cc171507733dc4d74086eac6b24e0d4372
6
+ metadata.gz: 9feab0dd1ff9b30c4e43a9f8b5019375bbec20631f89a5a0e632b9880232328c2ced4b7e42863fc7978248ad02dd84702442a4e48e2d503e59926dd7f0444541
7
+ data.tar.gz: 65e9377f69879575f6b35a93daf1ba2578e50bbd1b2043f13df52f20186bbde6952bef21e4c7be018f4541d6992860520a249941491ea86905132af7f46017f5
@@ -1,10 +1,12 @@
1
1
  sudo: false
2
+ dist: trusty
2
3
  language: ruby
3
4
  rvm:
4
- - '2.3.1'
5
- - '2.2.5'
5
+ - '2.4.1'
6
+ - '2.3.4'
7
+ - '2.2.7'
6
8
  - '2.1.10'
7
- - 'jruby-9.1.2.0'
9
+ - 'jruby-9.1.8.0'
8
10
  before_install:
9
11
  - gem update --system
10
12
  - gem install bundler
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.16.0
4
+
5
+ * Update jquery-timeago and locales from upstream
6
+
3
7
  ## 2.15.0
4
8
 
5
9
  * Update jquery-timeago and locales from upstream
@@ -2,7 +2,7 @@ module Rails
2
2
  module Timeago
3
3
  module VERSION
4
4
  MAJOR = 2
5
- MINOR = 15
5
+ MINOR = 16
6
6
  PATCH = 0
7
7
  STAGE = nil
8
8
  STRING = [MAJOR, MINOR, PATCH, STAGE].reject(&:nil?).join('.').freeze
@@ -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.3
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-2015, Ryan McGeary (ryan -[at]- mcgeary [*dot*] org)
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'aqui a",
4
+ prefixFromNow: "d'aquí",
5
5
  suffixAgo: null,
6
6
  suffixFromNow: null,
7
- seconds: "menys d'1 minut",
8
- minute: "1 minut",
9
- minutes: "uns %d minuts",
10
- hour: "1 hora",
11
- hours: "unes %d hores",
12
- day: "1 dia",
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: "aproximadament un mes",
14
+ month: "un mes",
15
15
  months: "%d mesos",
16
- year: "aproximadament un any",
17
- years: "%d anys"
18
- };
16
+ year: "un any",
17
+ years: "%d anys",
18
+ wordSeparator: " ",
19
+ numbers: []
20
+ };
@@ -16,5 +16,5 @@ jQuery.timeago.settings.strings["fa-short"] = {
16
16
  year: "1سال",
17
17
  years: "%dسال",
18
18
  wordSeparator: " ",
19
- numbers: []
19
+ numbers: ['۰', '۱', '۲', '۳', '۴', '۵', '۶', '۷', '۸', '۹']
20
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 минута", "%d минуты", "%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
- jQuery.timeago.settings.strings["sk"] = {
3
- prefixAgo: "pred",
4
- prefixFromNow: null,
5
- suffixAgo: null,
6
- suffixFromNow: null,
7
- seconds: "menej než minútou",
8
- minute: "minútou",
9
- minutes: "%d minútami",
10
- hour: "hodinou",
11
- hours: "%d hodinami",
12
- day: "1 dňom",
13
- days: "%d dňami",
14
- month: "1 mesiacom",
15
- months: "%d mesiacmi",
16
- year: "1 rokom",
17
- years: "%d rokmi"
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.15.0
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: 2016-08-30 00:00:00.000000000 Z
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.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