argon2-kdf 0.1.6 → 0.2.0

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: 4c06476125b733921b5e0cbf53709f71e88c96130a1a5d3874caa4d2d94b28a0
4
- data.tar.gz: 306aea1bab00473fed55dcdda11d8a95ca61834dfa67e798e9ce5d408f24c6b2
3
+ metadata.gz: dddce7d24c43ca2bf2bb184b767dfc69aecf49d2871fba012fd3781de275bf49
4
+ data.tar.gz: bbf08738dee85fc5e5857be735f664ca8f25f77d4eb577eb501a592d317b8b38
5
5
  SHA512:
6
- metadata.gz: 1a6d60caaa86cb52d94719475c92aa2cd60311e292a6faa6ea80a8003a27c75e5fd23b788c4989a4008c600e38c10a30b5e509786fba9a6614de53e5cd0b5e3c
7
- data.tar.gz: 0f7bb523e3667ae856143bd05c81e79f33a91bb03e99a60d757f9d8a1023242e4c6c265ecd075b632eec0cdddf54b5b5a083e9ce404a601bf4fcd4f862e6c2a1
6
+ metadata.gz: 28f0124ceb327e49efe52175f8fecc93f855e7b99dee202e19ccf9798444b20f8723c60a9cb42649f23525cb92b1ec62a28f2b397b7c1f70d8cd831296c6c68c
7
+ data.tar.gz: bdb5ffb69e8ea1e7e086ddc00d20e8fbb72cfb8a95c94ad4acdddd87ddb605456b57acedfb673d0cb0ba3ce419ad2c41610d02365fc30b5e6ca367f2e96c8e23
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 0.2.0 (2023-05-11)
2
+
3
+ - Dropped support for Ruby < 3
4
+
5
+ ## 0.1.7 (2021-12-13)
6
+
7
+ - Improved ARM detection
8
+
1
9
  ## 0.1.6 (2021-03-10)
2
10
 
3
11
  - Added ARM shared library for Linux
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2020 Andrew Kane
1
+ Copyright (c) 2020-2023 Andrew Kane
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -14,7 +14,7 @@ For password hashing, use the [argon2](https://github.com/technion/ruby-argon2)
14
14
  Add this line to your application’s Gemfile:
15
15
 
16
16
  ```ruby
17
- gem 'argon2-kdf'
17
+ gem "argon2-kdf"
18
18
  ```
19
19
 
20
20
  ## Getting Started
@@ -1,5 +1,5 @@
1
1
  module Argon2
2
2
  module KDF
3
- VERSION = "0.1.6"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
data/lib/argon2/kdf.rb CHANGED
@@ -2,7 +2,7 @@
2
2
  require "fiddle/import"
3
3
 
4
4
  # modules
5
- require "argon2/kdf/version"
5
+ require_relative "kdf/version"
6
6
 
7
7
  module Argon2
8
8
  module KDF
@@ -15,13 +15,13 @@ module Argon2
15
15
  if Gem.win_platform?
16
16
  "argon2.dll"
17
17
  elsif RbConfig::CONFIG["host_os"] =~ /darwin/i
18
- if RbConfig::CONFIG["host_cpu"] =~ /arm/i
18
+ if RbConfig::CONFIG["host_cpu"] =~ /arm|aarch64/i
19
19
  "libargon2.arm64.dylib"
20
20
  else
21
21
  "libargon2.dylib"
22
22
  end
23
23
  else
24
- if RbConfig::CONFIG["host_cpu"] =~ /aarch64/i
24
+ if RbConfig::CONFIG["host_cpu"] =~ /arm|aarch64/i
25
25
  "libargon2.arm64.so"
26
26
  else
27
27
  "libargon2.so"
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: argon2-kdf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-10 00:00:00.000000000 Z
11
+ date: 2023-05-12 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
- email: andrew@chartkick.com
14
+ email: andrew@ankane.org
15
15
  executables: []
16
16
  extensions: []
17
17
  extra_rdoc_files: []
@@ -40,14 +40,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
40
40
  requirements:
41
41
  - - ">="
42
42
  - !ruby/object:Gem::Version
43
- version: '2.4'
43
+ version: '3'
44
44
  required_rubygems_version: !ruby/object:Gem::Requirement
45
45
  requirements:
46
46
  - - ">="
47
47
  - !ruby/object:Gem::Version
48
48
  version: '0'
49
49
  requirements: []
50
- rubygems_version: 3.2.3
50
+ rubygems_version: 3.4.10
51
51
  signing_key:
52
52
  specification_version: 4
53
53
  summary: Argon2 key derivation for Ruby