Skip to content

Commit

Permalink
Prefer Dir over Rake::FileList
Browse files Browse the repository at this point in the history
This also fixes all the CI inconsistencies.

Fixes: titusfortner#184

Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>
  • Loading branch information
utkarsh2102 committed Oct 1, 2020
1 parent 355aabb commit 6ae6c38
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions webdrivers.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
lib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift lib unless $LOAD_PATH.include?(lib)
require 'webdrivers/version'
require 'rake/file_list'

Gem::Specification.new do |s|
s.name = 'webdrivers'
Expand All @@ -23,8 +22,7 @@ Gem::Specification.new do |s|
'source_code_uri' => "https://github.com/titusfortner/webdrivers/tree/v#{Webdrivers::VERSION}"
}

s.files = Rake::FileList['CHANGELOG.md', 'lib/**/*', 'LICENSE.txt', \
'README.md'].exclude(*File.read('.gitignore').split)
s.files = Dir['lib/**/*'] + %w[CHANGELOG.md LICENSE.txt README.md]
s.test_files = Dir['spec/**/*'].reject { |f| File.directory?(f) }
s.executables = []
s.require_paths = ['lib']
Expand Down

0 comments on commit 6ae6c38

Please sign in to comment.