Skip to content

Commit abaf772

Browse files
committed
update ruby platforms and versions
1 parent b627c9f commit abaf772

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,8 @@ jobs:
546546
fail-fast: false
547547
matrix:
548548
server:
549-
- 7.2.4
549+
- 7.6.1
550+
- 7.2.5
550551
- 7.1.6
551552
- 7.0.5
552553
steps:

.rubocop.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ require:
77
- rubocop-thread_safety
88

99
AllCops:
10-
TargetRubyVersion: 3.0
10+
TargetRubyVersion: 3.1
1111
NewCops: enable
1212
SuggestExtensions: false
1313
Exclude:
@@ -49,4 +49,3 @@ Style/TrailingCommaInHashLiteral:
4949

5050
Layout/FirstHashElementIndentation:
5151
EnforcedStyle: consistent
52-

bin/jenkins/build-gem.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ echo "CONTAINER_TAG=${CONTAINER_TAG}"
2222
echo "JENKINS_SLAVE_LABELS=${JENKINS_SLAVE_LABELS}"
2323
echo "NODE_LABELS=${NODE_LABELS}"
2424

25-
SUPPORTED_RUBY_VERSIONS="3.3 3.2 3.1 3.0"
25+
SUPPORTED_RUBY_VERSIONS="3.3 3.2 3.1"
2626
CMAKE_VERSION=3.28.1
2727
if [ -d "${HOME}/.cmake-${CMAKE_VERSION}/bin" ]
2828
then

bin/jenkins/repackage-extension.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,17 @@ def repackage(gemspec)
9292

9393
# adjust platform
9494
gemspec.platform = Gem::Platform::CURRENT
95-
gemspec.required_ruby_version = "> 3.0"
95+
if RUBY_PLATFORM.include?('darwin')
96+
gemspec.platform.version = nil
97+
gemspec.original_platform = gemspec.platform
98+
end
99+
gemspec.required_ruby_version = "> 3.1"
96100

97101
# build new gem
98102
output_gem = nil
99103

100104
Dir.chdir gemspec.full_gem_path do
101-
output_gem = Gem::Package.build(gemspec)
105+
output_gem = Gem::Package.build(gemspec, true)
102106
end
103107

104108
abort "There was a problem building the gem." unless output_gem

couchbase.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
2525
spec.description = "Modern SDK for Couchbase Server"
2626
spec.homepage = "https://www.couchbase.com"
2727
spec.license = "Apache-2.0"
28-
spec.required_ruby_version = "> 3.0"
28+
spec.required_ruby_version = "> 3.1"
2929

3030
spec.metadata = {
3131
"homepage_uri" => "https://docs.couchbase.com/ruby-sdk/current/hello-world/start-using-sdk.html",

0 commit comments

Comments
 (0)