aws-crt 0.1.2-aarch64-linux → 0.1.6-aarch64-linux
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/VERSION +1 -1
- data/bin/aarch64/libaws-crt-ffi.so +0 -0
- data/lib/aws-crt/platforms.rb +14 -5
- data/lib/aws-crt/string_blob.rb +3 -3
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 136d082106b04103a43074269d3e5feb2c34eb3fc26219c68426ef15adc3e579
|
4
|
+
data.tar.gz: 70e201d190c212d27b42e8b11b98e896e4c1b9c1c7cec65ca06174b14d54354b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d73e8e01c7ba97daf2bf8e5e5e8d7dbdc8e55d8bbfacbc9774de78c7cdd99cbfcf5cb053bbf1c9ed44f2e01f34460649a3a552b523822e260446b63adbbea0b7
|
7
|
+
data.tar.gz: f5c57a66a168f7133f9222932521f6c18d73edf57d5cb46294b57f000ec8e8a9b292acf001f9b28a515ca68ae89a767de86a5b5f99c0afddd4635ac266e15ec6
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,20 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
0.1.6 (2022-08-12)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Issue - Update to the latest aws-crt-ffi.
|
8
|
+
|
9
|
+
0.1.5 (2022-04-05)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Issue - Update to the latest aws-crt-ffi.
|
13
|
+
|
14
|
+
0.1.4 (2022-03-15)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Issue - Update the aws-lc submodule to a version that is not vulnerable to OpenSSL CVE-2022-0778 - Possible infinite loop in BN_mod_sqrt()
|
4
18
|
|
5
19
|
0.1.0 (2021-08-04)
|
6
20
|
------------------
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.6
|
Binary file
|
data/lib/aws-crt/platforms.rb
CHANGED
@@ -9,13 +9,17 @@ OS_BINARIES = {
|
|
9
9
|
|
10
10
|
DEFAULT_BINARY = 'libaws-crt-ffi.so'
|
11
11
|
|
12
|
-
# @return [
|
13
|
-
#
|
14
|
-
# for Jruby
|
12
|
+
# @return [Gem::Platform] similar to Gem::Platform.local but will return
|
13
|
+
# host os/cpu for Jruby
|
15
14
|
def local_platform
|
16
15
|
Gem::Platform.new(host_string)
|
17
16
|
end
|
18
17
|
|
18
|
+
# @return [Gem::Platform] return Gem::Platform for host os with target cpu
|
19
|
+
def target_platform(cpu)
|
20
|
+
Gem::Platform.new(target_string(cpu))
|
21
|
+
end
|
22
|
+
|
19
23
|
# @return [String] return the file name for the CRT library for the platform
|
20
24
|
def crt_bin_name(platform)
|
21
25
|
OS_BINARIES[platform.os] || DEFAULT_BINARY
|
@@ -31,9 +35,14 @@ def crt_bin_path(platform)
|
|
31
35
|
File.expand_path(crt_bin_name(platform), crt_bin_dir(platform))
|
32
36
|
end
|
33
37
|
|
34
|
-
# @return [String] generate a string that be used with Gem::Platform
|
38
|
+
# @return [String] generate a string that can be used with Gem::Platform
|
35
39
|
def host_string
|
36
|
-
|
40
|
+
target_string(host_cpu)
|
41
|
+
end
|
42
|
+
|
43
|
+
# @return [String] generate a string that can be used with Gem::Platform
|
44
|
+
def target_string(cpu)
|
45
|
+
"#{cpu}-#{host_os}"
|
37
46
|
end
|
38
47
|
|
39
48
|
# @return [String] host cpu, even on jruby
|
data/lib/aws-crt/string_blob.rb
CHANGED
@@ -17,7 +17,7 @@ module Aws
|
|
17
17
|
strings.each do |s|
|
18
18
|
e = s.to_s.unpack('c*')
|
19
19
|
buffer << [e.length].pack('N')
|
20
|
-
buffer <<
|
20
|
+
buffer << e.pack('c*')
|
21
21
|
end
|
22
22
|
buffer.string.unpack('c*')
|
23
23
|
end
|
@@ -31,8 +31,8 @@ module Aws
|
|
31
31
|
i = 0
|
32
32
|
while i < buffer.size
|
33
33
|
len = buffer[i, 4].pack('c*').unpack1('N')
|
34
|
-
strings <<
|
35
|
-
|
34
|
+
strings << buffer[i + 4, len].pack('c*')
|
35
|
+
.force_encoding(Encoding::UTF_8)
|
36
36
|
i += len + 4
|
37
37
|
end
|
38
38
|
strings
|
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.6
|
5
5
|
platform: aarch64-linux
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -66,7 +66,9 @@ files:
|
|
66
66
|
homepage: https://github.com/awslabs/aws-crt-ruby
|
67
67
|
licenses:
|
68
68
|
- Apache-2.0
|
69
|
-
metadata:
|
69
|
+
metadata:
|
70
|
+
source_code_uri: https://github.com/awslabs/aws-crt-ruby/tree/main/gems/aws-crt
|
71
|
+
changelog_uri: https://github.com/awslabs/aws-crt-ruby/tree/main/gems/aws-crt/CHANGELOG.md
|
70
72
|
post_install_message:
|
71
73
|
rdoc_options: []
|
72
74
|
require_paths:
|