cacheable_date_helper 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module CacheableDateHelper
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -3,10 +3,7 @@ function time_ago_in_words(from_time, include_seconds) {
3
3
  include_seconds = false;
4
4
  }
5
5
 
6
- return I18n.t('ago_in_words', {
7
- scope: ['datetime'],
8
- time: distance_of_time_in_words(from_time, new Date(), include_seconds)
9
- })
6
+ return distance_of_time_in_words(from_time, new Date(), include_seconds);
10
7
  }
11
8
 
12
9
  function distance_of_time_in_words(from_time, to_time, include_seconds) {
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cacheable_date_helper
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Murui