mongory 0.7.7-arm64-darwin → 0.7.8-arm64-darwin

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: 18866d14b7984334764f79a0fc327682803e9fa7baa132f019c0b60649a65822
4
- data.tar.gz: 1686e67f51343598c490857c87a4cbcffa4f0dfb098358262c052e5ca54a64d4
3
+ metadata.gz: 0a099de9ab5ec357c9171a77766b18f13a782cf59df4a8c34ea1e1c1f0bb0f4f
4
+ data.tar.gz: e1ff0a7887dd7c0c66da4ea460d760fa65dbfaca7b742527cefb42da00e2b200
5
5
  SHA512:
6
- metadata.gz: 62d0aff8c050f47067379479c97ed8d2ed5896c4a6d876158b8a2c82c5f0c009a71b099b3afcfd3b3ec140825dfa80c2d0e0226346693f9270e4b0c0042b0982
7
- data.tar.gz: 9984304fa846165d1ed0107ad01c6d7dd8da65c53d87332882799c86a4b85108df4297feee8d4852c3cc49a135365b1049afe3c225b1d56700cf78270e49c614
6
+ metadata.gz: b1be084f5a8bc82ba66b65f906a4b143c04c5316b1e13c620cba2f6839a0971390ecbcddea025be97d03b4473fcea3b46616f861f350c0d97728779f45e2e731
7
+ data.tar.gz: 3ae744d636b75c102c8c939ce8abdf7d65ba81cde2ad3a1407993fa8347909188fe0395359c23ed8245060dedc13cb780b6924ea436236f3672935d7cb2ca032
@@ -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|
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mongory
4
- VERSION = '0.7.7'
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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongory
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.7
4
+ version: 0.7.8
5
5
  platform: arm64-darwin
6
6
  authors:
7
7
  - koten0224