Skip to content

Commit 044bd59

Browse files
committed
Release 3.5.4
1 parent fce1eb2 commit 044bd59

File tree

7 files changed

+25
-11
lines changed

7 files changed

+25
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The library has been tested with MRI 3.1, 3.2 and 3.3. Supported platforms are L
2323
Add this line to your application's Gemfile:
2424

2525
```ruby
26-
gem "couchbase", "3.5.3"
26+
gem "couchbase", "3.5.4"
2727
```
2828

2929
And then execute:

bin/check-clang-static-analyzer

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,22 @@
1616

1717
PROJECT_ROOT="$( cd "$(dirname "$0")/.." >/dev/null 2>&1 ; pwd -P )"
1818

19+
DEFAULT_SCAN_BUILD=$(which scan-build)
20+
DEFAULT_CC=$(which clang)
21+
DEFAULT_CXX=$(which clang++)
22+
23+
if command -v brew &> /dev/null
24+
then
25+
LLVM_PREFIX=$(brew --prefix llvm)
26+
DEFAULT_SCAN_BUILD=${LLVM_PREFIX}/bin/scan-build
27+
DEFAULT_CC=${LLVM_PREFIX}/bin/clang
28+
DEFAULT_CXX=${LLVM_PREFIX}/bin/clang++
29+
fi
30+
1931
CB_CMAKE=${CB_CMAKE:-$(which cmake)}
20-
CB_CC=${CB_CC:-$(which clang)}
21-
CB_CXX=${CB_CXX:-$(which clang++)}
22-
CB_SCAN_BUILD=${CB_SCAN_BUILD:-$(which scan-build)}
32+
CB_CC=${CB_CC:-${DEFAULT_CC}}
33+
CB_CXX=${CB_CXX:-${DEFAULT_CXX}}
34+
CB_SCAN_BUILD=${CB_SCAN_BUILD:-${DEFAULT_SCAN_BUILD}}
2335

2436
echo "CB_CC=${CB_CC}"
2537
echo "CB_CXX=${CB_CXX}"
@@ -44,8 +56,9 @@ ${CB_SCAN_BUILD} ${SCAN_BUILD_ARGS} ${CB_CMAKE} \
4456
-DENABLE_CACHE=OFF \
4557
-DRUBY_HDR_DIR="${RUBY_HDR_DIR}" \
4658
-DRUBY_ARCH_HDR_DIR="${RUBY_ARCH_HDR_DIR}" \
47-
-DCOUCHBASE_CXX_CLIENT_INSTALL=ON \
48-
-DCOUCHBASE_CXX_CLIENT_BUILD_SHARED=ON \
59+
-DCOUCHBASE_CXX_CLIENT_INSTALL=OFF \
60+
-DCOUCHBASE_CXX_CLIENT_BUILD_SHARED=OFF \
61+
-DCOUCHBASE_CXX_CLIENT_BUILD_STATIC=ON \
4962
-DCOUCHBASE_CXX_CLIENT_BUILD_TESTS=OFF \
5063
-DCOUCHBASE_CXX_CLIENT_BUILD_DOCS=OFF \
5164
-DCOUCHBASE_CXX_CLIENT_BUILD_EXAMPLES=OFF \

couchbase.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
3131

3232
spec.metadata = {
3333
"homepage_uri" => "https://docs.couchbase.com/ruby-sdk/current/hello-world/start-using-sdk.html",
34-
"bug_tracker_uri" => "https://issues.couchbase.com/browse/RCBC",
34+
"bug_tracker_uri" => "https://jira.issues.couchbase.com/browse/RCBC",
3535
"mailing_list_uri" => "https://www.couchbase.com/forums/c/ruby-sdk",
3636
"source_code_uri" => "https://github.com/couchbase/couchbase-ruby-client/tree/#{spec.version}",
3737
"changelog_uri" => "https://github.com/couchbase/couchbase-ruby-client/releases/tag/#{spec.version}",

ext/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ add_library(
6363
target_include_directories(couchbase PRIVATE ${PROJECT_BINARY_DIR}/generated)
6464
target_include_directories(couchbase PRIVATE SYSTEM ${RUBY_INCLUDE_DIR}
6565
${PROJECT_SOURCE_DIR}/couchbase
66+
${PROJECT_BINARY_DIR}/couchbase/generated
6667
${PROJECT_SOURCE_DIR}/couchbase/third_party/cxx_function
6768
${PROJECT_SOURCE_DIR}/couchbase/third_party/expected/include)
6869
target_link_libraries(

ext/couchbase

lib/active_support/cache/couchbase_store.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def write_entry(key, entry, raw: false, **options)
233233
end
234234

235235
def write_serialized_entry(key, payload, expires_in: nil, race_condition_ttl: nil, raw: false, **)
236-
if race_condition_ttl && expires_in && expires_in.positive? && !raw
236+
if race_condition_ttl && expires_in&.positive? && !raw
237237
# Add few minutes to expiry in the future to support race condition TTLs on read
238238
expires_in += 5.minutes
239239
end
@@ -250,7 +250,7 @@ def write_multi_entries(entries, **options)
250250
return super if local_cache
251251

252252
expires_in = options[:expires_in]
253-
if options[:race_condition_ttl] && expires_in && expires_in.positive?
253+
if options[:race_condition_ttl] && expires_in&.positive?
254254
# Add few minutes to expiry in the future to support race condition TTLs on read
255255
expires_in += 5.minutes
256256
end

lib/couchbase/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ module Couchbase
2121
# $ ruby -rcouchbase -e 'pp Couchbase::VERSION'
2222
# {:sdk=>"3.4.0", :ruby_abi=>"3.1.0", :revision=>"416fe68e6029ec8a4c40611cf6e6b30d3b90d20f"}
2323
VERSION = {} unless defined?(VERSION) # rubocop:disable Style/MutableConstant
24-
VERSION.update(:sdk => "3.5.3")
24+
VERSION.update(:sdk => "3.5.4")
2525
end

0 commit comments

Comments
 (0)