memory_locker 1.0.0 → 1.0.2

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: cf1ecf9a93e9fd2ef3cf96d45489c2663704fba61001726fc362343cfaad5082
4
- data.tar.gz: aafb584707726f4307a1bac47cd4095dae0d7a5bac7acd843cb31e895aa94db9
3
+ metadata.gz: 39ab9db08583b52b0d784c5d9f9cc259ca4233523cd1389be309f55339add449
4
+ data.tar.gz: 5756d015e348eb03f69e23c6c2ee214f9d9db736cb0de50a00e38bb3f81570c7
5
5
  SHA512:
6
- metadata.gz: b0197269a2b177801c35ad9107ccedc6d45b01f5e2f91594909b081894d21833288573059c62e4195fe6e1ad4ba3dd501e6fb24545b6ed7219e424b7024a8f6b
7
- data.tar.gz: fd22371427af738e0a4d52232f70bbc72f4f8be412fb655019ad858b91675afcaccb53b8fb915759a67f3728ced819c16edc1e810761d4c6ce4b2b1e6f6051ac
6
+ metadata.gz: d85352a114f15abd76ec140ca38a15c828a8c4cf4a21f8709db8a9a2f3b0bfd3dd686e6bc9a510b97cccb7a19ca08475fbdcc3e2ac47440fca5df7104815744c
7
+ data.tar.gz: f68c19229a9127e740a6e54cfd4fa3a2c3bb2f3faec579d8a2eb3c5456d6f0a9ac7a12ae46a3ef6c5c6d8de3f5d0960855b2e12ff07d817afecc4a8ceaf0ea1c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,20 @@
1
+ ## [1.0.2] - 2023-07-28
2
+
3
+ - Don't load libc if already loaded in the current process
4
+
5
+ ## [1.0.1] - 2023-07-28
6
+
7
+ - Update Changelog
8
+
9
+ ## [1.0.0] - 2023-07-28
10
+
11
+ - Support for all c-libraries supported by FFI with automatic detection
12
+ - Use in-memory loaded c-library if possible
13
+ - Use #call on main object/class instead of #lock for easier mocking
14
+ - More meaningful exceptions
15
+ - Clear separation between high- and low-level things
16
+ - Much better tests
17
+
1
18
  ## [0.1.0] - 2023-07-27
2
19
 
3
20
  - Initial release
@@ -9,7 +9,7 @@ class MemoryLocker
9
9
 
10
10
  extend FFI::Library
11
11
  # Try to load already loaded libc from the current process, use system libc as a fallback
12
- ffi_lib [FFI::CURRENT_PROCESS, FFI::Library::LIBC], FFI::Library::LIBC
12
+ ffi_lib [FFI::CURRENT_PROCESS, FFI::Library::LIBC]
13
13
  attach_function :real_mlockall, :mlockall, [:int], :int
14
14
 
15
15
  def self.mlockall
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class MemoryLocker
4
- VERSION = '1.0.0'
4
+ VERSION = '1.0.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: memory_locker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paweł Pokrywka