aws-crt 0.1.5-x86_64-darwin → 0.1.6-x86_64-darwin

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: 83c41c60f1b70d0fdebea73ab910410c34b111b56fe483db530f83264d3c31ff
4
- data.tar.gz: fd41a1414720b9cf46916fde845f22a00071200eef4b4d0b71a62fd7f15bb327
3
+ metadata.gz: c9a40310d3e7774a8ffd7feb1c53a8293f5155e0682186d3d19dd43c1325b553
4
+ data.tar.gz: d55947ff0f4b1d941c4bdf2979dda6df8d3b14b4f0caccd90b775f28f4140b2a
5
5
  SHA512:
6
- metadata.gz: d47ff312c7e8d92158225913e8f7228bcf4945c4d9448932308d6f58e1376a7451757258f1e6a45c11287a3c62148aab6fbc5942880eb8a6e7ce237c677fff97
7
- data.tar.gz: 8762f9ee11748895275f3af2900d98b403349b460616b5f75ff34465b7a5cb943da6e3393624c5a61bc80dbf59edb9e186817c3f8683aed408c3497ed792b800
6
+ metadata.gz: 0bbcd326ee88c15dc4ff09e065bae0093fc5733608651972cc715d19d0740433e3280499d3c4960bc09561225faf635d449a6db19434fe12022b3a4711322cc6
7
+ data.tar.gz: 36da3f60412f3352c16e68691e7e00bda7e63aead382b017ac1ea983b8b1c7f55283fc04ada562d56e0a87b5405d1595e002616ebba23f5095d2b871142ef8ee
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
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
+
4
9
  0.1.5 (2022-04-05)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.5
1
+ 0.1.6
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.5
4
+ version: 0.1.6
5
5
  platform: x86_64-darwin
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-05 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