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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cff08bb6b3a56e1f32236ef0734089eb368c7e2c3a42e93e9c79829e81b23a82
4
- data.tar.gz: 042a61283983d9ecec91c52e31e358e02521d532d7f68dfeaf6de5a9199064b0
3
+ metadata.gz: dcd92a6db6bf36f31dd88fa142404a54768fb4ae51c09f90a204747ff9783110
4
+ data.tar.gz: cb144dbad2c7336fae436e1f72ebf437ae78622d4942a06dd27b8f90e7316220
5
5
  SHA512:
6
- metadata.gz: 8bea3e1acb9f4edada03cc8c03ee9d77d1c04223aefaa342b09db99bcacab8566169d790bce73cd827a447e6c5941324d67be391d16bbbf0ce40b0e82aa2fb5f
7
- data.tar.gz: 14ef7d7e9c2c30197450f576642ff8f47f742b8866ef5199bbcf91136f598b26dd5a475a5672206769078593ac49aa94b14e9a3d6c3e2e4ff5f9a1f80ea12e91
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.3.0)
5
- activemodel (~> 5.2.0)
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
@@ -1,3 +1,3 @@
1
1
  module Crypto
2
- VERSION = '0.3.0'
2
+ VERSION = '0.4.0'
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -3,6 +3,8 @@ require 'simplecov'
3
3
 
4
4
  require 'crypto'
5
5
 
6
- Crypto.secret_key_base = 'xxxxx'
6
+ Crypto.config do |c|
7
+ c.secret_key_base = 'xxxxx'
8
+ end
7
9
 
8
10
  SimpleCov.start
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crypto_yellowme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yellowme