rails-timeago 2.16.0 → 2.17.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. checksums.yaml +5 -5
  2. data/.rubocop.yml +53 -0
  3. data/.travis.yml +20 -8
  4. data/CHANGELOG.md +8 -0
  5. data/Gemfile +3 -5
  6. data/Rakefile +14 -12
  7. data/lib/assets/javascripts/rails-timeago-all.js +4 -0
  8. data/lib/rails-timeago.rb +21 -17
  9. data/lib/rails-timeago/helper.rb +13 -10
  10. data/lib/rails-timeago/version.rb +4 -2
  11. data/rails-timeago.gemspec +13 -11
  12. data/spec/rails-timeago_spec.rb +2 -0
  13. data/spec/spec_helper.rb +2 -0
  14. data/spec/support/stub.rb +11 -9
  15. data/spec/timeago/helper_spec.rb +27 -25
  16. data/vendor/assets/javascripts/jquery.timeago.js +1 -1
  17. data/vendor/assets/javascripts/locales/jquery.timeago.af.js +30 -20
  18. data/vendor/assets/javascripts/locales/jquery.timeago.am.js +30 -0
  19. data/vendor/assets/javascripts/locales/jquery.timeago.ar.js +12 -4
  20. data/vendor/assets/javascripts/locales/jquery.timeago.az-short.js +30 -20
  21. data/vendor/assets/javascripts/locales/jquery.timeago.az.js +30 -20
  22. data/vendor/assets/javascripts/locales/jquery.timeago.be.js +43 -0
  23. data/vendor/assets/javascripts/locales/jquery.timeago.bg.js +28 -18
  24. data/vendor/assets/javascripts/locales/jquery.timeago.bs.js +13 -7
  25. data/vendor/assets/javascripts/locales/jquery.timeago.ca.js +30 -20
  26. data/vendor/assets/javascripts/locales/jquery.timeago.cs.js +34 -24
  27. data/vendor/assets/javascripts/locales/jquery.timeago.cy.js +30 -20
  28. data/vendor/assets/javascripts/locales/jquery.timeago.da.js +28 -18
  29. data/vendor/assets/javascripts/locales/jquery.timeago.de-short.js +30 -20
  30. data/vendor/assets/javascripts/locales/jquery.timeago.de.js +28 -18
  31. data/vendor/assets/javascripts/locales/jquery.timeago.dv.js +32 -22
  32. data/vendor/assets/javascripts/locales/jquery.timeago.el.js +28 -18
  33. data/vendor/assets/javascripts/locales/jquery.timeago.en-short.js +30 -20
  34. data/vendor/assets/javascripts/locales/jquery.timeago.es-short.js +31 -20
  35. data/vendor/assets/javascripts/locales/jquery.timeago.es.js +29 -18
  36. data/vendor/assets/javascripts/locales/jquery.timeago.et.js +28 -18
  37. data/vendor/assets/javascripts/locales/jquery.timeago.eu.js +28 -17
  38. data/vendor/assets/javascripts/locales/jquery.timeago.fa-short.js +30 -20
  39. data/vendor/assets/javascripts/locales/jquery.timeago.fa.js +32 -22
  40. data/vendor/assets/javascripts/locales/jquery.timeago.fi.js +38 -28
  41. data/vendor/assets/javascripts/locales/jquery.timeago.fr-short.js +26 -16
  42. data/vendor/assets/javascripts/locales/jquery.timeago.fr.js +27 -17
  43. data/vendor/assets/javascripts/locales/jquery.timeago.gl.js +28 -18
  44. data/vendor/assets/javascripts/locales/jquery.timeago.he.js +26 -16
  45. data/vendor/assets/javascripts/locales/jquery.timeago.hr.js +53 -48
  46. data/vendor/assets/javascripts/locales/jquery.timeago.hu.js +28 -18
  47. data/vendor/assets/javascripts/locales/jquery.timeago.hy.js +28 -18
  48. data/vendor/assets/javascripts/locales/jquery.timeago.id.js +29 -18
  49. data/vendor/assets/javascripts/locales/jquery.timeago.is.js +29 -19
  50. data/vendor/assets/javascripts/locales/jquery.timeago.it-short.js +30 -20
  51. data/vendor/assets/javascripts/locales/jquery.timeago.it.js +28 -16
  52. data/vendor/assets/javascripts/locales/jquery.timeago.ja.js +29 -19
  53. data/vendor/assets/javascripts/locales/jquery.timeago.jv.js +28 -18
  54. data/vendor/assets/javascripts/locales/jquery.timeago.ko.js +31 -20
  55. data/vendor/assets/javascripts/locales/jquery.timeago.ky.js +11 -3
  56. data/vendor/assets/javascripts/locales/jquery.timeago.lt.js +30 -20
  57. data/vendor/assets/javascripts/locales/jquery.timeago.lv.js +30 -20
  58. data/vendor/assets/javascripts/locales/jquery.timeago.mk.js +30 -20
  59. data/vendor/assets/javascripts/locales/jquery.timeago.nl.js +30 -20
  60. data/vendor/assets/javascripts/locales/jquery.timeago.no.js +28 -18
  61. data/vendor/assets/javascripts/locales/jquery.timeago.pl.js +11 -3
  62. data/vendor/assets/javascripts/locales/jquery.timeago.pt-br-short.js +30 -20
  63. data/vendor/assets/javascripts/locales/jquery.timeago.pt-br.js +28 -18
  64. data/vendor/assets/javascripts/locales/jquery.timeago.pt-short.js +30 -20
  65. data/vendor/assets/javascripts/locales/jquery.timeago.pt.js +26 -16
  66. data/vendor/assets/javascripts/locales/jquery.timeago.ro.js +29 -18
  67. data/vendor/assets/javascripts/locales/jquery.timeago.rs.js +53 -48
  68. data/vendor/assets/javascripts/locales/jquery.timeago.ru.js +11 -3
  69. data/vendor/assets/javascripts/locales/jquery.timeago.rw.js +30 -20
  70. data/vendor/assets/javascripts/locales/jquery.timeago.si.js +28 -18
  71. data/vendor/assets/javascripts/locales/jquery.timeago.sk.js +34 -24
  72. data/vendor/assets/javascripts/locales/jquery.timeago.sl.js +45 -39
  73. data/vendor/assets/javascripts/locales/jquery.timeago.sq.js +26 -0
  74. data/vendor/assets/javascripts/locales/jquery.timeago.sr.js +53 -48
  75. data/vendor/assets/javascripts/locales/jquery.timeago.sv.js +28 -18
  76. data/vendor/assets/javascripts/locales/jquery.timeago.th.js +30 -20
  77. data/vendor/assets/javascripts/locales/jquery.timeago.tr-short.js +30 -20
  78. data/vendor/assets/javascripts/locales/jquery.timeago.tr.js +26 -16
  79. data/vendor/assets/javascripts/locales/jquery.timeago.uk.js +11 -3
  80. data/vendor/assets/javascripts/locales/jquery.timeago.ur.js +30 -0
  81. data/vendor/assets/javascripts/locales/jquery.timeago.uz.js +29 -19
  82. data/vendor/assets/javascripts/locales/jquery.timeago.vi.js +30 -20
  83. data/vendor/assets/javascripts/locales/jquery.timeago.zh-CN.js +31 -20
  84. data/vendor/assets/javascripts/locales/jquery.timeago.zh-TW.js +30 -20
  85. metadata +8 -4
@@ -1,5 +1,13 @@
1
- // Ukrainian
2
- (function() {
1
+ (function (factory) {
2
+ if (typeof define === 'function' && define.amd) {
3
+ define(['jquery'], factory);
4
+ } else if (typeof module === 'object' && typeof module.exports === 'object') {
5
+ factory(require('jquery'));
6
+ } else {
7
+ factory(jQuery);
8
+ }
9
+ }(function (jQuery) {
10
+ // Ukrainian
3
11
  function numpf(n, f, s, t) {
4
12
  // f - 1, 21, 31, ...
5
13
  // s - 2-4, 22-24, 32-34 ...
@@ -31,4 +39,4 @@
31
39
  year: "рік",
32
40
  years: function(value) { return numpf(value, "%d рік", "%d роки", "%d років"); }
33
41
  };
34
- })();
42
+ }));
@@ -0,0 +1,30 @@
1
+ (function (factory) {
2
+ if (typeof define === 'function' && define.amd) {
3
+ define(['jquery'], factory);
4
+ } else if (typeof module === 'object' && typeof module.exports === 'object') {
5
+ factory(require('jquery'));
6
+ } else {
7
+ factory(jQuery);
8
+ }
9
+ }(function (jQuery) {
10
+ // Urdu
11
+ jQuery.timeago.settings.strings["ur"] = {
12
+ prefixAgo: null,
13
+ prefixFromNow: null,
14
+ suffixAgo: "پہلے",
15
+ suffixFromNow: "اب سے",
16
+ seconds: "کچھ سیکنڈز",
17
+ minute: "تقریباً ایک منٹ",
18
+ minutes: "%d منٹ",
19
+ hour: "تقریباً ایک گھنٹہ",
20
+ hours: "تقریباً %d گھنٹے",
21
+ day: "ایک دن",
22
+ days: "%d دن",
23
+ month: "تقریباً ایک مہینہ",
24
+ months: "%d مہینے",
25
+ year: "تقریباً ایک سال",
26
+ years: "%d سال",
27
+ wordSeparator: " ",
28
+ numbers: []
29
+ };
30
+ }));
@@ -1,19 +1,29 @@
1
- //Uzbek
2
- jQuery.timeago.settings.strings["uz"] = {
3
- prefixAgo: null,
4
- prefixFromNow: "keyin",
5
- suffixAgo: "avval",
6
- suffixFromNow: null,
7
- seconds: "bir necha soniya",
8
- minute: "1 daqiqa",
9
- minutes: function(value) { return "%d daqiqa"; },
10
- hour: "1 soat",
11
- hours: function(value) { return "%d soat"; },
12
- day: "1 kun",
13
- days: function(value) { return "%d kun"; },
14
- month: "1 oy",
15
- months: function(value) { return "%d oy"; },
16
- year: "1 yil",
17
- years: function(value) { return "%d yil"; },
18
- wordSeparator: " "
19
- };
1
+ (function (factory) {
2
+ if (typeof define === 'function' && define.amd) {
3
+ define(['jquery'], factory);
4
+ } else if (typeof module === 'object' && typeof module.exports === 'object') {
5
+ factory(require('jquery'));
6
+ } else {
7
+ factory(jQuery);
8
+ }
9
+ }(function (jQuery) {
10
+ //Uzbek
11
+ jQuery.timeago.settings.strings["uz"] = {
12
+ prefixAgo: null,
13
+ prefixFromNow: "keyin",
14
+ suffixAgo: "avval",
15
+ suffixFromNow: null,
16
+ seconds: "bir necha soniya",
17
+ minute: "1 daqiqa",
18
+ minutes: function(value) { return "%d daqiqa"; },
19
+ hour: "1 soat",
20
+ hours: function(value) { return "%d soat"; },
21
+ day: "1 kun",
22
+ days: function(value) { return "%d kun"; },
23
+ month: "1 oy",
24
+ months: function(value) { return "%d oy"; },
25
+ year: "1 yil",
26
+ years: function(value) { return "%d yil"; },
27
+ wordSeparator: " "
28
+ };
29
+ }));
@@ -1,20 +1,30 @@
1
- // Vietnamese
2
- jQuery.timeago.settings.strings["vi"] = {
3
- prefixAgo: 'cách đây',
4
- prefixFromNow: null,
5
- suffixAgo: null,
6
- suffixFromNow: "trước",
7
- seconds: "chưa đến một phút",
8
- minute: "khoảng một phút",
9
- minutes: "%d phút",
10
- hour: "khoảng một tiếng",
11
- hours: "khoảng %d tiếng",
12
- day: "một ngày",
13
- days: "%d ngày",
14
- month: "khoảng một tháng",
15
- months: "%d tháng",
16
- year: "khoảng một năm",
17
- years: "%d năm",
18
- wordSeparator: " ",
19
- numbers: []
20
- };
1
+ (function (factory) {
2
+ if (typeof define === 'function' && define.amd) {
3
+ define(['jquery'], factory);
4
+ } else if (typeof module === 'object' && typeof module.exports === 'object') {
5
+ factory(require('jquery'));
6
+ } else {
7
+ factory(jQuery);
8
+ }
9
+ }(function (jQuery) {
10
+ // Vietnamese
11
+ jQuery.timeago.settings.strings["vi"] = {
12
+ prefixAgo: 'cách đây',
13
+ prefixFromNow: null,
14
+ suffixAgo: "trước",
15
+ suffixFromNow: "kể từ bây giờ",
16
+ seconds: "chưa đến một phút",
17
+ minute: "khoảng một phút",
18
+ minutes: "%d phút",
19
+ hour: "khoảng một tiếng",
20
+ hours: "khoảng %d tiếng",
21
+ day: "một ngày",
22
+ days: "%d ngày",
23
+ month: "khoảng một tháng",
24
+ months: "%d tháng",
25
+ year: "khoảng một năm",
26
+ years: "%d năm",
27
+ wordSeparator: " ",
28
+ numbers: []
29
+ };
30
+ }));
@@ -1,20 +1,31 @@
1
- // Simplified Chinese
2
- jQuery.timeago.settings.strings["zh-CN"] = {
3
- prefixAgo: null,
4
- prefixFromNow: "从现在开始",
5
- suffixAgo: "之前",
6
- suffixFromNow: null,
7
- seconds: "不到1分钟",
8
- minute: "大约1分钟",
9
- minutes: "%d分钟",
10
- hour: "大约1小时",
11
- hours: "大约%d小时",
12
- day: "1天",
13
- days: "%d天",
14
- month: "大约1个月",
15
- months: "%d月",
16
- year: "大约1",
17
- years: "%d年",
18
- numbers: [],
19
- wordSeparator: ""
20
- };
1
+ (function (factory) {
2
+ if (typeof define === 'function' && define.amd) {
3
+ define(['jquery'], factory);
4
+ } else if (typeof module === 'object' && typeof module.exports === 'object') {
5
+ factory(require('jquery'));
6
+ } else {
7
+ factory(jQuery);
8
+ }
9
+ }(function (jQuery) {
10
+ // Simplified Chinese
11
+ jQuery.timeago.settings.strings["zh-CN"] = {
12
+ prefixAgo: null,
13
+ prefixFromNow: null,
14
+ suffixAgo: "之前",
15
+ suffixFromNow: "之后",
16
+ seconds: "不到1分钟",
17
+ minute: "大约1分钟",
18
+ minutes: "%d分钟",
19
+ hour: "大约1小时",
20
+ hours: "大约%d小时",
21
+ day: "1天",
22
+ days: "%d天",
23
+ month: "大约1个月",
24
+ months: "%d月",
25
+ year: "大约1年",
26
+ years: "%d年",
27
+ numbers: [],
28
+ wordSeparator: ""
29
+ };
30
+ }));
31
+
@@ -1,20 +1,30 @@
1
- // Traditional Chinese, zh-tw
2
- jQuery.timeago.settings.strings["zh-TW"] = {
3
- prefixAgo: null,
4
- prefixFromNow: "從現在開始",
5
- suffixAgo: "之前",
6
- suffixFromNow: null,
7
- seconds: "不到1分鐘",
8
- minute: "大約1分鐘",
9
- minutes: "%d分鐘",
10
- hour: "大約1小時",
11
- hours: "%d小時",
12
- day: "大約1天",
13
- days: "%d天",
14
- month: "大約1個月",
15
- months: "%d個月",
16
- year: "大約1",
17
- years: "%d年",
18
- numbers: [],
19
- wordSeparator: ""
20
- };
1
+ (function (factory) {
2
+ if (typeof define === 'function' && define.amd) {
3
+ define(['jquery'], factory);
4
+ } else if (typeof module === 'object' && typeof module.exports === 'object') {
5
+ factory(require('jquery'));
6
+ } else {
7
+ factory(jQuery);
8
+ }
9
+ }(function (jQuery) {
10
+ // Traditional Chinese, zh-tw
11
+ jQuery.timeago.settings.strings["zh-TW"] = {
12
+ prefixAgo: null,
13
+ prefixFromNow: null,
14
+ suffixAgo: "之前",
15
+ suffixFromNow: "之後",
16
+ seconds: "不到1分鐘",
17
+ minute: "大約1分鐘",
18
+ minutes: "%d分鐘",
19
+ hour: "大約1小時",
20
+ hours: "%d小時",
21
+ day: "大約1天",
22
+ days: "%d天",
23
+ month: "大約1個月",
24
+ months: "%d個月",
25
+ year: "大約1年",
26
+ years: "%d年",
27
+ numbers: [],
28
+ wordSeparator: ""
29
+ };
30
+ }));
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.16.0
4
+ version: 2.17.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: 2017-04-24 00:00:00.000000000 Z
11
+ date: 2019-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -46,6 +46,7 @@ extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
48
  - ".gitignore"
49
+ - ".rubocop.yml"
49
50
  - ".travis.yml"
50
51
  - CHANGELOG.md
51
52
  - Gemfile
@@ -65,9 +66,11 @@ files:
65
66
  - spec/timeago/helper_spec.rb
66
67
  - vendor/assets/javascripts/jquery.timeago.js
67
68
  - vendor/assets/javascripts/locales/jquery.timeago.af.js
69
+ - vendor/assets/javascripts/locales/jquery.timeago.am.js
68
70
  - vendor/assets/javascripts/locales/jquery.timeago.ar.js
69
71
  - vendor/assets/javascripts/locales/jquery.timeago.az-short.js
70
72
  - vendor/assets/javascripts/locales/jquery.timeago.az.js
73
+ - vendor/assets/javascripts/locales/jquery.timeago.be.js
71
74
  - vendor/assets/javascripts/locales/jquery.timeago.bg.js
72
75
  - vendor/assets/javascripts/locales/jquery.timeago.bs.js
73
76
  - vendor/assets/javascripts/locales/jquery.timeago.ca.js
@@ -118,12 +121,14 @@ files:
118
121
  - vendor/assets/javascripts/locales/jquery.timeago.si.js
119
122
  - vendor/assets/javascripts/locales/jquery.timeago.sk.js
120
123
  - vendor/assets/javascripts/locales/jquery.timeago.sl.js
124
+ - vendor/assets/javascripts/locales/jquery.timeago.sq.js
121
125
  - vendor/assets/javascripts/locales/jquery.timeago.sr.js
122
126
  - vendor/assets/javascripts/locales/jquery.timeago.sv.js
123
127
  - vendor/assets/javascripts/locales/jquery.timeago.th.js
124
128
  - vendor/assets/javascripts/locales/jquery.timeago.tr-short.js
125
129
  - vendor/assets/javascripts/locales/jquery.timeago.tr.js
126
130
  - vendor/assets/javascripts/locales/jquery.timeago.uk.js
131
+ - vendor/assets/javascripts/locales/jquery.timeago.ur.js
127
132
  - vendor/assets/javascripts/locales/jquery.timeago.uz.js
128
133
  - vendor/assets/javascripts/locales/jquery.timeago.vi.js
129
134
  - vendor/assets/javascripts/locales/jquery.timeago.zh-CN.js
@@ -147,8 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
152
  - !ruby/object:Gem::Version
148
153
  version: '0'
149
154
  requirements: []
150
- rubyforge_project:
151
- rubygems_version: 2.6.11
155
+ rubygems_version: 3.0.2
152
156
  signing_key:
153
157
  specification_version: 4
154
158
  summary: A Rails Helper to create time tags usable for jQuery Timeago plugin