ffi-yajl 2.4.0-universal-java → 2.5.0-universal-java

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: 1735649f4c5cfe623d86b3880367ed921466a9987b3650dacb16e60ad9ed7493
4
- data.tar.gz: e4203b9546f527955f0837487c8c4bfec79d86d622faef07002f16a8337cea19
3
+ metadata.gz: 883724d5b7dc12ba38e397dffc5c4d3cdb532d4f28c66043d956657706769eb1
4
+ data.tar.gz: a2e860ddd5c1233e6f1dfc303cadcb595be99327ce0c93e9342f1822a1b7a888
5
5
  SHA512:
6
- metadata.gz: af296ac8b967bc93b1dddc16ea3c60e8581e09649b59fda348784bb480898d16280f05aae197de693e292fc678a0f9a06650e5f21cc8b673eb89f1e3e16c12a8
7
- data.tar.gz: e495c095604c93143f0fc030ed0390a2309998e0ab629f6a6c1f9586acac2a26dd738268c7551ed33564acdc0603f86c1e6c980be81cabc5990aa278d4ba5cff
6
+ metadata.gz: a6c69a7f9f9ba266a4ed663ceef6249ec8faadf1eeb4d8ffd05f5abb0ba815fc902ea2fbded62f4b2e2c8963707832f57753fa6008c49013a75762ce933cad39
7
+ data.tar.gz: 92d4652e0864a89afeaab7780f6d4b38153e76bb7734751296e241de5a6d53124d35c3d3aec3e5ee8101dddba6e3feada7055080c1637d83bf5eec4e22a34f90
@@ -0,0 +1,18 @@
1
+ _yajl_gen_alloc
2
+ _yajl_gen_array_close
3
+ _yajl_gen_array_open
4
+ _yajl_gen_bool
5
+ _yajl_gen_config
6
+ _yajl_gen_free
7
+ _yajl_gen_get_buf
8
+ _yajl_gen_map_close
9
+ _yajl_gen_map_open
10
+ _yajl_gen_null
11
+ _yajl_gen_number
12
+ _yajl_gen_string
13
+ _yajl_alloc
14
+ _yajl_complete_parse
15
+ _yajl_config
16
+ _yajl_free
17
+ _yajl_get_error
18
+ _yajl_parse
@@ -27,6 +27,27 @@ def windows?
27
27
  !!(RUBY_PLATFORM =~ /mswin|mingw|cygwin|windows/)
28
28
  end
29
29
 
30
+ def macos?
31
+ !!(RUBY_PLATFORM =~ /darwin/)
32
+ end
33
+
34
+ def clang?
35
+ cc_version = `#{RbConfig.expand("$(CC) --version")}`
36
+ cc_version.match?(/clang/i)
37
+ end
38
+
39
+ # XCode 14 warns if `-Wl,-undefined dynamic_lookup` is specified, and as
40
+ # a result Ruby interpreters compiled under XCode 14 no longer specify
41
+ # this flag by default in DLDFLAGS. Let's specify the list of dynamic symbols
42
+ # here to avoid compilation failures.
43
+ if clang? && macos?
44
+ symfile = File.join(__dir__, '../dlopen/yajl.sym')
45
+ dynamic_symbols = File.readlines(symfile)
46
+ dynamic_symbols.each do |sym|
47
+ $DLDFLAGS << " -Wl,-U,#{sym.strip}"
48
+ end
49
+ end
50
+
30
51
  if windows?
31
52
  # include our libyajldll.a definitions on windows in the libyajl2 gem
32
53
  $libs = "#{$libs} -lyajldll"
@@ -27,6 +27,27 @@ def windows?
27
27
  !!(RUBY_PLATFORM =~ /mswin|mingw|cygwin|windows/)
28
28
  end
29
29
 
30
+ def macos?
31
+ !!(RUBY_PLATFORM =~ /darwin/)
32
+ end
33
+
34
+ def clang?
35
+ cc_version = `#{RbConfig.expand("$(CC) --version")}`
36
+ cc_version.match?(/clang/i)
37
+ end
38
+
39
+ # XCode 14 warns if `-Wl,-undefined dynamic_lookup` is specified, and as
40
+ # a result Ruby interpreters compiled under XCode 14 no longer specify
41
+ # this flag by default in DLDFLAGS. Let's specify the list of dynamic symbols
42
+ # here to avoid compilation failures.
43
+ if clang? && macos?
44
+ symfile = File.join(__dir__, '../dlopen/yajl.sym')
45
+ dynamic_symbols = File.readlines(symfile)
46
+ dynamic_symbols.each do |sym|
47
+ $DLDFLAGS << " -Wl,-U,#{sym.strip}"
48
+ end
49
+ end
50
+
30
51
  if windows?
31
52
  # include our libyajldll.a definitions on windows in the libyajl2 gem
32
53
  $libs = "#{$libs} -lyajldll"
@@ -21,5 +21,5 @@
21
21
  # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
22
 
23
23
  module FFI_Yajl
24
- VERSION = "2.4.0".freeze
24
+ VERSION = "2.5.0".freeze
25
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffi-yajl
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.5.0
5
5
  platform: universal-java
6
6
  authors:
7
7
  - Lamont Granquist
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-07 00:00:00.000000000 Z
11
+ date: 2023-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: libyajl2
@@ -52,6 +52,7 @@ files:
52
52
  - bin/ffi-yajl-bench
53
53
  - ext/ffi_yajl/ext/dlopen/dlopen.c
54
54
  - ext/ffi_yajl/ext/dlopen/extconf.rb
55
+ - ext/ffi_yajl/ext/dlopen/yajl.sym
55
56
  - ext/ffi_yajl/ext/encoder/encoder.c
56
57
  - ext/ffi_yajl/ext/encoder/extconf.rb
57
58
  - ext/ffi_yajl/ext/parser/extconf.rb
@@ -106,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
107
  - !ruby/object:Gem::Version
107
108
  version: '0'
108
109
  requirements: []
109
- rubygems_version: 3.2.3
110
+ rubygems_version: 3.3.7
110
111
  signing_key:
111
112
  specification_version: 4
112
113
  summary: Ruby FFI wrapper around YAJL 2.x