rails-timeago 2.11.0 → 2.11.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 451de3b31b875a6fbdefda94b6cf282b11bfaa4f
|
4
|
+
data.tar.gz: b522158ef1b4928d4dd8acf884da39d24afc9cbe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc3b2de4dee9c432c058356fc34fd3b5c8f3809abe1e2f4ec37e96b84be4fe180509290ac38f17480762e991857474b3ecb65d51437ca6bc04158f6168381e6c
|
7
|
+
data.tar.gz: cbfb3ac280c018041995f7712f9bac9a5d5f69c265e50f23dd01aeed0f4c7347f4fd17955f26bd1e77df5ac057d8e250068e7c748f10b925f57e8011ac975b17
|
data/CHANGELOG.md
CHANGED
@@ -178,6 +178,13 @@
|
|
178
178
|
};
|
179
179
|
|
180
180
|
function refresh() {
|
181
|
+
//check if it's still visible
|
182
|
+
if(!$.contains(document.documentElement,this)){
|
183
|
+
//stop if it has been removed
|
184
|
+
$(this).timeago("dispose");
|
185
|
+
return this;
|
186
|
+
}
|
187
|
+
|
181
188
|
var data = prepareData(this);
|
182
189
|
var $s = $t.settings;
|
183
190
|
|
@@ -2,17 +2,15 @@
|
|
2
2
|
jQuery.timeago.settings.strings["he"] = {
|
3
3
|
prefixAgo: "לפני",
|
4
4
|
prefixFromNow: "עוד",
|
5
|
-
suffixAgo: "",
|
6
|
-
suffixFromNow: "",
|
7
5
|
seconds: "פחות מדקה",
|
8
6
|
minute: "דקה",
|
9
7
|
minutes: "%d דקות",
|
10
8
|
hour: "שעה",
|
11
|
-
hours: "%d שעות",
|
9
|
+
hours: function(number){return (number==2) ? "שעתיים" : "%d שעות"},
|
12
10
|
day: "יום",
|
13
|
-
days: "%d ימים",
|
11
|
+
days: function(number){return (number==2) ? "יומיים" : "%d ימים"},
|
14
12
|
month: "חודש",
|
15
|
-
months: "%d חודשים",
|
13
|
+
months: function(number){return (number==2) ? "חודשיים" : "%d חודשים"},
|
16
14
|
year: "שנה",
|
17
|
-
years: "%d שנים"
|
15
|
+
years: function(number){return (number==2) ? "שנתיים" : "%d שנים"}
|
18
16
|
};
|
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.11.
|
4
|
+
version: 2.11.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: 2014-07
|
11
|
+
date: 2014-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|