mdbx 0.3.5 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7eb0c032fc0a9fd7c91e0db5f6bbd876921fac5e886de80651d7eaf6564e7629
4
- data.tar.gz: 2820244c2ed1c1e6ed8efd6275fd62d4f62d5668f2a2d346056c70aef05b9dd1
3
+ metadata.gz: fe7c3d5524ed5030252885014fc5f7c590ae758f85367bb532438ff0ef884c76
4
+ data.tar.gz: 21328669c0f8218c9ef1e6bdb8025fbdb6da47d1d766afdc275ff5633dbfbaf9
5
5
  SHA512:
6
- metadata.gz: 65b7dab9c906a5dc50965ed8561a2eb9965eadf724e38f13fafe67cce6791ab1fca2992463dc9b8459f5ef6c97cb326439944faa7bbe60dc8fb03d41e9cc1f6d
7
- data.tar.gz: 89c8f70c38f150986b1b76052cc8870e5ab0705af73e59f5db9d20f91a6d201b47a6e2cd8c85a663dd0404a01fb46f10ccda38febfbfb53a19619badeda5889c
6
+ metadata.gz: 012750a1fd49c19496595443055416791af909095c75140c082389f0000c4b2f59e633ac2d26cfd9e3382fdbeba780a84c61d45780575616aca9f5eb42791c49
7
+ data.tar.gz: 4defe6f79ff92c0ec69111f32b25bde36a711b4536b6132748ac3d4d55dcb01dbcd2eff55d1508a87eb0fbaf41af4920953bb4b876c793be233e0fc0f7fe0a9d
checksums.yaml.gz.sig CHANGED
Binary file
data/History.md CHANGED
@@ -1,7 +1,16 @@
1
1
  # Release History for MDBX
2
2
 
3
3
  ---
4
- ## v0.3.5 [2023-03-24] Mahlon E. Smith <mahlon@martini.nu>
4
+ ## v0.3.6 [2024-06-12] Mahlon E. Smith <mahlon@martini.nu>
5
+
6
+
7
+ Minutiae:
8
+
9
+ - Fix build for Clang/FreeBSD.
10
+
11
+
12
+ ---
13
+ ## v0.3.5 [2024-03-24] Mahlon E. Smith <mahlon@martini.nu>
5
14
 
6
15
  Add support for libmdbx 0.12.x.
7
16
 
data/README.md CHANGED
@@ -440,7 +440,7 @@ report any issues [here](https://code.martini.nu/fossil/ruby-mdbx/tktnew).
440
440
 
441
441
  ## License
442
442
 
443
- Copyright (c) 2020-2023 Mahlon E. Smith
443
+ Copyright (c) 2020-2024 Mahlon E. Smith
444
444
  All rights reserved.
445
445
 
446
446
  Redistribution and use in source and binary forms, with or without
@@ -4,6 +4,7 @@
4
4
  require 'mkmf'
5
5
 
6
6
  $CFLAGS << ' -Wno-suggest-attribute=format'
7
+ $CFLAGS << ' -Wno-unknown-warning-option'
7
8
 
8
9
  have_library( 'mdbx' ) or abort "No mdbx library!"
9
10
  have_header( 'mdbx.h' ) or abort "No mdbx.h header!"
data/ext/mdbx_ext/stats.c CHANGED
@@ -65,21 +65,21 @@ rmdbx_gather_datafile_stats(
65
65
  rb_hash_aset( environ, ID2SYM(rb_intern("datafile")), datafile );
66
66
 
67
67
  rb_hash_aset( datafile, ID2SYM(rb_intern("size_current")),
68
- INT2NUM(menvinfo.mi_geo.current) );
68
+ LONG2NUM(menvinfo.mi_geo.current) );
69
69
  rb_hash_aset( datafile, ID2SYM(rb_intern("pages")),
70
- INT2NUM(menvinfo.mi_geo.current / mstat.ms_psize) );
70
+ LONG2NUM(menvinfo.mi_geo.current / mstat.ms_psize) );
71
71
 
72
72
  if ( menvinfo.mi_geo.lower != menvinfo.mi_geo.upper ) {
73
73
  rb_hash_aset( datafile, ID2SYM(rb_intern("type")),
74
74
  rb_str_new_cstr("dynamic") );
75
75
  rb_hash_aset( datafile, ID2SYM(rb_intern("size_lower")),
76
- INT2NUM( menvinfo.mi_geo.lower ) );
76
+ LONG2NUM( menvinfo.mi_geo.lower ) );
77
77
  rb_hash_aset( datafile, ID2SYM(rb_intern("size_upper")),
78
78
  LONG2FIX( menvinfo.mi_geo.upper ) );
79
79
  rb_hash_aset( datafile, ID2SYM(rb_intern("growth_step")),
80
- INT2NUM( menvinfo.mi_geo.grow ) );
80
+ LONG2NUM( menvinfo.mi_geo.grow ) );
81
81
  rb_hash_aset( datafile, ID2SYM(rb_intern("shrink_threshold")),
82
- INT2NUM( menvinfo.mi_geo.shrink ) );
82
+ LONG2NUM( menvinfo.mi_geo.shrink ) );
83
83
  }
84
84
  else {
85
85
  rb_hash_aset( datafile, ID2SYM(rb_intern("type")),
@@ -115,9 +115,9 @@ rmdbx_gather_environment_stats(
115
115
  rb_hash_aset( environ, ID2SYM(rb_intern("entries")),
116
116
  LONG2NUM(mstat.ms_entries) );
117
117
  rb_hash_aset( environ, ID2SYM(rb_intern("last_txnid")),
118
- INT2NUM(menvinfo.mi_recent_txnid) );
118
+ LONG2NUM(menvinfo.mi_recent_txnid) );
119
119
  rb_hash_aset( environ, ID2SYM(rb_intern("last_reader_txnid")),
120
- INT2NUM(menvinfo.mi_latter_reader_txnid) );
120
+ LONG2NUM(menvinfo.mi_latter_reader_txnid) );
121
121
  rb_hash_aset( environ, ID2SYM(rb_intern("max_readers")),
122
122
  INT2NUM(menvinfo.mi_maxreaders) );
123
123
  rb_hash_aset( environ, ID2SYM(rb_intern("readers_in_use")),
@@ -153,7 +153,7 @@ rmdbx_reader_list_cb(
153
153
  rb_hash_aset( reader, ID2SYM(rb_intern("pid")),
154
154
  LONG2FIX( pid ) );
155
155
  rb_hash_aset( reader, ID2SYM(rb_intern("thread")),
156
- LONG2FIX( thread ) );
156
+ LONG2FIX( (uint64_t)thread ) );
157
157
  rb_hash_aset( reader, ID2SYM(rb_intern("txnid")),
158
158
  LONG2FIX( txnid ) );
159
159
  rb_hash_aset( reader, ID2SYM(rb_intern("lag")),
data/lib/mdbx.rb CHANGED
@@ -13,7 +13,7 @@ module MDBX
13
13
  extend Loggability
14
14
 
15
15
  # The version of this gem.
16
- VERSION = '0.3.5'
16
+ VERSION = '0.3.6'
17
17
 
18
18
 
19
19
  log_as :mdbx
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mdbx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mahlon E. Smith
@@ -34,7 +34,7 @@ cert_chain:
34
34
  49pOzX5KHZLTS9DKeaP/xcGPz6C8MiwQdYrZarr2SHRASX1zFa79rkItO8kE6RDr
35
35
  b6WDF79UvZ55ajtE00TiwqjQL/ZPEtbd
36
36
  -----END CERTIFICATE-----
37
- date: 2024-03-24 00:00:00.000000000 Z
37
+ date: 2024-06-12 00:00:00.000000000 Z
38
38
  dependencies:
39
39
  - !ruby/object:Gem::Dependency
40
40
  name: loggability
@@ -222,7 +222,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
222
222
  - !ruby/object:Gem::Version
223
223
  version: '0'
224
224
  requirements: []
225
- rubygems_version: 3.4.19
225
+ rubygems_version: 3.5.10
226
226
  signing_key:
227
227
  specification_version: 4
228
228
  summary: A ruby binding to libmdbx, an improved version of the Lightning Memory Mapped
metadata.gz.sig CHANGED
Binary file