rimless 0.2.1 → 0.3.0
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/lib/rimless/avro_utils.rb +6 -6
- data/lib/rimless/version.rb +1 -1
- data/rimless.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d97aaf1dd758a38f0537d4d2419052241412cba8f7ff45c30d40d5a5254a6e3
|
4
|
+
data.tar.gz: 483c104c176c020d79bec4347789be3d6558f21777571a36ffe5956813a75dff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: deb7b05ed932b8dee372ecf9812cff38bd851e8d82cad80d31615278d182c0d4fdc258dc1e974f55d3330a2696ac803faf95156c54f7c5c8948eecd9ef15c50a
|
7
|
+
data.tar.gz: 8c3191a6e4e15240a72d36511143b775dce8602c375727defca0c2e11d6c56b6df7471a3ba2d70f95a5dc23e2eefbddfe74414c651904e7fd1fcf5b9dc2d9baa
|
data/CHANGELOG.md
CHANGED
data/lib/rimless/avro_utils.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
module Rimless
|
4
|
-
# Due to dynamic
|
4
|
+
# Due to dynamic constrains on the Apache Avro schemas we need to compile our
|
5
5
|
# schema templates to actual ready-to-consume schemas. The namespace part of
|
6
6
|
# the schemas and cross-references to other schemas must be rendered
|
7
7
|
# according to the dynamic namespace prefix which reflects the application
|
8
|
-
# environment.
|
8
|
+
# environment. Unfortunately we need to mess around with actual files to
|
9
9
|
# support the Avro and AvroTurf gems.
|
10
10
|
class AvroUtils
|
11
11
|
attr_reader :namespace, :env
|
@@ -50,12 +50,12 @@ module Rimless
|
|
50
50
|
# rubocop:disable Security/JSONLoad because we wrote the file contents
|
51
51
|
def validate_file(dest)
|
52
52
|
JSON.load(dest)
|
53
|
-
rescue JSON::ParserError =>
|
53
|
+
rescue JSON::ParserError => e
|
54
54
|
path = File.expand_path(dest.is_a?(File) ? dest.path : dest.to_s)
|
55
55
|
prefix = "Invalid JSON detected: #{path}"
|
56
|
-
Rimless.logger.fatal("#{prefix}\n#{
|
57
|
-
|
58
|
-
raise
|
56
|
+
Rimless.logger.fatal("#{prefix}\n#{e.message}")
|
57
|
+
e.message.prepend("#{prefix} - ")
|
58
|
+
raise e
|
59
59
|
end
|
60
60
|
# rubocop:enable Security/JSONLoad
|
61
61
|
|
data/lib/rimless/version.rb
CHANGED
data/rimless.gemspec
CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.require_paths = ['lib']
|
25
25
|
|
26
26
|
spec.add_runtime_dependency 'activesupport', '>= 4.2.0'
|
27
|
-
spec.add_runtime_dependency 'avro_turf', '~> 0.
|
27
|
+
spec.add_runtime_dependency 'avro_turf', '~> 0.11.0'
|
28
28
|
spec.add_runtime_dependency 'sinatra'
|
29
29
|
spec.add_runtime_dependency 'sparsify', '~> 1.1'
|
30
30
|
spec.add_runtime_dependency 'waterdrop', '~> 1.2'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rimless
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hermann Mayer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08
|
11
|
+
date: 2019-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.11.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.11.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: sinatra
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -376,7 +376,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
376
376
|
- !ruby/object:Gem::Version
|
377
377
|
version: '0'
|
378
378
|
requirements: []
|
379
|
-
rubygems_version: 3.0.
|
379
|
+
rubygems_version: 3.0.6
|
380
380
|
signing_key:
|
381
381
|
specification_version: 4
|
382
382
|
summary: A bundle of opinionated Apache Kafka / Confluent Schema Registry helpers.
|