avro-builder 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/avro-builder.gemspec +0 -1
- data/lib/avro/builder/dsl.rb +2 -2
- data/lib/avro/builder/version.rb +1 -1
- metadata +3 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2223e0a5e244cc9dc9e57be463e120b747fbaa9f3c9dc22bf8f7a7da43c2d4b9
|
4
|
+
data.tar.gz: 9e0129b8c9f1f0fd142beabe1dfda1f2fadc3de3e0105f4770995f4f15e323b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 591e9422ed7a64adaf2969a9fd069f805398d8edefd64545900ef9e5bfb6cab4dcc1c41d1655886d83026bedc0bd56c914a31f495b732788d9f043d7f397fba0
|
7
|
+
data.tar.gz: 0d1da2ec6ae6a024a59035150f9423663a1550de37701ff204b5a8812ac221332d4ffa90d5ddb48a9ace7d16166d2e4bb9835e8d9941bda0934c4441ec82f835
|
data/CHANGELOG.md
CHANGED
data/avro-builder.gemspec
CHANGED
@@ -23,7 +23,6 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.required_ruby_version = '>= 2.6'
|
24
24
|
|
25
25
|
spec.add_runtime_dependency 'avro', '>= 1.9.0', '< 1.11'
|
26
|
-
spec.add_runtime_dependency 'multi_json'
|
27
26
|
|
28
27
|
spec.add_development_dependency 'appraisal'
|
29
28
|
spec.add_development_dependency 'bundler', '~> 2.0'
|
data/lib/avro/builder/dsl.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'avro'
|
4
|
-
require '
|
4
|
+
require 'json'
|
5
5
|
require 'avro/builder/errors'
|
6
6
|
require 'avro/builder/dsl_options'
|
7
7
|
require 'avro/builder/dsl_attributes'
|
@@ -78,7 +78,7 @@ module Avro
|
|
78
78
|
# Return the last schema object processed as an Avro JSON schema
|
79
79
|
def to_json(validate: true, pretty: true)
|
80
80
|
hash = to_h
|
81
|
-
|
81
|
+
(pretty ? JSON.pretty_generate(hash) : hash.to_json).tap do |json|
|
82
82
|
# Uncomment the next line to debug:
|
83
83
|
# puts json
|
84
84
|
# Parse the schema to validate before returning
|
data/lib/avro/builder/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: avro-builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.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: 2021-02-
|
11
|
+
date: 2021-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: avro
|
@@ -30,20 +30,6 @@ dependencies:
|
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '1.11'
|
33
|
-
- !ruby/object:Gem::Dependency
|
34
|
-
name: multi_json
|
35
|
-
requirement: !ruby/object:Gem::Requirement
|
36
|
-
requirements:
|
37
|
-
- - ">="
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '0'
|
40
|
-
type: :runtime
|
41
|
-
prerelease: false
|
42
|
-
version_requirements: !ruby/object:Gem::Requirement
|
43
|
-
requirements:
|
44
|
-
- - ">="
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version: '0'
|
47
33
|
- !ruby/object:Gem::Dependency
|
48
34
|
name: appraisal
|
49
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -261,7 +247,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
261
247
|
- !ruby/object:Gem::Version
|
262
248
|
version: '0'
|
263
249
|
requirements: []
|
264
|
-
rubygems_version: 3.0.
|
250
|
+
rubygems_version: 3.0.8
|
265
251
|
signing_key:
|
266
252
|
specification_version: 4
|
267
253
|
summary: Ruby DSL to create Avro schemas
|