Skip to content

Commit fce1eb2

Browse files
committed
Update core to 1.0.2
1 parent 28aacf8 commit fce1eb2

File tree

9 files changed

+19
-6
lines changed

9 files changed

+19
-6
lines changed

.github/workflows/linters.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
CB_SCAN_BUILD: /usr/bin/scan-build-18
7272
- name: Upload scan-build report
7373
if: ${{ failure() }}
74-
uses: actions/upload-artifact@v2
74+
uses: actions/upload-artifact@v4
7575
with:
7676
name: report
7777
path: ext/cmake-build-report.tar.gz

Rakefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ task :cache_cxx_dependencies do
137137
"asio/*/asio/COPYING",
138138
"asio/*/asio/asio/include/*.hpp",
139139
"asio/*/asio/asio/include/asio/**/*.[hi]pp",
140+
"asio/*/asio/asio/src/*.cpp",
140141
"boringssl/*/boringssl/**/*.{cc,h,c,asm,S}",
141142
"boringssl/*/boringssl/**/CMakeLists.txt",
142143
"boringssl/*/boringssl/LICENSE",

bin/check-clang-static-analyzer

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ ${CB_SCAN_BUILD} ${SCAN_BUILD_ARGS} ${CB_CMAKE} \
4444
-DENABLE_CACHE=OFF \
4545
-DRUBY_HDR_DIR="${RUBY_HDR_DIR}" \
4646
-DRUBY_ARCH_HDR_DIR="${RUBY_ARCH_HDR_DIR}" \
47+
-DCOUCHBASE_CXX_CLIENT_INSTALL=ON \
48+
-DCOUCHBASE_CXX_CLIENT_BUILD_SHARED=ON \
4749
-DCOUCHBASE_CXX_CLIENT_BUILD_TESTS=OFF \
4850
-DCOUCHBASE_CXX_CLIENT_BUILD_DOCS=OFF \
4951
-DCOUCHBASE_CXX_CLIENT_BUILD_EXAMPLES=OFF \

ext/CMakeLists.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,20 @@ add_library(
6161
rcb_version.cxx
6262
rcb_views.cxx)
6363
target_include_directories(couchbase PRIVATE ${PROJECT_BINARY_DIR}/generated)
64-
target_include_directories(couchbase PRIVATE SYSTEM ${RUBY_INCLUDE_DIR})
64+
target_include_directories(couchbase PRIVATE SYSTEM ${RUBY_INCLUDE_DIR}
65+
${PROJECT_SOURCE_DIR}/couchbase
66+
${PROJECT_SOURCE_DIR}/couchbase/third_party/cxx_function
67+
${PROJECT_SOURCE_DIR}/couchbase/third_party/expected/include)
6568
target_link_libraries(
6669
couchbase
6770
PRIVATE project_options
6871
project_warnings
69-
couchbase_cxx_client
72+
couchbase_cxx_client_static
7073
Microsoft.GSL::GSL
7174
asio
7275
taocpp::json
76+
fmt::fmt
77+
spdlog::spdlog
7378
snappy)
7479
if(RUBY_LIBRUBY)
7580
target_link_directories(couchbase PRIVATE "${RUBY_LIBRARY_DIR}")

ext/couchbase

ext/extconf.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,13 @@ def sys(*cmd)
8484
"-DRUBY_ARCH_HDR_DIR=#{RbConfig::CONFIG['rubyarchhdrdir']}",
8585
"-DRUBY_LIBRARY_DIR=#{RbConfig::CONFIG['libdir']}",
8686
"-DRUBY_LIBRUBYARG=#{RbConfig::CONFIG['LIBRUBYARG_SHARED']}",
87+
"-DCOUCHBASE_CXX_CLIENT_BUILD_STATIC=ON",
88+
"-DCOUCHBASE_CXX_CLIENT_BUILD_SHARED=OFF",
8789
"-DCOUCHBASE_CXX_CLIENT_BUILD_TESTS=OFF",
8890
"-DCOUCHBASE_CXX_CLIENT_BUILD_DOCS=OFF",
8991
"-DCOUCHBASE_CXX_CLIENT_BUILD_TOOLS=OFF",
9092
"-DCOUCHBASE_CXX_CLIENT_BUILD_EXAMPLES=OFF",
93+
"-DCOUCHBASE_CXX_CLIENT_INSTALL=OFF",
9194
]
9295

9396
extconf_include = File.expand_path("cache/extconf_include.rb", __dir__)

ext/rcb_backend.cxx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,6 @@ initialize_cluster_options(const core::utils::connection_string& connstr,
206206
static const auto sym_network = rb_id2sym(rb_intern("network"));
207207
if (auto param = options::get_string(options, sym_network); param) {
208208
cluster_options.network().preferred_network(param.value());
209-
cluster_options.behavior().network(param.value());
210209
}
211210

212211
static const auto sym_use_ip_protocol = rb_id2sym(rb_intern("use_ip_protocol"));

ext/rcb_crud.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@
3030
#include <core/operations/document_touch.hxx>
3131
#include <core/operations/document_unlock.hxx>
3232
#include <core/utils/json.hxx>
33+
3334
#include <couchbase/cluster.hxx>
3435
#include <couchbase/codec/encoded_value.hxx>
36+
#include <couchbase/codec/tao_json_serializer.hxx>
3537
#include <couchbase/codec/transcoder_traits.hxx>
3638

3739
#include <future>

ext/rcb_version.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ init_version(VALUE mCouchbase)
120120
name == "mozilla_ca_bundle_size") {
121121
rb_hash_aset(cb_CoreInfo, rb_id2sym(rb_intern(name.c_str())), INT2FIX(std::stoi(value)));
122122
} else if (name == "snapshot" || name == "static_stdlib" || name == "static_openssl" ||
123-
name == "static_boringssl" || name == "mozilla_ca_bundle_embedded") {
123+
name == "static_boringssl" || name == "columnar" || name == "static_target" ||
124+
name == "mozilla_ca_bundle_embedded") {
124125
rb_hash_aset(
125126
cb_CoreInfo, rb_id2sym(rb_intern(name.c_str())), value == "true" ? Qtrue : Qfalse);
126127
} else {

0 commit comments

Comments
 (0)