rails-timeago 2.4.0 → 2.5.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: 9a6a5ec2b2a6078a5b302596b569133ba990e31a
4
- data.tar.gz: 680f018cc7472edd832ed6bd8b72929b960ba159
3
+ metadata.gz: 91d64a43455626c006bf2b4bb506ac15a850f5fb
4
+ data.tar.gz: 06c7a8cf8f7962062b409e5b2f7c222bfbcb8f70
5
5
  SHA512:
6
- metadata.gz: e547679e0d0d3b77c3eca102758db679787516f28cf335680861835e493319f6f71234ea7a81574c647dd3bc5c0455ae2a286b1b475065777345426796ab835b
7
- data.tar.gz: 2b040ccf5925e1f47f1f19c3a8f2a776a54c8400bdcee0dd5b861eba1cabc4cf4afb6e68878f59abf2d161927dd7e2bda276a00953ed60326a50b7396a5e5a4c
6
+ metadata.gz: a77a4cd788a5d159ef293ad75b9d83645dafe66b1703110d51a2c2e1cd3d4d0f8bd1d4a3bc6861eceab536c0d1053299081bc106fd27a711210c0170aa793476
7
+ data.tar.gz: eb6390487526b6bf6d8912b5f97ab5d31d41a16c6038257307c95f056c938521106ba1a6bab56a2bc0a6b9b7460d57ac94d0e1a53fb1178c36ec0091a1477381
@@ -3,6 +3,10 @@
3
3
  //
4
4
  //= require jquery.timeago
5
5
 
6
- jQuery(document).ready(function() {
7
- $('time[data-time-ago]').timeago();
8
- });
6
+ (function($) {
7
+ $(document).on('ready page:load', function() {
8
+ $('time[data-time-ago]').each(function() {
9
+ $(this).timeago();
10
+ });
11
+ });
12
+ })(jQuery);
@@ -2,7 +2,7 @@ module Rails
2
2
  module Timeago
3
3
  module VERSION
4
4
  MAJOR = 2
5
- MINOR = 4
5
+ MINOR = 5
6
6
  PATCH = 0
7
7
  STAGE = nil
8
8
 
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.4.0
4
+ version: 2.5.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: 2013-05-26 00:00:00.000000000 Z
11
+ date: 2013-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport