avro 1.8.1 → 1.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +2 -2
- data/Manifest +6 -0
- data/NOTICE +1 -1
- data/Rakefile +11 -15
- data/avro.gemspec +21 -21
- data/interop/test_interop.rb +13 -3
- data/lib/avro.rb +25 -2
- data/lib/avro/data_file.rb +43 -3
- data/lib/avro/io.rb +66 -80
- data/lib/avro/ipc.rb +11 -11
- data/lib/avro/logical_types.rb +90 -0
- data/lib/avro/protocol.rb +12 -8
- data/lib/avro/schema.rb +244 -75
- data/lib/avro/schema_compatibility.rb +175 -0
- data/lib/avro/schema_normalization.rb +1 -1
- data/lib/avro/schema_validator.rb +242 -0
- data/test/case_finder.rb +9 -4
- data/test/random_data.rb +24 -4
- data/test/sample_ipc_client.rb +1 -1
- data/test/sample_ipc_http_client.rb +1 -1
- data/test/sample_ipc_http_server.rb +1 -1
- data/test/sample_ipc_server.rb +1 -1
- data/test/test_datafile.rb +17 -4
- data/test/test_fingerprints.rb +20 -1
- data/test/test_help.rb +1 -1
- data/test/test_io.rb +187 -7
- data/test/test_logical_types.rb +128 -0
- data/test/test_protocol.rb +37 -4
- data/test/test_schema.rb +609 -28
- data/test/test_schema_compatibility.rb +543 -0
- data/test/test_schema_normalization.rb +2 -1
- data/test/test_schema_validator.rb +554 -0
- data/test/test_socket_transport.rb +1 -1
- data/test/tool.rb +4 -5
- metadata +25 -13
@@ -6,7 +6,7 @@
|
|
6
6
|
# "License"); you may not use this file except in compliance
|
7
7
|
# with the License. You may obtain a copy of the License at
|
8
8
|
#
|
9
|
-
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
10
|
#
|
11
11
|
# Unless required by applicable law or agreed to in writing, software
|
12
12
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
data/test/tool.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
# "License"); you may not use this file except in compliance
|
7
7
|
# with the License. You may obtain a copy of the License at
|
8
8
|
#
|
9
|
-
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
10
|
#
|
11
11
|
# Unless required by applicable law or agreed to in writing, software
|
12
12
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
@@ -27,7 +27,7 @@ class GenericResponder < Avro::IPC::Responder
|
|
27
27
|
@datum = datum
|
28
28
|
end
|
29
29
|
|
30
|
-
def call(message,
|
30
|
+
def call(message, _request)
|
31
31
|
if message.name == @msg
|
32
32
|
STDERR.puts "Message: #{message.name} Datum: #{@datum.inspect}"
|
33
33
|
@datum
|
@@ -42,7 +42,6 @@ class GenericHandler < WEBrick::HTTPServlet::AbstractServlet
|
|
42
42
|
writer = Avro::IPC::FramedWriter.new(StringIO.new)
|
43
43
|
writer.write_framed_message(unframed_resp)
|
44
44
|
resp.body = writer.to_s
|
45
|
-
@server.stop
|
46
45
|
end
|
47
46
|
end
|
48
47
|
|
@@ -102,7 +101,7 @@ def main
|
|
102
101
|
case ARGV[4]
|
103
102
|
when "-file"
|
104
103
|
Avro::DataFile.open(ARGV[5]) {|f|
|
105
|
-
f.each{|
|
104
|
+
f.each{|e| datum = e; break }
|
106
105
|
}
|
107
106
|
when "-data"
|
108
107
|
puts "JSON Decoder not yet implemented."
|
@@ -125,7 +124,7 @@ def main
|
|
125
124
|
if ARGV.size > 4
|
126
125
|
case ARGV[4]
|
127
126
|
when "-file"
|
128
|
-
Avro::DataFile.open(ARGV[5]){|f| f.each{|
|
127
|
+
Avro::DataFile.open(ARGV[5]){|f| f.each{|e| datum = e; break } }
|
129
128
|
when "-data"
|
130
129
|
puts "JSON Decoder not yet implemented"
|
131
130
|
return 1
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: avro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Apache Software Foundation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '1'
|
27
27
|
description: Avro is a data serialization and RPC format
|
28
28
|
email: dev@avro.apache.org
|
29
29
|
executables: []
|
@@ -35,9 +35,12 @@ extra_rdoc_files:
|
|
35
35
|
- lib/avro/data_file.rb
|
36
36
|
- lib/avro/io.rb
|
37
37
|
- lib/avro/ipc.rb
|
38
|
+
- lib/avro/logical_types.rb
|
38
39
|
- lib/avro/protocol.rb
|
39
40
|
- lib/avro/schema.rb
|
41
|
+
- lib/avro/schema_compatibility.rb
|
40
42
|
- lib/avro/schema_normalization.rb
|
43
|
+
- lib/avro/schema_validator.rb
|
41
44
|
files:
|
42
45
|
- CHANGELOG
|
43
46
|
- LICENSE
|
@@ -50,9 +53,12 @@ files:
|
|
50
53
|
- lib/avro/data_file.rb
|
51
54
|
- lib/avro/io.rb
|
52
55
|
- lib/avro/ipc.rb
|
56
|
+
- lib/avro/logical_types.rb
|
53
57
|
- lib/avro/protocol.rb
|
54
58
|
- lib/avro/schema.rb
|
59
|
+
- lib/avro/schema_compatibility.rb
|
55
60
|
- lib/avro/schema_normalization.rb
|
61
|
+
- lib/avro/schema_validator.rb
|
56
62
|
- test/case_finder.rb
|
57
63
|
- test/random_data.rb
|
58
64
|
- test/sample_ipc_client.rb
|
@@ -63,14 +69,17 @@ files:
|
|
63
69
|
- test/test_fingerprints.rb
|
64
70
|
- test/test_help.rb
|
65
71
|
- test/test_io.rb
|
72
|
+
- test/test_logical_types.rb
|
66
73
|
- test/test_protocol.rb
|
67
74
|
- test/test_schema.rb
|
75
|
+
- test/test_schema_compatibility.rb
|
68
76
|
- test/test_schema_normalization.rb
|
77
|
+
- test/test_schema_validator.rb
|
69
78
|
- test/test_socket_transport.rb
|
70
79
|
- test/tool.rb
|
71
|
-
homepage:
|
80
|
+
homepage: https://avro.apache.org/
|
72
81
|
licenses:
|
73
|
-
- Apache
|
82
|
+
- Apache-2.0
|
74
83
|
metadata: {}
|
75
84
|
post_install_message:
|
76
85
|
rdoc_options:
|
@@ -91,16 +100,19 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
100
|
version: '1.2'
|
92
101
|
requirements: []
|
93
102
|
rubyforge_project: avro
|
94
|
-
rubygems_version: 2.2.
|
103
|
+
rubygems_version: 2.5.2.1
|
95
104
|
signing_key:
|
96
105
|
specification_version: 4
|
97
106
|
summary: Apache Avro for Ruby
|
98
107
|
test_files:
|
99
|
-
- test/
|
108
|
+
- test/test_help.rb
|
100
109
|
- test/test_io.rb
|
101
110
|
- test/test_socket_transport.rb
|
102
|
-
- test/test_schema.rb
|
103
111
|
- test/test_fingerprints.rb
|
104
|
-
- test/
|
105
|
-
- test/
|
112
|
+
- test/test_schema.rb
|
113
|
+
- test/test_schema_compatibility.rb
|
114
|
+
- test/test_schema_validator.rb
|
115
|
+
- test/test_schema_normalization.rb
|
106
116
|
- test/test_protocol.rb
|
117
|
+
- test/test_datafile.rb
|
118
|
+
- test/test_logical_types.rb
|