chdb-ruby 0.2.0.rc.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d3dffafce42be0cf41b18bdc22e47ae17a4dfea85169a641b2068a9d0e54b306
4
- data.tar.gz: e0cde6afb8872dd2a72f5dc8b90392ec0163707daa430907aa126e63a57bbf77
3
+ metadata.gz: 679893b02b8167b00cef30c5548f85cb7eadcd60d30d699b8365d8c67f3026ee
4
+ data.tar.gz: 7cba8725c25b47438e8c3ff15e28e57973583c382f5f7a31c65d1fea979ace81
5
5
  SHA512:
6
- metadata.gz: d198f71a5348388d2b49eb5819014490d0300a20fb1d48c8342da35162d41b650d3c872f1d65b15777d2a73a47b9ca5438f551a066c05b59faab2f2b6148bd02
7
- data.tar.gz: f73e40324a300d87849350637257a593f484ba2b8a8f7e40c671969ed9dbc2c1737437641dbe96a7a119d22b33bff753a514bd66f612453c0f9305ffea620a4a
6
+ metadata.gz: cd1b79158199aed6a3c1292f0445aba3a9a9042a9ba736947849bb5cc4ac36e7d871138bfbbc8945146ab6859e837559e9bcf6c6c7de8626274245c128170b5f
7
+ data.tar.gz: d429ce04723adf1d3ff35e8a4b08e9c683b76ad2c1878bd214f83ea9184f0e4d8466ef308675fed10543d1484bc7132d7fc0d3aa1d248be59ed243d9c7a7c2bf
data/README.md CHANGED
@@ -1,10 +1,9 @@
1
1
  <a href="https://chdb.io" target="_blank">
2
- <img src="https://avatars.githubusercontent.com/u/132536224" width=130 />
2
+ <img src="img/chdb-ruby.png" width=130 />
3
3
  </a>
4
4
 
5
- [![chDB-ruby](https://github.com/chdb-io/chdb-ruby/actions/workflows/chdb.yml/badge.svg)](https://github.com/chdb-io/chdb-ruby/actions/workflows/chdb.yml)
6
5
 
7
- # Ruby Interface for chdb
6
+ # Ruby binding for chDB
8
7
 
9
8
  ## Overview
10
9
 
data/dependencies.yml CHANGED
@@ -1,2 +1,2 @@
1
1
  chdb:
2
- version: "3.2.0"
2
+ version: "26.11.0-rc.2"
@@ -87,5 +87,8 @@ void init_chdb_handle()
87
87
  (void*)chdb_destroy_result_ptr);
88
88
  }
89
89
 
90
- rb_set_end_proc(close_chdb_handle, 0);
90
+ // Keep libchdb loaded until the process exits. Ruby runs end procs before the
91
+ // GC finalizers of the remaining Connection/LocalResult/StreamingResult objects,
92
+ // and those finalizers call back into libchdb, so unloading it here would leave
93
+ // them jumping into unmapped code.
91
94
  }
data/ext/chdb/exception.c CHANGED
@@ -5,9 +5,11 @@ VALUE cChDBError;
5
5
  void init_exception()
6
6
  {
7
7
  VALUE mChDB = rb_define_module("ChDB");
8
- if (rb_const_defined(mChDB, rb_intern("Exception")))
8
+ // Look up ChDB::Exception only in ChDB itself: rb_const_defined/rb_const_get
9
+ // also search Object for a module and would return Ruby's top-level Exception.
10
+ if (rb_const_defined_at(mChDB, rb_intern("Exception")))
9
11
  {
10
- cChDBError = rb_const_get(mChDB, rb_intern("Exception"));
12
+ cChDBError = rb_const_get_at(mChDB, rb_intern("Exception"));
11
13
  }
12
14
  else
13
15
  {
data/ext/chdb/extconf.rb CHANGED
@@ -128,7 +128,7 @@ module ChDB
128
128
  end
129
129
 
130
130
  def build_download_url(version, file_name)
131
- "https://github.com/chdb-io/chdb/releases/download/v#{version}/#{file_name}"
131
+ "https://github.com/chdb-io/chdb-core/releases/download/v#{version}/#{file_name}"
132
132
  end
133
133
 
134
134
  def download_tarball(url, download_dir, file_name)
data/lib/chdb/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
 
3
3
  module ChDB
4
4
  # (String) the version of the chdb gem, e.g. "0.1.0"
5
- VERSION = '0.2.0.rc.1'
5
+ VERSION = '0.2.0'
6
6
  end
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chdb-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.rc.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Xiaozhe Yu
8
8
  - Auxten Wang
9
- autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2025-05-07 00:00:00.000000000 Z
11
+ date: 1980-01-02 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: csv
@@ -28,7 +27,6 @@ dependencies:
28
27
  description: |
29
28
  Ruby library to interface with the chDB database engine (https://clickhouse.com/docs/chdb). Precompiled
30
29
  binaries are available for common platforms for recent versions of Ruby.
31
- email:
32
30
  executables: []
33
31
  extensions:
34
32
  - ext/chdb/extconf.rb
@@ -75,7 +73,6 @@ metadata:
75
73
  changelog_uri: https://github.com/chdb-io/chdb-ruby/blob/main/CHANGELOG.md
76
74
  source_code_uri: https://github.com/chdb-io/chdb-ruby
77
75
  rubygems_mfa_required: 'true'
78
- post_install_message:
79
76
  rdoc_options:
80
77
  - "--main"
81
78
  - README.md
@@ -88,12 +85,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
88
85
  version: '3.1'
89
86
  required_rubygems_version: !ruby/object:Gem::Requirement
90
87
  requirements:
91
- - - ">"
88
+ - - ">="
92
89
  - !ruby/object:Gem::Version
93
- version: 1.3.1
90
+ version: '0'
94
91
  requirements: []
95
- rubygems_version: 3.3.27
96
- signing_key:
92
+ rubygems_version: 3.6.9
97
93
  specification_version: 4
98
94
  summary: Ruby library to interface with the chDB database engine (https://clickhouse.com/docs/chdb).
99
95
  test_files: []