Skip to content

Commit 94612df

Browse files
authored
Merge branch 'trunk' into fixGithubid
2 parents e2e272b + 1295900 commit 94612df

File tree

3 files changed

+34
-13
lines changed

3 files changed

+34
-13
lines changed

scripts/update-versions.sh

Lines changed: 31 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

3-
VERSION_STR="$1"
4-
NEW_VERSION=$(echo "$VERSION_STR" | cut -d. -f2)
5-
OLD_VERSION=$((NEW_VERSION - 1))
6-
NEXT_VERSION=$((NEW_VERSION + 1))
3+
if [[ -z "$1" || -z "$2" || -z "$3" || -z "$4" ]]; then
4+
echo -e "fatal: too few args\n"
5+
echo -e "usage:\n update-versions.sh <old_version> <new_version> <old_cdp_version> <new_cdp_version>"
6+
echo -e "example:\n ./update-versions.sh 4.35.0 4.38.0 137 142"
7+
exit 1
8+
fi
9+
10+
11+
if [[ "$1" != *.*.* || "$2" != *.*.* ]] ; then
12+
echo "fatal: use major.minor.patch version numbers (e.g.: 4.38.0)"
13+
exit 1
14+
fi
15+
16+
OLD_VERSION="$1"
17+
NEW_VERSION="$2"
18+
OLD_CDP_VERSION="$3"
19+
NEW_CDP_VERSION="$4"
720

821
FILES=(
922
"examples/java/build.gradle"
@@ -13,20 +26,28 @@ FILES=(
1326
"examples/java/pom.xml"
1427
"examples/javascript/package.json"
1528
"examples/ruby/Gemfile"
29+
"examples/ruby/spec/drivers/remote_webdriver_spec.rb"
1630
)
1731

32+
# replace Selenium version
1833
for FILE_PATH in "${FILES[@]}"; do
19-
if [[ "$FILE_PATH" == "examples/ruby/Gemfile" ]]; then
20-
sed -i '' -E "s/4\.$NEW_VERSION\.0/4.$NEXT_VERSION.0/g" "$FILE_PATH"
34+
echo $FILE_PATH
35+
if [[ ! -f ${FILE_PATH} ]]; then
36+
echo "can't find file for replacement!"
2137
fi
22-
23-
sed -i '' -E "s/4\.$OLD_VERSION\.[0-9]+/4.$NEW_VERSION.0/g" "$FILE_PATH"
38+
perl -i -pe "s/${OLD_VERSION}/${NEW_VERSION}/g" "${FILE_PATH}"
2439
done
2540

41+
42+
# replace CDP version
43+
find ./examples -type f \
44+
'(' -name "*.cs" -o -name "*.java" -o -name "*.js" -o -name "*.py" -o -name "*.rb" ')' \
45+
-exec perl -i -pe "s/v${OLD_CDP_VERSION}/v${NEW_CDP_VERSION}/g" {} \;
46+
2647
pushd examples/ruby
2748
bundle install
2849
popd
2950

3051
pushd examples/javascript
3152
npm install
32-
popd
53+
popd

website_and_docs/content/blog/2024/selenium-milestone-20yrs-blog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Celebrating 20 Years of Selenium: A Journey of Innovation in Browser Automation"
33
linkTitle: "Celebrating 20 Years of Selenium"
4-
date: 2024-10-18
4+
date: 2024-10-28
55
tags: ["webinar", "meetup", "talks"]
66
categories: ["webinar"]
77
author: <a href="https://www.linkedin.com/in/rpallavisharma/" target="_blank">Pallavi Sharma</a>

website_and_docs/content/documentation/about/_index.en.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ and search to see whether or not the issue has been filed already.
2323
If not, feel free to open one!
2424

2525
Many members of the community
26-
are present at the #selenium
27-
Libera chat at [Libera.chat](https://libera.chat/).
26+
are present at the #selenium-docs
27+
channel of [Selenium Slack Group](https://inviter.co/seleniumhq).
2828
Feel free to drop in and ask questions
2929
and if you get help which you think could be of use within these documents,
3030
be sure to add your contribution!

0 commit comments

Comments
 (0)