aez 0.1.2 → 0.1.3

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: 517e95f3de4b9654935f14fcc5a842a84ca77e12117a4406374912e29300bd7e
4
- data.tar.gz: c2bd85f0493dc19a52bfa271c06bf3395ed3f3e0cd49f75d1a7d09f171f93e9d
3
+ metadata.gz: d4d9d48389f2162b6f1a464a21210c9367f8d758ff1de3a5c0d96579566772b1
4
+ data.tar.gz: 254a014f98f11cf439e214ce7411505b40bc0878454446581519fee9bd7b1090
5
5
  SHA512:
6
- metadata.gz: f3d7153af4bb97b5910d656037821150cb1923f3e397023febb2f67cd85a1abda611a1934c1458efd7f2156f91260de592e68e5ae75004eb63038dbdaffc252a
7
- data.tar.gz: a9e78fdb91ed920e4efeb9e3faa9e5bbf5c10f167d60a2fa75ec26ff12cade04bd2f577e608230d0269541029e7c34467086a9e932f243b6b1bd89005e755d77
6
+ metadata.gz: 33c95c2759ac30f4124d699ac4d6ecef9628f7aa640b6457b8c4ae8b1306cd6e9ef50f91e652f2cb2ec9c553e25c43f84200306301a473d549099b44fc4bc79e
7
+ data.tar.gz: 7066a35211317b055bdb7dd24d4339057c23cff863cdd51b6a04f858a7fc6052cae4503456832aa93c571b61edf17090b95413f29bad9efe398e21b24882cfd7
data/ext/aezv5/extconf.rb CHANGED
@@ -5,4 +5,4 @@ require 'mkmf'
5
5
  $CFLAGS << ' -march=native'
6
6
 
7
7
  # Create Makefile
8
- create_makefile('aezv5')
8
+ create_makefile('aez/aezv5')
data/lib/aez.rb CHANGED
@@ -13,16 +13,7 @@ module AEZ
13
13
 
14
14
  extend FFI::Library
15
15
 
16
- lib_name = 'aezv5'
17
- file_name =
18
- case RbConfig::CONFIG['host_os'].downcase
19
- when /darwin|mac os/
20
- "#{lib_name}.dylib"
21
- when /linux/
22
- "#{lib_name}.so"
23
- end
24
-
25
- ffi_lib File.expand_path(file_name, __dir__)
16
+ ffi_lib File.expand_path("aez/aezv5.#{FFI::Platform::LIBSUFFIX}", __dir__)
26
17
 
27
18
  attach_function :aez_setup, [:pointer, :ulong_long, :pointer], :int
28
19
  attach_function :aez_encrypt, [:pointer, :pointer, :uint, :pointer, :uint, :uint, :pointer, :uint, :pointer], :int
data/lib/aez/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AEZ
4
- VERSION = '0.1.2'
4
+ VERSION = '0.1.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aez
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shigeyuki Azuchi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-05-31 00:00:00.000000000 Z
11
+ date: 2021-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi