rails-timeago 2.18.0 → 2.20.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
  SHA256:
3
- metadata.gz: 17137c2d5720a32705aa2c5f01886963a72bb56a9d2e77361bd69c541fbb242a
4
- data.tar.gz: 7f313528923a2076a467c18469f12f04b30c636302820c932125e2b05fc1795d
3
+ metadata.gz: 32c4caa5aad3c864a7d9c9c1bd6a75641a4d5212fc121b069156903ff06378e3
4
+ data.tar.gz: '085ce3e027269aff9b46e3e0deed3e3198f21688fc608b5ba04ab1ffb707cd1f'
5
5
  SHA512:
6
- metadata.gz: a92f094e1d0ec706b85447a330d71e78eb964e27e96682e5ca8e114d24615bbc17ea265a95c4e2ef08b8f1b272b4c690148f8b63a9b3e8a01ea2e78957a9a427
7
- data.tar.gz: 77a2e4463705bc99bfd68c23c4d40e44c33e99fd3462173ccb07ae4c1659dd53db3164a2c2117c76879490df8f076ae54619dbf0bb4e288281c183530d167cb7
6
+ metadata.gz: 3eb265302466cfabac8f31eee716bc56eb62ee66e9cd1e9bf6643605ea9e1bae53eccfa6c7e5b1bb14470bf23c7619b09cc6861a4a15b2f384ef17614ccdb23a
7
+ data.tar.gz: 28149e0acd3006ebeb9e5d06a528c9fe61fe1d05630904c5727ca18f88d9427ebd30681be16f96a3b6242af5d6e422953b5c775b8507c9949fc58f5b7c434661
data/CHANGELOG.md CHANGED
@@ -1,5 +1,32 @@
1
1
  # Changelog
2
2
 
3
+
4
+ ## Unreleased
5
+ ---
6
+
7
+ ### New
8
+
9
+ ### Changes
10
+
11
+ ### Fixes
12
+
13
+ ### Breaks
14
+
15
+
16
+ ## 2.20.0 - (2022-03-04)
17
+
18
+ ### New
19
+ * Support for javascript tags nonce parameter
20
+
21
+ ## 2.19.1
22
+
23
+ * Maintenance release reducing gem archive size
24
+
25
+ ## 2.19.0
26
+
27
+ * Update jquery-timeago and locales from upstream
28
+ * Reinitialize on ajaxSuccess event too (#34)
29
+
3
30
  ## 2.18.0
4
31
 
5
32
  * Update jquery-timeago and locales from upstream
@@ -19,7 +46,7 @@
19
46
  ## 2.15.0
20
47
 
21
48
  * Update jquery-timeago and locales from upstream
22
- * Remove an use of derpecated "ready" event (compatible with jQuery 3.0) (#40)
49
+ * Remove an use of deprecated "ready" event (compatible with jQuery 3.0) (#40)
23
50
 
24
51
  ## 2.14.0
25
52
 
data/README.md CHANGED
@@ -1,15 +1,14 @@
1
1
  # rails-timeago
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/rails-timeago.svg)](http://badge.fury.io/rb/rails-timeago)
4
- [![Build Status](https://travis-ci.org/jgraichen/rails-timeago.svg?branch=master)](https://travis-ci.org/jgraichen/rails-timeago)
5
- [![Code Climate](https://codeclimate.com/github/jgraichen/rails-timeago.svg)](https://codeclimate.com/github/jgraichen/rails-timeago)
3
+ [![Gem Version](https://img.shields.io/gem/v/rails-timeago?logo=ruby)](https://rubygems.org/gems/rails-timeago)
4
+ [![Build Status](https://img.shields.io/github/workflow/status/jgraichen/rails-timeago/test?logo=github)](https://github.com/jgraichen/rails-timeago/actions?query=workflow%3Atest+branch%3Amaster)
6
5
 
7
6
  **rails-timeago** provides a timeago_tag helper to create time tags usable for
8
7
  [jQuery Timeago](https://github.com/rmm5t/jquery-timeago) plugin.
9
8
 
10
9
  ## Installation
11
10
 
12
- Add this line to your application's `Gemfile`:
11
+ Add this line to your `Gemfile`:
13
12
 
14
13
  ```ruby
15
14
  gem 'rails-timeago', '~> 2.0'
@@ -23,6 +22,10 @@ Or install it yourself as:
23
22
 
24
23
  $ gem install rails-timeago
25
24
 
25
+ ### Use bundled JavaScript with Sprockets
26
+
27
+ *Note:* The bundled JavaScript can only be used with sprockets. Rails-webpacker cannot load scripts bundled with the gem. If you use rails-webpacker you need to install, load, and setup jquery-timeago on your own.
28
+
26
29
  To use bundled jQuery Timeago plugin add this require statement to your `application.js` file:
27
30
 
28
31
  //= require rails-timeago
@@ -33,21 +36,23 @@ Use the following to also include all available locale files:
33
36
 
34
37
  //= require rails-timeago-all
35
38
 
39
+ If using a recent Rails with `rails-ujs`, jQuery might not be present anymore. You need to add `jquery-rails` to your `Gemfile` and load it, e.g.:
40
+
41
+ //= require jquery
42
+ //= require rails-timeago
43
+ //= require rails-timeago-all
44
+
36
45
  ## Usage
37
46
 
38
47
  Use the timeago_tag helper like any other regular tag helper:
39
48
 
40
49
  ```erb
41
- <%= timeago_tag Time.zone.now, :nojs => true, :limit => 10.days.ago %>
50
+ <%= timeago_tag Time.zone.now limit: 10.days.ago %>
42
51
  ```
43
52
 
44
53
 
45
54
  ### Available options:
46
55
 
47
- **nojs**
48
- Add time ago in words as time tag content instead of absolute time.
49
- (default: `false`)
50
-
51
56
  **date_only**
52
57
  Only print date as tag content instead of full time.
53
58
  (default: `true`)
@@ -70,13 +75,13 @@ String that will be returned if time is `nil`.
70
75
 
71
76
  **title**
72
77
  A string or block that will be used to create a title attribute for timeago tags. It set to nil or false no title attribute will be set.
73
- (default: `proc { |time, options| I18n.l time, :format => options[:format] }`)
78
+ (default: `proc { |time, options| I18n.l time, format: options[:format] }`)
74
79
 
75
80
  All other options will be given as options to the time tag helper.
76
81
  The above options can be assigned globally as defaults using
77
82
 
78
83
  ```ruby
79
- Rails::Timeago.default_options :limit => proc { 20.days.ago }, :nojs => true
84
+ Rails::Timeago.default_options limit: proc { 20.days.ago }
80
85
  ```
81
86
 
82
87
  A global limit should always be given as a block that will be evaluated each time the rails `timeago_tag` helper is called. That avoids the limit becoming smaller the longer the application runs.
@@ -86,7 +91,7 @@ A global limit should always be given as a block that will be evaluated each tim
86
91
  **rails-timeago 2** ships with a modified version of jQuery timeago that allows to include all locale files at once and set the locale via an option or per element via the `lang` attribute:
87
92
 
88
93
  ```erb
89
- <%= timeago_tag Time.zone.now, :lang => :de %>
94
+ <%= timeago_tag Time.zone.now, lang: :de %>
90
95
  ```
91
96
 
92
97
  The following snippet will print a script tag that set the jQuery timeago locale according to your `I18n.locale`:
@@ -95,6 +100,8 @@ The following snippet will print a script tag that set the jQuery timeago locale
95
100
  <%= timeago_script_tag %>
96
101
  ```
97
102
 
103
+ Arguments are passed to Rails' `javascript_tag` helper, e.g. to assign a CSP nonce: `timeago_script_tag(nonce: true)`.
104
+
98
105
  Just insert it in your application layout's html head. If you use another I18n framework for JavaScript you can also directly set `jQuery.timeago.settings.lang`. For example:
99
106
 
100
107
  ```js
@@ -112,8 +119,6 @@ Do not forget to require the needed locale files by either require `rails-timeag
112
119
 
113
120
  **rails-timeago** includes locale files for the following locales taken from [jQuery Timeago](https://github.com/rmm5t/jquery-timeago).
114
121
 
115
- > de cy pl mk zh-CN bs en-short it fi es uk lt zh-TW sk hy ca pt el sv ar no fa fr pt-br tr he bg ko uz cz sl hu id hr ru nl fr-short da ja ro th
116
-
117
122
  Your customized jQuery locale files must be changed to work with **rails-timeago 2**. Instead of defining your locale strings as `jQuery.timeago.settings.strings` you need to define them like this:
118
123
 
119
124
  ```js
@@ -17,6 +17,7 @@
17
17
  //= require locales/jquery.timeago.dv.js
18
18
  //= require locales/jquery.timeago.el.js
19
19
  //= require locales/jquery.timeago.en-short.js
20
+ //= require locales/jquery.timeago.eo.js
20
21
  //= require locales/jquery.timeago.es-short.js
21
22
  //= require locales/jquery.timeago.es.js
22
23
  //= require locales/jquery.timeago.et.js
@@ -37,6 +38,7 @@
37
38
  //= require locales/jquery.timeago.it.js
38
39
  //= require locales/jquery.timeago.ja.js
39
40
  //= require locales/jquery.timeago.jv.js
41
+ //= require locales/jquery.timeago.ka.js
40
42
  //= require locales/jquery.timeago.ko.js
41
43
  //= require locales/jquery.timeago.ky.js
42
44
  //= require locales/jquery.timeago.lt.js
@@ -8,5 +8,5 @@
8
8
  $('time[data-time-ago]').timeago();
9
9
  };
10
10
  $(fn);
11
- $(document).on('turbolinks:load page:load ajax:success', fn);
11
+ $(document).on('turbolinks:load page:load ajax:success ajaxSuccess', fn);
12
12
  })(jQuery);
@@ -43,12 +43,15 @@ module Rails
43
43
  def timeago_tag(time, html_options = {})
44
44
  time_options = Rails::Timeago.default_options
45
45
 
46
- time_options = time_options.merge html_options.extract!(*time_options.keys.select {|k| html_options.include?(k) })
46
+ time_options = time_options.merge html_options.extract!(*time_options.keys.select do |k|
47
+ html_options.include?(k)
48
+ end)
47
49
  return time_options[:default] if time.nil?
48
50
 
49
51
  time_options[:format] = time_options[:format].call(time, time_options) if time_options[:format].is_a?(Proc)
50
52
  if time_options[:title]
51
- html_options[:title] = time_options[:title].is_a?(Proc) ? time_options[:title].call(time, time_options) : time_options[:title]
53
+ html_options[:title] =
54
+ time_options[:title].is_a?(Proc) ? time_options[:title].call(time, time_options) : time_options[:title]
52
55
  end
53
56
  time_options[:limit] = time_options[:limit].call if time_options[:limit].is_a?(Proc)
54
57
 
@@ -65,15 +68,17 @@ module Rails
65
68
  end
66
69
 
67
70
  def timeago_tag_content(time, time_options = {}) # :nodoc:
68
- time = time.to_date if time_options[:date_only]
69
- return time_ago_in_words(time) if time_options[:nojs] && (time_options[:limit].nil? || time_options[:limit] < time)
71
+ time = time.to_date if time_options[:date_only]
72
+ if time_options[:nojs] && (time_options[:limit].nil? || time_options[:limit] < time)
73
+ return time_ago_in_words(time)
74
+ end
70
75
 
71
76
  I18n.l time, format: time_options[:format]
72
77
  end
73
78
 
74
79
  # Return a JavaScript tag to set jQuery timeago locale.
75
- def timeago_script_tag
76
- javascript_tag "jQuery.timeago.settings.lang=\"#{I18n.locale}\";" if I18n.locale != 'en'
80
+ def timeago_script_tag(**kwargs)
81
+ javascript_tag("jQuery.timeago.settings.lang=\"#{I18n.locale}\";", **kwargs) if I18n.locale != 'en'
77
82
  end
78
83
  end
79
84
  end
@@ -4,10 +4,10 @@ module Rails
4
4
  module Timeago
5
5
  module VERSION
6
6
  MAJOR = 2
7
- MINOR = 18
7
+ MINOR = 20
8
8
  PATCH = 0
9
9
  STAGE = nil
10
- STRING = [MAJOR, MINOR, PATCH, STAGE].reject(&:nil?).join('.').freeze
10
+ STRING = [MAJOR, MINOR, PATCH, STAGE].compact.join('.').freeze
11
11
 
12
12
  def self.to_s
13
13
  STRING
data/lib/rails-timeago.rb CHANGED
@@ -72,7 +72,7 @@ module Rails
72
72
  limit: proc { 4.days.ago },
73
73
  date_only: true,
74
74
  default: '-',
75
- title: proc {|time, options| I18n.l time, format: options[:format] }
75
+ title: proc {|time, options| I18n.l time, format: options[:format] },
76
76
  }
77
77
  end
78
78
  end
@@ -1,23 +1,40 @@
1
- # -*- encoding: utf-8 -*-
2
1
  # frozen_string_literal: true
3
2
 
4
- require File.expand_path('../lib/rails-timeago/version', __FILE__)
5
-
6
- Gem::Specification.new do |gem|
7
- gem.authors = ['Jan Graichen']
8
- gem.email = ['jan.graichen@altimos.de']
9
- gem.description = 'jQuery Timeago helper for Rails 3'
10
- gem.summary = 'A Rails Helper to create time tags usable for jQuery Timeago plugin'
11
- gem.homepage = 'https://github.com/jgraichen/rails-timeago'
12
- gem.license = 'MIT'
13
-
14
- gem.executables = `git ls-files -- bin/*`.split("\n").map {|f| File.basename(f) }
15
- gem.files = `git ls-files`.split("\n").reject {|file| file =~ /^scripts/ }
16
- gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
17
- gem.name = 'rails-timeago'
18
- gem.require_paths = ['lib']
19
- gem.version = Rails::Timeago::VERSION
20
-
21
- gem.add_dependency 'activesupport', '>= 3.1'
22
- gem.add_dependency 'actionpack', '>= 3.1'
3
+ require_relative 'lib/rails-timeago/version'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'rails-timeago'
7
+ spec.version = Rails::Timeago::VERSION
8
+ spec.authors = ['Jan Graichen']
9
+ spec.email = ['jgraichen@altimos.de']
10
+
11
+ spec.summary = 'jQuery Timeago helper for Rails 3'
12
+ spec.description = 'A Rails Helper to create time tags usable for jQuery Timeago plugin'
13
+ spec.homepage = 'https://github.com/jgraichen/rails-timeago'
14
+ spec.license = 'MIT'
15
+
16
+ spec.metadata['homepage_uri'] = spec.homepage
17
+ spec.metadata['source_code_uri'] = 'https://github.com/jgraichen/rails-timeago'
18
+ spec.metadata['changelog_uri'] = 'https://github.com/jgraichen/rails-timeago/blob/master/CHANGELOG.md'
19
+ spec.metadata['rubygems_mfa_required'] = 'true'
20
+
21
+ # Specify which files should be added to the gem when it is released.
22
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
23
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
24
+ `git ls-files -z`.split("\x0").select do |f|
25
+ f.match %r{\A
26
+ ((?:lib|vendor)/)|
27
+ ((?:CHANGELOG.md|README.md|LICENSE|.*\.gemspec)\z)
28
+ }x
29
+ end
30
+ end
31
+
32
+ spec.bindir = 'exe'
33
+ spec.executables = spec.files.grep(%r{\Aexe/}) {|f| File.basename(f) }
34
+ spec.require_paths = ['lib']
35
+
36
+ spec.required_ruby_version = '>= 2.5'
37
+
38
+ spec.add_dependency 'actionpack', '>= 5.2'
39
+ spec.add_dependency 'activesupport', '>= 5.2'
23
40
  end
@@ -53,7 +53,7 @@
53
53
  prefixFromNow: null,
54
54
  suffixAgo: "ago",
55
55
  suffixFromNow: "from now",
56
- inPast: 'any moment now',
56
+ inPast: "any moment now",
57
57
  seconds: "less than a minute",
58
58
  minute: "about a minute",
59
59
  minutes: "%d minutes",
@@ -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
+ // English (Template) -> Esperanto
11
+ jQuery.timeago.settings.strings["eo"] = {
12
+ prefixAgo: "antaŭ",
13
+ prefixFromNow: null,
14
+ suffixAgo: null,
15
+ suffixFromNow: "de nun",
16
+ seconds: "malpli ol minuto",
17
+ minute: "ĉirkaŭ uno minuto",
18
+ minutes: "%d minutoj",
19
+ hour: "ĉirkaŭ uno horo",
20
+ hours: "ĉirkaŭ %d horojn",
21
+ day: "ĉirkaŭ tago",
22
+ days: "%d tagoj",
23
+ month: "ĉirkaŭ unu monato",
24
+ months: "%d monatoj",
25
+ year: "ĉirkaŭ unu jaro",
26
+ years: "%d jaroj",
27
+ wordSeparator: " ",
28
+ numbers: []
29
+ };
30
+ }));
@@ -7,7 +7,7 @@
7
7
  factory(jQuery);
8
8
  }
9
9
  }(function (jQuery) {
10
- // persion shortened
10
+ // persian shortened
11
11
  jQuery.timeago.settings.strings["fa-short"] = {
12
12
  prefixAgo: null,
13
13
  prefixFromNow: null,
@@ -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
+ // English (Template)
11
+ jQuery.timeago.settings.strings["ka"] = {
12
+ prefixAgo: null,
13
+ prefixFromNow: null,
14
+ suffixAgo: "ის წინ",
15
+ suffixFromNow: null,
16
+ seconds: "რამდენიმე წამ",
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
+ wordSeparator: "",
28
+ };
29
+ })
30
+ );
metadata CHANGED
@@ -1,69 +1,59 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-timeago
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.18.0
4
+ version: 2.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Graichen
8
8
  autorequire:
9
- bindir: bin
9
+ bindir: exe
10
10
  cert_chain: []
11
- date: 2019-11-03 00:00:00.000000000 Z
11
+ date: 2022-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: activesupport
14
+ name: actionpack
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '3.1'
19
+ version: '5.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '3.1'
26
+ version: '5.2'
27
27
  - !ruby/object:Gem::Dependency
28
- name: actionpack
28
+ name: activesupport
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '3.1'
33
+ version: '5.2'
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: '3.1'
41
- description: jQuery Timeago helper for Rails 3
40
+ version: '5.2'
41
+ description: A Rails Helper to create time tags usable for jQuery Timeago plugin
42
42
  email:
43
- - jan.graichen@altimos.de
43
+ - jgraichen@altimos.de
44
44
  executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
- - ".gitignore"
49
- - ".rubocop.yml"
50
- - ".travis.yml"
51
48
  - CHANGELOG.md
52
- - Gemfile
53
49
  - LICENSE
54
50
  - README.md
55
- - Rakefile
56
51
  - lib/assets/javascripts/rails-timeago-all.js
57
52
  - lib/assets/javascripts/rails-timeago.js
58
53
  - lib/rails-timeago.rb
59
54
  - lib/rails-timeago/helper.rb
60
55
  - lib/rails-timeago/version.rb
61
56
  - rails-timeago.gemspec
62
- - spec/rails-timeago_spec.rb
63
- - spec/spec_helper.rb
64
- - spec/support/assets/javascripts/jquery.js
65
- - spec/support/stub.rb
66
- - spec/timeago/helper_spec.rb
67
57
  - vendor/assets/javascripts/jquery.timeago.js
68
58
  - vendor/assets/javascripts/locales/jquery.timeago.af.js
69
59
  - vendor/assets/javascripts/locales/jquery.timeago.am.js
@@ -82,6 +72,7 @@ files:
82
72
  - vendor/assets/javascripts/locales/jquery.timeago.dv.js
83
73
  - vendor/assets/javascripts/locales/jquery.timeago.el.js
84
74
  - vendor/assets/javascripts/locales/jquery.timeago.en-short.js
75
+ - vendor/assets/javascripts/locales/jquery.timeago.eo.js
85
76
  - vendor/assets/javascripts/locales/jquery.timeago.es-short.js
86
77
  - vendor/assets/javascripts/locales/jquery.timeago.es.js
87
78
  - vendor/assets/javascripts/locales/jquery.timeago.et.js
@@ -102,6 +93,7 @@ files:
102
93
  - vendor/assets/javascripts/locales/jquery.timeago.it.js
103
94
  - vendor/assets/javascripts/locales/jquery.timeago.ja.js
104
95
  - vendor/assets/javascripts/locales/jquery.timeago.jv.js
96
+ - vendor/assets/javascripts/locales/jquery.timeago.ka.js
105
97
  - vendor/assets/javascripts/locales/jquery.timeago.ko.js
106
98
  - vendor/assets/javascripts/locales/jquery.timeago.ky.js
107
99
  - vendor/assets/javascripts/locales/jquery.timeago.lt.js
@@ -136,7 +128,11 @@ files:
136
128
  homepage: https://github.com/jgraichen/rails-timeago
137
129
  licenses:
138
130
  - MIT
139
- metadata: {}
131
+ metadata:
132
+ homepage_uri: https://github.com/jgraichen/rails-timeago
133
+ source_code_uri: https://github.com/jgraichen/rails-timeago
134
+ changelog_uri: https://github.com/jgraichen/rails-timeago/blob/master/CHANGELOG.md
135
+ rubygems_mfa_required: 'true'
140
136
  post_install_message:
141
137
  rdoc_options: []
142
138
  require_paths:
@@ -145,15 +141,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
145
141
  requirements:
146
142
  - - ">="
147
143
  - !ruby/object:Gem::Version
148
- version: '0'
144
+ version: '2.5'
149
145
  required_rubygems_version: !ruby/object:Gem::Requirement
150
146
  requirements:
151
147
  - - ">="
152
148
  - !ruby/object:Gem::Version
153
149
  version: '0'
154
150
  requirements: []
155
- rubygems_version: 3.0.3
151
+ rubygems_version: 3.3.3
156
152
  signing_key:
157
153
  specification_version: 4
158
- summary: A Rails Helper to create time tags usable for jQuery Timeago plugin
154
+ summary: jQuery Timeago helper for Rails 3
159
155
  test_files: []
data/.gitignore DELETED
@@ -1,22 +0,0 @@
1
- *.gem
2
- *.rbc
3
- *.iml
4
- .bundle
5
- .config
6
- .yardoc
7
- .idea
8
- Gemfile.lock
9
- InstalledFiles
10
- _yardoc
11
- coverage
12
- doc/
13
- lib/bundler/man
14
- pkg
15
- rdoc
16
- spec/reports
17
- test/tmp
18
- test/version_tmp
19
- tmp
20
- .rvmrc
21
- .ruby-version
22
- tags
data/.rubocop.yml DELETED
@@ -1,53 +0,0 @@
1
- AllCops:
2
- Include:
3
- - '**/*.rb'
4
- TargetRubyVersion: 2.1
5
-
6
- Metrics/BlockLength:
7
- Exclude:
8
- - 'spec/**/*_spec.rb'
9
-
10
- Metrics/LineLength:
11
- Exclude:
12
- - 'spec/**/*_spec.rb'
13
-
14
- Style/AlignParameters:
15
- EnforcedStyle: with_fixed_indentation
16
-
17
- Style/BracesAroundHashParameters:
18
- EnforcedStyle: context_dependent
19
-
20
- Style/SpaceInsideHashLiteralBraces:
21
- EnforcedStyle: no_space
22
-
23
- Style/RaiseArgs:
24
- EnforcedStyle: compact
25
-
26
- Style/Documentation:
27
- Enabled: false
28
-
29
- Style/SpaceInsideBlockBraces:
30
- EnforcedStyle: space
31
- EnforcedStyleForEmptyBraces: no_space
32
- SpaceBeforeBlockParameters: false
33
-
34
- Style/SignalException:
35
- EnforcedStyle: only_raise
36
-
37
- Style/CaseIndentation:
38
- EnforcedStyle: end
39
- SupportedStyles:
40
- - case
41
- - end
42
- IndentOneStep: true
43
-
44
- Style/ClassAndModuleChildren:
45
- Enabled: false
46
-
47
- Style/TrivialAccessors:
48
- AllowPredicates: true
49
-
50
- Style/FileName:
51
- Exclude:
52
- - Rakefile
53
- - Gemfile
data/.travis.yml DELETED
@@ -1,22 +0,0 @@
1
- dist: xenial
2
- language: ruby
3
- rvm:
4
- - 2.6.5
5
- - 2.5.7
6
- - 2.4.9
7
- - 2.3.8
8
- before_install:
9
- - gem install bundler
10
- jobs:
11
- include:
12
- - stage: Release
13
- script: skip
14
- install: skip
15
- deploy:
16
- provider: rubygems
17
- api_key:
18
- secure: XYbT9MB6DNzKu95OqrA5qIV2rD1L6RLpfCb9s/3YnhKY8tTP1NcitvmXLHtNLAoHldYrb9AmSfNh5wFgFnfoqFkpz4B94SBrkQtGZ9wzIj4otxMgntGsrGd6qLBfnXGG8rctngeJlo0eVKkE/3fJtiXb5mEx72fvxd2+/fYfubY=
19
- gem: rails-timeago
20
- on:
21
- tags: true
22
- repo: jgraichen/rails-timeago
data/Gemfile DELETED
@@ -1,16 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- # Specify your gem's dependencies in rails-timeago.gemspec
6
- gemspec
7
-
8
- group :development do
9
- gem 'rake'
10
- end
11
-
12
- group :test do
13
- gem 'capybara', '~> 3.14'
14
- gem 'poltergeist', '~> 1.10'
15
- gem 'rspec', '~> 3.5'
16
- end