aws-crt 0.1.5-x64-mingw32 → 0.1.6-x64-mingw32

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: efb8931eec8ecf1f6012a7c8095690a9c9e1d8187ee5482f81c381d7ac4b297b
4
- data.tar.gz: 6f362b9d8514aba2838ab86c7a70dfa29bc4483fa82539d285ed7316d11e5ad6
3
+ metadata.gz: 31132df91573dcd6e8bcbcc3b80ce3756ae1b49a74de0744fdb51715781d3d64
4
+ data.tar.gz: 54af56c674d3fc38e0c4a37701d08c0837ee4add13fe01d8ca67b4b7b3994d9c
5
5
  SHA512:
6
- metadata.gz: 84080ea30d338cbed1f346eeb82860883cb7705cf438bea76d22de10f9f248a5a16ef5a2eea157f483997719bbaac2a4083dec25a1081bdfff55ca780ea9470f
7
- data.tar.gz: 798c7e06d2cab0d75cdb55de7938f49f5aa516a9eef3ceb2498f96c35a2954ee248f3618ac01ad791ce118aab83ba2c1b8cea7313f8feb23675499f1fbaaf308
6
+ metadata.gz: bf4b64bdc3a8d338100e082527bf4733fea449c4976d9830c737ec27ea2eec8d263908b1ec7d662c99f532be980d0386cdef69de0957b8b410cf381202579b96
7
+ data.tar.gz: 482264bbd60922c3f3f233057a270a6c2c3acbcb4618a1f8f53f1b1594accf38b4bf59c4a87c362a3cb64ac9eb6907a696cf7ab63d246fd2a770e50022c377f3
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: x64-mingw32
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
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  - !ruby/object:Gem::Version
85
85
  version: '0'
86
86
  requirements: []
87
- rubygems_version: 3.2.32
87
+ rubygems_version: 3.1.6
88
88
  signing_key:
89
89
  specification_version: 4
90
90
  summary: AWS SDK for Ruby - Common Run Time