Skip to content

Commit 024bb4b

Browse files
committed
avoid circular dependency by disabling the global vars check in the gemspec
1 parent 09b4f7a commit 024bb4b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

jekyll-redirect-from.gemspec

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ lib = File.expand_path("../lib", __FILE__)
44
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
55
require "jekyll-redirect-from/version"
66

7-
# See https://github.com/bbatsov/rubocop/issues/75
8-
require "english"
9-
107
Gem::Specification.new do |spec|
118
spec.name = "jekyll-redirect-from"
129
spec.version = JekyllRedirectFrom::VERSION
@@ -17,7 +14,10 @@ Gem::Specification.new do |spec|
1714
spec.homepage = "https://github.com/jekyll/jekyll-redirect-from"
1815
spec.license = "MIT"
1916

20-
spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
17+
# rubocop:disable Style/SpecialGlobalVars
18+
spec.files = `git ls-files`.split($/)
19+
# rubocop:enable Style/SpecialGlobalVars
20+
2121
spec.executables = spec.files.grep(%r!^bin/!) { |f| File.basename(f) }
2222
spec.test_files = spec.files.grep(%r!^(test|spec|features)/!)
2323
spec.require_paths = ["lib"]
@@ -28,5 +28,4 @@ Gem::Specification.new do |spec|
2828
spec.add_development_dependency "rake", "~> 12.0"
2929
spec.add_development_dependency "jekyll-sitemap", "~> 0.8.1"
3030
spec.add_development_dependency "rubocop", "~> 0.43"
31-
spec.add_development_dependency "english", "~> 0.6"
3231
end

0 commit comments

Comments
 (0)