aws-crt 0.1.5-universal-java → 0.1.7-universal-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/VERSION +1 -1
- data/bin/aarch64/libaws-crt-ffi.so +0 -0
- data/bin/arm64/libaws-crt-ffi.dylib +0 -0
- data/bin/x64/aws-crt-ffi.dll +0 -0
- data/bin/x86_64/libaws-crt-ffi.dylib +0 -0
- data/bin/x86_64/libaws-crt-ffi.so +0 -0
- data/lib/aws-crt/auth/signing_config.rb +1 -0
- data/lib/aws-crt/platforms.rb +17 -6
- data/lib/aws-crt/string_blob.rb +3 -3
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19aaaf129940dd7ce9df7541acbc2076a3aaad1c62913a82a03bf64cf5a2066d
|
4
|
+
data.tar.gz: 43264b43e754e16afd908ab9f003582b599982fad5f7a709de55f4e2cebaca48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6cf5fded89670ebca491f16cb7ea6e560eb5ac24e83c2a875c578da2f66d3a7ed30e07edaaeea4c8ef1d09731b52c99e638a56f18f9af8ee467d3c752cbc7745
|
7
|
+
data.tar.gz: 3314daa2491883cb42374e136eb317baadedb2a21fb533240766b50c9d34e776fdd3c5d31c69ba85565c8e5330eebe0caab43a67c38b375589bb818b492636be
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,17 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
0.1.7 (2023-02-03)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Issue - Update to the latest aws-crt-ffi.
|
8
|
+
* Issue - Add support for overriding crt_bin_dir with `AWS_CRT_RUBY_BIN_DIR`.
|
9
|
+
|
10
|
+
0.1.6 (2022-08-12)
|
11
|
+
------------------
|
12
|
+
|
13
|
+
* Issue - Update to the latest aws-crt-ffi.
|
14
|
+
|
4
15
|
0.1.5 (2022-04-05)
|
5
16
|
------------------
|
6
17
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.7
|
Binary file
|
Binary file
|
data/bin/x64/aws-crt-ffi.dll
CHANGED
Binary file
|
Binary file
|
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
|
@@ -23,7 +27,9 @@ end
|
|
23
27
|
|
24
28
|
# @return [String] return the directory of the CRT library for the platform
|
25
29
|
def crt_bin_dir(platform)
|
26
|
-
|
30
|
+
ENV['AWS_CRT_RUBY_BIN_DIR'] ||
|
31
|
+
File.expand_path("../../bin/#{platform.cpu}",
|
32
|
+
File.dirname(__FILE__))
|
27
33
|
end
|
28
34
|
|
29
35
|
# @return [String] return the path to the CRT library for the platform
|
@@ -31,9 +37,14 @@ def crt_bin_path(platform)
|
|
31
37
|
File.expand_path(crt_bin_name(platform), crt_bin_dir(platform))
|
32
38
|
end
|
33
39
|
|
34
|
-
# @return [String] generate a string that be used with Gem::Platform
|
40
|
+
# @return [String] generate a string that can be used with Gem::Platform
|
35
41
|
def host_string
|
36
|
-
|
42
|
+
target_string(host_cpu)
|
43
|
+
end
|
44
|
+
|
45
|
+
# @return [String] generate a string that can be used with Gem::Platform
|
46
|
+
def target_string(cpu)
|
47
|
+
"#{cpu}-#{host_os}"
|
37
48
|
end
|
38
49
|
|
39
50
|
# @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.7
|
5
5
|
platform: universal-java
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -48,6 +48,7 @@ files:
|
|
48
48
|
- LICENSE.txt
|
49
49
|
- VERSION
|
50
50
|
- bin/aarch64/libaws-crt-ffi.so
|
51
|
+
- bin/arm64/libaws-crt-ffi.dylib
|
51
52
|
- bin/x64/aws-crt-ffi.dll
|
52
53
|
- bin/x86_64/libaws-crt-ffi.dylib
|
53
54
|
- bin/x86_64/libaws-crt-ffi.so
|