Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 3.5.4 #161

Merged
merged 1 commit into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ The library has been tested with MRI 3.1, 3.2 and 3.3. Supported platforms are L
Add this line to your application's Gemfile:

```ruby
gem "couchbase", "3.5.3"
gem "couchbase", "3.5.4"
```

And then execute:
Expand Down
23 changes: 18 additions & 5 deletions bin/check-clang-static-analyzer
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,22 @@

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

DEFAULT_SCAN_BUILD=$(which scan-build)
DEFAULT_CC=$(which clang)
DEFAULT_CXX=$(which clang++)

if command -v brew &> /dev/null
then
LLVM_PREFIX=$(brew --prefix llvm)
DEFAULT_SCAN_BUILD=${LLVM_PREFIX}/bin/scan-build
DEFAULT_CC=${LLVM_PREFIX}/bin/clang
DEFAULT_CXX=${LLVM_PREFIX}/bin/clang++
fi

CB_CMAKE=${CB_CMAKE:-$(which cmake)}
CB_CC=${CB_CC:-$(which clang)}
CB_CXX=${CB_CXX:-$(which clang++)}
CB_SCAN_BUILD=${CB_SCAN_BUILD:-$(which scan-build)}
CB_CC=${CB_CC:-${DEFAULT_CC}}
CB_CXX=${CB_CXX:-${DEFAULT_CXX}}
CB_SCAN_BUILD=${CB_SCAN_BUILD:-${DEFAULT_SCAN_BUILD}}

echo "CB_CC=${CB_CC}"
echo "CB_CXX=${CB_CXX}"
Expand All @@ -44,8 +56,9 @@ ${CB_SCAN_BUILD} ${SCAN_BUILD_ARGS} ${CB_CMAKE} \
-DENABLE_CACHE=OFF \
-DRUBY_HDR_DIR="${RUBY_HDR_DIR}" \
-DRUBY_ARCH_HDR_DIR="${RUBY_ARCH_HDR_DIR}" \
-DCOUCHBASE_CXX_CLIENT_INSTALL=ON \
-DCOUCHBASE_CXX_CLIENT_BUILD_SHARED=ON \
-DCOUCHBASE_CXX_CLIENT_INSTALL=OFF \
-DCOUCHBASE_CXX_CLIENT_BUILD_SHARED=OFF \
-DCOUCHBASE_CXX_CLIENT_BUILD_STATIC=ON \
-DCOUCHBASE_CXX_CLIENT_BUILD_TESTS=OFF \
-DCOUCHBASE_CXX_CLIENT_BUILD_DOCS=OFF \
-DCOUCHBASE_CXX_CLIENT_BUILD_EXAMPLES=OFF \
Expand Down
2 changes: 1 addition & 1 deletion couchbase.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Gem::Specification.new do |spec|

spec.metadata = {
"homepage_uri" => "https://docs.couchbase.com/ruby-sdk/current/hello-world/start-using-sdk.html",
"bug_tracker_uri" => "https://issues.couchbase.com/browse/RCBC",
"bug_tracker_uri" => "https://jira.issues.couchbase.com/browse/RCBC",
"mailing_list_uri" => "https://www.couchbase.com/forums/c/ruby-sdk",
"source_code_uri" => "https://github.com/couchbase/couchbase-ruby-client/tree/#{spec.version}",
"changelog_uri" => "https://github.com/couchbase/couchbase-ruby-client/releases/tag/#{spec.version}",
Expand Down
1 change: 1 addition & 0 deletions ext/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ add_library(
target_include_directories(couchbase PRIVATE ${PROJECT_BINARY_DIR}/generated)
target_include_directories(couchbase PRIVATE SYSTEM ${RUBY_INCLUDE_DIR}
${PROJECT_SOURCE_DIR}/couchbase
${PROJECT_BINARY_DIR}/couchbase/generated
${PROJECT_SOURCE_DIR}/couchbase/third_party/cxx_function
${PROJECT_SOURCE_DIR}/couchbase/third_party/expected/include)
target_link_libraries(
Expand Down
2 changes: 1 addition & 1 deletion ext/couchbase
4 changes: 2 additions & 2 deletions lib/active_support/cache/couchbase_store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def write_entry(key, entry, raw: false, **options)
end

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

expires_in = options[:expires_in]
if options[:race_condition_ttl] && expires_in && expires_in.positive?
if options[:race_condition_ttl] && expires_in&.positive?
# Add few minutes to expiry in the future to support race condition TTLs on read
expires_in += 5.minutes
end
Expand Down
2 changes: 1 addition & 1 deletion lib/couchbase/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ module Couchbase
# $ ruby -rcouchbase -e 'pp Couchbase::VERSION'
# {:sdk=>"3.4.0", :ruby_abi=>"3.1.0", :revision=>"416fe68e6029ec8a4c40611cf6e6b30d3b90d20f"}
VERSION = {} unless defined?(VERSION) # rubocop:disable Style/MutableConstant
VERSION.update(:sdk => "3.5.3")
VERSION.update(:sdk => "3.5.4")
end
Loading