Skip to content

Commit

Permalink
Explicitly list packaged files gemspec
Browse files Browse the repository at this point in the history
  • Loading branch information
p0deje committed May 5, 2021
1 parent c6d4516 commit d64bc88
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
9 changes: 8 additions & 1 deletion rb/selenium-devtools.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,14 @@ Gem::Specification.new do |s|
s.required_rubygems_version = Gem::Requirement.new('> 1.3.1') if s.respond_to? :required_rubygems_version=
s.required_ruby_version = Gem::Requirement.new('>= 2.5')

s.files = Dir.glob('{lib/selenium/devtools}/**/*')
s.files = [
'LICENSE',
'NOTICE',
'Gemfile',
'selenium-devtools.gemspec',
'lib/selenium/devtools.rb'
] + Dir['lib/selenium/devtools/**/*']

s.require_paths = ["lib"]

s.add_runtime_dependency 'websocket', ['~> 1.0']
Expand Down
12 changes: 11 additions & 1 deletion rb/selenium-webdriver.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,17 @@ Gem::Specification.new do |s|
s.required_rubygems_version = Gem::Requirement.new('> 1.3.1') if s.respond_to? :required_rubygems_version=
s.required_ruby_version = Gem::Requirement.new('>= 2.5')

s.files = Dir.glob('{lib/**/*}') - Dir.glob('{lib/selenium/devtools}/**/*')
s.files = [
'CHANGES',
'LICENSE',
'NOTICE',
'Gemfile',
'README.md',
'selenium-webdriver.gemspec',
'lib/selenium-webdriver.rb',
'lib/selenium/server.rb'
] + Dir['lib/selenium/webdriver/**/*']

s.require_paths = ['lib']

s.add_runtime_dependency 'childprocess', ['>= 0.5', '< 5.0']
Expand Down

0 comments on commit d64bc88

Please sign in to comment.