attr_encryption 0.3.1 → 0.4.1

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: 729e0de140e1dbeb657444b5724cbf32671e1720b1a909b615cb364e7c575208
4
- data.tar.gz: 811af10e80f93db7b73ccd5fb63ad2ca5664faf42e46d5644729f9d55406844d
3
+ metadata.gz: f5a7e26f6c080b0c6d914cffa8de79150718d6af3623c7e2dc3f14d2c73334cb
4
+ data.tar.gz: 3b674633927d3d612ce78807753d1c754608377205aad170574bf3c9c25803d0
5
5
  SHA512:
6
- metadata.gz: 52af46b3f61ac7866147b428a864c8b540bc3420b14a49d392aa7710aa753a9a6d209ec1009c3204852fe585fb338c00c89013c7e86ab7206d16d816ec503092
7
- data.tar.gz: dbf482e81645af51278fdf22b085d5218c1c2bdfa808497e0e54309c7f4c5f376938bfd02c11e0806bb71d983035f74c8cb7f6f8917958d1cd08cbfa83b07586
6
+ metadata.gz: c0fb60fc8a51bf09b2a8515aa4d7bb08ec31653dff91b6a203df85b6b06947df161f384f82a8ff1b5ed012b13535d1464f853e451d5586772e4af370ea7f6d68
7
+ data.tar.gz: d383b3a5718c3eadacb2b6b3b2418df125a4855e81cd0d75cbf1e8f4a9cce1dfcd1710a8384ac648693c9a472fb4c184c66fbe2b692acf3cef9b9b6f77d3c788
data/Gemfile CHANGED
@@ -1,13 +1,13 @@
1
1
  source "http://rubygems.org"
2
2
  # Add dependencies required to use your gem here.
3
3
  # Example:
4
- gem "activesupport", "~> 6.0"
4
+ gem "activesupport", "= 7.0.8"
5
5
 
6
6
  # Add dependencies to develop your gem here.
7
7
  # Include everything needed to run rake, tests, features, etc.
8
8
  group :development do
9
9
  gem "rspec"
10
10
  gem "rdoc", "~> 4.1"
11
- gem "bundler", "~> 2.2.33"
11
+ gem "bundler", "~> 2.4.10"
12
12
  gem "jeweler", "~> 2.3"
13
13
  end
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.1"
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]
@@ -46,23 +46,23 @@ Gem::Specification.new do |s|
46
46
  s.specification_version = 4
47
47
 
48
48
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
49
- s.add_runtime_dependency(%q<activesupport>.freeze, ["~> 6.0"])
49
+ s.add_runtime_dependency(%q<activesupport>.freeze, ["~> 7.0"])
50
50
  s.add_development_dependency(%q<rspec>.freeze, [">= 0"])
51
51
  s.add_development_dependency(%q<rdoc>.freeze, ["~> 4.1"])
52
- s.add_development_dependency(%q<bundler>.freeze, ["~> 2.2.33"])
52
+ s.add_development_dependency(%q<bundler>.freeze, ["~> 2.4.10"])
53
53
  s.add_development_dependency(%q<jeweler>.freeze, ["~> 2.3"])
54
54
  else
55
- s.add_dependency(%q<activesupport>.freeze, ["~> 6.0"])
55
+ s.add_dependency(%q<activesupport>.freeze, ["~> 7.0"])
56
56
  s.add_dependency(%q<rspec>.freeze, [">= 0"])
57
57
  s.add_dependency(%q<rdoc>.freeze, ["~> 4.1"])
58
- s.add_dependency(%q<bundler>.freeze, ["~> 2.2.33"])
58
+ s.add_dependency(%q<bundler>.freeze, ["~> 2.4.10"])
59
59
  s.add_dependency(%q<jeweler>.freeze, ["~> 2.3"])
60
60
  end
61
61
  else
62
- s.add_dependency(%q<activesupport>.freeze, ["~> 6.0"])
62
+ s.add_dependency(%q<activesupport>.freeze, ["~> 7.0"])
63
63
  s.add_dependency(%q<rspec>.freeze, [">= 0"])
64
64
  s.add_dependency(%q<rdoc>.freeze, ["~> 4.1"])
65
- s.add_dependency(%q<bundler>.freeze, ["~>2.2.33"])
65
+ s.add_dependency(%q<bundler>.freeze, ["~>2.4.10"])
66
66
  s.add_dependency(%q<jeweler>.freeze, ["~> 2.3"])
67
67
  end
68
68
  end
@@ -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.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Sieh
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '6.0'
20
+ version: '7.0'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: '6.0'
27
+ version: '7.0'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rspec
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -59,14 +59,14 @@ dependencies:
59
59
  requirements:
60
60
  - - "~>"
61
61
  - !ruby/object:Gem::Version
62
- version: 2.2.33
62
+ version: 2.4.10
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - "~>"
68
68
  - !ruby/object:Gem::Version
69
- version: 2.2.33
69
+ version: 2.4.10
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: jeweler
72
72
  requirement: !ruby/object:Gem::Requirement