rails-timeago 1.4.1 → 1.4.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -77,7 +77,7 @@ longer the application runs.
77
77
  **rails-timeago** provides additional localization features and includes locale
78
78
  files for the following locales taken from [jQuery Timeago](https://github.com/rmm5t/jquery-timeago).
79
79
 
80
- > ar, bg, bs, ca, cy, cz, da, de, el, en, es, fa, fi, fr,
80
+ > ar, bg, bs, ca, cy, cz, da, de, el, en, en-short, es, fa, fi, fr,
81
81
  > he, hr, hu, hy, id, it, ja, ko, nl, no, pl, pt, ro, ru,
82
82
  > sv, tr, uk, uz, zh-CN, zh-TW
83
83
 
@@ -3,7 +3,7 @@ module Rails
3
3
  module VERSION
4
4
  MAJOR = 1
5
5
  MINOR = 4
6
- PATCH = 1
6
+ PATCH = 2
7
7
  STAGE = nil
8
8
 
9
9
  def self.to_s
@@ -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 0.11.2
6
+ * @version 0.11.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
@@ -19,6 +19,8 @@
19
19
  return inWords(timestamp);
20
20
  } else if (typeof timestamp === "string") {
21
21
  return inWords($.timeago.parse(timestamp));
22
+ } else if (typeof timestamp === "number") {
23
+ return inWords(new Date(timestamp));
22
24
  } else {
23
25
  return inWords($.timeago.datetime(timestamp));
24
26
  }
@@ -0,0 +1,20 @@
1
+ // English shortened
2
+ jQuery.timeago.settings.strings = {
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: "1mo",
15
+ months: "%dmo",
16
+ year: "1yr",
17
+ years: "%dyr",
18
+ wordSeparator: " ",
19
+ numbers: []
20
+ };
@@ -1,16 +1,20 @@
1
1
  // Dutch
2
2
  jQuery.timeago.settings.strings = {
3
- suffixAgo: "geleden",
4
- suffixFromNow: "vanaf nu",
5
- seconds: "iets minder dan een minuut",
6
- minute: "ongeveer een minuut",
7
- minutes: "%d minuten",
8
- hour: "ongeveer een uur",
9
- hours: "ongeveer %d uur",
10
- day: "een dag",
11
- days: "%d dagen",
12
- month: "ongeveer een maand",
13
- months: "%d maanden",
14
- year: "ongeveer een jaar",
15
- years: "%d jaar"
16
- };
3
+ prefixAgo: null,
4
+ prefixFromNow: "",
5
+ suffixAgo: "geleden",
6
+ suffixFromNow: "van nu",
7
+ seconds: "minder dan een minuut",
8
+ minute: "ongeveer een minuut",
9
+ minutes: "%d minuten",
10
+ hour: "ongeveer een uur",
11
+ hours: "ongeveer %d uur",
12
+ day: "een dag",
13
+ days: "%d dagen",
14
+ month: "ongeveer een maand",
15
+ months: "%d maanden",
16
+ year: "ongeveer een jaar",
17
+ years: "%d jaar",
18
+ wordSeparator: " ",
19
+ numbers: []
20
+ };
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-timeago
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -90,6 +90,7 @@ files:
90
90
  - vendor/assets/javascripts/locales/jquery.timeago.da.js
91
91
  - vendor/assets/javascripts/locales/jquery.timeago.de.js
92
92
  - vendor/assets/javascripts/locales/jquery.timeago.el.js
93
+ - vendor/assets/javascripts/locales/jquery.timeago.en-short.js
93
94
  - vendor/assets/javascripts/locales/jquery.timeago.es.js
94
95
  - vendor/assets/javascripts/locales/jquery.timeago.fa.js
95
96
  - vendor/assets/javascripts/locales/jquery.timeago.fi.js