attr_vault 0.2.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.travis.yml +4 -3
- data/Gemfile +1 -1
- data/Gemfile.lock +3 -3
- data/README.md +1 -77
- data/lib/attr_vault/keyring.rb +10 -27
- data/lib/attr_vault/version.rb +1 -1
- data/spec/attr_vault/keyring_spec.rb +32 -37
- data/spec/attr_vault_spec.rb +400 -435
- data/spec/spec_helper.rb +0 -14
- metadata +2 -3
data/spec/spec_helper.rb
CHANGED
@@ -16,7 +16,6 @@ conn.run <<-EOF
|
|
16
16
|
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
|
17
17
|
|
18
18
|
DROP TABLE IF EXISTS items;
|
19
|
-
DROP TABLE IF EXISTS items_legacy;
|
20
19
|
|
21
20
|
CREATE TABLE items(
|
22
21
|
id serial primary key,
|
@@ -29,18 +28,6 @@ CREATE TABLE items(
|
|
29
28
|
not_secret text,
|
30
29
|
other_not_secret text
|
31
30
|
);
|
32
|
-
|
33
|
-
CREATE TABLE items_legacy(
|
34
|
-
id serial primary key,
|
35
|
-
key_id uuid,
|
36
|
-
alt_key_id uuid,
|
37
|
-
secret_encrypted bytea,
|
38
|
-
secret_digest bytea,
|
39
|
-
other_encrypted bytea,
|
40
|
-
other_digest bytea,
|
41
|
-
not_secret text,
|
42
|
-
other_not_secret text
|
43
|
-
);
|
44
31
|
EOF
|
45
32
|
|
46
33
|
RSpec.configure do |config|
|
@@ -49,7 +36,6 @@ RSpec.configure do |config|
|
|
49
36
|
|
50
37
|
config.before(:example) do
|
51
38
|
conn.run 'TRUNCATE items'
|
52
|
-
conn.run 'TRUNCATE items_legacy'
|
53
39
|
end
|
54
40
|
|
55
41
|
# Run specs in random order to surface order dependencies. If you find an
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: attr_vault
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maciek Sakrejda
|
@@ -97,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
97
|
version: '0'
|
98
98
|
requirements: []
|
99
99
|
rubyforge_project:
|
100
|
-
rubygems_version: 2.
|
100
|
+
rubygems_version: 2.6.8
|
101
101
|
signing_key:
|
102
102
|
specification_version: 4
|
103
103
|
summary: Sequel plugin for encryption at rest
|
@@ -106,4 +106,3 @@ test_files:
|
|
106
106
|
- spec/attr_vault/secret_spec.rb
|
107
107
|
- spec/attr_vault_spec.rb
|
108
108
|
- spec/spec_helper.rb
|
109
|
-
has_rdoc:
|