multi_password 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 153b813e37bf5c0c015e3ceed5b169ef4d6c8fb9230b7343d0435b6ba246d33a
4
- data.tar.gz: 83614237a55c98420d9ee025df0d5ddfa1b9f4d9ecd72aeb7cfd3826e40a4fa9
3
+ metadata.gz: c0657a313bae7cf70f5001effcd4863e6f1d3c52c8499cb4e0b3c7ff6e8acc3c
4
+ data.tar.gz: '0185bbd90799d11585c3ce56679de77cf02b7ff6ced4d71725d25ac1654ca0f4'
5
5
  SHA512:
6
- metadata.gz: 87572ff497e9018fac1f56428a52bd6cdfce9b5c9fb6f7717d095e29c54997f45ec8dcc42da8372f140536db0abe80a761588f882e138d32e16507380f8d663a
7
- data.tar.gz: 1a02471f7dcbb7486262cc173c99fdec3aba716ccc3f6ea6e48e556bfe548216251d7171aea4cdf3a1a5c3c879e4f1017dcef529ff52f80839d4f46ab68932b8
6
+ metadata.gz: 9911136f9a540f7a19d870c91b76f2217a96c42d4a671575649e32a855112db5f2589a1ce6f211091620f29041fab6abe6fea10da2f920d97aa849ea099ac8df
7
+ data.tar.gz: 81a4e61b8263bc8b475bda8306b40b2917a66708d5ffd22d80be6ba50ee453a7e6a9687c1696501657054646e9558bdacbd3c2a9f851d1d67fe67fe2899ccdd5
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.1.2
2
+
3
+ - Fix bug when validating cost options
4
+
1
5
  # 0.1.1
2
6
 
3
7
  - Validate cost options for all algorithms
@@ -27,12 +27,12 @@ class MultiPassword
27
27
  raise InvalidOptions.new('scrypt', 'key_len must be an integer between 16 and 512')
28
28
  end
29
29
 
30
- if max_time && (!max_time.is_a?(Integer) || max_time < 0 || max_time > 2)
31
- raise InvalidOptions.new('scrypt', 'max_time must be an integer between 0 and 2')
30
+ if max_time && (!max_time.is_a?(Numeric) || max_time < 0 || max_time > 2)
31
+ raise InvalidOptions.new('scrypt', 'max_time must be a number between 0 and 2')
32
32
  end
33
33
 
34
- if max_mem && (!max_mem.is_a?(Numeric) || max_mem < 0 || max_mem > 256)
35
- raise InvalidOptions.new('scrypt', 'max_mem must be a number between 0 and 256')
34
+ if max_mem && (!max_mem.is_a?(Integer) || max_mem < 0 || max_mem > 256)
35
+ raise InvalidOptions.new('scrypt', 'max_mem must be an integer between 0 and 256')
36
36
  end
37
37
 
38
38
  options
@@ -1,3 +1,3 @@
1
1
  class MultiPassword
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multi_password
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hieu Nguyen