tml-rails 5.4.1 → 5.4.2

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: 11f869577b8a514101af7c5508ac7a501627e63d
4
- data.tar.gz: 7cbf82fccb422d33f184652c165070684e01b5a8
3
+ metadata.gz: ffdece5f603640ee9d91afeb285083b5d6c069a5
4
+ data.tar.gz: 0cf0d219ccc84e0b0f78694fac2280b8f1527f70
5
5
  SHA512:
6
- metadata.gz: b5623ad4b1e9a763482221d0c60756984945bb354f24df59933fe1b4bec5c336b1bec8db6c16a45b7e2b1906e633605a9271dd21900190a137a4383bfa2f5fd8
7
- data.tar.gz: 6816ea3ceca5214eba8d5f22f79ded24c6d519c7361445ff9387e748bdeb02a3e83b24e1817030c96a38d104be757d3142a20309e02be9b0c9e3609977ff004e
6
+ metadata.gz: bf289e23781bd7d4e6a218fc7c103852f52b11404d0d645bb26d029303476b9c8cd61fe658ae0da6fde04e73e12bc5c16b225863e40995345dbb819595b66431
7
+ data.tar.gz: 3e005b6e0e72eefe6be2b71fa8a429de4adf9668dba56273939835822127116aa8932ab31f4050761ebfaca64da4a14ffa36690d0e17e7a43ed437ef3c8918d9
@@ -191,7 +191,7 @@ module TmlRails
191
191
  def tml_when_string_tag(time, opts = {})
192
192
  elapsed_seconds = Time.now - time
193
193
  if elapsed_seconds < 0
194
- tr('In the future, Marty!', 'Time reference')
194
+ tr('in {num || second}', 'Time reference', {num: elapsed_seconds * -1})
195
195
  elsif elapsed_seconds < 2.minutes
196
196
  tr('a moment ago', 'Time reference')
197
197
  elsif elapsed_seconds < 55.minutes
@@ -30,5 +30,5 @@
30
30
  #++
31
31
 
32
32
  module TmlRails
33
- VERSION = '5.4.1'
33
+ VERSION = '5.4.2'
34
34
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tml-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.4.1
4
+ version: 5.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Berkovich
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-04 00:00:00.000000000 Z
11
+ date: 2016-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 5.4.5
33
+ version: '5.4'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 5.4.5
40
+ version: '5.4'
41
41
  description: Translation Markup Language from Translation Exchange.
42
42
  email:
43
43
  - support@translationexchange.com