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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eee3daa49f033d44737b37aee49c2281430cc23a4ea770c4c0891684ed47fbf8
4
- data.tar.gz: 2304bfd91b8f503e7c562db4bed2994da418e78180ed11f629630c4122142982
3
+ metadata.gz: ad97156a2ccd21f4d0c275c78012071ae7817364d62ff4a447eb59ad8d425179
4
+ data.tar.gz: d6f6ac76c26e3ca1456305efd3fa86a82705ccc39ae4151c6b75de10ea7ec4a0
5
5
  SHA512:
6
- metadata.gz: 7fca58237bbd4a8e22217ac9547475f4f13483532a05ac6fe1a02a3e93bd047f965734b0eca08fb5690fde36ac7b3d1b94129bcffa822c31ed5fc78b93be04ea
7
- data.tar.gz: 2eed4ea29fe1c960bff89b2fa41e63a8338c69069d1dea353a675f4a2e6b1e6e8cb62d4a1be7c7b4d8a445b933870eb24f3dfae920bfbef83b5a9daeccc3a640
6
+ metadata.gz: db8892bd1651c44830ad5aec3de4be311150b761ee6e765d4ff709d07d22748acdf7e7e62e762ec1ad402a68055e856f66e7b6f8ae48350ab6b0857c11ee9f42
7
+ data.tar.gz: a5300da880efb6b4289c14907cb1d867cc013d32094f021ff52f5a21077c9ff5f587008c7edcb9edd361e438712a2da25351dfe8252f3d76c451dd0b579d034d
@@ -1,3 +1,7 @@
1
+ # v1.0.1
2
+
3
+ * Throw a more useful exception when calling .anonymise without config [#53](https://github.com/gocardless/anony/pull/53)
4
+
1
5
  # v1.0.0
2
6
 
3
7
  * Create a result object when calling `anonymise!` [#44](https://github.com/gocardless/anony/pull/44)
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
 
@@ -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.9.0"
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"
@@ -64,7 +64,9 @@ module Anony
64
64
  # manager = Manager.first
65
65
  # manager.anonymise!
66
66
  def anonymise!
67
- raise ArgumentError, ".anonymise not yet invoked" unless self.class.anonymise_config
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Anony
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
5
5
  end
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.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-02-07 00:00:00.000000000 Z
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.9.0
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.9.0
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.3
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