oj-introspect 0.7.0 → 0.7.1

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: a8344e4ea03bb224e5911727d82641178d51384929ec66d40518b44b9d06cf1a
4
- data.tar.gz: 6cd47873367c3d0305b40022ca35e46f22060df2fa3d5997927161150cf6996c
3
+ metadata.gz: 74ab6b62802075f9e3c9d9efc7fb13a2eca6d61c6da2f58e1b5f853fe08841c8
4
+ data.tar.gz: 13874ca3c2afea6ba3fb9de442f904b1dd8fe24131f7c4430ee496c01b6fd627
5
5
  SHA512:
6
- metadata.gz: c6c63c1724ed3b9295eef1b7858f78ff926042a3bef6d558648822a7a144dd2426ad2e884f8173f576a23c484c2e50c2170c90d905aefe4efa0a4c56b6eccc58
7
- data.tar.gz: 50992a4c4cc58fe8589afc32669ea6bbb34a699078112e853299b707389f4883ee9e82f1fc0370ee87f61fb9847edb111e2d0540205378b88f9fc05ec008672f
6
+ metadata.gz: c7bfa4f6a854ae76136e01f102b63c231b055c06b3fbe5941b98b0c3a00b6d79653fad56afde069fc2907e693164ac1385ef4c3363e817cb48fb12592a99da4d
7
+ data.tar.gz: b151a7bbc3f00291110db4c30f5bfb2cbdbcfdc3ac150062ba98f07f58598cd71eaced956bca86a40fb6fce83c529a2599a2b6948d95495b6fe8e665b0b13658
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- oj-introspect (0.7.0)
4
+ oj-introspect (0.7.1)
5
5
  oj (>= 3.13.23)
6
6
 
7
7
  GEM
@@ -7,6 +7,22 @@ oj_version_file_path = Pathname.new(oj_version_file)
7
7
 
8
8
  OJ_HEADERS = oj_version_file_path.join('..', '..', '..', 'ext', 'oj').to_s
9
9
 
10
+ cc_version = `#{RbConfig.expand("$(CC) --version".dup)}`
11
+ if cc_version.match?(/clang/i)
12
+ # Ignore symbols loaded from Oj in case Ruby is compiled without
13
+ # "-Wl,-undefined,dynamic_lookup" (related to https://bugs.ruby-lang.org/issues/19005)
14
+ symfile = File.join(__dir__, 'oj.sym')
15
+ dynamic_symbols = File.readlines(symfile)
16
+ dynamic_symbols.each do |sym|
17
+ $DLDFLAGS << " -Wl,-U,#{sym.strip}"
18
+ end
19
+
20
+ # Needed for Ruby 3.2 ABI check: https://github.com/ruby/ruby/pull/5474
21
+ if RUBY_VERSION >= "3.2"
22
+ $LDFLAGS << " -Wl,-exported_symbol,_ruby_abi_version"
23
+ end
24
+ end
25
+
10
26
  dir_config('oj', [OJ_HEADERS], [])
11
27
 
12
28
  create_makefile("oj/introspect/introspect_ext")
@@ -0,0 +1,3 @@
1
+ _oj_init_usual
2
+ _oj_parser_new
3
+ _oj_parser_set_option
@@ -1,5 +1,5 @@
1
1
  module Oj
2
2
  class Introspect
3
- VERSION = "0.7.0"
3
+ VERSION = "0.7.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oj-introspect
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mehmet Emin INAC
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-11-09 00:00:00.000000000 Z
11
+ date: 2022-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oj
@@ -47,6 +47,7 @@ files:
47
47
  - bin/test_run
48
48
  - ext/oj-introspect/extconf.rb
49
49
  - ext/oj-introspect/introspect.c
50
+ - ext/oj-introspect/oj.sym
50
51
  - lib/oj/introspect.rb
51
52
  - lib/oj/introspect/version.rb
52
53
  - oj-introspect.gemspec