anony 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +3 -0
- data/anony.gemspec +1 -1
- data/lib/anony/anonymisable.rb +3 -1
- data/lib/anony/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad97156a2ccd21f4d0c275c78012071ae7817364d62ff4a447eb59ad8d425179
|
4
|
+
data.tar.gz: d6f6ac76c26e3ca1456305efd3fa86a82705ccc39ae4151c6b75de10ea7ec4a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db8892bd1651c44830ad5aec3de4be311150b761ee6e765d4ff709d07d22748acdf7e7e62e762ec1ad402a68055e856f66e7b6f8ae48350ab6b0857c11ee9f42
|
7
|
+
data.tar.gz: a5300da880efb6b4289c14907cb1d867cc013d32094f021ff52f5a21077c9ff5f587008c7edcb9edd361e438712a2da25351dfe8252f3d76c451dd0b579d034d
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Anony
|
2
2
|
|
3
|
+
[![Yard Documentation](http://img.shields.io/badge/yard-docs-blue.svg)](http://rubydoc.info/gems/anony)
|
4
|
+
[![Build status](https://circleci.com/gh/gocardless/anony.svg?style=svg)](https://circleci.com/gh/gocardless/anony)
|
5
|
+
|
3
6
|
Anony is a small library that defines how ActiveRecord models should be anonymised for
|
4
7
|
deletion purposes.
|
5
8
|
|
data/anony.gemspec
CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
|
|
25
25
|
spec.required_ruby_version = ">= 2.4"
|
26
26
|
|
27
27
|
spec.add_development_dependency "bundler", "~> 2.1.4"
|
28
|
-
spec.add_development_dependency "gc_ruboconfig", "~> 2.
|
28
|
+
spec.add_development_dependency "gc_ruboconfig", "~> 2.10.0"
|
29
29
|
spec.add_development_dependency "rspec", "~> 3.9"
|
30
30
|
spec.add_development_dependency "rspec_junit_formatter", "~> 0.4"
|
31
31
|
spec.add_development_dependency "yard", "~> 0.9.20"
|
data/lib/anony/anonymisable.rb
CHANGED
@@ -64,7 +64,9 @@ module Anony
|
|
64
64
|
# manager = Manager.first
|
65
65
|
# manager.anonymise!
|
66
66
|
def anonymise!
|
67
|
-
|
67
|
+
unless self.class.anonymise_config
|
68
|
+
raise ArgumentError, "#{self.class.name} does not have an Anony configuration"
|
69
|
+
end
|
68
70
|
|
69
71
|
self.class.anonymise_config.validate!
|
70
72
|
self.class.anonymise_config.apply(self)
|
data/lib/anony/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: anony
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GoCardless Engineering
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.
|
33
|
+
version: 2.10.0
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 2.
|
40
|
+
version: 2.10.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -186,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
186
186
|
- !ruby/object:Gem::Version
|
187
187
|
version: '0'
|
188
188
|
requirements: []
|
189
|
-
rubygems_version: 3.0.
|
189
|
+
rubygems_version: 3.0.6
|
190
190
|
signing_key:
|
191
191
|
specification_version: 4
|
192
192
|
summary: A small library that defines how ActiveRecord models should be anonymised
|