crypto_yellowme 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -4
- data/lib/crypto.rb +11 -2
- data/lib/crypto/version.rb +1 -1
- data/spec/spec_helper.rb +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcd92a6db6bf36f31dd88fa142404a54768fb4ae51c09f90a204747ff9783110
|
4
|
+
data.tar.gz: cb144dbad2c7336fae436e1f72ebf437ae78622d4942a06dd27b8f90e7316220
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3100a91592665c6cd4890a3249ac7f30d82e37a9778ef5c082f03b5380ae692f3680b08a353d283e9265b140dbcc9893ec5b20edb90f4c9acb8118d139eed77f
|
7
|
+
data.tar.gz: 4415b61e5a40bc07ca3c8f0ce9b177c2a0181a44e6617ceafa59577a9400ebf25daa0b03235079e486cdad5ae0bf9d03a16fc6ce0d7c7380f5b890188d74616d
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
crypto_yellowme (0.
|
5
|
-
activemodel (~> 5.2
|
4
|
+
crypto_yellowme (0.4.0)
|
5
|
+
activemodel (~> 5.2)
|
6
6
|
activesupport (~> 5.0)
|
7
7
|
bcrypt (~> 3.1.7)
|
8
8
|
|
@@ -51,8 +51,8 @@ PLATFORMS
|
|
51
51
|
|
52
52
|
DEPENDENCIES
|
53
53
|
crypto_yellowme!
|
54
|
-
rspec
|
55
|
-
simplecov
|
54
|
+
rspec (~> 3.8)
|
55
|
+
simplecov (~> 0.17)
|
56
56
|
|
57
57
|
BUNDLED WITH
|
58
58
|
1.17.2
|
data/lib/crypto.rb
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
require 'crypto/config'
|
2
|
-
|
3
1
|
require 'digest/md5'
|
4
2
|
require 'active_support/message_encryptor'
|
5
3
|
require 'active_support/key_generator'
|
@@ -15,4 +13,15 @@ require 'crypto/encryptor'
|
|
15
13
|
require 'crypto/rsa_key'
|
16
14
|
|
17
15
|
module Crypto
|
16
|
+
def self.config
|
17
|
+
yield self
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.secret_key_base
|
21
|
+
@secret_key_base
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.secret_key_base=(secret_key_base)
|
25
|
+
@secret_key_base = secret_key_base
|
26
|
+
end
|
18
27
|
end
|
data/lib/crypto/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED