simple_active_link_to 1.0.1 → 1.1.1

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: c2fc2f2a0baac9582848c238f5bbfb336d0829226b53f24fe50c3ed59e70ac5b
4
- data.tar.gz: 197483dc1ed0902110ed3549379db959e300850548becdf3eecc8fd29d824a32
3
+ metadata.gz: c76b72044a585437ad07175a7aa395a970e25b8e402f04c5f1d585095060bc0d
4
+ data.tar.gz: 6495b87a880ac9bd383fac9c9db1f9a334468d1c5d37367689ced0890c644f46
5
5
  SHA512:
6
- metadata.gz: 481c153155351ffd7f0344d62e800913383d3fe58499baea5a016008d3ba1d49543148ab9a9040953d1ff92bc3bd988b7580a16c9dd4a5f1fa7824852368d470
7
- data.tar.gz: 6442363c9c5a5f0c872886ab8eb24fcb4ab34db9950bfd604a08edc58a891dfe8d836d47b875ac31f7be89529e9befc56f287e2f4c601a808101373d54d233c6
6
+ metadata.gz: bd65c905895aeabfbcbcecc6ad22cb091f164ae294d9801f91d2361f8f5b4f6b4898bcebb29ab6adc1cfcfc6ed29bc7d8de83144165d3b22f698dcb8fd08b316
7
+ data.tar.gz: a8b95ad3bed8c8892523c46df3f66fee9738e3709c4ecbe9f7478f358b9e34db2de1eee2dd58e227b781b7ed0a27a1c09d2bf55922583af2e5b5ade9cf951359
@@ -0,0 +1,33 @@
1
+ name: Build
2
+
3
+ on:
4
+ push:
5
+ branches: [ master, dev ]
6
+ paths-ignore:
7
+ - "**/README.md"
8
+ - lib/simple_active_link_to/version.rb
9
+ pull_request:
10
+ branches: [ master, dev ]
11
+ paths-ignore:
12
+ - "**/README.md"
13
+ - lib/simple_active_link_to/version.rb
14
+
15
+ jobs:
16
+ tests:
17
+ name: Tests
18
+ runs-on: ubuntu-latest
19
+ strategy:
20
+ matrix:
21
+ ruby: [2.5, 2.6, 2.7, 3.0]
22
+ rails: ['5.0', '5.1', '5.2', '6.0', '6.1']
23
+ env:
24
+ BUNDLE_PATH: vendor/bundle
25
+ BUNDLE_GEMFILE: test/gemfiles/${{ matrix.rails }}.gemfile
26
+ steps:
27
+ - uses: actions/checkout@v2
28
+ - name: Set up Ruby
29
+ uses: ruby/setup-ruby@v1
30
+ with:
31
+ ruby-version: ${{ matrix.ruby }}
32
+ bundler-cache: true
33
+ - run: bundle exec rake
data/.gitignore CHANGED
@@ -1,2 +1,6 @@
1
+ .bundle
2
+
1
3
  .DS_Store
2
4
  Gemfile.lock
5
+
6
+ test/gemfiles/*.gemfile.lock
data/Gemfile CHANGED
@@ -1,10 +1,3 @@
1
1
  source 'http://rubygems.org'
2
2
 
3
3
  gemspec
4
-
5
- group :test do
6
- gem 'minitest'
7
- gem 'rake'
8
- gem 'rack-test'
9
- gem 'nokogiri'
10
- end
data/README.md CHANGED
@@ -1,23 +1,18 @@
1
- # simple_active_link_to
1
+ # simple_active_link_to ![Build](https://github.com/frullah/simple_active_link_to/workflows/Build/badge.svg) [![Gem Version](https://img.shields.io/gem/v/simple_active_link_to.svg?style=flat)](http://rubygems.org/gems/simple_active_link_to)
2
2
 
3
- Creates a link tag of the given name using a URL created by the set of options. Please see documentation for [link_to](http://api.rubyonrails.org/classes/ActionView/Helpers/UrlHelper.html#method-i-link_to), `simple_active_link_to` is basically a wrapper for it. This method accepts an optional :active parameter that dictates if the given link will have an extra css class attached that marks it as 'active'.
3
+ `simple_active_link_to` is a wrapper for [link_to](http://api.rubyonrails.org/classes/ActionView/Helpers/UrlHelper.html#method-i-link_to), with active state by adding an extra css class `active` by default.
4
4
 
5
- [![Gem Version](https://img.shields.io/gem/v/simple_active_link_to.svg?style=flat)](http://rubygems.org/gems/simple_active_link_to)
6
- [![Gem Downloads](https://img.shields.io/gem/dt/simple_active_link_to.svg?style=flat)](http://rubygems.org/gems/simple_active_link_to)
7
- [![Build Status](https://img.shields.io/travis/comfy/simple_active_link_to.svg?style=flat)](https://travis-ci.org/comfy/simple_active_link_to)
8
- [![Gitter](https://badges.gitter.im/comfy/comfortable-mexican-sofa.svg)](https://gitter.im/comfy/comfortable-mexican-sofa)
5
+ This gem works like [active_link_to](https://github.com/comfy/active_link_to), but with additional ```active_disable``` option and without wrap tag.
9
6
 
10
- support ruby >= 2.4
7
+ Tested with ruby 2.5 to 3.0 and rails 5.0 to 6.1
11
8
 
12
9
  ## Installation
13
10
  add `gem 'simple_active_link_to'` to Gemfile and run `bundle install`.
14
11
 
15
- or using `bundle add` command
12
+ or if you want to add with bundle command
16
13
 
17
14
  `bundle add simple_active_link_to`
18
15
 
19
- For older Rails apps add `config.gem 'simple_active_link_to'` in config/environment.rb and run `rake gems:install`. Or just checkout this repo into /vendor/plugins directory.
20
-
21
16
  ## Super Simple Example
22
17
  Here's a link that will have a class attached if it happens to be rendered
23
18
  on page with path `/users` or any child of that page, like `/users/123`
@@ -127,6 +122,13 @@ simple_active_link_to 'Users', users_path, active_disable: true
127
122
  # => <span class="active">Users</span>
128
123
  ```
129
124
 
125
+ or you want to append it with hash (`#`) at the end of url to make the link does not reload the page when clicked
126
+
127
+ ```ruby
128
+ simple_active_link_to 'Users', users_path, active_disable: :hash
129
+ # => <a href="/users#" class="active">Users</a>
130
+ ```
131
+
130
132
  ## Helper Methods
131
133
  You may directly use methods that `simple_active_link_to` relies on.
132
134
 
@@ -143,7 +145,3 @@ is_active_link?(users_path, :inclusive)
143
145
  active_link_to_class(users_path, active: :inclusive)
144
146
  # => 'active'
145
147
  ```
146
-
147
- ### Copyright
148
-
149
- Copyright (c) 2009-18 Oleg Khabarov. See LICENSE for details.
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'rubygems'
2
4
  require 'rake/testtask'
3
5
  require 'bundler/setup'
@@ -1,3 +1,5 @@
1
- require 'addressable/uri'
1
+ # frozen_string_literal: true
2
+
3
+ require 'active_support/core_ext/uri'
2
4
  require 'simple_active_link_to/simple_active_link_to'
3
5
  require 'simple_active_link_to/version'
@@ -1,42 +1,55 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module SimpleActiveLinkTo
4
+ ACTIVE_OPTIONS = %i[
5
+ active
6
+ class_active
7
+ class_inactive
8
+ active_disable
9
+ ].freeze
10
+
2
11
  # Wrapper around link_to. Accepts following params:
3
12
  # :active => Boolean | Symbol | Regex | Controller/Action Pair
4
13
  # :class_active => String
5
14
  # :class_inactive => String
6
- # :active_disable => Boolean
7
- # :wrap_tag => Symbol
15
+ # :active_disable => Boolean | :hash
8
16
  # Example usage:
9
17
  # simple_active_link_to('/users', class_active: 'enabled')
10
- # simple_active_link_to(users_path, active: :exclusive, wrap_tag: :li)
11
- def simple_active_link_to(*args, &block)
12
- name = block_given? ? capture(&block) : args.shift
13
- options = args.shift || {}
14
- html_options = args.shift || {}
15
-
16
- url = url_for(options)
18
+ def simple_active_link_to(name = nil, options = nil, html_options = nil, &block)
19
+ if block_given?
20
+ html_options = options
21
+ options = name
22
+ name = capture(&block)
23
+ end
17
24
 
18
- active_options = {}
25
+ html_options ||= {}
19
26
  link_options = {}
27
+ active_options = {}
20
28
  html_options.each do |k, v|
21
- if %i[active class_active class_inactive active_disable].member?(k)
29
+ if ACTIVE_OPTIONS.include?(k)
22
30
  active_options[k] = v
23
31
  else
24
32
  link_options[k] = v
25
33
  end
26
34
  end
27
35
 
28
- css_class = "#{link_options.delete(:class)} #{active_link_to_class(url, active_options)}"
29
- css_class.strip!
30
- link_options[:class] = css_class if css_class != ''
36
+ url = url_for(options)
31
37
 
32
- is_active = is_active_link?(url, active_options[:active])
33
- link_options[:'aria-current'] = 'page' if is_active
38
+ css_class = link_options[:class]
39
+ active_class = active_link_to_class(url, active_options)
40
+ link_options[:class] = "#{css_class} #{active_class}".strip
34
41
 
35
- if active_options[:active_disable] == true && is_active
36
- content_tag(:span, name, link_options)
37
- else
38
- link_to(name, url, link_options)
42
+ if is_active_link?(url, active_options[:active])
43
+ link_options[:'aria-current'] = 'page'
44
+ case active_options[:active_disable]
45
+ when true
46
+ return content_tag(:span, name, link_options)
47
+ when :hash
48
+ url += "#"
49
+ end
39
50
  end
51
+
52
+ link_to(name, url, link_options)
40
53
  end
41
54
 
42
55
  # Returns css class name. Takes the link's URL and its params
@@ -68,30 +81,34 @@ module SimpleActiveLinkTo
68
81
  def is_active_link?(url, condition = nil)
69
82
  @is_active_link ||= {}
70
83
  @is_active_link[[url, condition]] ||= begin
71
- original_url = url
72
- url = Addressable::URI.parse(url).path
73
- path = request.original_fullpath
74
84
  case condition
75
- when :inclusive, nil
76
- path.match?(%r{^#{Regexp.escape(url).chomp('/')}(/.*|\?.*)?$})
77
- when :exclusive
78
- path.match?(%r{^#{Regexp.escape(url)}/?(\?.*)?$})
85
+ when :exclusive, :inclusive, nil
86
+ url_path = url.split('#').first.split('?').first
87
+ url_string = URI::DEFAULT_PARSER.unescape(url_path).force_encoding(Encoding::BINARY)
88
+ request_uri = URI::DEFAULT_PARSER.unescape(request.path).force_encoding(Encoding::BINARY)
89
+
90
+ if url_string == request_uri
91
+ true
92
+ elsif condition != :exclusive
93
+ closing = url_string.end_with?('/') ? '' : '/'
94
+ request_uri.start_with?(url_string + closing)
95
+ else
96
+ false
97
+ end
79
98
  when :exact
80
- path == original_url
99
+ request.original_fullpath == url
81
100
  when Regexp
82
- path.match?(condition)
101
+ request.original_fullpath.match?(condition)
83
102
  when Array
84
- controllers = [*condition[0]]
85
- actions = [*condition[1]]
103
+ controllers = Array(condition[0])
104
+ actions = Array(condition[1])
86
105
  (controllers.blank? || controllers.member?(params[:controller])) &&
87
106
  (actions.blank? || actions.member?(params[:action])) ||
88
107
  controllers.any? do |controller, action|
89
108
  params[:controller] == controller.to_s && params[:action] == action.to_s
90
109
  end
91
- when TrueClass
92
- true
93
- when FalseClass
94
- false
110
+ when TrueClass, FalseClass
111
+ condition
95
112
  when Hash
96
113
  condition.all? do |key, value|
97
114
  params[key].to_s == value.to_s
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module SimpleActiveLinkTo
2
- VERSION = "1.0.1"
4
+ VERSION = "1.1.1"
3
5
  end
@@ -1,22 +1,26 @@
1
- # encoding: utf-8
1
+ # frozen_string_literal: true
2
2
 
3
- $:.unshift File.expand_path('../lib', __FILE__)
3
+ $:.unshift File.expand_path('lib', __dir__)
4
4
  require 'simple_active_link_to/version'
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = "simple_active_link_to"
7
+ s.name = 'simple_active_link_to'
8
8
  s.version = SimpleActiveLinkTo::VERSION
9
- s.authors = ["Fajarullah"]
10
- s.email = ["frullah12@gmail.com"]
11
- s.homepage = "http://github.com/frullah/simple_active_link_to"
12
- s.summary = "ActionView helper to render currently active links"
13
- s.description = "Helpful method when you need to add some logic that figures out if the link (or more often navigation item) is selected based on the current page or other arbitrary condition"
14
- s.license = "MIT"
9
+ s.authors = ['Fajarullah']
10
+ s.email = ['frullah12@gmail.com']
11
+ s.homepage = 'http://github.com/frullah/simple_active_link_to'
12
+ s.summary = 'ActionView helper to render currently active links'
13
+ s.description = 'Helpful method when you need to add some logic that figures out if the link (or more often navigation item) is selected based on the current page or other arbitrary condition'
14
+ s.license = 'MIT'
15
15
 
16
16
  s.files = `git ls-files`.split("\n")
17
17
 
18
- s.required_ruby_version = ">= 2.4.0"
18
+ s.required_ruby_version = '>= 2.4.0'
19
+ s.add_development_dependency 'minitest'
20
+ s.add_development_dependency 'nokogiri'
21
+ s.add_development_dependency 'rack-test'
22
+ s.add_development_dependency 'rake'
19
23
 
20
- s.add_dependency 'actionpack'
21
- s.add_dependency 'addressable'
24
+ s.add_dependency 'actionpack', '>= 5.0'
25
+ s.add_dependency 'activesupport', '>= 5.0'
22
26
  end
@@ -3,10 +3,3 @@ source 'http://rubygems.org'
3
3
  gemspec path: "../../"
4
4
 
5
5
  gem "actionpack", "~> 5.0.0"
6
-
7
- group :test do
8
- gem 'minitest'
9
- gem 'rake'
10
- gem 'rack-test'
11
- gem 'nokogiri'
12
- end
@@ -3,10 +3,3 @@ source 'http://rubygems.org'
3
3
  gemspec path: "../../"
4
4
 
5
5
  gem "actionpack", "~> 5.1.0"
6
-
7
- group :test do
8
- gem 'minitest'
9
- gem 'rake'
10
- gem 'rack-test'
11
- gem 'nokogiri'
12
- end
@@ -3,10 +3,3 @@ source 'http://rubygems.org'
3
3
  gemspec path: "../../"
4
4
 
5
5
  gem "actionpack", "~> 5.2.0"
6
-
7
- group :test do
8
- gem 'minitest'
9
- gem 'rake'
10
- gem 'rack-test'
11
- gem 'nokogiri'
12
- end
@@ -0,0 +1,5 @@
1
+ source 'http://rubygems.org'
2
+
3
+ gemspec path: "../../"
4
+
5
+ gem "actionpack", "~> 6.0.0"
@@ -0,0 +1,5 @@
1
+ source 'http://rubygems.org'
2
+
3
+ gemspec path: "../../"
4
+
5
+ gem "actionpack", "~> 6.1.0"
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative 'test_helper'
2
4
 
3
5
  class SimpleActiveLinkToTest < MiniTest::Test
@@ -7,6 +9,10 @@ class SimpleActiveLinkToTest < MiniTest::Test
7
9
  refute is_active_link?('/', false)
8
10
  end
9
11
 
12
+ def test_is_active_link_handle_empty_string
13
+ assert is_active_link?('', true)
14
+ end
15
+
10
16
  def test_is_active_link_symbol_inclusive
11
17
  set_path('/root')
12
18
  assert is_active_link?('/root', :inclusive)
@@ -184,12 +190,18 @@ class SimpleActiveLinkToTest < MiniTest::Test
184
190
  assert_html link, 'a.off[href="/other"]', 'label'
185
191
  end
186
192
 
187
- def test_active_link_to_with_active_disable
193
+ def test_active_link_to_with_active_disable_as_true
188
194
  set_path('/root')
189
195
  link = simple_active_link_to('label', '/root', active_disable: true)
190
196
  assert_html link, 'span.active', 'label'
191
197
  end
192
198
 
199
+ def test_active_link_to_with_active_disable_as_hash
200
+ set_path('/root')
201
+ link = simple_active_link_to('label', '/root', active_disable: :hash)
202
+ assert_html link, 'a.active[href="/root#"]', 'label'
203
+ end
204
+
193
205
  def test_should_not_modify_passed_params
194
206
  set_path('/root')
195
207
  params = {class: 'testing', active: :inclusive}
@@ -209,4 +221,10 @@ class SimpleActiveLinkToTest < MiniTest::Test
209
221
  link = simple_active_link_to('label', '/äöü')
210
222
  assert_html link, 'a.active[href="/äöü"]', 'label'
211
223
  end
224
+
225
+ def test_active_link_to_with_block
226
+ set_path('/root')
227
+ link = simple_active_link_to('/root') { 'label' }
228
+ assert_html link, 'a.active[href="/root"]', 'label'
229
+ end
212
230
  end
data/test/test_helper.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'bundler/setup'
2
4
  require 'minitest/autorun'
3
5
  require 'uri'
@@ -5,21 +7,35 @@ require 'action_view'
5
7
  require 'simple_active_link_to'
6
8
 
7
9
  class MiniTest::Test
8
-
9
10
  # need this to simulate requests that drive active_link_helper
10
11
  module FakeRequest
11
12
  class Request
12
13
  attr_accessor :original_fullpath
14
+
15
+ def path
16
+ return original_fullpath unless original_fullpath&.include?('?')
17
+
18
+ @path ||= original_fullpath.split('?').first
19
+ end
13
20
  end
21
+
14
22
  def request
15
23
  @request ||= Request.new
16
24
  end
25
+
17
26
  def params
18
27
  @params ||= {}
19
28
  end
20
29
  end
21
30
 
22
- SimpleActiveLinkTo.send :include, FakeRequest
31
+ module FakeCapture
32
+ def capture
33
+ yield
34
+ end
35
+ end
36
+
37
+ SimpleActiveLinkTo.include FakeRequest
38
+ SimpleActiveLinkTo.include FakeCapture
23
39
 
24
40
  include ActionView::Helpers::UrlHelper
25
41
  include ActionView::Helpers::TagHelper
@@ -27,9 +43,7 @@ class MiniTest::Test
27
43
 
28
44
  def set_path(path, purge_cache = true)
29
45
  request.original_fullpath = path
30
- if purge_cache && defined?(@is_active_link)
31
- remove_instance_variable(:@is_active_link)
32
- end
46
+ remove_instance_variable(:@is_active_link) if purge_cache && defined?(@is_active_link)
33
47
  end
34
48
 
35
49
  def assert_html(html, selector, value = nil)
metadata CHANGED
@@ -1,23 +1,23 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_active_link_to
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fajarullah
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-19 00:00:00.000000000 Z
11
+ date: 2021-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: actionpack
14
+ name: minitest
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
- type: :runtime
20
+ type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
@@ -25,19 +25,75 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: addressable
28
+ name: nokogiri
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
- type: :runtime
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rack-test
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
35
63
  prerelease: false
36
64
  version_requirements: !ruby/object:Gem::Requirement
37
65
  requirements:
38
66
  - - ">="
39
67
  - !ruby/object:Gem::Version
40
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: actionpack
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '5.0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '5.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: activesupport
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '5.0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '5.0'
41
97
  description: Helpful method when you need to add some logic that figures out if the
42
98
  link (or more often navigation item) is selected based on the current page or other
43
99
  arbitrary condition
@@ -47,8 +103,8 @@ executables: []
47
103
  extensions: []
48
104
  extra_rdoc_files: []
49
105
  files:
106
+ - ".github/workflows/build.yml"
50
107
  - ".gitignore"
51
- - ".travis.yml"
52
108
  - Gemfile
53
109
  - LICENSE
54
110
  - README.md
@@ -56,11 +112,12 @@ files:
56
112
  - lib/simple_active_link_to.rb
57
113
  - lib/simple_active_link_to/simple_active_link_to.rb
58
114
  - lib/simple_active_link_to/version.rb
59
- - simple_active_link_to-1.0.0.gem
60
115
  - simple_active_link_to.gemspec
61
116
  - test/gemfiles/5.0.gemfile
62
117
  - test/gemfiles/5.1.gemfile
63
118
  - test/gemfiles/5.2.gemfile
119
+ - test/gemfiles/6.0.gemfile
120
+ - test/gemfiles/6.1.gemfile
64
121
  - test/simple_active_link_to_test.rb
65
122
  - test/test_helper.rb
66
123
  homepage: http://github.com/frullah/simple_active_link_to
@@ -82,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
139
  - !ruby/object:Gem::Version
83
140
  version: '0'
84
141
  requirements: []
85
- rubygems_version: 3.1.2
142
+ rubygems_version: 3.2.3
86
143
  signing_key:
87
144
  specification_version: 4
88
145
  summary: ActionView helper to render currently active links
data/.travis.yml DELETED
@@ -1,16 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.3.7
4
- - 2.4.4
5
- - 2.5.1
6
- - ruby-head
7
- gemfile:
8
- - test/gemfiles/5.0.gemfile
9
- - test/gemfiles/5.1.gemfile
10
- - test/gemfiles/5.2.gemfile
11
- before_install:
12
- - gem update --system
13
- - gem update bundler
14
- matrix:
15
- allow_failures:
16
- - rvm: ruby-head
Binary file