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: 8841a7ca807fb33145adfbb910cb5dbc221bcf3a
4
- data.tar.gz: 6d730621d28c06a4bf4a3af5dd2080273212b18d
3
+ metadata.gz: 451de3b31b875a6fbdefda94b6cf282b11bfaa4f
4
+ data.tar.gz: b522158ef1b4928d4dd8acf884da39d24afc9cbe
5
5
  SHA512:
6
- metadata.gz: 62d6118ca83e848201c5c869baa4a6b906206ffa139a6096978ad5042aee612104fd6c32df5ef75aecc7b327452f7b8d6c51e0e6ad5112f69bf5754640f73b02
7
- data.tar.gz: 144a4839e9a6fdecd2a51efc4b8c2b5e39cb86cb2150f4b170c897e2b07071e35801c0d3f598c7449bb2eb382b8b4a8d6504172e483656d91af735e572374066
6
+ metadata.gz: dc3b2de4dee9c432c058356fc34fd3b5c8f3809abe1e2f4ec37e96b84be4fe180509290ac38f17480762e991857474b3ecb65d51437ca6bc04158f6168381e6c
7
+ data.tar.gz: cbfb3ac280c018041995f7712f9bac9a5d5f69c265e50f23dd01aeed0f4c7347f4fd17955f26bd1e77df5ac057d8e250068e7c748f10b925f57e8011ac975b17
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.11.1
4
+
5
+ * Update jquery-timeago and locales from upstream
6
+
3
7
  ## 2.10.2
4
8
 
5
9
  * Update jquery-timeago from upstream (1.4.1)
@@ -3,7 +3,7 @@ module Rails
3
3
  module VERSION
4
4
  MAJOR = 2
5
5
  MINOR = 11
6
- PATCH = 0
6
+ PATCH = 1
7
7
  STAGE = nil
8
8
 
9
9
  def self.to_s
@@ -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.0
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-09 00:00:00.000000000 Z
11
+ date: 2014-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport