avromatic 0.29.0 → 0.29.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
  SHA1:
3
- metadata.gz: 7ffb68968240ce157b9aeb4fd3e54dc2af726380
4
- data.tar.gz: f205fd7e2877419fc07cff8293e32bbb589aa71c
3
+ metadata.gz: d304090333bddba94c563fab128da411a9d12ac7
4
+ data.tar.gz: bb2c63ab1d1f2fddc36bec7be457667062c38570
5
5
  SHA512:
6
- metadata.gz: 7c3eb099c2c4b382b84bd5784fa1b02c0a6b682979b1a95490b6ab762ec516174b2309a7332f67b47c26b60a97771fc3a63fc8994f2822fe96b30d42eff1f003
7
- data.tar.gz: 555bbf5724310f0bd2c78fb815dfd7b1e820b053eedda6ff4ff17ed36264ab9065364a365b39e60fd1ba57609355ee9ed28057158a33c9f5cb490236514d7b43
6
+ metadata.gz: 3cc8323bc1433b7dd828f22fef5bfdf4b2b958d07debf626a3c5e3458dbf935846b8c2934d5d1a5de8e5c2e354a5fae58a2681aed754de3657da99224b7cab11
7
+ data.tar.gz: c3e186eeea61083fc0ee0538b9f4df760c74a45de72eb38c684e176495a7902854d66680e490deb9bae97070ece2a5139e26bb6571d14e597bef342604acec68
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # avromatic changelog
2
2
 
3
+ ## v0.29.1
4
+ - Add `Avromatic.build_messaging!` to `avromatic/rspec`.
5
+
3
6
  ## v0.29.0
4
7
  - Add new public methods `#avro_key_datum` and `#avro_value_datum` on an
5
8
  Avromatic model instance that return the attributes of the model suitable for
data/README.md CHANGED
@@ -409,6 +409,15 @@ To use this gem, reference it in your Gemfile instead of `avro`:
409
409
  gem 'avro-patches'
410
410
  ````
411
411
 
412
+ ### RSpec Support
413
+
414
+ This gem also includes an `"avromatic/rspec"` file that can be required to support
415
+ using Avromatic with a fake schema registry during tests.
416
+
417
+ Requiring this file configures a RSpec before hook that directs any schema
418
+ registry requests to a fake, in-memory schema registry and rebuilds the
419
+ `Avromatic::Messaging` object for each example.
420
+
412
421
  ### Unsupported/Future
413
422
 
414
423
  The following types/features are not supported for generated models:
@@ -5,5 +5,6 @@ RSpec.configure do |config|
5
5
  config.before(:each) do
6
6
  WebMock.stub_request(:any, /^#{Avromatic.registry_url}/).to_rack(AvroSchemaRegistry::FakeServer)
7
7
  AvroSchemaRegistry::FakeServer.clear
8
+ Avromatic.build_messaging!
8
9
  end
9
10
  end
@@ -1,3 +1,3 @@
1
1
  module Avromatic
2
- VERSION = '0.29.0'.freeze
2
+ VERSION = '0.29.1'.freeze
3
3
  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.29.0
4
+ version: 0.29.1
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-12-12 00:00:00.000000000 Z
11
+ date: 2017-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avro