avromatic 2.1.0 → 2.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +1 -1
  3. data/.ruby-version +1 -1
  4. data/.travis.yml +12 -13
  5. data/Appraisals +23 -29
  6. data/CHANGELOG.md +17 -0
  7. data/avromatic.gemspec +7 -7
  8. data/gemfiles/{avro_patches_0_3_4_rails5_2.gemfile → avro1_10_rails5_2.gemfile} +1 -1
  9. data/gemfiles/{rails5_0.gemfile → avro1_10_rails6_0.gemfile} +3 -3
  10. data/gemfiles/{rails5_2.gemfile → avro1_8_rails5_2.gemfile} +0 -0
  11. data/gemfiles/{avro_patches_5_0.gemfile → avro1_9_rails5_2.gemfile} +3 -3
  12. data/gemfiles/{rails5_1.gemfile → avro1_9_rails6_0.gemfile} +3 -3
  13. data/gemfiles/avro_patches_rails5_2.gemfile +1 -1
  14. data/gemfiles/avro_patches_rails6_0.gemfile +9 -0
  15. data/lib/avromatic.rb +1 -3
  16. data/lib/avromatic/io/datum_reader.rb +2 -2
  17. data/lib/avromatic/model/nested_models.rb +13 -2
  18. data/lib/avromatic/model/types/abstract_type.rb +7 -0
  19. data/lib/avromatic/model/types/array_type.rb +4 -0
  20. data/lib/avromatic/model/types/boolean_type.rb +4 -0
  21. data/lib/avromatic/model/types/custom_type.rb +4 -0
  22. data/lib/avromatic/model/types/date_type.rb +4 -0
  23. data/lib/avromatic/model/types/enum_type.rb +4 -0
  24. data/lib/avromatic/model/types/fixed_type.rb +4 -0
  25. data/lib/avromatic/model/types/float_type.rb +4 -0
  26. data/lib/avromatic/model/types/integer_type.rb +4 -0
  27. data/lib/avromatic/model/types/map_type.rb +5 -0
  28. data/lib/avromatic/model/types/null_type.rb +4 -0
  29. data/lib/avromatic/model/types/record_type.rb +4 -0
  30. data/lib/avromatic/model/types/string_type.rb +5 -1
  31. data/lib/avromatic/model/types/timestamp_micros_type.rb +4 -1
  32. data/lib/avromatic/model/types/timestamp_millis_type.rb +4 -1
  33. data/lib/avromatic/model/types/union_type.rb +4 -0
  34. data/lib/avromatic/model_registry.rb +2 -1
  35. data/lib/avromatic/rspec.rb +6 -1
  36. data/lib/avromatic/version.rb +1 -1
  37. metadata +59 -54
  38. data/gemfiles/avro_patches_0_3_4_rails5_1.gemfile +0 -9
  39. data/gemfiles/avro_patches_rails5_1.gemfile +0 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2b0e4d3f2c32f7c18ceac64edce77b91493fe72abf24fc6cd05a5b0deb315e68
4
- data.tar.gz: f9b3bdbfa7cf25e8d94c5f87637ceb0f1dfab2eacc04100a600c7904171baa81
3
+ metadata.gz: 8cc3e17c99ffc3587dc747dbc97da2b63304e20e2bbc7f335a00878ae87bbcf2
4
+ data.tar.gz: 47e581e34bf75f8ea6fd6775ab91c67c51566475e0d831452bd6ef922f185151
5
5
  SHA512:
6
- metadata.gz: 9a92e2cd960aed018a35ab16362141572ff123dc81a92d0f10cd2c651918d26b465ea14240b90134a1572afeecd733afafcaca56a0d3eea898d8801d7bb2c103
7
- data.tar.gz: 9b168f4d7d4779e6617eadf41b39bb0d4ae867ef2e49dc757be5b1b4074b5d489a0485368263639189456b3462bd024e989591925f9ab20590dfec2b67c5ad4a
6
+ metadata.gz: 29d285151df19f4a3611889c2b805a3de2018c08120a6fca53a88234ab5028b63f83c0f499118a56ca23709071a8ef811713575e6d621c74c42ff6936cd038af
7
+ data.tar.gz: 97bb648dd3e554219b5ecf81611c1dbc482467fabc50c1f219c0d2b52e31eb891903be92cb20b472f3c9e4ac07d2507d59a2b16dacbec374d22a712b19c4c50c
@@ -2,7 +2,7 @@ inherit_gem:
2
2
  salsify_rubocop: conf/rubocop.yml
3
3
 
4
4
  AllCops:
5
- TargetRubyVersion: 2.3
5
+ TargetRubyVersion: 2.4
6
6
 
7
7
  Style/MultilineBlockChain:
8
8
  Enabled: false
@@ -1 +1 @@
1
- 2.5.1
1
+ 2.5.8
@@ -1,17 +1,16 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.5.1
4
- - 2.4.4
5
- - 2.3.5
3
+ - 2.5.8
4
+ - 2.6.6
5
+ - 2.7.1
6
6
  before_script:
7
- - bundle exec appraisal install --jobs=3
8
- script:
9
7
  - bundle exec rubocop
10
- - bundle exec appraisal rails5_0 rspec
11
- - bundle exec appraisal rails5_1 rspec
12
- - bundle exec appraisal rails5_2 rspec
13
- - bundle exec appraisal avro-patches-5_0 rspec
14
- - bundle exec appraisal avro-patches-0_3_4-rails5_1 rspec
15
- - bundle exec appraisal avro-patches-0_3_4-rails5_2 rspec
16
- - bundle exec appraisal avro-patches-rails5_1 rspec
17
- - bundle exec appraisal avro-patches-rails5_2 rspec
8
+ gemfile:
9
+ - gemfiles/avro1_8_rails5_2.gemfile
10
+ - gemfiles/avro1_9_rails5_2.gemfile
11
+ - gemfiles/avro1_10_rails5_2.gemfile
12
+ - gemfiles/avro1_9_rails6_0.gemfile
13
+ - gemfiles/avro1_10_rails6_0.gemfile
14
+ - gemfiles/avro_patches_rails5_2.gemfile
15
+ - gemfiles/avro_patches_rails6_0.gemfile
16
+ script: bundle exec rspec
data/Appraisals CHANGED
@@ -1,49 +1,43 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- appraise 'rails5_0' do
3
+ appraise 'avro1_8-rails5_2' do
4
4
  gem 'avro', '1.8.2'
5
- gem 'activesupport', '~> 5.0.6'
6
- gem 'activemodel', '~> 5.0.6'
5
+ gem 'activesupport', '~> 5.2.0'
6
+ gem 'activemodel', '~> 5.2.0'
7
7
  end
8
8
 
9
- appraise 'rails5_1' do
10
- gem 'avro', '1.8.2'
11
- gem 'activesupport', '~> 5.1.4'
12
- gem 'activemodel', '~> 5.1.4'
9
+ appraise 'avro1_9-rails5_2' do
10
+ gem 'avro', '1.9.2'
11
+ gem 'activesupport', '~> 5.2.0'
12
+ gem 'activemodel', '~> 5.2.0'
13
13
  end
14
14
 
15
- appraise 'rails5_2' do
16
- gem 'avro', '1.8.2'
15
+ appraise 'avro1_10-rails5_2' do
16
+ gem 'avro', '~> 1.10.0'
17
17
  gem 'activesupport', '~> 5.2.0'
18
18
  gem 'activemodel', '~> 5.2.0'
19
19
  end
20
20
 
21
- appraise 'avro-patches-5_0' do
22
- gem 'avro-patches'
23
- gem 'activesupport', '~> 5.0.6'
24
- gem 'activemodel', '~> 5.0.6'
21
+ appraise 'avro1_9-rails6_0' do
22
+ gem 'avro', '1.9.2'
23
+ gem 'activesupport', '~> 6.0.0'
24
+ gem 'activemodel', '~> 6.0.0'
25
25
  end
26
26
 
27
- appraise 'avro-patches-0_3_4-rails5_1' do
28
- gem 'avro-patches', '0.3.4'
29
- gem 'activesupport', '~> 5.1.4'
30
- gem 'activemodel', '~> 5.1.4'
27
+ appraise 'avro1_10-rails6_0' do
28
+ gem 'avro', '~> 1.10.0'
29
+ gem 'activesupport', '~> 6.0.0'
30
+ gem 'activemodel', '~> 6.0.0'
31
31
  end
32
32
 
33
- appraise 'avro-patches-0_3_4-rails5_2' do
34
- gem 'avro-patches', '0.3.4'
33
+ appraise 'avro-patches-rails5_2' do
34
+ gem 'avro-patches', '>= 0.4.1', '< 1.0'
35
35
  gem 'activesupport', '~> 5.2.0'
36
36
  gem 'activemodel', '~> 5.2.0'
37
37
  end
38
38
 
39
- appraise 'avro-patches-rails5_1' do
40
- gem 'avro-patches', '>= 0.4.0'
41
- gem 'activesupport', '~> 5.1.4'
42
- gem 'activemodel', '~> 5.1.4'
43
- end
44
-
45
- appraise 'avro-patches-rails5_2' do
46
- gem 'avro-patches', '>= 0.4.0'
47
- gem 'activesupport', '~> 5.2.0'
48
- gem 'activemodel', '~> 5.2.0'
39
+ appraise 'avro-patches-rails6_0' do
40
+ gem 'avro-patches', '>= 1.0.0'
41
+ gem 'activesupport', '~> 6.0.0'
42
+ gem 'activemodel', '~> 6.0.0'
49
43
  end
@@ -1,5 +1,22 @@
1
1
  # avromatic changelog
2
2
 
3
+ ## v2.2.4
4
+ - Compatibility with Avro v1.10.x.
5
+
6
+ ## v2.2.3
7
+ - Fix bug where method `#referenced_model_classes` was declared as private instead of public.
8
+
9
+ ## v2.2.2
10
+ - Fix missing models in the model registry when in development by loading the nested models of eager loaded models.
11
+ - Fake schema registry support for stubbing URLs with usernames and passwords.
12
+
13
+ ## v2.2.1
14
+ - Avoid allocating default empty hash in `Avromatic::IO::DatumReader.read_data`
15
+
16
+ ## v2.2.0
17
+ - Add support for Rails 6.0.
18
+ - Drop support for Ruby < 2.4.
19
+
3
20
  ## v2.1.0
4
21
  - Add `key_schema_name` and `value_schema_name` attributes to `UnexpectedKeyError`.
5
22
 
@@ -20,24 +20,24 @@ Gem::Specification.new do |spec|
20
20
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
21
  spec.require_paths = ['lib']
22
22
 
23
- spec.required_ruby_version = '>= 2.3'
23
+ spec.required_ruby_version = '>= 2.4'
24
24
 
25
- spec.add_runtime_dependency 'activemodel', '>= 5.0', '< 5.3'
26
- spec.add_runtime_dependency 'activesupport', '>= 5.0', '< 5.3'
27
- spec.add_runtime_dependency 'avro', '>= 1.7.7'
25
+ spec.add_runtime_dependency 'activemodel', '>= 5.0', '< 6.1'
26
+ spec.add_runtime_dependency 'activesupport', '>= 5.0', '< 6.1'
27
+ spec.add_runtime_dependency 'avro', '>= 1.7.7', '< 1.11'
28
28
  spec.add_runtime_dependency 'avro_schema_registry-client', '>= 0.3.0'
29
29
  spec.add_runtime_dependency 'avro_turf'
30
30
  spec.add_runtime_dependency 'ice_nine'
31
31
 
32
+ spec.add_development_dependency 'appraisal'
32
33
  spec.add_development_dependency 'avro-builder', '>= 0.12.0'
33
34
  spec.add_development_dependency 'bundler', '>= 1.11'
35
+ spec.add_development_dependency 'overcommit', '0.35.0'
34
36
  spec.add_development_dependency 'rake', '~> 10.0'
35
37
  spec.add_development_dependency 'rspec', '~> 3.0'
38
+ spec.add_development_dependency 'salsify_rubocop', '~> 0.52.1.1'
36
39
  spec.add_development_dependency 'simplecov'
37
40
  spec.add_development_dependency 'webmock'
38
41
  # For AvroSchemaRegistry::FakeServer
39
- spec.add_development_dependency 'appraisal'
40
- spec.add_development_dependency 'overcommit', '0.35.0'
41
- spec.add_development_dependency 'salsify_rubocop', '~> 0.52.1.1'
42
42
  spec.add_development_dependency 'sinatra'
43
43
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "avro-patches", "0.3.4"
5
+ gem "avro", "~> 1.10.0"
6
6
  gem "activesupport", "~> 5.2.0"
7
7
  gem "activemodel", "~> 5.2.0"
8
8
 
@@ -2,8 +2,8 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "avro", "1.8.2"
6
- gem "activesupport", "~> 5.0.6"
7
- gem "activemodel", "~> 5.0.6"
5
+ gem "avro", "~> 1.10.0"
6
+ gem "activesupport", "~> 6.0.0"
7
+ gem "activemodel", "~> 6.0.0"
8
8
 
9
9
  gemspec path: "../"
@@ -2,8 +2,8 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "avro-patches"
6
- gem "activesupport", "~> 5.0.6"
7
- gem "activemodel", "~> 5.0.6"
5
+ gem "avro", "1.9.2"
6
+ gem "activesupport", "~> 5.2.0"
7
+ gem "activemodel", "~> 5.2.0"
8
8
 
9
9
  gemspec path: "../"
@@ -2,8 +2,8 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "avro", "1.8.2"
6
- gem "activesupport", "~> 5.1.4"
7
- gem "activemodel", "~> 5.1.4"
5
+ gem "avro", "1.9.2"
6
+ gem "activesupport", "~> 6.0.0"
7
+ gem "activemodel", "~> 6.0.0"
8
8
 
9
9
  gemspec path: "../"
@@ -2,7 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "avro-patches", ">= 0.4.0"
5
+ gem "avro-patches", ">= 0.4.1", "< 1.0"
6
6
  gem "activesupport", "~> 5.2.0"
7
7
  gem "activemodel", "~> 5.2.0"
8
8
 
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "avro-patches", ">= 1.0.0"
6
+ gem "activesupport", "~> 6.0.0"
7
+ gem "activemodel", "~> 6.0.0"
8
+
9
+ gemspec path: "../"
@@ -85,9 +85,7 @@ module Avromatic
85
85
  end
86
86
 
87
87
  def self.eager_load_models!
88
- (@eager_load_model_names || []).each do |model_name|
89
- nested_models.ensure_registered_model(model_name.constantize)
90
- end
88
+ @eager_load_model_names&.each { |model_name| model_name.constantize.register! }
91
89
  end
92
90
  private_class_method :eager_load_models!
93
91
  end
@@ -10,7 +10,7 @@ module Avromatic
10
10
 
11
11
  UNION_MEMBER_INDEX = Avromatic::IO::UNION_MEMBER_INDEX
12
12
 
13
- def read_data(writers_schema, readers_schema, decoder, initial_record = {})
13
+ def read_data(writers_schema, readers_schema, decoder, initial_record = nil)
14
14
  # schema matching
15
15
  unless self.class.match_schemas(writers_schema, readers_schema)
16
16
  raise Avro::IO::SchemaMatchException.new(writers_schema, readers_schema)
@@ -52,7 +52,7 @@ module Avromatic
52
52
  when :array; read_array(writers_schema, readers_schema, decoder)
53
53
  when :map; read_map(writers_schema, readers_schema, decoder)
54
54
  when :union; read_union(writers_schema, readers_schema, decoder)
55
- when :record, :error, :request; read_record(writers_schema, readers_schema, decoder, initial_record)
55
+ when :record, :error, :request; read_record(writers_schema, readers_schema, decoder, initial_record || {})
56
56
  else
57
57
  raise Avro::AvroError.new("Cannot read unknown schema type: #{writers_schema.type}")
58
58
  end
@@ -12,10 +12,21 @@ module Avromatic
12
12
  module ClassMethods
13
13
  # Register this model if it can be used as a nested model.
14
14
  def register!
15
- if key_avro_schema.nil? && value_avro_schema.type_sym == :record
16
- nested_models.register(self)
15
+ return unless key_avro_schema.nil? && value_avro_schema.type_sym == :record
16
+
17
+ roots = [self]
18
+ until roots.empty?
19
+ model = roots.shift
20
+ next if nested_models.registered?(model)
21
+
22
+ nested_models.register(model)
23
+ roots.concat(model.referenced_model_classes)
17
24
  end
18
25
  end
26
+
27
+ def referenced_model_classes
28
+ attribute_definitions.values.flat_map { |definition| definition.type.referenced_model_classes }.freeze
29
+ end
19
30
  end
20
31
  end
21
32
  end
@@ -4,6 +4,9 @@ module Avromatic
4
4
  module Model
5
5
  module Types
6
6
  class AbstractType
7
+ EMPTY_ARRAY = [].freeze
8
+ private_constant :EMPTY_ARRAY
9
+
7
10
  def value_classes
8
11
  raise "#{__method__} must be overridden by #{self.class.name}"
9
12
  end
@@ -31,6 +34,10 @@ module Avromatic
31
34
  def serialize(_value, **)
32
35
  raise "#{__method__} must be overridden by #{self.class.name}"
33
36
  end
37
+
38
+ def referenced_model_classes
39
+ raise "#{__method__} must be overridden by #{self.class.name}"
40
+ end
34
41
  end
35
42
  end
36
43
  end
@@ -47,6 +47,10 @@ module Avromatic
47
47
  value.map { |element| value_type.serialize(element, strict: strict) }
48
48
  end
49
49
  end
50
+
51
+ def referenced_model_classes
52
+ value_type.referenced_model_classes
53
+ end
50
54
  end
51
55
  end
52
56
  end
@@ -33,6 +33,10 @@ module Avromatic
33
33
  def serialize(value, **)
34
34
  value
35
35
  end
36
+
37
+ def referenced_model_classes
38
+ EMPTY_ARRAY
39
+ end
36
40
  end
37
41
  end
38
42
  end
@@ -58,6 +58,10 @@ module Avromatic
58
58
  def serialize(value, **)
59
59
  @serializer.call(value)
60
60
  end
61
+
62
+ def referenced_model_classes
63
+ default_type.referenced_model_classes
64
+ end
61
65
  end
62
66
  end
63
67
  end
@@ -35,6 +35,10 @@ module Avromatic
35
35
  def serialize(value, **)
36
36
  value
37
37
  end
38
+
39
+ def referenced_model_classes
40
+ EMPTY_ARRAY
41
+ end
38
42
  end
39
43
  end
40
44
  end
@@ -50,6 +50,10 @@ module Avromatic
50
50
  def serialize(value, **)
51
51
  value
52
52
  end
53
+
54
+ def referenced_model_classes
55
+ EMPTY_ARRAY
56
+ end
53
57
  end
54
58
  end
55
59
  end
@@ -39,6 +39,10 @@ module Avromatic
39
39
  def serialize(value, **)
40
40
  value
41
41
  end
42
+
43
+ def referenced_model_classes
44
+ EMPTY_ARRAY
45
+ end
42
46
  end
43
47
  end
44
48
  end
@@ -42,6 +42,10 @@ module Avromatic
42
42
  def serialize(value, **)
43
43
  value
44
44
  end
45
+
46
+ def referenced_model_classes
47
+ EMPTY_ARRAY
48
+ end
45
49
  end
46
50
  end
47
51
  end
@@ -33,6 +33,10 @@ module Avromatic
33
33
  def serialize(value, **)
34
34
  value
35
35
  end
36
+
37
+ def referenced_model_classes
38
+ EMPTY_ARRAY
39
+ end
36
40
  end
37
41
  end
38
42
  end
@@ -68,6 +68,11 @@ module Avromatic
68
68
  end
69
69
  end
70
70
  end
71
+
72
+ def referenced_model_classes
73
+ # According to Avro's spec, keys can only be strings, so we can safely disregard #key_type here.
74
+ value_type.referenced_model_classes
75
+ end
71
76
  end
72
77
  end
73
78
  end
@@ -33,6 +33,10 @@ module Avromatic
33
33
  def serialize(_value, **)
34
34
  nil
35
35
  end
36
+
37
+ def referenced_model_classes
38
+ EMPTY_ARRAY
39
+ end
36
40
  end
37
41
  end
38
42
  end
@@ -51,6 +51,10 @@ module Avromatic
51
51
  strict ? value.avro_value_datum(validate: false) : value.value_attributes_for_avro(validate: false)
52
52
  end
53
53
  end
54
+
55
+ def referenced_model_classes
56
+ [record_class].freeze
57
+ end
54
58
  end
55
59
  end
56
60
  end
@@ -5,7 +5,7 @@ require 'avromatic/model/types/abstract_type'
5
5
  module Avromatic
6
6
  module Model
7
7
  module Types
8
- class StringType
8
+ class StringType < AbstractType
9
9
  VALUE_CLASSES = [::String].freeze
10
10
  INPUT_CLASSES = [::String, ::Symbol].freeze
11
11
 
@@ -42,6 +42,10 @@ module Avromatic
42
42
  def serialize(value, **)
43
43
  value
44
44
  end
45
+
46
+ def referenced_model_classes
47
+ EMPTY_ARRAY
48
+ end
45
49
  end
46
50
  end
47
51
  end
@@ -13,6 +13,10 @@ module Avromatic
13
13
  'timestamp-micros'
14
14
  end
15
15
 
16
+ def referenced_model_classes
17
+ EMPTY_ARRAY
18
+ end
19
+
16
20
  private
17
21
 
18
22
  def truncated?(value)
@@ -25,7 +29,6 @@ module Avromatic
25
29
  # of time zone.
26
30
  ::Time.at(input.to_i, input.usec)
27
31
  end
28
-
29
32
  end
30
33
  end
31
34
  end
@@ -13,6 +13,10 @@ module Avromatic
13
13
  'timestamp-millis'
14
14
  end
15
15
 
16
+ def referenced_model_classes
17
+ EMPTY_ARRAY
18
+ end
19
+
16
20
  private
17
21
 
18
22
  def truncated?(value)
@@ -25,7 +29,6 @@ module Avromatic
25
29
  # of time zone.
26
30
  ::Time.at(input.to_i, input.usec / 1000 * 1000)
27
31
  end
28
-
29
32
  end
30
33
  end
31
34
  end
@@ -67,6 +67,10 @@ module Avromatic
67
67
  hash
68
68
  end
69
69
 
70
+ def referenced_model_classes
71
+ member_types.flat_map(&:referenced_model_classes).tap(&:uniq!).freeze
72
+ end
73
+
70
74
  private
71
75
 
72
76
  def find_index(value)
@@ -29,7 +29,8 @@ module Avromatic
29
29
  @hash[name] = model
30
30
  end
31
31
 
32
- def registered?(fullname)
32
+ def registered?(fullname_or_model)
33
+ fullname = fullname_or_model.is_a?(String) ? fullname_or_model : model_fullname(fullname_or_model)
33
34
  @hash.key?(fullname)
34
35
  end
35
36
 
@@ -1,11 +1,16 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'uri'
3
4
  require 'webmock/rspec'
4
5
  require 'avro_schema_registry/test/fake_server'
5
6
 
6
7
  RSpec.configure do |config|
7
8
  config.before(:each) do
8
- WebMock.stub_request(:any, /^#{Avromatic.registry_url}/).to_rack(AvroSchemaRegistry::FakeServer)
9
+ # Strip the username/password from the URL so WebMock can match the URL
10
+ registry_uri = URI(Avromatic.registry_url)
11
+ registry_uri.userinfo = ''
12
+
13
+ WebMock.stub_request(:any, /^#{registry_uri}/).to_rack(AvroSchemaRegistry::FakeServer)
9
14
  AvroSchemaRegistry::FakeServer.clear
10
15
  Avromatic.build_messaging!
11
16
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Avromatic
4
- VERSION = '2.1.0'
4
+ VERSION = '2.2.4'
5
5
  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: 2.1.0
4
+ version: 2.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Salsify Engineering
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-02-15 00:00:00.000000000 Z
11
+ date: 2020-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '5.0'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '5.3'
22
+ version: '6.1'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '5.0'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '5.3'
32
+ version: '6.1'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: activesupport
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -39,7 +39,7 @@ dependencies:
39
39
  version: '5.0'
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
- version: '5.3'
42
+ version: '6.1'
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -49,7 +49,7 @@ dependencies:
49
49
  version: '5.0'
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
- version: '5.3'
52
+ version: '6.1'
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: avro
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -57,6 +57,9 @@ dependencies:
57
57
  - - ">="
58
58
  - !ruby/object:Gem::Version
59
59
  version: 1.7.7
60
+ - - "<"
61
+ - !ruby/object:Gem::Version
62
+ version: '1.11'
60
63
  type: :runtime
61
64
  prerelease: false
62
65
  version_requirements: !ruby/object:Gem::Requirement
@@ -64,6 +67,9 @@ dependencies:
64
67
  - - ">="
65
68
  - !ruby/object:Gem::Version
66
69
  version: 1.7.7
70
+ - - "<"
71
+ - !ruby/object:Gem::Version
72
+ version: '1.11'
67
73
  - !ruby/object:Gem::Dependency
68
74
  name: avro_schema_registry-client
69
75
  requirement: !ruby/object:Gem::Requirement
@@ -106,6 +112,20 @@ dependencies:
106
112
  - - ">="
107
113
  - !ruby/object:Gem::Version
108
114
  version: '0'
115
+ - !ruby/object:Gem::Dependency
116
+ name: appraisal
117
+ requirement: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - ">="
120
+ - !ruby/object:Gem::Version
121
+ version: '0'
122
+ type: :development
123
+ prerelease: false
124
+ version_requirements: !ruby/object:Gem::Requirement
125
+ requirements:
126
+ - - ">="
127
+ - !ruby/object:Gem::Version
128
+ version: '0'
109
129
  - !ruby/object:Gem::Dependency
110
130
  name: avro-builder
111
131
  requirement: !ruby/object:Gem::Requirement
@@ -134,6 +154,20 @@ dependencies:
134
154
  - - ">="
135
155
  - !ruby/object:Gem::Version
136
156
  version: '1.11'
157
+ - !ruby/object:Gem::Dependency
158
+ name: overcommit
159
+ requirement: !ruby/object:Gem::Requirement
160
+ requirements:
161
+ - - '='
162
+ - !ruby/object:Gem::Version
163
+ version: 0.35.0
164
+ type: :development
165
+ prerelease: false
166
+ version_requirements: !ruby/object:Gem::Requirement
167
+ requirements:
168
+ - - '='
169
+ - !ruby/object:Gem::Version
170
+ version: 0.35.0
137
171
  - !ruby/object:Gem::Dependency
138
172
  name: rake
139
173
  requirement: !ruby/object:Gem::Requirement
@@ -163,21 +197,21 @@ dependencies:
163
197
  - !ruby/object:Gem::Version
164
198
  version: '3.0'
165
199
  - !ruby/object:Gem::Dependency
166
- name: simplecov
200
+ name: salsify_rubocop
167
201
  requirement: !ruby/object:Gem::Requirement
168
202
  requirements:
169
- - - ">="
203
+ - - "~>"
170
204
  - !ruby/object:Gem::Version
171
- version: '0'
205
+ version: 0.52.1.1
172
206
  type: :development
173
207
  prerelease: false
174
208
  version_requirements: !ruby/object:Gem::Requirement
175
209
  requirements:
176
- - - ">="
210
+ - - "~>"
177
211
  - !ruby/object:Gem::Version
178
- version: '0'
212
+ version: 0.52.1.1
179
213
  - !ruby/object:Gem::Dependency
180
- name: webmock
214
+ name: simplecov
181
215
  requirement: !ruby/object:Gem::Requirement
182
216
  requirements:
183
217
  - - ">="
@@ -191,7 +225,7 @@ dependencies:
191
225
  - !ruby/object:Gem::Version
192
226
  version: '0'
193
227
  - !ruby/object:Gem::Dependency
194
- name: appraisal
228
+ name: webmock
195
229
  requirement: !ruby/object:Gem::Requirement
196
230
  requirements:
197
231
  - - ">="
@@ -204,34 +238,6 @@ dependencies:
204
238
  - - ">="
205
239
  - !ruby/object:Gem::Version
206
240
  version: '0'
207
- - !ruby/object:Gem::Dependency
208
- name: overcommit
209
- requirement: !ruby/object:Gem::Requirement
210
- requirements:
211
- - - '='
212
- - !ruby/object:Gem::Version
213
- version: 0.35.0
214
- type: :development
215
- prerelease: false
216
- version_requirements: !ruby/object:Gem::Requirement
217
- requirements:
218
- - - '='
219
- - !ruby/object:Gem::Version
220
- version: 0.35.0
221
- - !ruby/object:Gem::Dependency
222
- name: salsify_rubocop
223
- requirement: !ruby/object:Gem::Requirement
224
- requirements:
225
- - - "~>"
226
- - !ruby/object:Gem::Version
227
- version: 0.52.1.1
228
- type: :development
229
- prerelease: false
230
- version_requirements: !ruby/object:Gem::Requirement
231
- requirements:
232
- - - "~>"
233
- - !ruby/object:Gem::Version
234
- version: 0.52.1.1
235
241
  - !ruby/object:Gem::Dependency
236
242
  name: sinatra
237
243
  requirement: !ruby/object:Gem::Requirement
@@ -270,14 +276,13 @@ files:
270
276
  - bin/console
271
277
  - bin/setup
272
278
  - gemfiles/.bundle/config
273
- - gemfiles/avro_patches_0_3_4_rails5_1.gemfile
274
- - gemfiles/avro_patches_0_3_4_rails5_2.gemfile
275
- - gemfiles/avro_patches_5_0.gemfile
276
- - gemfiles/avro_patches_rails5_1.gemfile
279
+ - gemfiles/avro1_10_rails5_2.gemfile
280
+ - gemfiles/avro1_10_rails6_0.gemfile
281
+ - gemfiles/avro1_8_rails5_2.gemfile
282
+ - gemfiles/avro1_9_rails5_2.gemfile
283
+ - gemfiles/avro1_9_rails6_0.gemfile
277
284
  - gemfiles/avro_patches_rails5_2.gemfile
278
- - gemfiles/rails5_0.gemfile
279
- - gemfiles/rails5_1.gemfile
280
- - gemfiles/rails5_2.gemfile
285
+ - gemfiles/avro_patches_rails6_0.gemfile
281
286
  - lib/avromatic.rb
282
287
  - lib/avromatic/io.rb
283
288
  - lib/avromatic/io/datum_reader.rb
@@ -329,7 +334,7 @@ homepage: https://github.com/salsify/avromatic.git
329
334
  licenses:
330
335
  - MIT
331
336
  metadata: {}
332
- post_install_message:
337
+ post_install_message:
333
338
  rdoc_options: []
334
339
  require_paths:
335
340
  - lib
@@ -337,16 +342,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
337
342
  requirements:
338
343
  - - ">="
339
344
  - !ruby/object:Gem::Version
340
- version: '2.3'
345
+ version: '2.4'
341
346
  required_rubygems_version: !ruby/object:Gem::Requirement
342
347
  requirements:
343
348
  - - ">="
344
349
  - !ruby/object:Gem::Version
345
350
  version: '0'
346
351
  requirements: []
347
- rubyforge_project:
348
- rubygems_version: 2.7.7
349
- signing_key:
352
+ rubyforge_project:
353
+ rubygems_version: 2.7.6.2
354
+ signing_key:
350
355
  specification_version: 4
351
356
  summary: Generate Ruby models from Avro schemas
352
357
  test_files: []
@@ -1,9 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "avro-patches", "0.3.4"
6
- gem "activesupport", "~> 5.1.4"
7
- gem "activemodel", "~> 5.1.4"
8
-
9
- gemspec path: "../"
@@ -1,9 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "avro-patches", ">= 0.4.0"
6
- gem "activesupport", "~> 5.1.4"
7
- gem "activemodel", "~> 5.1.4"
8
-
9
- gemspec path: "../"