rails-timeago 2.12.0 → 2.13.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: c3971dee99418c7d0a887a2ee284462164f4425c
4
- data.tar.gz: 140775cc1bbca77aa129c29cea12feef527a3c02
3
+ metadata.gz: 8201662e2e5817c4cbaec5865cb4f83588440cb9
4
+ data.tar.gz: 1220cf40d7a81f5b27d2d286163733fa1254d58e
5
5
  SHA512:
6
- metadata.gz: 54d9932d4f4759d1d4746d9fc7e90171e19c52c7a0836d2467d437d5bb85f92e3cd3f0b1c7f19472cae9e423c1820a4673ed18cf691a4b4d2dafb03cb6c6f9bf
7
- data.tar.gz: 9360e4e073df3a5d55e9015bef4a16c37a3141213c291a6ed8d5fb9ad50ce6643eed018dda120d53b89928603bf66d20dd10b11841bb685c1b2452a0107c0341
6
+ metadata.gz: 183dc19991a52c8997ea1f6ef32e4532da19b79d278203802020d75b9358e4c7c5d4e1eb08ad7a51384d1f4bb5dff9bc37f93c1080f2023e2e0ac11f5b408b90
7
+ data.tar.gz: d0ff04c180a3c0b33ff3a04e804cc6dbd5bb28f1e03854f96a2bfe71c95fb2adfbc1453e30c4441c39337451effb1fd07ef90f3aad400083568de6c49b8bd887
data/.travis.yml CHANGED
@@ -1,10 +1,8 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.1
4
- - rbx-2
3
+ - '2.2'
4
+ - '2.1'
5
+ - 'rbx-2'
5
6
  - '2.0'
6
- - jruby
7
- - 1.9.3
8
- matrix:
9
- allow_failures:
10
- - rvm: jruby
7
+ - 'jruby'
8
+ - '1.9.3'
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.13.0
4
+
5
+ * Update jquery-timeago and locales from upstream
6
+
7
+ ## 2.12.0
8
+
9
+ * Update jquery-timeago and locales from upstream
10
+ * Apply timeago to items added with ajax requests (#31)
11
+
3
12
  ## 2.11.1
4
13
 
5
14
  * Update jquery-timeago and locales from upstream
@@ -1,5 +1,6 @@
1
1
  // Rails timeago bootstrap with all locales
2
2
  //= require rails-timeago
3
+ //= require locales/jquery.timeago.af.js
3
4
  //= require locales/jquery.timeago.ar.js
4
5
  //= require locales/jquery.timeago.bg.js
5
6
  //= require locales/jquery.timeago.bs.js
@@ -8,6 +9,7 @@
8
9
  //= require locales/jquery.timeago.cy.js
9
10
  //= require locales/jquery.timeago.da.js
10
11
  //= require locales/jquery.timeago.de.js
12
+ //= require locales/jquery.timeago.dv.js
11
13
  //= require locales/jquery.timeago.el.js
12
14
  //= require locales/jquery.timeago.en-short.js
13
15
  //= require locales/jquery.timeago.es-short.js
@@ -24,10 +26,12 @@
24
26
  //= require locales/jquery.timeago.hy.js
25
27
  //= require locales/jquery.timeago.id.js
26
28
  //= require locales/jquery.timeago.is.js
29
+ //= require locales/jquery.timeago.it-short.js
27
30
  //= require locales/jquery.timeago.it.js
28
31
  //= require locales/jquery.timeago.ja.js
29
32
  //= require locales/jquery.timeago.jv.js
30
33
  //= require locales/jquery.timeago.ko.js
34
+ //= require locales/jquery.timeago.ky.js
31
35
  //= require locales/jquery.timeago.lt.js
32
36
  //= require locales/jquery.timeago.mk.js
33
37
  //= require locales/jquery.timeago.nl.js
@@ -35,10 +39,12 @@
35
39
  //= require locales/jquery.timeago.pl.js
36
40
  //= require locales/jquery.timeago.pt-br-short.js
37
41
  //= require locales/jquery.timeago.pt-br.js
42
+ //= require locales/jquery.timeago.pt-short.js
38
43
  //= require locales/jquery.timeago.pt.js
39
44
  //= require locales/jquery.timeago.ro.js
40
45
  //= require locales/jquery.timeago.rs.js
41
46
  //= require locales/jquery.timeago.ru.js
47
+ //= require locales/jquery.timeago.rw.js
42
48
  //= require locales/jquery.timeago.si.js
43
49
  //= require locales/jquery.timeago.sk.js
44
50
  //= require locales/jquery.timeago.sl.js
@@ -2,7 +2,7 @@ module Rails
2
2
  module Timeago
3
3
  module VERSION
4
4
  MAJOR = 2
5
- MINOR = 12
5
+ MINOR = 13
6
6
  PATCH = 0
7
7
  STAGE = nil
8
8
 
@@ -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.4.1
6
+ * @version 1.4.3
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
@@ -18,6 +18,8 @@
18
18
  if (typeof define === 'function' && define.amd) {
19
19
  // AMD. Register as an anonymous module.
20
20
  define(['jquery'], factory);
21
+ } else if (typeof module === 'object' && typeof module.exports === 'object') {
22
+ factory(require('jquery'));
21
23
  } else {
22
24
  // Browser globals
23
25
  factory(jQuery);
@@ -0,0 +1,20 @@
1
+ // Afrikaans
2
+ jQuery.timeago.settings.strings["af"] = {
3
+ prefixAgo: null,
4
+ prefixFromNow: null,
5
+ suffixAgo: "gelede",
6
+ suffixFromNow: "van nou af",
7
+ seconds: "%d sekondes",
8
+ minute: "1 minuut",
9
+ minutes: "%d minute",
10
+ hour: "1 uur",
11
+ hours: "%d ure",
12
+ day: "1 dag",
13
+ days: "%d dae",
14
+ month: "1 maand",
15
+ months: "%d maande",
16
+ year: "1 jaar",
17
+ years: "%d jaar",
18
+ wordSeparator: " ",
19
+ numbers: []
20
+ };
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Dhivehi time in Thaana for timeago.js
3
+ **/
4
+ jQuery.timeago.settings.strings["dv"] = {
5
+ prefixAgo: null,
6
+ prefixFromNow: null,
7
+ suffixAgo: "ކުރިން",
8
+ suffixFromNow: "ފަހުން",
9
+ seconds: "ސިކުންތުކޮޅެއް",
10
+ minute: "މިނިޓެއްވަރު",
11
+ minutes: "%d މިނިޓު",
12
+ hour: "ގަޑިއެއްވަރު",
13
+ hours: "ގާތްގަނޑަކަށް %d ގަޑިއިރު",
14
+ day: "އެއް ދުވަސް",
15
+ days: "މީގެ %d ދުވަސް",
16
+ month: "މަހެއްވަރު",
17
+ months: "މީގެ %d މަސް",
18
+ year: "އަހަރެއްވަރު",
19
+ years: "މީގެ %d އަހަރު",
20
+ wordSeparator: " ",
21
+ numbers: []
22
+ };
@@ -0,0 +1,20 @@
1
+ // Italian shortened
2
+ jQuery.timeago.settings.strings["it-short"] = {
3
+ prefixAgo: null,
4
+ prefixFromNow: null,
5
+ suffixAgo: "",
6
+ suffixFromNow: "",
7
+ seconds: "1m",
8
+ minute: "1m",
9
+ minutes: "%dm",
10
+ hour: "1h",
11
+ hours: "%dh",
12
+ day: "1g",
13
+ days: "%dg",
14
+ month: "1me",
15
+ months: "%dme",
16
+ year: "1a",
17
+ years: "%da",
18
+ wordSeparator: " ",
19
+ numbers: []
20
+ };
@@ -1,17 +1,20 @@
1
1
  // Korean
2
2
  jQuery.timeago.settings.strings["ko"] = {
3
+ prefixAgo: null,
4
+ prefixFromNow: null,
3
5
  suffixAgo: "전",
4
6
  suffixFromNow: "후",
5
- seconds: "1분 이내",
6
- minute: "1분",
7
+ seconds: "1분",
8
+ minute: "1분",
7
9
  minutes: "%d분",
8
- hour: "1시간",
9
- hours: "%d시간",
10
+ hour: "1시간",
11
+ hours: "%d시간",
10
12
  day: "하루",
11
13
  days: "%d일",
12
- month: " ",
13
- months: "%d",
14
- year: "1년",
14
+ month: " 1개월",
15
+ months: "%d개월",
16
+ year: "1년",
15
17
  years: "%d년",
16
- wordSeparator: " "
17
- };
18
+ wordSeparator: " ",
19
+ numbers: []
20
+ };
@@ -0,0 +1,34 @@
1
+ // Russian
2
+ (function() {
3
+ function numpf(n, f, s, t) {
4
+ // f - 1, 21, 31, ...
5
+ // s - 2-4, 22-24, 32-34 ...
6
+ // t - 5-20, 25-30, ...
7
+ var n10 = n % 10;
8
+ if ( (n10 == 1) && ( (n == 1) || (n > 20) ) ) {
9
+ return f;
10
+ } else if ( (n10 > 1) && (n10 < 5) && ( (n > 20) || (n < 10) ) ) {
11
+ return s;
12
+ } else {
13
+ return t;
14
+ }
15
+ }
16
+
17
+ jQuery.timeago.settings.strings["ky"] = {
18
+ prefixAgo: null,
19
+ prefixFromNow: "через",
20
+ suffixAgo: "мурун",
21
+ suffixFromNow: null,
22
+ seconds: "1 минуттан аз",
23
+ minute: "минута",
24
+ minutes: function(value) { return numpf(value, "%d минута", "%d минута", "%d минут"); },
25
+ hour: "саат",
26
+ hours: function(value) { return numpf(value, "%d саат", "%d саат", "%d саат"); },
27
+ day: "күн",
28
+ days: function(value) { return numpf(value, "%d күн", "%d күн", "%d күн"); },
29
+ month: "ай",
30
+ months: function(value) { return numpf(value, "%d ай", "%d ай", "%d ай"); },
31
+ year: "жыл",
32
+ years: function(value) { return numpf(value, "%d жыл", "%d жыл", "%d жыл"); }
33
+ };
34
+ })();
@@ -1,9 +1,9 @@
1
1
  // Dutch
2
2
  jQuery.timeago.settings.strings["nl"] = {
3
3
  prefixAgo: null,
4
- prefixFromNow: "",
4
+ prefixFromNow: "over",
5
5
  suffixAgo: "geleden",
6
- suffixFromNow: "van nu",
6
+ suffixFromNow: null,
7
7
  seconds: "minder dan een minuut",
8
8
  minute: "ongeveer een minuut",
9
9
  minutes: "%d minuten",
@@ -0,0 +1,20 @@
1
+ // Portuguese shortened
2
+ jQuery.timeago.settings.strings["pt-short"] = {
3
+ prefixAgo: null,
4
+ prefixFromNow: null,
5
+ suffixAgo: "",
6
+ suffixFromNow: "",
7
+ seconds: "1m",
8
+ minute: "1m",
9
+ minutes: "%dm",
10
+ hour: "1h",
11
+ hours: "%dh",
12
+ day: "1d",
13
+ days: "%dd",
14
+ month: "1M",
15
+ months: "%dM",
16
+ year: "1a",
17
+ years: "%da",
18
+ wordSeparator: " ",
19
+ numbers: []
20
+ };
@@ -0,0 +1,20 @@
1
+ // Kinyarwanda
2
+ jQuery.timeago.settings.strings["rw"] = {
3
+ prefixAgo: "hashize",
4
+ prefixFromNow: "mu",
5
+ suffixAgo: null,
6
+ suffixFromNow: null,
7
+ seconds: "amasegonda macye",
8
+ minute: "umunota",
9
+ minutes: "iminota %d",
10
+ hour: "isaha",
11
+ hours: "amasaha %d",
12
+ day: "umunsi",
13
+ days: "iminsi %d",
14
+ month: "ukwezi",
15
+ months: "amezi %d",
16
+ year: "umwaka",
17
+ years: "imyaka %d",
18
+ wordSeparator: " ",
19
+ numbers: []
20
+ };
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.12.0
4
+ version: 2.13.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: 2015-05-19 00:00:00.000000000 Z
11
+ date: 2015-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -76,6 +76,7 @@ files:
76
76
  - spec/support/stub.rb
77
77
  - spec/timeago/helper_spec.rb
78
78
  - vendor/assets/javascripts/jquery.timeago.js
79
+ - vendor/assets/javascripts/locales/jquery.timeago.af.js
79
80
  - vendor/assets/javascripts/locales/jquery.timeago.ar.js
80
81
  - vendor/assets/javascripts/locales/jquery.timeago.bg.js
81
82
  - vendor/assets/javascripts/locales/jquery.timeago.bs.js
@@ -84,6 +85,7 @@ files:
84
85
  - vendor/assets/javascripts/locales/jquery.timeago.cy.js
85
86
  - vendor/assets/javascripts/locales/jquery.timeago.da.js
86
87
  - vendor/assets/javascripts/locales/jquery.timeago.de.js
88
+ - vendor/assets/javascripts/locales/jquery.timeago.dv.js
87
89
  - vendor/assets/javascripts/locales/jquery.timeago.el.js
88
90
  - vendor/assets/javascripts/locales/jquery.timeago.en-short.js
89
91
  - vendor/assets/javascripts/locales/jquery.timeago.es-short.js
@@ -100,10 +102,12 @@ files:
100
102
  - vendor/assets/javascripts/locales/jquery.timeago.hy.js
101
103
  - vendor/assets/javascripts/locales/jquery.timeago.id.js
102
104
  - vendor/assets/javascripts/locales/jquery.timeago.is.js
105
+ - vendor/assets/javascripts/locales/jquery.timeago.it-short.js
103
106
  - vendor/assets/javascripts/locales/jquery.timeago.it.js
104
107
  - vendor/assets/javascripts/locales/jquery.timeago.ja.js
105
108
  - vendor/assets/javascripts/locales/jquery.timeago.jv.js
106
109
  - vendor/assets/javascripts/locales/jquery.timeago.ko.js
110
+ - vendor/assets/javascripts/locales/jquery.timeago.ky.js
107
111
  - vendor/assets/javascripts/locales/jquery.timeago.lt.js
108
112
  - vendor/assets/javascripts/locales/jquery.timeago.mk.js
109
113
  - vendor/assets/javascripts/locales/jquery.timeago.nl.js
@@ -111,10 +115,12 @@ files:
111
115
  - vendor/assets/javascripts/locales/jquery.timeago.pl.js
112
116
  - vendor/assets/javascripts/locales/jquery.timeago.pt-br-short.js
113
117
  - vendor/assets/javascripts/locales/jquery.timeago.pt-br.js
118
+ - vendor/assets/javascripts/locales/jquery.timeago.pt-short.js
114
119
  - vendor/assets/javascripts/locales/jquery.timeago.pt.js
115
120
  - vendor/assets/javascripts/locales/jquery.timeago.ro.js
116
121
  - vendor/assets/javascripts/locales/jquery.timeago.rs.js
117
122
  - vendor/assets/javascripts/locales/jquery.timeago.ru.js
123
+ - vendor/assets/javascripts/locales/jquery.timeago.rw.js
118
124
  - vendor/assets/javascripts/locales/jquery.timeago.si.js
119
125
  - vendor/assets/javascripts/locales/jquery.timeago.sk.js
120
126
  - vendor/assets/javascripts/locales/jquery.timeago.sl.js
@@ -146,8 +152,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
152
  version: '0'
147
153
  requirements: []
148
154
  rubyforge_project:
149
- rubygems_version: 2.4.6
155
+ rubygems_version: 2.4.8
150
156
  signing_key:
151
157
  specification_version: 4
152
158
  summary: A Rails Helper to create time tags usable for jQuery Timeago plugin
153
159
  test_files: []
160
+ has_rdoc: