Skip to content

Commit

Permalink
[rb] create multiple gemspec files
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Mar 15, 2021
1 parent 3755075 commit 1a4b347
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 9 deletions.
2 changes: 1 addition & 1 deletion rb/.rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Metrics/BlockLength:
Max: 18
Exclude:
- 'spec/**/*.rb'
- 'selenium-webdriver.gemspec'
- 'selenium-*.gemspec'

Metrics/ClassLength:
CountComments: false
Expand Down
2 changes: 1 addition & 1 deletion rb/Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: true

source 'https://rubygems.org'
gemspec
gemspec name: 'selenium-webdriver'
24 changes: 24 additions & 0 deletions rb/lib/selenium/devtools/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# frozen_string_literal: true

# Licensed to the Software Freedom Conservancy (SFC) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The SFC licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

module Selenium
module DevTools
VERSION = '0.0.1.alpha'
end # DevTools
end # Selenium
34 changes: 34 additions & 0 deletions rb/selenium-devtools.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# frozen_string_literal: true

root = __dir__
raise "cwd must be #{root} when reading gemspec" if root != Dir.pwd

$LOAD_PATH.push(File.expand_path('lib', root))
require 'selenium/devtools/version'

Gem::Specification.new do |s|
s.name = 'selenium-devtools'
s.version = Selenium::DevTools::VERSION

s.authors = ['Alex Rodionov', 'Titus Fortner', 'Thomas Walpole']
s.email = ['p0deje@gmail.com', 'titusfortner@gmail.com', 'twalpole@gmail.com']

s.summary = 'DevTools Code for use with Selenium'
s.description = <<-DESCRIPTION
Selenium WebDriver now supports limited DevTools interactions.
This project allows users to specify desired versioning.
DESCRIPTION

s.license = 'Apache-2.0'
s.homepage = 'https://selenium.dev'
s.metadata = {
'changelog_uri' => 'https://github.com/SeleniumHQ/selenium/blob/trunk/rb/CHANGES',
'source_code_uri' => 'https://github.com/SeleniumHQ/selenium/tree/trunk/rb'
}

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.require_paths = ["lib"]
end
16 changes: 9 additions & 7 deletions rb/selenium-webdriver.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,17 @@ Gem::Specification.new do |s|
s.version = Selenium::WebDriver::VERSION

s.authors = ['Alex Rodionov', 'Titus Fortner', 'Thomas Walpole']
s.email = ['p0deje@gmail.com', 'titusfortner@gmail.com', 'twalpole@gmail.com']
s.email = %w[p0deje@gmail.com titusfortner@gmail.com twalpole@gmail.com]

s.summary = 'The next generation developer focused tool for automated testing of webapps'
s.description = 'WebDriver is a tool for writing automated tests of websites. ' \
'It aims to mimic the behaviour of a real user, ' \
'and as such interacts with the HTML of the application.'
s.summary = 'Selenium is a browser automation tool for automated testing of webapps and more'
s.description = <<-DESCRIPTION
Selenium implements the W3C WebDriver protocol to automate popular browsers.
It aims to mimic the behaviour of a real user as it interacts with the application's HTML.
It's primarily intended for web application testing, but any web-based task can automated.
DESCRIPTION

s.license = 'Apache-2.0'
s.homepage = 'https://github.com/SeleniumHQ/selenium'
s.homepage = 'https://selenium.dev'
s.metadata = {
'changelog_uri' => 'https://github.com/SeleniumHQ/selenium/blob/trunk/rb/CHANGES',
'source_code_uri' => 'https://github.com/SeleniumHQ/selenium/tree/trunk/rb'
Expand All @@ -28,7 +30,7 @@ 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["#{root}/**/*"].reject { |e| e =~ /ruby\.iml|build\.desc/ }.map { |e| e.sub("#{root}/", '') }
s.files = Dir.glob('{lib/**/*}') - Dir.glob('{lib/selenium/devtools}/**/*')
s.require_paths = ['lib']

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

0 comments on commit 1a4b347

Please sign in to comment.