avro 1.8.2 → 1.10.1
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 +7 -0
- data/NOTICE +1 -1
- data/Rakefile +12 -15
- data/avro.gemspec +21 -21
- data/interop/test_interop.rb +13 -3
- data/lib/avro.rb +26 -3
- data/lib/avro/VERSION.txt +1 -0
- data/lib/avro/data_file.rb +25 -2
- data/lib/avro/io.rb +66 -84
- 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 +243 -74
- 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 +155 -7
- data/test/test_logical_types.rb +128 -0
- data/test/test_protocol.rb +37 -4
- data/test/test_schema.rb +592 -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 +28 -14
@@ -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.1
|
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-11-18 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: []
|
@@ -32,12 +32,16 @@ extra_rdoc_files:
|
|
32
32
|
- CHANGELOG
|
33
33
|
- LICENSE
|
34
34
|
- lib/avro.rb
|
35
|
+
- lib/avro/VERSION.txt
|
35
36
|
- lib/avro/data_file.rb
|
36
37
|
- lib/avro/io.rb
|
37
38
|
- lib/avro/ipc.rb
|
39
|
+
- lib/avro/logical_types.rb
|
38
40
|
- lib/avro/protocol.rb
|
39
41
|
- lib/avro/schema.rb
|
42
|
+
- lib/avro/schema_compatibility.rb
|
40
43
|
- lib/avro/schema_normalization.rb
|
44
|
+
- lib/avro/schema_validator.rb
|
41
45
|
files:
|
42
46
|
- CHANGELOG
|
43
47
|
- LICENSE
|
@@ -47,12 +51,16 @@ files:
|
|
47
51
|
- avro.gemspec
|
48
52
|
- interop/test_interop.rb
|
49
53
|
- lib/avro.rb
|
54
|
+
- lib/avro/VERSION.txt
|
50
55
|
- lib/avro/data_file.rb
|
51
56
|
- lib/avro/io.rb
|
52
57
|
- lib/avro/ipc.rb
|
58
|
+
- lib/avro/logical_types.rb
|
53
59
|
- lib/avro/protocol.rb
|
54
60
|
- lib/avro/schema.rb
|
61
|
+
- lib/avro/schema_compatibility.rb
|
55
62
|
- lib/avro/schema_normalization.rb
|
63
|
+
- lib/avro/schema_validator.rb
|
56
64
|
- test/case_finder.rb
|
57
65
|
- test/random_data.rb
|
58
66
|
- test/sample_ipc_client.rb
|
@@ -63,14 +71,17 @@ files:
|
|
63
71
|
- test/test_fingerprints.rb
|
64
72
|
- test/test_help.rb
|
65
73
|
- test/test_io.rb
|
74
|
+
- test/test_logical_types.rb
|
66
75
|
- test/test_protocol.rb
|
67
76
|
- test/test_schema.rb
|
77
|
+
- test/test_schema_compatibility.rb
|
68
78
|
- test/test_schema_normalization.rb
|
79
|
+
- test/test_schema_validator.rb
|
69
80
|
- test/test_socket_transport.rb
|
70
81
|
- test/tool.rb
|
71
|
-
homepage:
|
82
|
+
homepage: https://avro.apache.org/
|
72
83
|
licenses:
|
73
|
-
- Apache
|
84
|
+
- Apache-2.0
|
74
85
|
metadata: {}
|
75
86
|
post_install_message:
|
76
87
|
rdoc_options:
|
@@ -91,16 +102,19 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
102
|
version: '1.2'
|
92
103
|
requirements: []
|
93
104
|
rubyforge_project: avro
|
94
|
-
rubygems_version: 2.2.
|
105
|
+
rubygems_version: 2.5.2.1
|
95
106
|
signing_key:
|
96
107
|
specification_version: 4
|
97
108
|
summary: Apache Avro for Ruby
|
98
109
|
test_files:
|
99
|
-
- test/
|
100
|
-
- test/
|
101
|
-
- test/test_help.rb
|
110
|
+
- test/test_schema.rb
|
111
|
+
- test/test_socket_transport.rb
|
102
112
|
- test/test_io.rb
|
113
|
+
- test/test_logical_types.rb
|
114
|
+
- test/test_help.rb
|
115
|
+
- test/test_datafile.rb
|
103
116
|
- test/test_protocol.rb
|
104
|
-
- test/
|
117
|
+
- test/test_schema_validator.rb
|
118
|
+
- test/test_schema_compatibility.rb
|
105
119
|
- test/test_schema_normalization.rb
|
106
|
-
- test/
|
120
|
+
- test/test_fingerprints.rb
|