avromatic 0.19.0 → 0.20.0

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
  SHA1:
3
- metadata.gz: dafd6e692ee468821d5f9ba94e1b46af7d19c663
4
- data.tar.gz: 3afe844857922431e772e69e2a9f2c05fcb5efcc
3
+ metadata.gz: bd8bd216d748aa1e3f73599c0876e55805375485
4
+ data.tar.gz: eb11e8bf876d4d2179c843f58105fd3ffa2ba7fd
5
5
  SHA512:
6
- metadata.gz: 2cdd92dffde7e57af70e039ec3a3752804b71eaadb99c0c8f7770c70c506c1f94f80784c29c3f27b10fb6346ef86224e1c08293a823eefc516749b67c1c4d472
7
- data.tar.gz: 4b55b8faa7e51a58dad93759a94605a8064149a33781ecc081bd03c0679cd5830bd206f8ce96923bd091611a73f363cfd25342bb3701be8d99f7d0e9cfef5c5d
6
+ metadata.gz: 108a8d5cb939dbace99031fe0c058a8824d4872e8ee9c65f92c920fa6c13b3bc1ecd8807bdc013a6cf8126ae706bc87714dc1eaf35670e31fd6a8a72322548d4
7
+ data.tar.gz: cf73e10878d7ddd1471ff4ddbd4162dd3683dc2c21ed498cd9c208a76aafac75722cdf25802a0d539c93910ebcb2f94a749359eb9c9d09919a918487de9bb616
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # avromatic changelog
2
2
 
3
+ ## v0.20.0
4
+ - Support schema stores with a `#clear_schemas` method.
5
+
3
6
  ## v0.19.0
4
7
  - Use a fingerprint based on `avro-resolution_canonical_form`.
5
8
 
@@ -1,3 +1,3 @@
1
1
  module Avromatic
2
- VERSION = '0.19.0'.freeze
2
+ VERSION = '0.20.0'.freeze
3
3
  end
data/lib/avromatic.rb CHANGED
@@ -51,7 +51,13 @@ module Avromatic
51
51
  def self.prepare!(skip_clear: false)
52
52
  unless skip_clear
53
53
  nested_models.clear
54
- schema_store.public_send(:clear) if schema_store && schema_store.respond_to?(:clear)
54
+ if schema_store
55
+ if schema_store.respond_to?(:clear_schemas)
56
+ schema_store.clear_schemas
57
+ elsif schema_store.respond_to?(:clear)
58
+ schema_store.clear
59
+ end
60
+ end
55
61
  end
56
62
  eager_load_models!
57
63
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avromatic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.0
4
+ version: 0.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Salsify Engineering
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-03-15 00:00:00.000000000 Z
11
+ date: 2017-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avro