Skip to content

Commit f6c0214

Browse files
committed
Do not touch load_path
1 parent dcb798b commit f6c0214

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

Rakefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ Rake::TestTask.new(:dummytest_controller) { |t| t.pattern = 'spec/fixtures/dummy
2020

2121
task default: :spec
2222

23-
$LOAD_PATH.push File.expand_path('lib', __dir__)
2423
require 'routes_coverage/version'
2524

2625
namespace :assets do

routes_coverage.gemspec

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# frozen_string_literal: true
22

3-
lib = File.expand_path('lib', __dir__)
4-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5-
require 'routes_coverage/version'
3+
require_relative './lib/routes_coverage/version'
64

75
Gem::Specification.new do |spec|
86
spec.name = "routes_coverage"
@@ -16,7 +14,7 @@ Gem::Specification.new do |spec|
1614
spec.homepage = "https://github.com/Vasfed/routes_coverage"
1715
spec.license = "MIT"
1816

19-
spec.required_ruby_version = ">= 1.9"
17+
spec.required_ruby_version = ">= 1.9.2"
2018

2119
spec.files = `git ls-files -z`.split("\x0").reject do |f|
2220
f.match(%r{^(test|spec|features|assets|bin|gemfiles)/}) ||

0 commit comments

Comments
 (0)