restify 2.0.1 → 2.0.2

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.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/lib/restify/relation.rb +6 -2
  4. data/lib/restify/version.rb +1 -1
  5. data/spec/restify/relation_spec.rb +54 -1
  6. data/vendor/bundle/ruby/3.4.0/bundler/gems/my-rubocop-3bcd2110ca87/LICENSE +21 -0
  7. data/vendor/bundle/ruby/3.4.0/bundler/gems/my-rubocop-3bcd2110ca87/README.md +23 -0
  8. data/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.2/CHANGELOG.md +255 -0
  9. data/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.2/MIT-LICENSE +20 -0
  10. data/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.2/README.rdoc +40 -0
  11. data/vendor/bundle/ruby/3.4.0/gems/addressable-2.8.7/CHANGELOG.md +301 -0
  12. data/vendor/bundle/ruby/3.4.0/gems/addressable-2.8.7/LICENSE.txt +202 -0
  13. data/vendor/bundle/ruby/3.4.0/gems/addressable-2.8.7/README.md +121 -0
  14. data/vendor/bundle/ruby/3.4.0/gems/base64-0.2.0/LICENSE.txt +22 -0
  15. data/vendor/bundle/ruby/3.4.0/gems/base64-0.2.0/README.md +48 -0
  16. data/vendor/bundle/ruby/3.4.0/gems/benchmark-0.4.0/README.md +138 -0
  17. data/vendor/bundle/ruby/3.4.0/gems/bigdecimal-3.1.9/LICENSE +56 -0
  18. data/vendor/bundle/ruby/3.4.0/gems/concurrent-ruby-1.3.5/CHANGELOG.md +603 -0
  19. data/vendor/bundle/ruby/3.4.0/gems/concurrent-ruby-1.3.5/LICENSE.txt +21 -0
  20. data/vendor/bundle/ruby/3.4.0/gems/concurrent-ruby-1.3.5/README.md +407 -0
  21. data/vendor/bundle/ruby/3.4.0/gems/connection_pool-2.5.3/LICENSE +20 -0
  22. data/vendor/bundle/ruby/3.4.0/gems/connection_pool-2.5.3/README.md +167 -0
  23. data/vendor/bundle/ruby/3.4.0/gems/drb-2.2.1/LICENSE.txt +22 -0
  24. data/vendor/bundle/ruby/3.4.0/gems/ethon-0.16.0/CHANGELOG.md +375 -0
  25. data/vendor/bundle/ruby/3.4.0/gems/ethon-0.16.0/LICENSE +20 -0
  26. data/vendor/bundle/ruby/3.4.0/gems/ethon-0.16.0/README.md +118 -0
  27. data/vendor/bundle/ruby/3.4.0/gems/ffi-1.17.2-x86_64-linux-gnu/CHANGELOG.md +473 -0
  28. data/vendor/bundle/ruby/3.4.0/gems/ffi-1.17.2-x86_64-linux-gnu/LICENSE +24 -0
  29. data/vendor/bundle/ruby/3.4.0/gems/ffi-1.17.2-x86_64-linux-gnu/LICENSE.SPECS +22 -0
  30. data/vendor/bundle/ruby/3.4.0/gems/ffi-1.17.2-x86_64-linux-gnu/README.md +137 -0
  31. data/vendor/bundle/ruby/3.4.0/gems/hitimes-3.1.0/LICENSE.txt +16 -0
  32. data/vendor/bundle/ruby/3.4.0/gems/hitimes-3.1.0/README.md +187 -0
  33. data/vendor/bundle/ruby/3.4.0/gems/i18n-1.14.7/MIT-LICENSE +20 -0
  34. data/vendor/bundle/ruby/3.4.0/gems/i18n-1.14.7/README.md +127 -0
  35. data/vendor/bundle/ruby/3.4.0/gems/little-plugger-1.1.4/README.rdoc +53 -0
  36. data/vendor/bundle/ruby/3.4.0/gems/logger-1.7.0/README.md +104 -0
  37. data/vendor/bundle/ruby/3.4.0/gems/logging-2.4.0/LICENSE +22 -0
  38. data/vendor/bundle/ruby/3.4.0/gems/logging-2.4.0/README.md +140 -0
  39. data/vendor/bundle/ruby/3.4.0/gems/minitest-5.25.5/README.rdoc +842 -0
  40. data/vendor/bundle/ruby/3.4.0/gems/msgpack-1.8.0/ChangeLog +368 -0
  41. data/vendor/bundle/ruby/3.4.0/gems/msgpack-1.8.0/LICENSE +177 -0
  42. data/vendor/bundle/ruby/3.4.0/gems/msgpack-1.8.0/README.md +302 -0
  43. data/vendor/bundle/ruby/3.4.0/gems/multi_json-1.15.0/CHANGELOG.md +275 -0
  44. data/vendor/bundle/ruby/3.4.0/gems/multi_json-1.15.0/LICENSE.md +20 -0
  45. data/vendor/bundle/ruby/3.4.0/gems/multi_json-1.15.0/README.md +121 -0
  46. data/vendor/bundle/ruby/3.4.0/gems/opentelemetry-api-1.5.0/CHANGELOG.md +193 -0
  47. data/vendor/bundle/ruby/3.4.0/gems/opentelemetry-api-1.5.0/LICENSE +201 -0
  48. data/vendor/bundle/ruby/3.4.0/gems/opentelemetry-api-1.5.0/README.md +68 -0
  49. data/vendor/bundle/ruby/3.4.0/gems/opentelemetry-common-0.22.0/CHANGELOG.md +98 -0
  50. data/vendor/bundle/ruby/3.4.0/gems/opentelemetry-common-0.22.0/LICENSE +201 -0
  51. data/vendor/bundle/ruby/3.4.0/gems/opentelemetry-common-0.22.0/README.md +62 -0
  52. data/vendor/bundle/ruby/3.4.0/gems/public_suffix-6.0.2/CHANGELOG.md +498 -0
  53. data/vendor/bundle/ruby/3.4.0/gems/public_suffix-6.0.2/LICENSE.txt +22 -0
  54. data/vendor/bundle/ruby/3.4.0/gems/public_suffix-6.0.2/README.md +222 -0
  55. data/vendor/bundle/ruby/3.4.0/gems/rack-3.1.15/CHANGELOG.md +1146 -0
  56. data/vendor/bundle/ruby/3.4.0/gems/rack-3.1.15/MIT-LICENSE +20 -0
  57. data/vendor/bundle/ruby/3.4.0/gems/rack-3.1.15/README.md +355 -0
  58. data/vendor/bundle/ruby/3.4.0/gems/rake-13.2.1/MIT-LICENSE +21 -0
  59. data/vendor/bundle/ruby/3.4.0/gems/rake-13.2.1/README.rdoc +155 -0
  60. data/vendor/bundle/ruby/3.4.0/gems/rake-release-1.3.0/LICENSE +21 -0
  61. data/vendor/bundle/ruby/3.4.0/gems/rake-release-1.3.0/README.md +107 -0
  62. data/vendor/bundle/ruby/3.4.0/gems/securerandom-0.4.1/README.md +72 -0
  63. data/vendor/bundle/ruby/3.4.0/gems/typhoeus-1.4.1/CHANGELOG.md +410 -0
  64. data/vendor/bundle/ruby/3.4.0/gems/typhoeus-1.4.1/LICENSE +22 -0
  65. data/vendor/bundle/ruby/3.4.0/gems/typhoeus-1.4.1/README.md +588 -0
  66. data/vendor/bundle/ruby/3.4.0/gems/tzinfo-2.0.6/LICENSE +19 -0
  67. data/vendor/bundle/ruby/3.4.0/gems/tzinfo-2.0.6/README.md +406 -0
  68. data/vendor/bundle/ruby/3.4.0/gems/uri-1.0.3/README.md +55 -0
  69. metadata +66 -4
  70. data/doc/file.README.html +0 -192
@@ -0,0 +1,473 @@
1
+ 1.17.2 / 2025-04-15
2
+ -------------------
3
+
4
+ Fixed:
5
+ * #1144, #1145 Update libffi to 3.4.8 to fix installation issues on latest Macos on ARM64
6
+ * Various adjustments to run the specs cleanly on Ruby-3.5 master branch.
7
+
8
+
9
+ 1.17.1 / 2024-12-30
10
+ -------------------
11
+
12
+ Fixed:
13
+ * #1117 Restart async callback dispatcher thread after fork.
14
+ * #1133 Add ruby-3.4 native gem.
15
+ * #1134 Fix FFI::DataConverter non-generic usage in RBS files.
16
+
17
+
18
+ 1.17.0 / 2024-06-02
19
+ -------------------
20
+
21
+ Fixed:
22
+ * Add FFI::AbstractMemory#read_array_of_string . It was defined but not exposed to Ruby nor tested. #1070
23
+
24
+
25
+ 1.17.0.rc2 / 2024-04-22
26
+ -------------------
27
+
28
+ Fixed:
29
+ * Add missing write barriers to StructLayout#initialize causing a segfault with GC.stress. #1079
30
+
31
+
32
+ 1.17.0.rc1 / 2024-04-08
33
+ -------------------
34
+
35
+ Fixed:
36
+ * Fix type definitions on `aarch64-linux`. #1067, #1066
37
+ * Use RB_TEST for `Pointer.autorelease=` . #1065
38
+ So that `false` and `nil` are treated as falsey and anything else as truthy.
39
+ * Replace Fixnum by Integer. #1064
40
+ Fixnum is no longer present in the ruby language.
41
+ * Update `FFI::NativeType` doc. #1061
42
+ * Store FFI::Type::Mapped of FFI::StrPtrConverter in global instead of custom type map
43
+ * Various documentation fixes. #1042
44
+ * Update `FFI::Pointer#==` to return `false` if a pointer is compared to a non-pointer object, which is the expected behavior. #1083
45
+ * Avoid warning about undefined wariable `@ffi_functions` #1085
46
+ * Fix a very unlikely GC bug when using a callback block. # 1089
47
+
48
+ Added:
49
+ * Provide binary gems for many platforms. #990
50
+ * Add Windows fat binary gem for Ruby-3.3
51
+ * Add RBS type definitions for many user facing parts of the FFI API. #1042
52
+ * Improve fallback search path logic. #1088
53
+ Respect LD_LIBRARY_PATH and DYLD_LIBRARY_PATH on Macos.
54
+ * Update libffi to current git master branch.
55
+
56
+ Removed:
57
+ * Remove `enum CHAR_ARRAY` which is no longer used. #1063
58
+
59
+
60
+ 1.16.3 / 2023-10-04
61
+ -------------------
62
+
63
+ Fixed:
64
+ * Fix gcc error when building on CentOS 7. #1052
65
+ * Avoid trying to store new DataConverter type in frozen TypeDefs hash. #1057
66
+
67
+
68
+ 1.16.2 / 2023-09-25
69
+ -------------------
70
+
71
+ Fixed:
72
+ * Handle null pointer crash after fork. #1051
73
+
74
+
75
+ 1.16.1 / 2023-09-24
76
+ -------------------
77
+
78
+ Fixed:
79
+ * Fix compiling the builtin libffi. #1049
80
+
81
+
82
+ 1.16.0 / 2023-09-23
83
+ -------------------
84
+
85
+ Fixed:
86
+ * Fix an issue with signed bitmasks when using flags on the most significant bit. #949
87
+ * Fix FFI::Pointer#initialize using NUM2LL instead of NUM2ULL.
88
+ * Fix FFI::Type#inspect to properly display the constant name. #1002
89
+ * Use libffi closure allocations on hppa-Linux. #1017
90
+ Previously they would segfault.
91
+ * Fix class name of Symbol#inspect.
92
+ * Fix MSVC support of libtest. #1028
93
+ * Fix attach_function of functions ending in ? or ! #971
94
+
95
+ Added:
96
+ * Convert all C-based classes to TypedData and use write barriers. #994, #995, #996, #997, #998, #999, #1000, #1001, #1003, #1004, #1005, #1006, #1007, #1008, #1009, #1010, #1011, #1012
97
+ This results in less pressure on the garbage collector, since the objects can be promoted to the old generation, which means they only get marked on major GC.
98
+ * Implement `ObjectSpace.memsize_of()` of all C-based classes.
99
+ * Make FFI Ractor compatible. #1023
100
+ Modules extended per `extend FFI::Library` need to be frozen in order to be used by non-main Ractors.
101
+ This can be done by calling `freeze` below of all C interface definitions.
102
+ * In a Ractor it's possible to:
103
+ * load DLLs and call its functions, access its global variables
104
+ * use builtin typedefs
105
+ * use and modify ractor local typedefs
106
+ * define callbacks
107
+ * receive async callbacks from non-ruby threads
108
+ * use frozen FFI::Library based modules with all attributes (enums, structs, typedefs, functions, callbacks)
109
+ * invoke frozen functions and callbacks defined in the main Ractor
110
+ * use FFI::Struct definitions from the main Ractor
111
+ * In a Ractor it's impossible to:
112
+ * create new FFI::Library based modules
113
+ * create new FFI::Struct definitions
114
+ * use custom global typedefs
115
+ * use non-frozen FFI::Library based modules
116
+ * Allow type retrieval of attached functions+variables. #1023
117
+ * Make FFI classes `GC.compact` friendly. #1021
118
+ * Update libffi and disable custom trampoline when using libffi closure allocation. #1020
119
+ This is because libffi changed the way how closures are allocated to static trampolines.
120
+ * Add types.conf for loongarch64-linux. #943
121
+ * Add types.conf for sw_64-linux (Shen Wei 64-bit, based on Alpha). #1018
122
+ * Add support for aarch64-windows. #1035
123
+ * Windows: Update LoadLibrary error message to include error code. #1026
124
+ * Allow private release method for FFI::ManagedStruct and FFI::AutoPointer. #1029
125
+ * Add support for passing ABI version to FFI.map_library_name. #963
126
+ This adds the new class FFI::LibraryPath .
127
+ * Add support for ruby-3.2 to windows binary gem. #1047
128
+ * Enable debug symbols for `rake compile` builds to ease debugging. #1048
129
+
130
+ Removed:
131
+ * Remove allocator of AbstractMemory. #1013
132
+ This disables AbstractMemory.new, which has no practical use.
133
+ * Remove unused FFI::SizeTypes. #1022
134
+
135
+
136
+ 1.15.5 / 2022-01-10
137
+ -------------------
138
+
139
+ Fixed:
140
+ * Fix long double argument or return values on 32bit i686. #849
141
+ * FFI::ConstGenerator: avoid usage of the same binary file simultaneously. #929
142
+
143
+ Added:
144
+ * Add Windows fat binary gem for Ruby-3.1
145
+
146
+ Removed:
147
+ * Remove Windows fat binary gem for Ruby < 2.4
148
+
149
+
150
+ 1.15.4 / 2021-09-01
151
+ -------------------
152
+
153
+ Fixed:
154
+ * Fix build for uClibc. #913
155
+ * Correct module lookup when including `ffi-module` gem. #912
156
+
157
+ Changed:
158
+ * Use ruby code of the ffi gem in JRuby-9.2.20+. #915
159
+
160
+
161
+ 1.15.3 / 2021-06-16
162
+ -------------------
163
+
164
+ Fixed:
165
+ * Fix temporary packaging issue with libffi. #904
166
+
167
+
168
+ 1.15.2 / 2021-06-16
169
+ -------------------
170
+
171
+ Added:
172
+ * Add support for Windows MINGW-UCRT build. #903
173
+ * Add `/opt/homebrew/lib/` to fallback search paths to improve homebrew support. #880 #882
174
+
175
+ Changed:
176
+ * Regenerate `types.conf` for FreeBSD12 aarch64. #902
177
+
178
+
179
+ 1.15.1 / 2021-05-22
180
+ -------------------
181
+
182
+ Fixed:
183
+ * Append -pthread to linker options. #893
184
+ * Use arm or aarch64 to identify Apple ARM CPU arch. #899
185
+ * Allow overriding `gcc` with the `CC` env var in `const_generator.rb` and `struct_generator.rb`. #897
186
+
187
+
188
+ 1.15.0 / 2021-03-05
189
+ -------------------
190
+
191
+ Fixed:
192
+ * Fix MSVC build
193
+ * Fix async callbacks in conjunction with fork(). #884
194
+
195
+ Added:
196
+ * Allow to pass callbacks in varargs. #885
197
+ * Name the threads for FFI callback dispatcher and async thread calls for easier debugging. #883
198
+ The name can be retrieved by Thread.name and is shown by Thread.list.inspect etc.
199
+ Even gdb shows the thread name on supported operating systems.
200
+ * Add types.conf for powerpc64le-linux
201
+ * Add types.conf for riscv64-linux
202
+ * More release automation of ffi gems
203
+
204
+ Changed:
205
+ * Switch from rubygems-tasks to bundler/gem_helper
206
+
207
+ Removed:
208
+ * Remove unused VariadicInvoker#init
209
+
210
+
211
+ 1.14.2 / 2020-12-21
212
+ -------------------
213
+
214
+ Fixed:
215
+ * Fix builtin libffi on newer Ubuntu caused by an outdated Makefile.in . #863
216
+
217
+
218
+ 1.14.1 / 2020-12-19
219
+ -------------------
220
+
221
+ Changed:
222
+ * Revert changes to FFI::Pointer#write_string made in ffi-1.14.0.
223
+ It breaks compatibilty in a way that can cause hard to find errors. #857
224
+
225
+
226
+ 1.14.0 / 2020-12-18
227
+ -------------------
228
+
229
+ Added:
230
+ * Add types.conf for x86_64-msys, x86_64-haiku, aarch64-openbsd and aarch64-darwin (alias arm64-darwin)
231
+ * Add method AbstractMemory#size_limit? . #829
232
+ * Add new extconf option --enable-libffi-alloc which is enabled per default on Apple M1 (arm64-darwin).
233
+
234
+ Changed:
235
+ * Do NULL pointer check only when array length > 0 . #305
236
+ * Raise an error on an unknown order argument. #830
237
+ * Change FFI::Pointer#write_string to terminate with a NUL byte like other string methods. #805
238
+ * Update bundled libffi to latest master.
239
+
240
+ Removed:
241
+ * Remove win32/stdint.h and stdbool.h because of copyright issue. #693
242
+
243
+ Fixed:
244
+ * Fix possible UTF-8 load error in loader script interpretation. #792
245
+ * Fix segfault on non-array argument to #write_array_of_*
246
+ * Fix memory leak in MethodHandle . #815
247
+ * Fix possible segfault in combination with fiddle or other libffi using gems . #835
248
+ * Fix possibility to use ffi ruby gem with JRuby-9.3 . #763
249
+ * Fix a GC issue, when a callback Proc is used on more than 2 callback signatures. #820
250
+
251
+
252
+ 1.13.1 / 2020-06-09
253
+ -------------------
254
+
255
+ Changed:
256
+ * Revert use of `ucrtbase.dll` as default C library on Windows-MINGW.
257
+ `ucrtbase.dll` is still used on MSWIN target. #790
258
+ * Test for `ffi_prep_closure_loc()` to make sure we can use this function.
259
+ This fixes incorrect use of system libffi on MacOS Mojave (10.14). #787
260
+ * Update types.conf on x86_64-dragonflybsd
261
+
262
+
263
+ 1.13.0 / 2020-06-01
264
+ -------------------
265
+
266
+ Added:
267
+ * Add TruffleRuby support. Almost all specs are running on TruffleRuby and succeed. #768
268
+ * Add ruby source files to the java gem. This allows to ship the Ruby library code per platform java gem and add it as a default gem to JRuby. #763
269
+ * Add FFI::Platform::LONG_DOUBLE_SIZE
270
+ * Add bounds checks for writing to an inline char[] . #756
271
+ * Add long double as callback return value. #771
272
+ * Update type definitions and add types from stdint.h and stddef.h on i386-windows, x86_64-windows, x86_64-darwin, x86_64-linux, arm-linux, powerpc-linux. #749
273
+ * Add new type definitions for powerpc-openbsd and sparcv9-openbsd. #775, #778
274
+
275
+ Changed:
276
+ * Raise required ruby version to >= 2.3.
277
+ * Lots of cleanups and improvements in library, specs and benchmarks.
278
+ * Fix a lot of compiler warnings at the C-extension
279
+ * Fix several install issues on MacOS:
280
+ * Look for libffi in SDK paths, since recent versions of macOS removed it from `/usr/include` . #757
281
+ * Fix error `ld: library not found for -lgcc_s.10.4`
282
+ * Don't built for i386 architecture as it is deprecated
283
+ * Several fixes for MSVC build on Windows. #779
284
+ * Use `ucrtbase.dll` as default C library on Windows instead of old `msvcrt.dll`. #779
285
+ * Update builtin libffi to fix a Powerpc issue with parameters of type long
286
+ * Allow unmodified sourcing of (the ruby code of) this gem in JRuby and TruffleRuby as a default gem. #747
287
+ * Improve check to detect if a module has a #find_type method suitable for FFI. This fixes compatibility with stdlib `mkmf` . #776
288
+
289
+ Removed:
290
+ * Reject callback with `:string` return type at definition, because it didn't work so far and is not save to use. #751, #782
291
+
292
+
293
+ 1.12.2 / 2020-02-01
294
+ -------------------
295
+
296
+ * Fix possible segfault at FFI::Struct#[] and []= after GC.compact . #742
297
+
298
+
299
+ 1.12.1 / 2020-01-14
300
+ -------------------
301
+
302
+ Added:
303
+ * Add binary gem support for ruby-2.7 on Windows
304
+
305
+
306
+ 1.12.0 / 2020-01-14
307
+ -------------------
308
+
309
+ Added:
310
+ * FFI::VERSION is defined as part of `require 'ffi'` now.
311
+ It is no longer necessary to `require 'ffi/version'` .
312
+
313
+ Changed:
314
+ * Update libffi to latest master.
315
+
316
+ Deprecated:
317
+ * Overwriting struct layouts is now warned and will be disallowed in ffi-2.0. #734, #735
318
+
319
+
320
+ 1.11.3 / 2019-11-25
321
+ -------------------
322
+
323
+ Removed:
324
+ * Remove support for tainted objects which cause deprecation warnings in ruby-2.7. #730
325
+
326
+
327
+ 1.11.2 / 2019-11-11
328
+ -------------------
329
+
330
+ Added:
331
+ * Add DragonFlyBSD as a platform. #724
332
+
333
+ Changed:
334
+ * Sort all types.conf files, so that files and changes are easier to compare.
335
+ * Regenerated type conf for freebsd12 and x86_64-linux targets. #722
336
+ * Remove MACOSX_DEPLOYMENT_TARGET that was targeting very old version 10.4. #647
337
+ * Fix library name mangling for non glibc Linux/UNIX. #727
338
+ * Fix compiler warnings raised by ruby-2.7
339
+ * Update libffi to latest master.
340
+
341
+
342
+ 1.11.1 / 2019-05-20
343
+ -------------------
344
+
345
+ Changed:
346
+ * Raise required ruby version to >=2.0. #699, #700
347
+ * Fix a possible linker error on ruby < 2.3 on Linux.
348
+
349
+
350
+ 1.11.0 / 2019-05-17
351
+ -------------------
352
+ This version was yanked on 2019-05-20 to fix an install issue on ruby-1.9.3. #700
353
+
354
+ Added:
355
+ * Add ability to disable or force use of system libffi. #669
356
+ Use like `gem inst ffi -- --enable-system-libffi` .
357
+ * Add ability to call FFI callbacks from outside of FFI call frame. #584
358
+ * Add proper documentation to FFI::Generator and ::Task
359
+ * Add gemspec metadata. #696, #698
360
+
361
+ Changed:
362
+ * Fix stdcall on Win32. #649, #669
363
+ * Fix load paths for FFI::Generator::Task
364
+ * Fix FFI::Pointer#read_string(0) to return a binary String. #692
365
+ * Fix benchmark suite so that it runs on ruby-2.x
366
+ * Move FFI::Platform::CPU from C to Ruby. #663
367
+ * Move FFI::StructByReference to Ruby. #681
368
+ * Move FFI::DataConverter to Ruby (#661)
369
+ * Various cleanups and improvements of specs and benchmarks
370
+
371
+ Removed:
372
+ * Remove ruby-1.8 and 1.9 compatibility code. #683
373
+ * Remove unused spec files. #684
374
+
375
+
376
+ 1.10.0 / 2019-01-06
377
+ -------------------
378
+
379
+ Added:
380
+ * Add /opt/local/lib/ to ffi's fallback library search path. #638
381
+ * Add binary gem support for ruby-2.6 on Windows
382
+ * Add FreeBSD on AArch64 and ARM support. #644
383
+ * Add FFI::LastError.winapi_error on Windows native or Cygwin. #633
384
+
385
+ Changed:
386
+ * Update to rake-compiler-dock-0.7.0
387
+ * Use 64-bit inodes on FreeBSD >= 12. #644
388
+ * Switch time_t and suseconds_t types to long on FreeBSD. #627
389
+ * Make register_t long_long on 64-bit FreeBSD. #644
390
+ * Fix Pointer#write_array_of_type #637
391
+
392
+ Removed:
393
+ * Drop binary gem support for ruby-2.0 and 2.1 on Windows
394
+
395
+
396
+ 1.9.25 / 2018-06-03
397
+ -------------------
398
+
399
+ Changed:
400
+ * Revert closures via libffi.
401
+ This re-adds ClosurePool and fixes compat with SELinux enabled systems. #621
402
+
403
+
404
+ 1.9.24 / 2018-06-02
405
+ -------------------
406
+
407
+ Security Note:
408
+
409
+ This update addresses vulnerability CVE-2018-1000201: DLL loading issue which can be hijacked on Windows OS, when a Symbol is used as DLL name instead of a String. Found by Matthew Bush.
410
+
411
+ Added:
412
+ * Added a CHANGELOG file
413
+ * Add mips64(eb) support, and mips r6 support. (#601)
414
+
415
+ Changed:
416
+ * Update libffi to latest changes on master.
417
+ * Don't search in hardcoded /usr paths on Windows.
418
+ * Don't treat Symbol args different to Strings in ffi_lib.
419
+ * Make sure size_t is defined in Thread.c. Fixes #609
420
+
421
+
422
+ 1.9.23 / 2018-02-25
423
+ -------------------
424
+
425
+ Changed:
426
+ * Fix unnecessary rebuild of configure in darwin multi arch. Fixes #605
427
+
428
+
429
+ 1.9.22 / 2018-02-22
430
+ -------------------
431
+
432
+ Changed:
433
+ * Update libffi to latest changes on master.
434
+ * Update detection of system libffi to match new requirements. Fixes #617
435
+ * Prefer bundled libffi over system libffi on Mac OS.
436
+ * Do closures via libffi. This removes ClosurePool and fixes compat with PaX. #540
437
+ * Use a more deterministic gem packaging.
438
+ * Fix unnecessary update of autoconf files at gem install.
439
+
440
+
441
+ 1.9.21 / 2018-02-06
442
+ -------------------
443
+
444
+ Added:
445
+ * Ruby-2.5 support by Windows binary gems. Fixes #598
446
+ * Add missing win64 types.
447
+ * Added support for Bitmask. (#573)
448
+ * Add support for MSYS2 (#572) and Sparc64 Linux. (#574)
449
+
450
+ Changed:
451
+ * Fix read_string to not throw an error on length 0.
452
+ * Don't use absolute paths for sh and env. Fixes usage on Adroid #528
453
+ * Use Ruby implementation for `which` for better compat with Windows. Fixes #315
454
+ * Fix compatibility with PPC64LE platform. (#577)
455
+ * Normalize sparc64 to sparcv9. (#575)
456
+
457
+ Removed:
458
+ * Drop Ruby 1.8.7 support (#480)
459
+
460
+
461
+ 1.9.18 / 2017-03-03
462
+ -------------------
463
+
464
+ Added:
465
+ * Add compatibility with Ruby-2.4.
466
+
467
+ Changed:
468
+ * Add missing shlwapi.h include to fix Windows build.
469
+ * Avoid undefined behaviour of LoadLibrary() on Windows. #553
470
+
471
+
472
+ 1.9.17 / 2017-01-13
473
+ -------------------
@@ -0,0 +1,24 @@
1
+ Copyright (c) 2008-2016, Ruby FFI project contributors
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without
5
+ modification, are permitted provided that the following conditions are met:
6
+ * Redistributions of source code must retain the above copyright
7
+ notice, this list of conditions and the following disclaimer.
8
+ * Redistributions in binary form must reproduce the above copyright
9
+ notice, this list of conditions and the following disclaimer in the
10
+ documentation and/or other materials provided with the distribution.
11
+ * Neither the name of the Ruby FFI project nor the
12
+ names of its contributors may be used to endorse or promote products
13
+ derived from this software without specific prior written permission.
14
+
15
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
16
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18
+ DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
19
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2008-2012 Ruby-FFI contributors
2
+
3
+ Permission is hereby granted, free of charge, to any person
4
+ obtaining a copy of this software and associated documentation
5
+ files (the "Software"), to deal in the Software without
6
+ restriction, including without limitation the rights to use,
7
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the
9
+ Software is furnished to do so, subject to the following
10
+ conditions:
11
+
12
+ The above copyright notice and this permission notice shall be
13
+ included in all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
+ OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,137 @@
1
+ # Ruby-FFI https://github.com/ffi/ffi/wiki
2
+
3
+ ## Description
4
+
5
+ Ruby-FFI is a gem for programmatically loading dynamically-linked native
6
+ libraries, binding functions within them, and calling those functions
7
+ from Ruby code. Moreover, a Ruby-FFI extension works without changes
8
+ on CRuby (MRI), JRuby, Rubinius and TruffleRuby. [Discover why you should write your next extension
9
+ using Ruby-FFI](https://github.com/ffi/ffi/wiki/why-use-ffi).
10
+
11
+ ## Features
12
+
13
+ * Intuitive DSL
14
+ * Supports all C native types
15
+ * C structs (also nested), enums and global variables
16
+ * Callbacks from C to Ruby
17
+ * Automatic garbage collection of native memory
18
+ * Usable in Ractor: [How-to-use-FFI-in-Ruby-Ractors](https://github.com/ffi/ffi/wiki/Ractors)
19
+
20
+ ## Synopsis
21
+
22
+ ```ruby
23
+ require 'ffi'
24
+
25
+ module MyLib
26
+ extend FFI::Library
27
+ ffi_lib 'c'
28
+ attach_function :puts, [ :string ], :int
29
+ end
30
+
31
+ MyLib.puts 'Hello, World using libc!'
32
+ ```
33
+
34
+ For less minimalistic and more examples you may look at:
35
+
36
+ * the `samples/` folder
37
+ * the examples on the [wiki](https://github.com/ffi/ffi/wiki)
38
+ * the projects using FFI listed on the wiki: https://github.com/ffi/ffi/wiki/projects-using-ffi
39
+
40
+ ## Requirements
41
+
42
+ When installing the gem on CRuby (MRI), you will need:
43
+ * A C compiler (e.g., Xcode on macOS, `gcc` or `clang` on everything else)
44
+ Optionally (speeds up installation):
45
+ * The `libffi` library and development headers - this is commonly in the `libffi-dev` or `libffi-devel` packages
46
+
47
+ The ffi gem comes with a builtin libffi version, which is used, when the system libffi library is not available or too old.
48
+ Use of the system libffi can be enforced by:
49
+ ```
50
+ gem install ffi -- --enable-system-libffi # to install the gem manually
51
+ bundle config build.ffi --enable-system-libffi # for bundle install
52
+ ```
53
+ or prevented by `--disable-system-libffi`.
54
+
55
+ On Linux systems running with [PaX](https://en.wikipedia.org/wiki/PaX) (Gentoo, Alpine, etc.), FFI may trigger `mprotect` errors. You may need to disable [mprotect](https://en.wikibooks.org/wiki/Grsecurity/Appendix/Grsecurity_and_PaX_Configuration_Options#Restrict_mprotect.28.29) for ruby (`paxctl -m [/path/to/ruby]`) for the time being until a solution is found.
56
+
57
+ On FreeBSD systems pkgconf must be installed for the gem to be able to compile using clang. Install either via packages `pkg install pkgconf` or from ports via `devel/pkgconf`.
58
+
59
+ On JRuby and TruffleRuby, there are no requirements to install the FFI gem, and `require 'ffi'` works even without installing the gem (i.e., the gem is preinstalled on these implementations).
60
+
61
+ ## Installation
62
+
63
+ From rubygems:
64
+
65
+ [sudo] gem install ffi
66
+
67
+ From a Gemfile using git or GitHub
68
+
69
+ gem 'ffi', github: 'ffi/ffi', submodules: true
70
+
71
+ or from the git repository on github:
72
+
73
+ git clone git://github.com/ffi/ffi.git
74
+ cd ffi
75
+ git submodule update --init --recursive
76
+ bundle install
77
+ rake install
78
+
79
+ ### Install options:
80
+
81
+ * `--enable-system-libffi` : Force usage of system libffi
82
+ * `--disable-system-libffi` : Force usage of builtin libffi
83
+ * `--enable-libffi-alloc` : Force closure allocation by libffi
84
+ * `--disable-libffi-alloc` : Force closure allocation by builtin method
85
+
86
+ ## License
87
+
88
+ The ffi library is covered by the BSD license, also see the LICENSE file.
89
+ The specs are covered by the same license as [ruby/spec](https://github.com/ruby/spec), the MIT license.
90
+
91
+ ## Credits
92
+
93
+ The following people have submitted code, bug reports, or otherwise contributed to the success of this project:
94
+
95
+ * Alban Peignier <alban.peignier@free.fr>
96
+ * Aman Gupta <aman@tmm1.net>
97
+ * Andrea Fazzi <andrea.fazzi@alcacoop.it>
98
+ * Andreas Niederl <rico32@gmx.net>
99
+ * Andrew Cholakian <andrew@andrewvc.com>
100
+ * Antonio Terceiro <terceiro@softwarelivre.org>
101
+ * Benoit Daloze <eregontp@gmail.com>
102
+ * Brian Candler <B.Candler@pobox.com>
103
+ * Brian D. Burns <burns180@gmail.com>
104
+ * Bryan Kearney <bkearney@redhat.com>
105
+ * Charlie Savage <cfis@zerista.com>
106
+ * Chikanaga Tomoyuki <nagachika00@gmail.com>
107
+ * Hongli Lai <hongli@phusion.nl>
108
+ * Ian MacLeod <ian@nevir.net>
109
+ * Jake Douglas <jake@shiftedlabs.com>
110
+ * Jean-Dominique Morani <jdmorani@mac.com>
111
+ * Jeremy Hinegardner <jeremy@hinegardner.org>
112
+ * Jesús García Sáez <blaxter@gmail.com>
113
+ * Joe Khoobyar <joe@ankhcraft.com>
114
+ * Jurij Smakov <jurij@wooyd.org>
115
+ * KISHIMOTO, Makoto <ksmakoto@dd.iij4u.or.jp>
116
+ * Kim Burgestrand <kim@burgestrand.se>
117
+ * Lars Kanis <lars@greiz-reinsdorf.de>
118
+ * Luc Heinrich <luc@honk-honk.com>
119
+ * Luis Lavena <luislavena@gmail.com>
120
+ * Matijs van Zuijlen <matijs@matijs.net>
121
+ * Matthew King <automatthew@gmail.com>
122
+ * Mike Dalessio <mike.dalessio@gmail.com>
123
+ * NARUSE, Yui <naruse@airemix.jp>
124
+ * Park Heesob <phasis@gmail.com>
125
+ * Shin Yee <shinyee@speedgocomputing.com>
126
+ * Stephen Bannasch <stephen.bannasch@gmail.com>
127
+ * Suraj N. Kurapati <sunaku@gmail.com>
128
+ * Sylvain Daubert <sylvain.daubert@laposte.net>
129
+ * Victor Costan
130
+ * beoran@gmail.com
131
+ * ctide <christide@christide.com>
132
+ * emboss <Martin.Bosslet@googlemail.com>
133
+ * hobophobe <unusualtears@gmail.com>
134
+ * meh <meh@paranoici.org>
135
+ * postmodern <postmodern.mod3@gmail.com>
136
+ * wycats@gmail.com <wycats@gmail.com>
137
+ * Wayne Meissner <wmeissner@gmail.com>
@@ -0,0 +1,16 @@
1
+ ISC LICENSE - http://opensource.org/licenses/isc-license.txt
2
+
3
+ Copyright (c) 2008-2015 Jeremy Hinegardner
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted, provided that the above
7
+ copyright notice and this permission notice appear in all copies.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16
+