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 +4 -4
- data/.rubocop.yml +4 -0
- data/.travis.yml +3 -0
- data/CHANGELOG.md +4 -0
- data/README.md +1 -0
- data/avromatic.gemspec +1 -1
- data/lib/avromatic/model/attributes.rb +4 -0
- data/lib/avromatic/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b15b3dee8ab3f44ac0626a92ad4836acccf06910
|
4
|
+
data.tar.gz: a6a816bf12c63afac2b65e4357debcb019cd1774
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d258c7746c4a1aec29e1947220a7e6fd0b8e926b80989cb01bcbed43a8561ece1607c655945eef18cc90a2c24301bcfb96ba1466b2351215c2d7c51220799e0c
|
7
|
+
data.tar.gz: c2983025ecd2f2b1e2dc7b918d2907162eb26ae74baf03bb51d4772903ff91d9d51c41c8ff77db132228c0b4f0a67cd32f61e76fe3243642bf3c86d8dc4cbbff
|
data/.rubocop.yml
CHANGED
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
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.
|
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
|
|
data/lib/avromatic/version.rb
CHANGED
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.
|
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-
|
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.
|
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.
|
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.
|
269
|
+
rubygems_version: 2.6.6
|
270
270
|
signing_key:
|
271
271
|
specification_version: 4
|
272
272
|
summary: Generate Ruby models from Avro schemas
|