rails-timeago 2.7.1 → 2.8.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: 45fccbdb815eb8a3e6caad33f4c77c837d4dcb0f
4
- data.tar.gz: a464ee1fb3466f232edb1ba4209c3fdc4d738916
3
+ metadata.gz: 7089deb929bf93a15ca800fd50d3cdd90fa667be
4
+ data.tar.gz: 0719c9a6979d5406342e64bfaea4ff107cbb18fe
5
5
  SHA512:
6
- metadata.gz: 5f57d527dcd75702963de5723defa59cbf560c385d32d3de9f6138a957aac9412df178736e1a1ee6816009a40fe2ac19ea701d09a8d2b3d766a4d32822bf9647
7
- data.tar.gz: ecb803f69505c11ab950158a1e6e52780d036f73addb0cb748b1236a7b1bbfc2e0c4ad33d0fa647438eef2aedb4f04e06c821d7b525cba645712714a5f563115
6
+ metadata.gz: b33c0956c29ddde20a09e51f352cd6088bc0f06febfc203e0653667068220ac18d0a5426df9dbc572bd80b40b144672c6e60bf078172f95818ee39266b011c7a
7
+ data.tar.gz: 31d31d98f3d8a719fcae78363228f50cfcf0ac9ef4be8f4e01c210aaa079ee7aaceee82d0d99cc89d580a0c1f6adbf5ade5d7379164018c9d3811398acac6ebb
@@ -24,6 +24,7 @@
24
24
  //= require locales/jquery.timeago.is.js
25
25
  //= require locales/jquery.timeago.it.js
26
26
  //= require locales/jquery.timeago.ja.js
27
+ //= require locales/jquery.timeago.jv.js
27
28
  //= require locales/jquery.timeago.ko.js
28
29
  //= require locales/jquery.timeago.lt.js
29
30
  //= require locales/jquery.timeago.mk.js
@@ -2,8 +2,8 @@ module Rails
2
2
  module Timeago
3
3
  module VERSION
4
4
  MAJOR = 2
5
- MINOR = 7
6
- PATCH = 1
5
+ MINOR = 8
6
+ PATCH = 0
7
7
  STAGE = nil
8
8
 
9
9
  def self.to_s
@@ -133,7 +133,9 @@
133
133
  }
134
134
  },
135
135
  update: function(time){
136
- $(this).data('timeago', { datetime: $t.parse(time) });
136
+ var parsedTime = $t.parse(time);
137
+ $(this).data('timeago', { datetime: parsedTime });
138
+ if($t.settings.localeTitle) $(this).attr("title", parsedTime.toLocaleString());
137
139
  refresh.apply(this);
138
140
  },
139
141
  updateFromDOM: function(){
@@ -0,0 +1,18 @@
1
+ // Javanesse (Boso Jowo)
2
+ jQuery.timeago.settings.strings["jv"] = {
3
+ prefixAgo: null,
4
+ prefixFromNow: null,
5
+ suffixAgo: "kepungkur",
6
+ suffixFromNow: "seko saiki",
7
+ seconds: "kurang seko sakmenit",
8
+ minute: "kurang luwih sakmenit",
9
+ minutes: "%d menit",
10
+ hour: "kurang luwih sakjam",
11
+ hours: "kurang luwih %d jam",
12
+ day: "sedina",
13
+ days: "%d dina",
14
+ month: "kurang luwih sewulan",
15
+ months: "%d wulan",
16
+ year: "kurang luwih setahun",
17
+ years: "%d tahun"
18
+ };
@@ -1,16 +1,18 @@
1
1
  // Brazilian Portuguese
2
2
  jQuery.timeago.settings.strings["pt-br"] = {
3
- suffixAgo: "atrás",
4
- suffixFromNow: "nesse momento",
3
+ prefixAgo: "",
4
+ prefixFromNow: "em",
5
+ suffixAgo: null,
6
+ suffixFromNow: null,
5
7
  seconds: "alguns segundos",
6
- minute: "um minuto",
7
- minutes: "%d minutos",
8
- hour: "uma hora",
9
- hours: "%d horas",
10
- day: "um dia",
11
- days: "%d dias",
12
- month: "um mês",
13
- months: "%d meses",
14
- year: "um ano",
15
- years: "%d anos"
8
+ minute: "um minuto",
9
+ minutes: "%d minutos",
10
+ hour: "uma hora",
11
+ hours: "%d horas",
12
+ day: "um dia",
13
+ days: "%d dias",
14
+ month: "um mês",
15
+ months: "%d meses",
16
+ year: "um ano",
17
+ years: "%d anos"
16
18
  };
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.7.1
4
+ version: 2.8.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-10-07 00:00:00.000000000 Z
11
+ date: 2013-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -99,6 +99,7 @@ files:
99
99
  - vendor/assets/javascripts/locales/jquery.timeago.is.js
100
100
  - vendor/assets/javascripts/locales/jquery.timeago.it.js
101
101
  - vendor/assets/javascripts/locales/jquery.timeago.ja.js
102
+ - vendor/assets/javascripts/locales/jquery.timeago.jv.js
102
103
  - vendor/assets/javascripts/locales/jquery.timeago.ko.js
103
104
  - vendor/assets/javascripts/locales/jquery.timeago.lt.js
104
105
  - vendor/assets/javascripts/locales/jquery.timeago.mk.js
@@ -144,4 +145,3 @@ signing_key:
144
145
  specification_version: 4
145
146
  summary: A Rails Helper to create time tags usable for jQuery Timeago plugin
146
147
  test_files: []
147
- has_rdoc: