avromatic 0.29.1 → 0.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: d304090333bddba94c563fab128da411a9d12ac7
4
- data.tar.gz: bb2c63ab1d1f2fddc36bec7be457667062c38570
2
+ SHA256:
3
+ metadata.gz: 6c6dcc8fbca571b5d0dfff98417d67f71731f6dbbef64034bab0b6717565239e
4
+ data.tar.gz: 3ac538e0dd288f3a8b10115ef3fbaa59e86da2b1390035c4ff646b1cc32653d5
5
5
  SHA512:
6
- metadata.gz: 3cc8323bc1433b7dd828f22fef5bfdf4b2b958d07debf626a3c5e3458dbf935846b8c2934d5d1a5de8e5c2e354a5fae58a2681aed754de3657da99224b7cab11
7
- data.tar.gz: c3e186eeea61083fc0ee0538b9f4df760c74a45de72eb38c684e176495a7902854d66680e490deb9bae97070ece2a5139e26bb6571d14e597bef342604acec68
6
+ metadata.gz: 0e1996635fbb793bd9217c29af8b40833f488544db3b9036ec20156c7e2268b099605798520474b43bf56a2f93fee337e0704a62437f0bd1945b18fa2c4b0f84
7
+ data.tar.gz: 9463cea8645f309183281998e89ef1d6a741ac2d43597687012f162251830a7282fa99f4c1c0a73d1cada5cfb52c51d36f0706826d1ed5d7bc1f2305bc6398c8
data/.travis.yml CHANGED
@@ -1,8 +1,9 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.4.1
4
- - 2.3.4
5
- - 2.2.7
3
+ - 2.5.0
4
+ - 2.4.3
5
+ - 2.3.5
6
+ - 2.2.8
6
7
  before_script:
7
8
  - bundle exec appraisal install --jobs=3
8
9
  script:
data/Appraisals CHANGED
@@ -12,14 +12,14 @@ end
12
12
 
13
13
  appraise 'rails5_0' do
14
14
  gem 'avro', '1.8.2'
15
- gem 'activesupport', '~> 5.0.5'
16
- gem 'activemodel', '~> 5.0.5'
15
+ gem 'activesupport', '~> 5.0.6'
16
+ gem 'activemodel', '~> 5.0.6'
17
17
  end
18
18
 
19
19
  appraise 'rails5_1' do
20
20
  gem 'avro', '1.8.2'
21
- gem 'activesupport', '~> 5.1.2'
22
- gem 'activemodel', '~> 5.1.2'
21
+ gem 'activesupport', '~> 5.1.4'
22
+ gem 'activemodel', '~> 5.1.4'
23
23
  end
24
24
 
25
25
  appraise 'avro-patches-4_1' do
@@ -30,12 +30,12 @@ end
30
30
 
31
31
  appraise 'avro-patches-5_0' do
32
32
  gem 'avro-patches'
33
- gem 'activesupport', '~> 5.0.5'
34
- gem 'activemodel', '~> 5.0.5'
33
+ gem 'activesupport', '~> 5.0.6'
34
+ gem 'activemodel', '~> 5.0.6'
35
35
  end
36
36
 
37
37
  appraise 'avro-patches-5_1' do
38
38
  gem 'avro-patches'
39
- gem 'activesupport', '~> 5.1.2'
40
- gem 'activemodel', '~> 5.1.2'
39
+ gem 'activesupport', '~> 5.1.4'
40
+ gem 'activemodel', '~> 5.1.4'
41
41
  end
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # avromatic changelog
2
2
 
3
+ ## v0.30.0
4
+ - Add `Avromatic::Model::MessageDecoder#model` method to return the Avromatic
5
+ model class for a message.
6
+
3
7
  ## v0.29.1
4
8
  - Add `Avromatic.build_messaging!` to `avromatic/rspec`.
5
9
 
@@ -3,7 +3,7 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "avro-patches"
6
- gem "activesupport", "~> 5.0.5"
7
- gem "activemodel", "~> 5.0.5"
6
+ gem "activesupport", "~> 5.0.6"
7
+ gem "activemodel", "~> 5.0.6"
8
8
 
9
9
  gemspec path: "../"
@@ -3,7 +3,7 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "avro-patches"
6
- gem "activesupport", "~> 5.1.2"
7
- gem "activemodel", "~> 5.1.2"
6
+ gem "activesupport", "~> 5.1.4"
7
+ gem "activemodel", "~> 5.1.4"
8
8
 
9
9
  gemspec path: "../"
@@ -3,7 +3,7 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "avro", "1.8.2"
6
- gem "activesupport", "~> 5.0.5"
7
- gem "activemodel", "~> 5.0.5"
6
+ gem "activesupport", "~> 5.0.6"
7
+ gem "activemodel", "~> 5.0.6"
8
8
 
9
9
  gemspec path: "../"
@@ -3,7 +3,7 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "avro", "1.8.2"
6
- gem "activesupport", "~> 5.1.2"
7
- gem "activemodel", "~> 5.1.2"
6
+ gem "activesupport", "~> 5.1.4"
7
+ gem "activemodel", "~> 5.1.4"
8
8
 
9
9
  gemspec path: "../"
@@ -57,6 +57,11 @@ module Avromatic
57
57
  model.avro_message_attributes(message_key, message_value)
58
58
  end
59
59
 
60
+ # @return [Avromatic model class]
61
+ def model(*args)
62
+ extract_decode_args(*args).first
63
+ end
64
+
60
65
  private
61
66
 
62
67
  attr_reader :schema_names_by_id, :model_map, :schema_registry
@@ -1,3 +1,3 @@
1
1
  module Avromatic
2
- VERSION = '0.29.1'.freeze
2
+ VERSION = '0.30.0'.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.1
4
+ version: 0.30.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-12-28 00:00:00.000000000 Z
11
+ date: 2018-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avro
@@ -330,7 +330,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
330
330
  version: '0'
331
331
  requirements: []
332
332
  rubyforge_project:
333
- rubygems_version: 2.6.13
333
+ rubygems_version: 2.7.3
334
334
  signing_key:
335
335
  specification_version: 4
336
336
  summary: Generate Ruby models from Avro schemas