clickhouse-native 0.1.1 → 0.1.3

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: 51aa32b5ec77367fcc08b8df05c2449bb8e99b7f1cc3b7cc331d83c408cea32c
4
- data.tar.gz: 3b28a9d0cde5d7c827f212bb5ecde1d0dee21f5a8e4cc2faaa20de06534f59d5
3
+ metadata.gz: 99a3891e30d35144bd50c299fe5ee814e4a491860c7a7d066043982563960c39
4
+ data.tar.gz: 3c0dbaff2bc6db96ff5e1a8c5dbab67d6b4233571834e127f5a115570ef70346
5
5
  SHA512:
6
- metadata.gz: 825b57cd31290f4717a5e38d7b0d08c7949e455c23246913f1885db868a63b0b44a600f9527dd5f7175f889d1e9327f7b75af4ada2075aa5d2b7284f0b88184c
7
- data.tar.gz: 6c178edde2ba5ffbd1bee2f439e8d5c2d3dd3932c80442b9da34090cfc3286388a2cf3b834ff43a476aa7c68d1aaedc91409b48287a3e940383d8f8d98a75222
6
+ metadata.gz: b16891dc09f48773e9bdb59fffa07a645c4ab90dbc6723f58c48369eb18d81995f7df584b097048b751eb7737717015aacc838fd3884bb7f17aca94220ed7d20
7
+ data.tar.gz: 94db3b9126927989d8a875a21a8ca096c9bb5f37eb859546295a15c891f1832f50f31e7a35971f94e57a9b5e876d0040a626fc130113269a3658110fa10eb3e5
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Shim so `require "clickhouse-native"` works (Bundler's auto-require for
4
+ # a hyphenated gem name falls through to this path).
5
+ require "clickhouse_native"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ClickhouseNative
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.3"
5
5
  end
@@ -4,7 +4,18 @@ require "time"
4
4
  require "bigdecimal"
5
5
  require "clickhouse_native/version"
6
6
  require "clickhouse_native/errors"
7
- require "clickhouse_native/clickhouse_native"
7
+
8
+ # Precompiled gems ship the native extension under a Ruby-ABI subdir
9
+ # (e.g. lib/clickhouse_native/4.0/clickhouse_native.bundle). Source gems
10
+ # build into lib/clickhouse_native/clickhouse_native.{bundle,so}. Try the
11
+ # ABI-matched path first; fall back to the flat path.
12
+ begin
13
+ RUBY_VERSION =~ /(\d+\.\d+)/
14
+ require "clickhouse_native/#{Regexp.last_match(1)}/clickhouse_native"
15
+ rescue LoadError
16
+ require "clickhouse_native/clickhouse_native"
17
+ end
18
+
8
19
  require "clickhouse_native/client"
9
20
  require "clickhouse_native/logging"
10
21
  require "clickhouse_native/pool"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clickhouse-native
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuri Smirnov
@@ -285,6 +285,7 @@ files:
285
285
  - ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/zdict.h
286
286
  - ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/zstd.h
287
287
  - ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/zstd_errors.h
288
+ - lib/clickhouse-native.rb
288
289
  - lib/clickhouse_native.rb
289
290
  - lib/clickhouse_native/client.rb
290
291
  - lib/clickhouse_native/errors.rb