avromatic 4.3.0 → 5.1.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
  SHA256:
3
- metadata.gz: '0018c670f7a1c729e244281b731633db6c50a580171c61173aab1f68c34071ba'
4
- data.tar.gz: e61f2cedbbe52a4dd787779920c17b94b8366a98ee1708b06967f084a8df96eb
3
+ metadata.gz: 820d2553430c52995c62ce458200cabd4bdb16ea386f49ad9eb2a0c25b4d36cc
4
+ data.tar.gz: 535ae34e72806819c819ab5c9801e402ca8864a70ca0b87ae3bfc5d90273633d
5
5
  SHA512:
6
- metadata.gz: 18272c67e78be2702842b7c2f7153400cfeeca908f0404f452222bd8112760a5b4f5052f66e757fb1c64fea54536897801acb1316d05c262d1516ccafd30262e
7
- data.tar.gz: dff850adf8388d2903873555c115c0672eaa3c91ee4a82452c5c99b50085d4f85adae2c4f38dbe45105c7194e61fb8b0e93ffaa6f4fb9ed65190210a6227b268
6
+ metadata.gz: 5d6fe4c63c5c6476e678febd5688688825abb819ef5374d45f79ede4a75739ebb3066ae6970860ac359080ce661d949ecd17b086e7386fbbbadb252d79c1fcec
7
+ data.tar.gz: 2cb734de5ba2ab060246c7a619ad8a82b440dc85b31f843db30aaff8860dd740263a6b98d2449e8b315d02aa0cf9896249c6a6329482c5ef70532dea72af98ed
@@ -51,8 +51,7 @@ module Avromatic
51
51
  )
52
52
  elsif schema.respond_to?(:logical_type) && SINGLETON_TYPES.include?(schema.logical_type)
53
53
  SINGLETON_TYPES.fetch(schema.logical_type)
54
- elsif schema.respond_to?(:logical_type) && schema.logical_type == 'decimal' &&
55
- Avromatic.allow_decimal_logical_type?
54
+ elsif schema.respond_to?(:logical_type) && schema.logical_type == 'decimal'
56
55
  Avromatic::Model::Types::DecimalType.new(precision: schema.precision, scale: schema.scale || 0)
57
56
  elsif SINGLETON_TYPES.include?(schema.type)
58
57
  SINGLETON_TYPES.fetch(schema.type)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Avromatic
4
- VERSION = '4.3.0'
4
+ VERSION = '5.1.0'
5
5
  end
data/lib/avromatic.rb CHANGED
@@ -90,10 +90,6 @@ module Avromatic
90
90
  @eager_load_model_names&.each { |model_name| model_name.constantize.register! }
91
91
  end
92
92
  private_class_method :eager_load_models!
93
-
94
- def self.allow_decimal_logical_type?
95
- ::Gem::Requirement.new('>= 1.11.0').satisfied_by?(::Gem::Version.new(::Avro::VERSION))
96
- end
97
93
  end
98
94
 
99
95
  require 'avromatic/railtie' if defined?(Rails)
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: 4.3.0
4
+ version: 5.1.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: 2023-03-09 00:00:00.000000000 Z
11
+ date: 2024-09-11 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.2'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '7.1'
22
+ version: '8'
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.2'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '7.1'
32
+ version: '8'
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.2'
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
- version: '7.1'
42
+ version: '8'
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -49,14 +49,14 @@ dependencies:
49
49
  version: '5.2'
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
- version: '7.1'
52
+ version: '8'
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: avro
55
55
  requirement: !ruby/object:Gem::Requirement
56
56
  requirements:
57
57
  - - ">="
58
58
  - !ruby/object:Gem::Version
59
- version: 1.10.0
59
+ version: 1.11.0
60
60
  - - "<"
61
61
  - !ruby/object:Gem::Version
62
62
  version: '1.12'
@@ -66,7 +66,7 @@ dependencies:
66
66
  requirements:
67
67
  - - ">="
68
68
  - !ruby/object:Gem::Version
69
- version: 1.10.0
69
+ version: 1.11.0
70
70
  - - "<"
71
71
  - !ruby/object:Gem::Version
72
72
  version: '1.12'