avromatic 0.7.0 → 0.7.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: 083d811c8de4c4746e5dc31886bdcc8ddde6ca67
4
- data.tar.gz: 87e6b68ba1d49b273ed7c8aee7c5b34948e1f0bf
3
+ metadata.gz: b15b3dee8ab3f44ac0626a92ad4836acccf06910
4
+ data.tar.gz: a6a816bf12c63afac2b65e4357debcb019cd1774
5
5
  SHA512:
6
- metadata.gz: 14502ce50677fd175ecb8d0b1658d5b7c656fa32228c0c438436c08244a3de87d907a0c34d3eee40350d4f02b75524b14109f03b88a8a6949b823db3a3675b79
7
- data.tar.gz: 64d9d3eb34f6ea451ce24f2335e3f299f77cfb1ed1ecc9592c4def52a08225fdedc69c1d65547177833e30f33bb6a749d56e76b8aea8558f62ea2057b44c6ceb
6
+ metadata.gz: d258c7746c4a1aec29e1947220a7e6fd0b8e926b80989cb01bcbed43a8561ece1607c655945eef18cc90a2c24301bcfb96ba1466b2351215c2d7c51220799e0c
7
+ data.tar.gz: c2983025ecd2f2b1e2dc7b918d2907162eb26ae74baf03bb51d4772903ff91d9d51c41c8ff77db132228c0b4f0a67cd32f61e76fe3243642bf3c86d8dc4cbbff
data/.rubocop.yml CHANGED
@@ -1,2 +1,6 @@
1
1
  inherit_gem:
2
2
  salsify_rubocop: conf/rubocop.yml
3
+
4
+ AllCops:
5
+ TargetRubyVersion: 2.2
6
+
data/.travis.yml CHANGED
@@ -11,3 +11,6 @@ matrix:
11
11
  gemfile: gemfiles/rails4_2.gemfile
12
12
  - rvm: 2.3.1
13
13
  gemfile: gemfiles/rails4_1.gemfile
14
+ script:
15
+ - bundle exec rubocop
16
+ - bundle exec rspec
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # avromatic changelog
2
2
 
3
+ ## v0.7.1
4
+ - Raise a more descriptive error when attempting to generate a model for a
5
+ non-record Avro type.
6
+
3
7
  ## v0.7.0
4
8
  - Add RSpec `FakeSchemaRegistryServer` test helper.
5
9
 
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # Avromatic
2
2
 
3
3
  [![Build Status](https://travis-ci.org/salsify/avromatic.svg?branch=master)][travis]
4
+ [![Gem Version](https://badge.fury.io/rb/avromatic.svg)](https://badge.fury.io/rb/avromatic)
4
5
 
5
6
  [travis]: http://travis-ci.org/salsify/avromatic
6
7
 
data/avromatic.gemspec CHANGED
@@ -33,6 +33,6 @@ Gem::Specification.new do |spec|
33
33
  spec.add_development_dependency 'avro-builder', '>= 0.7.0'
34
34
  # For FakeSchemaRegistryServer
35
35
  spec.add_development_dependency 'sinatra'
36
- spec.add_development_dependency 'salsify_rubocop', '~> 0.40.1'
36
+ spec.add_development_dependency 'salsify_rubocop', '~> 0.42.0'
37
37
  spec.add_development_dependency 'overcommit'
38
38
  end
@@ -51,6 +51,10 @@ module Avromatic
51
51
  end
52
52
 
53
53
  def define_avro_attributes(schema)
54
+ if schema.type_sym != :record
55
+ raise "Unsupported schema type '#{schema.type_sym}', only 'record' schemas are supported."
56
+ end
57
+
54
58
  schema.fields.each do |field|
55
59
  field_class = avro_field_class(field.type)
56
60
 
@@ -1,3 +1,3 @@
1
1
  module Avromatic
2
- VERSION = '0.7.0'.freeze
2
+ VERSION = '0.7.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.7.0
4
+ version: 0.7.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: 2016-06-15 00:00:00.000000000 Z
11
+ date: 2016-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avro
@@ -184,14 +184,14 @@ dependencies:
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: 0.40.1
187
+ version: 0.42.0
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
- version: 0.40.1
194
+ version: 0.42.0
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: overcommit
197
197
  requirement: !ruby/object:Gem::Requirement
@@ -266,7 +266,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
266
266
  version: '0'
267
267
  requirements: []
268
268
  rubyforge_project:
269
- rubygems_version: 2.5.1
269
+ rubygems_version: 2.6.6
270
270
  signing_key:
271
271
  specification_version: 4
272
272
  summary: Generate Ruby models from Avro schemas