aws-crt 0.1.0.pre → 0.1.1.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/aws-crt/managed_native.rb +5 -4
- data/native/CMakeLists.txt +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a19c3f8f99b383916342ac7a78f0fc4b1c48bc9161c1593ca843517f4dc81ff
|
4
|
+
data.tar.gz: 02dd9838c9ffcf184386f7606549f17bc1176e748e9744bea6206b462975c355
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 917b7fa35336acdd5f11b85da867f53f17b8bbd2a0684ede1556e520e5c20b377e5e0ce5853ba74b0620805ab0fdc880d6846adac1779541414cadfe859b646c
|
7
|
+
data.tar.gz: c90a48a035b267f68083127a146811349868271367e7034796e9eb5423c3accd1e17fa558cf28c6557fd651d43849d20eee832cced768d87abcc788ec9baf556
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1.pre
|
@@ -28,8 +28,8 @@ module Aws
|
|
28
28
|
# check that a destructor has been registered
|
29
29
|
unless self.class.instance_variable_get('@destructor')
|
30
30
|
raise 'No native destructor registered. use native_destroy to ' \
|
31
|
-
|
32
|
-
|
31
|
+
'set the method used to cleanup the native object this ' \
|
32
|
+
'class manages.'
|
33
33
|
end
|
34
34
|
native = block.call
|
35
35
|
@native = FFI::AutoPointer.new(native, self.class.method(:on_release))
|
@@ -69,8 +69,9 @@ module Aws
|
|
69
69
|
# native_destroy Aws::Crt::Native.method(:test_release)
|
70
70
|
def native_destroy(destructor)
|
71
71
|
unless destructor.is_a?(Method)
|
72
|
-
raise ArgumentError,
|
73
|
-
|
72
|
+
raise ArgumentError,
|
73
|
+
'destructor must be a Method. ' \
|
74
|
+
'Use object.method(:method_name)'
|
74
75
|
end
|
75
76
|
@destructor = destructor
|
76
77
|
end
|
data/native/CMakeLists.txt
CHANGED
@@ -45,7 +45,12 @@ option(BUILD_TESTING OFF)
|
|
45
45
|
add_subdirectory(crt/aws-c-common)
|
46
46
|
|
47
47
|
if (UNIX AND NOT APPLE)
|
48
|
+
set(BUILD_LIBSSL OFF) # Don't need libssl from aws-lc, only need libcrypto
|
49
|
+
set(DISABLE_PERL ON) # Disable aws-lc codegen
|
50
|
+
set(DISABLE_GO ON) # Disable aws-lc codegen
|
48
51
|
add_subdirectory(crt/aws-lc)
|
52
|
+
|
53
|
+
set(SEARCH_LIBCRYPTO OFF) # Let s2n use libcrypto from aws-lc
|
49
54
|
add_subdirectory(crt/s2n)
|
50
55
|
endif()
|
51
56
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-crt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|