aws-crt 0.1.2-universal-java → 0.1.6-universal-java

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: e700c93221559eb288df27f9bc84f7eddf6e2ffec1ee2cc701363ade295cf6b1
4
- data.tar.gz: 2b669a92db5eb0d58970d7e95a838c801ea7d635164a88d2406ef74f65360ec6
3
+ metadata.gz: 4d6f2ffb361875b976f0b2715783d1b2ef3020136b7cc6af458bd6e61b1ee228
4
+ data.tar.gz: 5e08db11ca760bdc4dc51ca064bd8a800f84027384719e9f0fe927e2cf8e3499
5
5
  SHA512:
6
- metadata.gz: 536b176215a79bf913828b9757916f80838182fc5d096b453d9412f04caef7166a5b4b684b6bf348a951e85c949fb2f52561944b5d611f0259f5c952fdf5bbdb
7
- data.tar.gz: 07cb74483900e39c48168eb6b3c2c18b167d8d7fe2aabdc9fffaed403beffe21679203007f88c3471978823131cdd558600d88b17bbc29fa126dfc7bcd719e17
6
+ metadata.gz: 046dff4beaaf904501ad4356d46b901ae4012d57f76c1a8ed2a9ec639589f5547467fcf58a1cd2f0731b629019f8f2ecd938de5d7dcd4a0861af609a2e384b61
7
+ data.tar.gz: da1e88bb4c9feadfdb490c66c434328bec1ad3d69b49f73cb2fc63c8c18a09979cbbfcd7b8ca8f87cbbee19f22cbcba442d492876f3dcf64a36b90056932aa43
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.2
1
+ 0.1.6
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -9,13 +9,17 @@ OS_BINARIES = {
9
9
 
10
10
  DEFAULT_BINARY = 'libaws-crt-ffi.so'
11
11
 
12
- # @return [String] returns Gem::Platform style name for the current system
13
- # similar to Gem::Platform.local but will return systems host os/cpu
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
- "#{host_cpu}-#{host_os}"
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
@@ -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 << (e).pack('c*')
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 << (buffer[i + 4, len].pack('c*'))
35
- .force_encoding(Encoding::UTF_8)
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.2
4
+ version: 0.1.6
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: 2021-09-02 00:00:00.000000000 Z
11
+ date: 2022-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -48,7 +48,8 @@ files:
48
48
  - LICENSE.txt
49
49
  - VERSION
50
50
  - bin/aarch64/libaws-crt-ffi.so
51
- - bin/x86_64/aws-crt-ffi.dll
51
+ - bin/arm64/libaws-crt-ffi.dylib
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
54
55
  - lib/aws-crt.rb
@@ -69,7 +70,9 @@ files:
69
70
  homepage: https://github.com/awslabs/aws-crt-ruby
70
71
  licenses:
71
72
  - Apache-2.0
72
- metadata: {}
73
+ metadata:
74
+ source_code_uri: https://github.com/awslabs/aws-crt-ruby/tree/main/gems/aws-crt
75
+ changelog_uri: https://github.com/awslabs/aws-crt-ruby/tree/main/gems/aws-crt/CHANGELOG.md
73
76
  post_install_message:
74
77
  rdoc_options: []
75
78
  require_paths:
Binary file