attr_encryption 0.3.1 → 0.4.0

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: 729e0de140e1dbeb657444b5724cbf32671e1720b1a909b615cb364e7c575208
4
- data.tar.gz: 811af10e80f93db7b73ccd5fb63ad2ca5664faf42e46d5644729f9d55406844d
3
+ metadata.gz: f3a1161f301731accd3f4e450b25abe26ef8b1d894181e87420b6dd1ef220f78
4
+ data.tar.gz: 42b36d59350e6d93b1fa16cea5af60d34ae8222ad58504a8d081d841612a3e89
5
5
  SHA512:
6
- metadata.gz: 52af46b3f61ac7866147b428a864c8b540bc3420b14a49d392aa7710aa753a9a6d209ec1009c3204852fe585fb338c00c89013c7e86ab7206d16d816ec503092
7
- data.tar.gz: dbf482e81645af51278fdf22b085d5218c1c2bdfa808497e0e54309c7f4c5f376938bfd02c11e0806bb71d983035f74c8cb7f6f8917958d1cd08cbfa83b07586
6
+ metadata.gz: 83fb9068bee1a7edcfa5d26ab459081d8176cd991e335e792e64102e1a8bbb1a30dc68d97c0ecf6ec2eab5c9c403a1e07c722001463efc0a2081a7bfdc35d623
7
+ data.tar.gz: 594b64d5f9f73e3343cff0f76c31cae70d0b22c67663b7f03e8b8b5a6344e017402d82665e4c17ac2030ae291cafff6c1b955e2e1fbc7b443e2c312ec72696c2
data/Gemfile.lock CHANGED
@@ -1,89 +0,0 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- activesupport (5.1.2)
5
- concurrent-ruby (~> 1.0, >= 1.0.2)
6
- i18n (~> 0.7)
7
- minitest (~> 5.1)
8
- tzinfo (~> 1.1)
9
- addressable (2.4.0)
10
- builder (3.2.3)
11
- concurrent-ruby (1.0.5)
12
- descendants_tracker (0.0.4)
13
- thread_safe (~> 0.3, >= 0.3.1)
14
- diff-lcs (1.3)
15
- faraday (0.9.2)
16
- multipart-post (>= 1.2, < 3)
17
- git (1.3.0)
18
- github_api (0.16.0)
19
- addressable (~> 2.4.0)
20
- descendants_tracker (~> 0.0.4)
21
- faraday (~> 0.8, < 0.10)
22
- hashie (>= 3.4)
23
- mime-types (>= 1.16, < 3.0)
24
- oauth2 (~> 1.0)
25
- hashie (3.5.6)
26
- highline (1.7.8)
27
- i18n (0.8.6)
28
- jeweler (2.3.7)
29
- builder
30
- bundler (>= 1)
31
- git (>= 1.2.5)
32
- github_api (~> 0.16.0)
33
- highline (>= 1.6.15)
34
- nokogiri (>= 1.5.10)
35
- psych (~> 2.2)
36
- rake
37
- rdoc
38
- semver2
39
- json (1.8.1)
40
- jwt (1.5.6)
41
- mime-types (2.99.3)
42
- mini_portile2 (2.2.0)
43
- minitest (5.10.3)
44
- multi_json (1.12.1)
45
- multi_xml (0.6.0)
46
- multipart-post (2.0.0)
47
- nokogiri (1.8.0)
48
- mini_portile2 (~> 2.2.0)
49
- oauth2 (1.4.0)
50
- faraday (>= 0.8, < 0.13)
51
- jwt (~> 1.0)
52
- multi_json (~> 1.3)
53
- multi_xml (~> 0.5)
54
- rack (>= 1.2, < 3)
55
- psych (2.2.4)
56
- rack (2.0.3)
57
- rake (12.0.0)
58
- rdoc (4.1.1)
59
- json (~> 1.4)
60
- rspec (3.6.0)
61
- rspec-core (~> 3.6.0)
62
- rspec-expectations (~> 3.6.0)
63
- rspec-mocks (~> 3.6.0)
64
- rspec-core (3.6.0)
65
- rspec-support (~> 3.6.0)
66
- rspec-expectations (3.6.0)
67
- diff-lcs (>= 1.2.0, < 2.0)
68
- rspec-support (~> 3.6.0)
69
- rspec-mocks (3.6.0)
70
- diff-lcs (>= 1.2.0, < 2.0)
71
- rspec-support (~> 3.6.0)
72
- rspec-support (3.6.0)
73
- semver2 (3.4.2)
74
- thread_safe (0.3.6)
75
- tzinfo (1.2.3)
76
- thread_safe (~> 0.1)
77
-
78
- PLATFORMS
79
- ruby
80
-
81
- DEPENDENCIES
82
- activesupport (~> 5.1)
83
- bundler (~> 1.15)
84
- jeweler (~> 2.3)
85
- rdoc (~> 4.1)
86
- rspec
87
-
88
- BUNDLED WITH
89
- 1.15.2
@@ -6,7 +6,7 @@
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "attr_encryption".freeze
9
- s.version = "0.3.1"
9
+ s.version = "0.4.0"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
@@ -1,4 +1,5 @@
1
1
  require 'spec_helper'
2
+ require 'securerandom'
2
3
 
3
4
  class DummyClass
4
5
  include MySQLEncryption
@@ -8,7 +9,7 @@ describe 'MySQLEncryption' do
8
9
 
9
10
  before(:each) do
10
11
  @cut = DummyClass.new
11
- @key = "eaduccitranatereheenalaistater"
12
+ @key = SecureRandom.random_bytes(16)
12
13
  end
13
14
 
14
15
  context "Public Methods" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: attr_encryption
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Sieh