mongory 0.7.6-x86_64-linux-musl → 0.7.8-x86_64-linux-musl

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: 2e81d904a61cd0a29b21680d4984e3b4242851a8f3d435a0aac385ca18249100
4
- data.tar.gz: 03561f7b6ed616ad895e3ce0a68d162c6b03e05b733954d118011755c04c4434
3
+ metadata.gz: 80731f6c0d73a284807e63b1d609595e79a013a9171aafc39a7d42f065396d16
4
+ data.tar.gz: 3455dd15bd1f64cd056495ea665d3c660b30cfd930a89fabc8756b39b6143e1e
5
5
  SHA512:
6
- metadata.gz: c5e3252c845c8b6cbd0acd44196fb61276ef39671368a89829192c9e2e339f9b88df7136ceb46912fba7c2eb712a391843a7ecef9cfaf7eb469ca641d03ac1db
7
- data.tar.gz: aad5148d2e31a7a314e72acfafb4cd5bfc36c38b2a6c725b3802a50d0c3d629e39c1282722fe197954600db8735c38f39cc4283f5aa94cbb419e7fb9edeb7392
6
+ metadata.gz: 80293470b2e9a423fc8756777d5ffacc69c261a1a79206377e3c7e82ccbf91c1793e4f52593d7452aca157b3b9b079aaf2f4f038825f8beaccffa990c594a59e
7
+ data.tar.gz: 9e49e21a7d8075a0ea0385fb484708947f1dbe0690c3fda966bbccf0449f3a4dc7435ae325a5df209c6c775d06d0548c3b0c6e4568b0d881fde8bdcf2df043e0
data/Rakefile CHANGED
@@ -14,8 +14,6 @@ end
14
14
 
15
15
  # Add support for rake-compiler if available
16
16
  begin
17
- ENV['RUBY_CC_VERSION'] ||= '2.6.0:2.7.0:3.0.0:3.1.0:3.2.0:3.3.0'
18
-
19
17
  spec = Gem::Specification.load('mongory.gemspec')
20
18
 
21
19
  Rake::ExtensionTask.new('mongory_ext', spec) do |ext|
@@ -24,18 +22,6 @@ begin
24
22
  ext.ext_dir = 'ext/mongory_ext'
25
23
  ext.source_pattern = '*.c'
26
24
  ext.gem_spec = spec
27
- ext.cross_compile = true
28
- ext.cross_platform = [
29
- 'x86_64-linux',
30
- 'aarch64-linux',
31
- 'x86_64-darwin',
32
- 'arm64-darwin',
33
- # 'arm64-mingw-ucrt', # TODO: add this when we have a mingw-ucrt rake-compiler-dock image
34
- 'x64-mingw32',
35
- 'x64-mingw-ucrt',
36
- 'x86_64-linux-musl',
37
- 'aarch64-linux-musl'
38
- ]
39
25
  end
40
26
 
41
27
  # Add tasks for building with submodule
@@ -55,6 +55,13 @@ $CFLAGS << ' -Wno-declaration-after-statement -Wno-discarded-qualifiers'
55
55
  $CFLAGS << ' -O2' unless ENV['DEBUG']
56
56
  $CFLAGS << ' -g -O0 -DDEBUG' if ENV['DEBUG']
57
57
 
58
+ # --- macOS (darwin) linking: avoid hard-linking libruby, let symbols resolve at load time
59
+ if RbConfig::CONFIG['host_os'] =~ /darwin/
60
+ # Use dynamic_lookup so Ruby symbols (rb_*) are resolved by the host interpreter at dlopen time
61
+ $LDFLAGS << ' -Wl,-undefined,dynamic_lookup'
62
+ $DLDFLAGS << ' -Wl,-undefined,dynamic_lookup'
63
+ end
64
+
58
65
  # Let mkmf generate rules by listing all sources and corresponding objects
59
66
  $INCFLAGS << ' -I.'
60
67
  $INCFLAGS << " -I#{File.join(core_src_dir, 'foundations')}"
@@ -74,6 +81,18 @@ puts "Use 'make' to build the extension"
74
81
  # Append Makefile rules: explicit compilation rules for submodule sources to avoid copying/linking files
75
82
  mk = File.read('Makefile')
76
83
 
84
+ if RbConfig::CONFIG['host_os'] =~ /darwin/
85
+ # --- sanitize Makefile to ensure no hard link against Ruby framework/libruby ---
86
+ mk << <<~'MAKE'
87
+ # --- darwin: force unlink from libruby (final override) ---
88
+ LIBRUBYARG =
89
+ LIBRUBYARG_SHARED =
90
+ LIBRUBYARG_STATIC =
91
+ LIBRUBY =
92
+ LIBS =
93
+ MAKE
94
+ end
95
+
77
96
  # rubocop:disable Layout/HeredocIndentation
78
97
  rules = +"\n# --- custom rules for mongory-core submodule sources ---\n"
79
98
  (foundations_src + matchers_src).each do |src|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mongory
4
- VERSION = '0.7.6'
4
+ VERSION = '0.7.8'
5
5
  end
data/lib/mongory.rb CHANGED
@@ -120,6 +120,6 @@ begin
120
120
  abi = RUBY_VERSION.split('.').first(2).join('.')
121
121
  require "core/#{abi}/mongory_ext"
122
122
  require_relative 'mongory/c_query_builder'
123
- rescue LoadError
124
- warn('Mongory::CQueryBuilder is disabled because mongory_ext is not loaded')
123
+ rescue LoadError => e
124
+ warn("Mongory C extension is disabled because mongory_ext is not loaded: #{e.message}")
125
125
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongory
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.6
4
+ version: 0.7.8
5
5
  platform: x86_64-linux-musl
6
6
  authors:
7
7
  - koten0224
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-08-26 00:00:00.000000000 Z
11
+ date: 2025-08-27 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A Mongo-like in-memory query DSL for Ruby
14
14
  email: