protobuf 1.4.2 → 2.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/Rakefile +7 -7
- data/bin/rpc_server +2 -188
- data/bin/rprotoc +44 -38
- data/examples/addressbook.pb.rb +2 -2
- data/ext/Makefile +11 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/code_generator.h +142 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/command_line_interface.h +318 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_enum.h +99 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_enum_field.h +103 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_extension.h +85 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_field.h +167 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_file.h +98 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_generator.h +72 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_helpers.h +159 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_message.h +170 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_message_field.h +102 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_primitive_field.h +103 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_service.h +118 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_string_field.h +104 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_test_bad_identifiers.pb.h +2721 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/importer.h +303 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_enum.h +84 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_enum_field.h +121 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_extension.h +77 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_field.h +108 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_file.h +101 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_generator.h +72 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_helpers.h +213 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_message.h +109 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_message_field.h +134 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_primitive_field.h +121 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_service.h +113 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_string_field.h +120 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/mock_code_generator.h +113 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/package_info.h +64 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/parser.h +434 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/plugin.h +73 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/plugin.pb.h +790 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/python/python_generator.h +156 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/subprocess.h +108 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/compiler/zip_writer.h +93 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/descriptor.h +1367 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/descriptor.pb.h +5223 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/descriptor_database.h +366 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/dynamic_message.h +136 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/extension_set.h +904 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/generated_message_reflection.h +424 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/generated_message_util.h +82 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/io/coded_stream.h +1102 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/io/coded_stream_inl.h +64 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/io/gzip_stream.h +207 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/io/package_info.h +54 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/io/printer.h +136 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/io/tokenizer.h +313 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/io/zero_copy_stream.h +238 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/io/zero_copy_stream_impl.h +357 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/io/zero_copy_stream_impl_lite.h +340 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/message.h +692 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/message_lite.h +239 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/package_info.h +64 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/reflection_ops.h +80 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/repeated_field.h +1295 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/service.h +291 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/stubs/common.h +1211 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/stubs/hash.h +220 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/stubs/map-util.h +119 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/stubs/once.h +123 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/stubs/stl_util-inl.h +121 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/stubs/strutil.h +457 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/stubs/substitute.h +170 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/test_util.h +174 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/test_util_lite.h +101 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/testing/file.h +83 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/testing/googletest.h +98 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/text_format.h +285 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/unittest.pb.h +11915 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/unittest_custom_options.pb.h +2895 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/unittest_embed_optimize_for.pb.h +211 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/unittest_empty.pb.h +56 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/unittest_import.pb.h +188 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/unittest_import_lite.pb.h +151 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/unittest_lite.pb.h +4752 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/unittest_lite_imports_nonlite.pb.h +150 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/unittest_mset.pb.h +816 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/unittest_no_generic_services.pb.h +197 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/unittest_optimize_for.pb.h +403 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/unknown_field_set.h +268 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/wire_format.h +304 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/wire_format_lite.h +620 -0
- data/ext/protobuf-2.4.1/src/google/protobuf/wire_format_lite_inl.h +774 -0
- data/ext/ruby_generator/RubyGenerator.cpp +435 -0
- data/ext/ruby_generator/RubyGenerator.h +180 -0
- data/ext/ruby_generator/extconf.rb +24 -0
- data/lib/protobuf.rb +55 -33
- data/lib/protobuf/cli.rb +176 -0
- data/lib/protobuf/common/logger.rb +11 -11
- data/lib/protobuf/{message/enum.rb → enum.rb} +0 -10
- data/lib/protobuf/evented.rb +22 -0
- data/lib/protobuf/field.rb +57 -0
- data/lib/protobuf/field/base_field.rb +210 -0
- data/lib/protobuf/field/bool_field.rb +24 -0
- data/lib/protobuf/field/bytes_field.rb +38 -0
- data/lib/protobuf/field/double_field.rb +19 -0
- data/lib/protobuf/field/enum_field.rb +58 -0
- data/lib/protobuf/field/extension_fields.rb +24 -0
- data/lib/protobuf/field/field_array.rb +55 -0
- data/lib/protobuf/field/fixed32_field.rb +19 -0
- data/lib/protobuf/field/fixed64_field.rb +22 -0
- data/lib/protobuf/field/float_field.rb +29 -0
- data/lib/protobuf/field/int32_field.rb +10 -0
- data/lib/protobuf/field/int64_field.rb +10 -0
- data/lib/protobuf/field/integer_field.rb +19 -0
- data/lib/protobuf/field/message_field.rb +51 -0
- data/lib/protobuf/field/sfixed32_field.rb +21 -0
- data/lib/protobuf/field/sfixed64_field.rb +24 -0
- data/lib/protobuf/field/signed_integer_field.rb +23 -0
- data/lib/protobuf/field/sint32_field.rb +10 -0
- data/lib/protobuf/field/sint64_field.rb +10 -0
- data/lib/protobuf/field/string_field.rb +14 -0
- data/lib/protobuf/field/uint32_field.rb +10 -0
- data/lib/protobuf/field/uint64_field.rb +10 -0
- data/lib/protobuf/field/varint_field.rb +63 -0
- data/lib/protobuf/message.rb +376 -0
- data/lib/protobuf/message/message.rb +1 -475
- data/lib/protobuf/rpc/buffer.rb +1 -1
- data/lib/protobuf/rpc/client.rb +26 -26
- data/lib/protobuf/rpc/connector.rb +15 -14
- data/lib/protobuf/rpc/connectors/eventmachine.rb +13 -13
- data/lib/protobuf/rpc/rpc.pb.rb +39 -28
- data/lib/protobuf/rpc/server.rb +7 -28
- data/lib/protobuf/rpc/servers/evented_runner.rb +15 -15
- data/lib/protobuf/rpc/servers/socket/server.rb +2 -1
- data/lib/protobuf/rpc/servers/socket_runner.rb +5 -6
- data/lib/protobuf/rpc/servers/zmq_runner.rb +4 -5
- data/lib/protobuf/socket.rb +22 -0
- data/lib/protobuf/version.rb +2 -1
- data/lib/protobuf/zmq.rb +21 -0
- data/proto/rpc.pb.rb +48 -0
- data/protobuf.gemspec +14 -6
- data/spec/benchmark/tasks.rb +42 -23
- data/spec/functional/evented_server_spec.rb +2 -0
- data/spec/functional/socket_server_spec.rb +22 -26
- data/spec/functional/zmq_server_spec.rb +22 -26
- data/spec/lib/protobuf/cli_spec.rb +182 -0
- data/spec/{unit → lib/protobuf}/common/logger_spec.rb +0 -0
- data/spec/{unit → lib/protobuf/message}/enum_spec.rb +0 -0
- data/spec/{unit → lib/protobuf/message}/message_spec.rb +0 -0
- data/spec/{unit → lib/protobuf}/rpc/client_spec.rb +6 -4
- data/spec/lib/protobuf/rpc/connector_spec.rb +41 -0
- data/spec/{unit → lib/protobuf}/rpc/connectors/base_spec.rb +18 -18
- data/spec/{unit → lib/protobuf}/rpc/connectors/common_spec.rb +20 -20
- data/spec/{unit → lib/protobuf}/rpc/connectors/socket_spec.rb +9 -8
- data/spec/{unit → lib/protobuf}/rpc/connectors/zmq_spec.rb +1 -1
- data/spec/{unit → lib/protobuf}/rpc/servers/evented_server_spec.rb +4 -4
- data/spec/{unit → lib/protobuf}/rpc/servers/socket_server_spec.rb +11 -23
- data/spec/{unit → lib/protobuf}/rpc/servers/zmq/broker_spec.rb +5 -0
- data/spec/{unit → lib/protobuf}/rpc/servers/zmq/server_spec.rb +5 -0
- data/spec/{unit → lib/protobuf}/rpc/servers/zmq/util_spec.rb +5 -0
- data/spec/{unit → lib/protobuf}/rpc/servers/zmq/worker_spec.rb +5 -0
- data/spec/{unit → lib/protobuf}/rpc/service_spec.rb +0 -0
- data/spec/proto/test.pb.rb +48 -25
- data/spec/spec_helper.rb +9 -15
- data/spec/support/all.rb +7 -0
- data/spec/{helper → support}/server.rb +5 -7
- data/spec/{helper → support}/silent_constants.rb +4 -0
- data/spec/support/test_app_file.rb +2 -0
- data/spec/{helper → support}/tolerance_matcher.rb +0 -0
- data/test/proto/types.pb.rb +1 -1
- data/test/test_addressbook.rb +1 -1
- data/test/test_enum_value.rb +1 -1
- data/test/test_standard_message.rb +1 -1
- metadata +243 -107
- data/lib/protobuf/common/util.rb +0 -59
- data/lib/protobuf/compiler/compiler.rb +0 -52
- data/lib/protobuf/compiler/nodes.rb +0 -323
- data/lib/protobuf/compiler/proto.y +0 -216
- data/lib/protobuf/compiler/proto2.ebnf +0 -79
- data/lib/protobuf/compiler/proto_parser.rb +0 -1425
- data/lib/protobuf/compiler/template/rpc_service_implementation.erb +0 -42
- data/lib/protobuf/compiler/visitors.rb +0 -282
- data/lib/protobuf/descriptor/descriptor.proto +0 -286
- data/lib/protobuf/descriptor/descriptor.rb +0 -55
- data/lib/protobuf/descriptor/descriptor_builder.rb +0 -143
- data/lib/protobuf/descriptor/descriptor_proto.rb +0 -138
- data/lib/protobuf/descriptor/enum_descriptor.rb +0 -33
- data/lib/protobuf/descriptor/field_descriptor.rb +0 -49
- data/lib/protobuf/descriptor/file_descriptor.rb +0 -37
- data/lib/protobuf/message/field.rb +0 -684
- data/lib/protobuf/message/protoable.rb +0 -38
- data/spec/helper/all.rb +0 -7
- data/spec/unit/common/util_spec.rb +0 -17
- data/spec/unit/rpc/connector_spec.rb +0 -31
- data/spec/unit/rpc/connectors/eventmachine_client_spec.rb +0 -32
- data/spec/unit/rpc/connectors/eventmachine_spec.rb +0 -0
- data/test/check_unbuild.rb +0 -30
- data/test/test_compiler.rb +0 -325
- data/test/test_descriptor.rb +0 -122
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'spec_helper'
|
2
|
+
require 'protobuf/socket'
|
2
3
|
|
3
|
-
shared_examples "a Protobuf Connector" do
|
4
|
+
shared_examples "a Protobuf Connector" do
|
4
5
|
subject{ described_class.new({}) }
|
5
6
|
|
6
7
|
context "API" do
|
@@ -12,17 +13,17 @@ shared_examples "a Protobuf Connector" do
|
|
12
13
|
end
|
13
14
|
end
|
14
15
|
|
15
|
-
describe Protobuf::Rpc::Connectors::Socket do
|
16
|
+
describe Protobuf::Rpc::Connectors::Socket do
|
16
17
|
subject{ described_class.new({}) }
|
17
18
|
|
18
19
|
it_behaves_like "a Protobuf Connector"
|
19
|
-
|
20
|
+
|
20
21
|
specify{ described_class.include?(Protobuf::Rpc::Connectors::Common).should be_true }
|
21
22
|
|
22
23
|
context "#read_response" do
|
23
24
|
let(:data){ "New data" }
|
24
25
|
|
25
|
-
it "fills the buffer with data from the socket" do
|
26
|
+
it "fills the buffer with data from the socket" do
|
26
27
|
socket = StringIO.new("#{data.bytesize}-#{data}")
|
27
28
|
subject.instance_variable_set(:@socket, socket)
|
28
29
|
subject.instance_variable_set(:@stats, OpenStruct.new)
|
@@ -33,13 +34,13 @@ describe Protobuf::Rpc::Connectors::Socket do
|
|
33
34
|
end
|
34
35
|
end
|
35
36
|
|
36
|
-
context "#check_async" do
|
37
|
-
it "raises an error when trying to execute asynchronously" do
|
38
|
-
conn = described_class.new(:async => true)
|
37
|
+
context "#check_async" do
|
38
|
+
it "raises an error when trying to execute asynchronously" do
|
39
|
+
conn = described_class.new(:async => true)
|
39
40
|
expect{ conn.__send__(:check_async) }.to raise_error
|
40
41
|
end
|
41
42
|
|
42
|
-
it "allows execution when synchronous" do
|
43
|
+
it "allows execution when synchronous" do
|
43
44
|
conn = described_class.new(:async => false)
|
44
45
|
expect{ conn.__send__(:check_async) }.to_not raise_error
|
45
46
|
end
|
@@ -1,17 +1,17 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
require 'spec/proto/test_service_impl'
|
3
3
|
require 'protobuf/rpc/servers/evented_runner'
|
4
|
+
require 'protobuf/evented'
|
4
5
|
|
5
6
|
describe Protobuf::Rpc::Evented::Server do
|
6
7
|
|
7
|
-
it "provides a Runner class" do
|
8
|
+
it "provides a Runner class" do
|
8
9
|
runner_class = described_class.to_s.gsub(/Evented::Server/, "EventedRunner")
|
9
|
-
expect {
|
10
|
+
expect { runner_class.constantize }.to_not raise_error
|
10
11
|
end
|
11
12
|
|
12
13
|
it "Runner provides a stop method" do
|
13
|
-
runner_class = described_class.to_s.gsub(/Evented::Server/, "EventedRunner")
|
14
|
-
runner_class = Protobuf::Util.constantize(runner_class)
|
14
|
+
runner_class = described_class.to_s.gsub(/Evented::Server/, "EventedRunner").constantize
|
15
15
|
runner_class.respond_to?(:stop).should be_true
|
16
16
|
end
|
17
17
|
|
@@ -1,9 +1,18 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
require 'spec/proto/test_service_impl'
|
3
3
|
require 'protobuf/rpc/servers/socket_runner'
|
4
|
+
require 'protobuf/evented'
|
5
|
+
require 'protobuf/socket'
|
4
6
|
|
5
7
|
describe Protobuf::Rpc::Socket::Server do
|
8
|
+
before(:each) do
|
9
|
+
load 'protobuf/socket.rb'
|
10
|
+
::Protobuf::Rpc::Connector.connector_for_client(true)
|
11
|
+
end
|
12
|
+
|
6
13
|
before(:all) do
|
14
|
+
load 'protobuf/socket.rb'
|
15
|
+
::Protobuf::Rpc::Connector.connector_for_client(true)
|
7
16
|
Thread.abort_on_exception = true
|
8
17
|
server = OpenStruct.new(:server => "127.0.0.1", :port => 9399, :backlog => 100, :threshold => 100)
|
9
18
|
@server_thread = Thread.new(server) { |s| Protobuf::Rpc::SocketRunner.run(s) }
|
@@ -16,8 +25,7 @@ describe Protobuf::Rpc::Socket::Server do
|
|
16
25
|
end
|
17
26
|
|
18
27
|
it "Runner provides a stop method" do
|
19
|
-
runner_class = described_class.to_s.gsub(/Evented::Server/, "EventedRunner")
|
20
|
-
runner_class = Protobuf::Util.constantize(runner_class)
|
28
|
+
runner_class = described_class.to_s.gsub(/Evented::Server/, "EventedRunner").constantize
|
21
29
|
runner_class.respond_to?(:stop).should be_true
|
22
30
|
end
|
23
31
|
|
@@ -27,31 +35,11 @@ describe Protobuf::Rpc::Socket::Server do
|
|
27
35
|
|
28
36
|
it "provides a Runner class" do
|
29
37
|
runner_class = described_class.to_s.gsub(/Evented::Server/, "EventedRunner")
|
30
|
-
expect {
|
38
|
+
expect { runner_class.constantize }.to_not raise_error
|
31
39
|
end
|
32
40
|
|
33
41
|
it "signals the Server is running" do
|
34
42
|
described_class.running?.should be_true
|
35
43
|
end
|
36
44
|
|
37
|
-
context "Eventmachine client" do
|
38
|
-
it "calls the service in the client request" do
|
39
|
-
with_constants "Protobuf::ClientType" => "Evented" do
|
40
|
-
client = Spec::Proto::TestService.client(:async => false, :port => 9399, :host => "127.0.0.1")
|
41
|
-
|
42
|
-
client.find(:name => "Test Name", :active => true) do |c|
|
43
|
-
c.on_success do |succ|
|
44
|
-
succ.name.should eq("Test Name")
|
45
|
-
succ.status.should eq(Spec::Proto::StatusType::ENABLED)
|
46
|
-
end
|
47
|
-
|
48
|
-
c.on_failure do |err|
|
49
|
-
raise err.inspect
|
50
|
-
end
|
51
|
-
end
|
52
|
-
end
|
53
|
-
end
|
54
|
-
|
55
|
-
end
|
56
|
-
|
57
45
|
end
|
@@ -2,6 +2,11 @@ require 'spec_helper'
|
|
2
2
|
require 'protobuf/rpc/servers/zmq/server'
|
3
3
|
|
4
4
|
describe Protobuf::Rpc::Zmq::Server do
|
5
|
+
before(:each) do
|
6
|
+
load 'protobuf/zmq.rb'
|
7
|
+
::Protobuf::Rpc::Connector.connector_for_client(true)
|
8
|
+
end
|
9
|
+
|
5
10
|
describe '.running?' do
|
6
11
|
it 'returns true if running' do
|
7
12
|
described_class.instance_variable_set(:@running, true)
|
@@ -5,6 +5,11 @@ class UtilTest
|
|
5
5
|
end
|
6
6
|
|
7
7
|
describe ::Protobuf::Rpc::Zmq::Util do
|
8
|
+
before(:each) do
|
9
|
+
load 'protobuf/zmq.rb'
|
10
|
+
::Protobuf::Rpc::Connector.connector_for_client(true)
|
11
|
+
end
|
12
|
+
|
8
13
|
subject { UtilTest.new }
|
9
14
|
describe '#zmq_error_check' do
|
10
15
|
it 'raises when the error code is less than 0' do
|
@@ -1,6 +1,11 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe ::Protobuf::Rpc::Zmq::Worker do
|
4
|
+
before(:each) do
|
5
|
+
load 'protobuf/zmq.rb'
|
6
|
+
::Protobuf::Rpc::Connector.connector_for_client(true)
|
7
|
+
end
|
8
|
+
|
4
9
|
after(:each) do
|
5
10
|
subject.instance_variable_get(:@socket).close
|
6
11
|
subject.instance_variable_get(:@zmq_context).terminate
|
File without changes
|
data/spec/proto/test.pb.rb
CHANGED
@@ -1,31 +1,54 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
require 'protobuf/message
|
1
|
+
##
|
2
|
+
# This file is auto-generated. DO NOT EDIT!
|
3
|
+
#
|
4
|
+
require 'protobuf/message'
|
5
|
+
require 'protobuf/rpc/service'
|
5
6
|
|
6
7
|
module Spec
|
7
8
|
module Proto
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
end
|
18
|
-
class
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
9
|
+
##
|
10
|
+
# Enum Classes
|
11
|
+
#
|
12
|
+
class StatusType < ::Protobuf::Enum; end
|
13
|
+
|
14
|
+
##
|
15
|
+
# Message Classes
|
16
|
+
#
|
17
|
+
class ResourceFindRequest < ::Protobuf::Message; end
|
18
|
+
class Resource < ::Protobuf::Message; end
|
19
|
+
class Nested < ::Protobuf::Message; end
|
20
|
+
|
21
|
+
##
|
22
|
+
# Enum Values
|
23
|
+
#
|
24
|
+
::Spec::Proto::StatusType.define :PENDING, 0
|
25
|
+
::Spec::Proto::StatusType.define :ENABLED, 1
|
26
|
+
::Spec::Proto::StatusType.define :DISABLED, 2
|
27
|
+
::Spec::Proto::StatusType.define :DELETED, 3
|
28
|
+
|
29
|
+
|
30
|
+
##
|
31
|
+
# Message Fields
|
32
|
+
#
|
33
|
+
::Spec::Proto::ResourceFindRequest.required(::Protobuf::Field::StringField, :name, 1)
|
34
|
+
::Spec::Proto::ResourceFindRequest.optional(::Protobuf::Field::BoolField, :active, 2)
|
35
|
+
|
36
|
+
::Spec::Proto::Resource.required(::Protobuf::Field::StringField, :name, 1)
|
37
|
+
::Spec::Proto::Resource.optional(::Protobuf::Field::Int64Field, :date_created, 2)
|
38
|
+
::Spec::Proto::Resource.optional(::Spec::Proto::StatusType, :status, 3)
|
39
|
+
::Spec::Proto::Resource.repeated(::Spec::Proto::StatusType, :repeated_enum, 4)
|
40
|
+
|
41
|
+
::Spec::Proto::Nested.optional(::Protobuf::Field::StringField, :name, 1)
|
42
|
+
::Spec::Proto::Nested.optional(::Spec::Proto::Resource, :resource, 2)
|
43
|
+
::Spec::Proto::Nested.repeated(::Spec::Proto::Resource, :multiple_resources, 3)
|
44
|
+
::Spec::Proto::Nested.optional(::Spec::Proto::StatusType, :status, 4)
|
45
|
+
|
46
|
+
|
47
|
+
##
|
48
|
+
# Services
|
49
|
+
#
|
50
|
+
class TestService < ::Protobuf::Rpc::Service
|
51
|
+
rpc :find, ::Spec::Proto::ResourceFindRequest, ::Spec::Proto::Resource
|
29
52
|
end
|
30
53
|
end
|
31
54
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -4,29 +4,23 @@ SimpleCov.start
|
|
4
4
|
require 'rubygems'
|
5
5
|
require 'bundler'
|
6
6
|
Bundler.setup :default, :development, :test
|
7
|
+
require 'pry'
|
7
8
|
|
8
|
-
|
9
|
-
|
9
|
+
$: << ::File.expand_path('..', File.dirname(__FILE__))
|
10
|
+
#$: << ::File.expand_path('../lib', File.dirname(__FILE__))
|
10
11
|
|
11
12
|
require 'protobuf'
|
12
|
-
require '
|
13
|
-
require File.dirname(__FILE__) + '/helper/all'
|
14
|
-
require 'pry'
|
15
|
-
|
16
|
-
# these aren't explicitly required in lib/protobuf.rb. We require them here for
|
17
|
-
# testing purposes
|
18
|
-
require 'ffi-rzmq'
|
19
|
-
require 'protobuf/rpc/connectors/zmq'
|
13
|
+
require ::File.dirname(__FILE__) + '/support/all'
|
20
14
|
|
21
15
|
# Including a way to turn on debug logger for spec runs
|
22
16
|
if ENV["DEBUG"]
|
23
|
-
debug_log = File.expand_path('../debug_specs.log', File.dirname(__FILE__) )
|
24
|
-
Protobuf::Logger.configure(:file => debug_log, :level => ::Logger::DEBUG)
|
17
|
+
debug_log = ::File.expand_path('../debug_specs.log', File.dirname(__FILE__) )
|
18
|
+
::Protobuf::Logger.configure(:file => debug_log, :level => ::Logger::DEBUG)
|
25
19
|
end
|
26
20
|
|
27
|
-
RSpec.configure do |c|
|
28
|
-
c.include(SilentConstants)
|
29
|
-
c.include(Sander6::CustomMatchers)
|
21
|
+
::RSpec.configure do |c|
|
22
|
+
c.include(::SilentConstants)
|
23
|
+
c.include(::Sander6::CustomMatchers)
|
30
24
|
c.mock_with :rspec
|
31
25
|
end
|
32
26
|
|
data/spec/support/all.rb
ADDED
@@ -39,12 +39,10 @@ class StubServer
|
|
39
39
|
|
40
40
|
def initialize(opts = {})
|
41
41
|
@running = true
|
42
|
-
@options = OpenStruct.new({
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
:server => Protobuf::Rpc::Evented::Server
|
47
|
-
}.merge(opts))
|
42
|
+
@options = OpenStruct.new({ :host => "127.0.0.1",
|
43
|
+
:port => 9399,
|
44
|
+
:delay => 0,
|
45
|
+
:server => Protobuf::Rpc::Evented::Server }.merge(opts))
|
48
46
|
|
49
47
|
start
|
50
48
|
yield self
|
@@ -78,7 +76,7 @@ class StubServer
|
|
78
76
|
end
|
79
77
|
|
80
78
|
def start_zmq_server
|
81
|
-
@zmq_server = Thread.new(@options) { |opt| Protobuf::Rpc::ZmqRunner.run(opt) }
|
79
|
+
@zmq_server = Thread.new(@options) { |opt| Protobuf::Rpc::ZmqRunner.run(opt) }
|
82
80
|
Thread.pass until Protobuf::Rpc::Zmq::Server.running?
|
83
81
|
end
|
84
82
|
|
@@ -1,4 +1,5 @@
|
|
1
1
|
# Just a way to keep warnings from being flagged in rename of constants during tests
|
2
|
+
=begin
|
2
3
|
module Kernel
|
3
4
|
def silence_warnings
|
4
5
|
orig_verbosity = $VERBOSE
|
@@ -7,8 +8,10 @@ module Kernel
|
|
7
8
|
$VERBOSE = orig_verbosity
|
8
9
|
end
|
9
10
|
end
|
11
|
+
=end
|
10
12
|
|
11
13
|
module SilentConstants
|
14
|
+
=begin
|
12
15
|
def parse(constant)
|
13
16
|
source, _, constant_name = constant.to_s.rpartition('::')
|
14
17
|
[Object.const_get(source.to_sym), constant_name.to_sym]
|
@@ -37,4 +40,5 @@ module SilentConstants
|
|
37
40
|
end
|
38
41
|
end
|
39
42
|
|
43
|
+
=end
|
40
44
|
end
|
File without changes
|
data/test/proto/types.pb.rb
CHANGED
data/test/test_addressbook.rb
CHANGED
data/test/test_enum_value.rb
CHANGED
metadata
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: protobuf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
5
|
-
prerelease:
|
4
|
+
version: 2.0.0.rc1
|
5
|
+
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- BJ Neilsen
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-
|
13
|
+
date: 2012-10-01 00:00:00.000000000Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
|
-
name:
|
17
|
-
requirement: &
|
16
|
+
name: activesupport
|
17
|
+
requirement: &2152737880 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: '0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *2152737880
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
|
-
name:
|
28
|
-
requirement: &
|
27
|
+
name: ffi
|
28
|
+
requirement: &2152736420 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *2152736420
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
|
-
name:
|
39
|
-
requirement: &
|
38
|
+
name: multi_json
|
39
|
+
requirement: &2152734540 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ! '>='
|
@@ -44,10 +44,10 @@ dependencies:
|
|
44
44
|
version: '0'
|
45
45
|
type: :runtime
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *2152734540
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
|
-
name:
|
50
|
-
requirement: &
|
49
|
+
name: thor
|
50
|
+
requirement: &2152733360 !ruby/object:Gem::Requirement
|
51
51
|
none: false
|
52
52
|
requirements:
|
53
53
|
- - ! '>='
|
@@ -55,10 +55,10 @@ dependencies:
|
|
55
55
|
version: '0'
|
56
56
|
type: :runtime
|
57
57
|
prerelease: false
|
58
|
-
version_requirements: *
|
58
|
+
version_requirements: *2152733360
|
59
59
|
- !ruby/object:Gem::Dependency
|
60
|
-
name:
|
61
|
-
requirement: &
|
60
|
+
name: eventmachine
|
61
|
+
requirement: &2152732220 !ruby/object:Gem::Requirement
|
62
62
|
none: false
|
63
63
|
requirements:
|
64
64
|
- - ! '>='
|
@@ -66,10 +66,32 @@ dependencies:
|
|
66
66
|
version: '0'
|
67
67
|
type: :development
|
68
68
|
prerelease: false
|
69
|
-
version_requirements: *
|
69
|
+
version_requirements: *2152732220
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: ffi-rzmq
|
72
|
+
requirement: &2152731220 !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
type: :development
|
79
|
+
prerelease: false
|
80
|
+
version_requirements: *2152731220
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: perftools.rb
|
83
|
+
requirement: &2152730060 !ruby/object:Gem::Requirement
|
84
|
+
none: false
|
85
|
+
requirements:
|
86
|
+
- - ! '>='
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
type: :development
|
90
|
+
prerelease: false
|
91
|
+
version_requirements: *2152730060
|
70
92
|
- !ruby/object:Gem::Dependency
|
71
93
|
name: pry
|
72
|
-
requirement: &
|
94
|
+
requirement: &2152729260 !ruby/object:Gem::Requirement
|
73
95
|
none: false
|
74
96
|
requirements:
|
75
97
|
- - ! '>='
|
@@ -77,10 +99,10 @@ dependencies:
|
|
77
99
|
version: '0'
|
78
100
|
type: :development
|
79
101
|
prerelease: false
|
80
|
-
version_requirements: *
|
102
|
+
version_requirements: *2152729260
|
81
103
|
- !ruby/object:Gem::Dependency
|
82
104
|
name: pry-nav
|
83
|
-
requirement: &
|
105
|
+
requirement: &2152728380 !ruby/object:Gem::Requirement
|
84
106
|
none: false
|
85
107
|
requirements:
|
86
108
|
- - ! '>='
|
@@ -88,10 +110,10 @@ dependencies:
|
|
88
110
|
version: '0'
|
89
111
|
type: :development
|
90
112
|
prerelease: false
|
91
|
-
version_requirements: *
|
113
|
+
version_requirements: *2152728380
|
92
114
|
- !ruby/object:Gem::Dependency
|
93
|
-
name:
|
94
|
-
requirement: &
|
115
|
+
name: rake
|
116
|
+
requirement: &2152727340 !ruby/object:Gem::Requirement
|
95
117
|
none: false
|
96
118
|
requirements:
|
97
119
|
- - ! '>='
|
@@ -99,10 +121,21 @@ dependencies:
|
|
99
121
|
version: '0'
|
100
122
|
type: :development
|
101
123
|
prerelease: false
|
102
|
-
version_requirements: *
|
124
|
+
version_requirements: *2152727340
|
103
125
|
- !ruby/object:Gem::Dependency
|
104
|
-
name:
|
105
|
-
requirement: &
|
126
|
+
name: rake-compiler
|
127
|
+
requirement: &2152726380 !ruby/object:Gem::Requirement
|
128
|
+
none: false
|
129
|
+
requirements:
|
130
|
+
- - ! '>='
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '0'
|
133
|
+
type: :development
|
134
|
+
prerelease: false
|
135
|
+
version_requirements: *2152726380
|
136
|
+
- !ruby/object:Gem::Dependency
|
137
|
+
name: rspec
|
138
|
+
requirement: &2152725620 !ruby/object:Gem::Requirement
|
106
139
|
none: false
|
107
140
|
requirements:
|
108
141
|
- - ! '>='
|
@@ -110,10 +143,10 @@ dependencies:
|
|
110
143
|
version: '0'
|
111
144
|
type: :development
|
112
145
|
prerelease: false
|
113
|
-
version_requirements: *
|
146
|
+
version_requirements: *2152725620
|
114
147
|
- !ruby/object:Gem::Dependency
|
115
148
|
name: simplecov
|
116
|
-
requirement: &
|
149
|
+
requirement: &2152724560 !ruby/object:Gem::Requirement
|
117
150
|
none: false
|
118
151
|
requirements:
|
119
152
|
- - ! '>='
|
@@ -121,7 +154,18 @@ dependencies:
|
|
121
154
|
version: '0'
|
122
155
|
type: :development
|
123
156
|
prerelease: false
|
124
|
-
version_requirements: *
|
157
|
+
version_requirements: *2152724560
|
158
|
+
- !ruby/object:Gem::Dependency
|
159
|
+
name: yard
|
160
|
+
requirement: &2152723720 !ruby/object:Gem::Requirement
|
161
|
+
none: false
|
162
|
+
requirements:
|
163
|
+
- - ! '>='
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '0'
|
166
|
+
type: :development
|
167
|
+
prerelease: false
|
168
|
+
version_requirements: *2152723720
|
125
169
|
description: ! 'Ruby implementation for Protocol Buffers. Works with other protobuf
|
126
170
|
rpc implementations (e.g. Java, Python, C++).
|
127
171
|
|
@@ -137,7 +181,8 @@ email:
|
|
137
181
|
executables:
|
138
182
|
- rpc_server
|
139
183
|
- rprotoc
|
140
|
-
extensions:
|
184
|
+
extensions:
|
185
|
+
- ext/ruby_generator/extconf.rb
|
141
186
|
extra_rdoc_files: []
|
142
187
|
files:
|
143
188
|
- .gitignore
|
@@ -152,33 +197,132 @@ files:
|
|
152
197
|
- examples/addressbook.proto
|
153
198
|
- examples/reading_a_message.rb
|
154
199
|
- examples/writing_a_message.rb
|
200
|
+
- ext/Makefile
|
201
|
+
- ext/protobuf-2.4.1/src/google/protobuf/compiler/code_generator.h
|
202
|
+
- ext/protobuf-2.4.1/src/google/protobuf/compiler/command_line_interface.h
|
203
|
+
- ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_enum.h
|
204
|
+
- ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_enum_field.h
|
205
|
+
- ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_extension.h
|
206
|
+
- ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_field.h
|
207
|
+
- ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_file.h
|
208
|
+
- ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_generator.h
|
209
|
+
- ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_helpers.h
|
210
|
+
- ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_message.h
|
211
|
+
- ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_message_field.h
|
212
|
+
- ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_primitive_field.h
|
213
|
+
- ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_service.h
|
214
|
+
- ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_string_field.h
|
215
|
+
- ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_test_bad_identifiers.pb.h
|
216
|
+
- ext/protobuf-2.4.1/src/google/protobuf/compiler/importer.h
|
217
|
+
- ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_enum.h
|
218
|
+
- ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_enum_field.h
|
219
|
+
- ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_extension.h
|
220
|
+
- ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_field.h
|
221
|
+
- ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_file.h
|
222
|
+
- ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_generator.h
|
223
|
+
- ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_helpers.h
|
224
|
+
- ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_message.h
|
225
|
+
- ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_message_field.h
|
226
|
+
- ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_primitive_field.h
|
227
|
+
- ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_service.h
|
228
|
+
- ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_string_field.h
|
229
|
+
- ext/protobuf-2.4.1/src/google/protobuf/compiler/mock_code_generator.h
|
230
|
+
- ext/protobuf-2.4.1/src/google/protobuf/compiler/package_info.h
|
231
|
+
- ext/protobuf-2.4.1/src/google/protobuf/compiler/parser.h
|
232
|
+
- ext/protobuf-2.4.1/src/google/protobuf/compiler/plugin.h
|
233
|
+
- ext/protobuf-2.4.1/src/google/protobuf/compiler/plugin.pb.h
|
234
|
+
- ext/protobuf-2.4.1/src/google/protobuf/compiler/python/python_generator.h
|
235
|
+
- ext/protobuf-2.4.1/src/google/protobuf/compiler/subprocess.h
|
236
|
+
- ext/protobuf-2.4.1/src/google/protobuf/compiler/zip_writer.h
|
237
|
+
- ext/protobuf-2.4.1/src/google/protobuf/descriptor.h
|
238
|
+
- ext/protobuf-2.4.1/src/google/protobuf/descriptor.pb.h
|
239
|
+
- ext/protobuf-2.4.1/src/google/protobuf/descriptor_database.h
|
240
|
+
- ext/protobuf-2.4.1/src/google/protobuf/dynamic_message.h
|
241
|
+
- ext/protobuf-2.4.1/src/google/protobuf/extension_set.h
|
242
|
+
- ext/protobuf-2.4.1/src/google/protobuf/generated_message_reflection.h
|
243
|
+
- ext/protobuf-2.4.1/src/google/protobuf/generated_message_util.h
|
244
|
+
- ext/protobuf-2.4.1/src/google/protobuf/io/coded_stream.h
|
245
|
+
- ext/protobuf-2.4.1/src/google/protobuf/io/coded_stream_inl.h
|
246
|
+
- ext/protobuf-2.4.1/src/google/protobuf/io/gzip_stream.h
|
247
|
+
- ext/protobuf-2.4.1/src/google/protobuf/io/package_info.h
|
248
|
+
- ext/protobuf-2.4.1/src/google/protobuf/io/printer.h
|
249
|
+
- ext/protobuf-2.4.1/src/google/protobuf/io/tokenizer.h
|
250
|
+
- ext/protobuf-2.4.1/src/google/protobuf/io/zero_copy_stream.h
|
251
|
+
- ext/protobuf-2.4.1/src/google/protobuf/io/zero_copy_stream_impl.h
|
252
|
+
- ext/protobuf-2.4.1/src/google/protobuf/io/zero_copy_stream_impl_lite.h
|
253
|
+
- ext/protobuf-2.4.1/src/google/protobuf/message.h
|
254
|
+
- ext/protobuf-2.4.1/src/google/protobuf/message_lite.h
|
255
|
+
- ext/protobuf-2.4.1/src/google/protobuf/package_info.h
|
256
|
+
- ext/protobuf-2.4.1/src/google/protobuf/reflection_ops.h
|
257
|
+
- ext/protobuf-2.4.1/src/google/protobuf/repeated_field.h
|
258
|
+
- ext/protobuf-2.4.1/src/google/protobuf/service.h
|
259
|
+
- ext/protobuf-2.4.1/src/google/protobuf/stubs/common.h
|
260
|
+
- ext/protobuf-2.4.1/src/google/protobuf/stubs/hash.h
|
261
|
+
- ext/protobuf-2.4.1/src/google/protobuf/stubs/map-util.h
|
262
|
+
- ext/protobuf-2.4.1/src/google/protobuf/stubs/once.h
|
263
|
+
- ext/protobuf-2.4.1/src/google/protobuf/stubs/stl_util-inl.h
|
264
|
+
- ext/protobuf-2.4.1/src/google/protobuf/stubs/strutil.h
|
265
|
+
- ext/protobuf-2.4.1/src/google/protobuf/stubs/substitute.h
|
266
|
+
- ext/protobuf-2.4.1/src/google/protobuf/test_util.h
|
267
|
+
- ext/protobuf-2.4.1/src/google/protobuf/test_util_lite.h
|
268
|
+
- ext/protobuf-2.4.1/src/google/protobuf/testing/file.h
|
269
|
+
- ext/protobuf-2.4.1/src/google/protobuf/testing/googletest.h
|
270
|
+
- ext/protobuf-2.4.1/src/google/protobuf/text_format.h
|
271
|
+
- ext/protobuf-2.4.1/src/google/protobuf/unittest.pb.h
|
272
|
+
- ext/protobuf-2.4.1/src/google/protobuf/unittest_custom_options.pb.h
|
273
|
+
- ext/protobuf-2.4.1/src/google/protobuf/unittest_embed_optimize_for.pb.h
|
274
|
+
- ext/protobuf-2.4.1/src/google/protobuf/unittest_empty.pb.h
|
275
|
+
- ext/protobuf-2.4.1/src/google/protobuf/unittest_import.pb.h
|
276
|
+
- ext/protobuf-2.4.1/src/google/protobuf/unittest_import_lite.pb.h
|
277
|
+
- ext/protobuf-2.4.1/src/google/protobuf/unittest_lite.pb.h
|
278
|
+
- ext/protobuf-2.4.1/src/google/protobuf/unittest_lite_imports_nonlite.pb.h
|
279
|
+
- ext/protobuf-2.4.1/src/google/protobuf/unittest_mset.pb.h
|
280
|
+
- ext/protobuf-2.4.1/src/google/protobuf/unittest_no_generic_services.pb.h
|
281
|
+
- ext/protobuf-2.4.1/src/google/protobuf/unittest_optimize_for.pb.h
|
282
|
+
- ext/protobuf-2.4.1/src/google/protobuf/unknown_field_set.h
|
283
|
+
- ext/protobuf-2.4.1/src/google/protobuf/wire_format.h
|
284
|
+
- ext/protobuf-2.4.1/src/google/protobuf/wire_format_lite.h
|
285
|
+
- ext/protobuf-2.4.1/src/google/protobuf/wire_format_lite_inl.h
|
286
|
+
- ext/ruby_generator/RubyGenerator.cpp
|
287
|
+
- ext/ruby_generator/RubyGenerator.h
|
288
|
+
- ext/ruby_generator/extconf.rb
|
155
289
|
- lib/protobuf.rb
|
290
|
+
- lib/protobuf/cli.rb
|
156
291
|
- lib/protobuf/common/exceptions.rb
|
157
292
|
- lib/protobuf/common/logger.rb
|
158
|
-
- lib/protobuf/common/util.rb
|
159
293
|
- lib/protobuf/common/wire_type.rb
|
160
|
-
- lib/protobuf/
|
161
|
-
- lib/protobuf/
|
162
|
-
- lib/protobuf/compiler/proto.y
|
163
|
-
- lib/protobuf/compiler/proto2.ebnf
|
164
|
-
- lib/protobuf/compiler/proto_parser.rb
|
165
|
-
- lib/protobuf/compiler/template/rpc_service_implementation.erb
|
166
|
-
- lib/protobuf/compiler/visitors.rb
|
167
|
-
- lib/protobuf/descriptor/descriptor.proto
|
168
|
-
- lib/protobuf/descriptor/descriptor.rb
|
169
|
-
- lib/protobuf/descriptor/descriptor_builder.rb
|
170
|
-
- lib/protobuf/descriptor/descriptor_proto.rb
|
171
|
-
- lib/protobuf/descriptor/enum_descriptor.rb
|
172
|
-
- lib/protobuf/descriptor/field_descriptor.rb
|
173
|
-
- lib/protobuf/descriptor/file_descriptor.rb
|
294
|
+
- lib/protobuf/enum.rb
|
295
|
+
- lib/protobuf/evented.rb
|
174
296
|
- lib/protobuf/ext/eventmachine.rb
|
297
|
+
- lib/protobuf/field.rb
|
298
|
+
- lib/protobuf/field/base_field.rb
|
299
|
+
- lib/protobuf/field/bool_field.rb
|
300
|
+
- lib/protobuf/field/bytes_field.rb
|
301
|
+
- lib/protobuf/field/double_field.rb
|
302
|
+
- lib/protobuf/field/enum_field.rb
|
303
|
+
- lib/protobuf/field/extension_fields.rb
|
304
|
+
- lib/protobuf/field/field_array.rb
|
305
|
+
- lib/protobuf/field/fixed32_field.rb
|
306
|
+
- lib/protobuf/field/fixed64_field.rb
|
307
|
+
- lib/protobuf/field/float_field.rb
|
308
|
+
- lib/protobuf/field/int32_field.rb
|
309
|
+
- lib/protobuf/field/int64_field.rb
|
310
|
+
- lib/protobuf/field/integer_field.rb
|
311
|
+
- lib/protobuf/field/message_field.rb
|
312
|
+
- lib/protobuf/field/sfixed32_field.rb
|
313
|
+
- lib/protobuf/field/sfixed64_field.rb
|
314
|
+
- lib/protobuf/field/signed_integer_field.rb
|
315
|
+
- lib/protobuf/field/sint32_field.rb
|
316
|
+
- lib/protobuf/field/sint64_field.rb
|
317
|
+
- lib/protobuf/field/string_field.rb
|
318
|
+
- lib/protobuf/field/uint32_field.rb
|
319
|
+
- lib/protobuf/field/uint64_field.rb
|
320
|
+
- lib/protobuf/field/varint_field.rb
|
321
|
+
- lib/protobuf/message.rb
|
175
322
|
- lib/protobuf/message/decoder.rb
|
176
323
|
- lib/protobuf/message/encoder.rb
|
177
|
-
- lib/protobuf/message/enum.rb
|
178
324
|
- lib/protobuf/message/extend.rb
|
179
|
-
- lib/protobuf/message/field.rb
|
180
325
|
- lib/protobuf/message/message.rb
|
181
|
-
- lib/protobuf/message/protoable.rb
|
182
326
|
- lib/protobuf/rpc/buffer.rb
|
183
327
|
- lib/protobuf/rpc/client.rb
|
184
328
|
- lib/protobuf/rpc/connector.rb
|
@@ -205,7 +349,10 @@ files:
|
|
205
349
|
- lib/protobuf/rpc/servers/zmq_runner.rb
|
206
350
|
- lib/protobuf/rpc/service.rb
|
207
351
|
- lib/protobuf/rpc/stat.rb
|
352
|
+
- lib/protobuf/socket.rb
|
208
353
|
- lib/protobuf/version.rb
|
354
|
+
- lib/protobuf/zmq.rb
|
355
|
+
- proto/rpc.pb.rb
|
209
356
|
- proto/rpc.proto
|
210
357
|
- protobuf.gemspec
|
211
358
|
- script/mk_parser
|
@@ -214,36 +361,34 @@ files:
|
|
214
361
|
- spec/functional/evented_server_spec.rb
|
215
362
|
- spec/functional/socket_server_spec.rb
|
216
363
|
- spec/functional/zmq_server_spec.rb
|
217
|
-
- spec/
|
218
|
-
- spec/
|
219
|
-
- spec/helper/silent_constants.rb
|
220
|
-
- spec/helper/tolerance_matcher.rb
|
364
|
+
- spec/lib/protobuf/cli_spec.rb
|
365
|
+
- spec/lib/protobuf/common/logger_spec.rb
|
221
366
|
- spec/lib/protobuf/message/encoder_spec.rb
|
367
|
+
- spec/lib/protobuf/message/enum_spec.rb
|
368
|
+
- spec/lib/protobuf/message/message_spec.rb
|
369
|
+
- spec/lib/protobuf/rpc/client_spec.rb
|
370
|
+
- spec/lib/protobuf/rpc/connector_spec.rb
|
371
|
+
- spec/lib/protobuf/rpc/connectors/base_spec.rb
|
372
|
+
- spec/lib/protobuf/rpc/connectors/common_spec.rb
|
373
|
+
- spec/lib/protobuf/rpc/connectors/socket_spec.rb
|
374
|
+
- spec/lib/protobuf/rpc/connectors/zmq_spec.rb
|
375
|
+
- spec/lib/protobuf/rpc/servers/evented_server_spec.rb
|
376
|
+
- spec/lib/protobuf/rpc/servers/socket_server_spec.rb
|
377
|
+
- spec/lib/protobuf/rpc/servers/zmq/broker_spec.rb
|
378
|
+
- spec/lib/protobuf/rpc/servers/zmq/server_spec.rb
|
379
|
+
- spec/lib/protobuf/rpc/servers/zmq/util_spec.rb
|
380
|
+
- spec/lib/protobuf/rpc/servers/zmq/worker_spec.rb
|
381
|
+
- spec/lib/protobuf/rpc/service_spec.rb
|
222
382
|
- spec/proto/test.pb.rb
|
223
383
|
- spec/proto/test.proto
|
224
384
|
- spec/proto/test_service.rb
|
225
385
|
- spec/proto/test_service_impl.rb
|
226
386
|
- spec/spec_helper.rb
|
227
|
-
- spec/
|
228
|
-
- spec/
|
229
|
-
- spec/
|
230
|
-
- spec/
|
231
|
-
- spec/
|
232
|
-
- spec/unit/rpc/connector_spec.rb
|
233
|
-
- spec/unit/rpc/connectors/base_spec.rb
|
234
|
-
- spec/unit/rpc/connectors/common_spec.rb
|
235
|
-
- spec/unit/rpc/connectors/eventmachine_client_spec.rb
|
236
|
-
- spec/unit/rpc/connectors/eventmachine_spec.rb
|
237
|
-
- spec/unit/rpc/connectors/socket_spec.rb
|
238
|
-
- spec/unit/rpc/connectors/zmq_spec.rb
|
239
|
-
- spec/unit/rpc/servers/evented_server_spec.rb
|
240
|
-
- spec/unit/rpc/servers/socket_server_spec.rb
|
241
|
-
- spec/unit/rpc/servers/zmq/broker_spec.rb
|
242
|
-
- spec/unit/rpc/servers/zmq/server_spec.rb
|
243
|
-
- spec/unit/rpc/servers/zmq/util_spec.rb
|
244
|
-
- spec/unit/rpc/servers/zmq/worker_spec.rb
|
245
|
-
- spec/unit/rpc/service_spec.rb
|
246
|
-
- test/check_unbuild.rb
|
387
|
+
- spec/support/all.rb
|
388
|
+
- spec/support/server.rb
|
389
|
+
- spec/support/silent_constants.rb
|
390
|
+
- spec/support/test_app_file.rb
|
391
|
+
- spec/support/tolerance_matcher.rb
|
247
392
|
- test/data/data.bin
|
248
393
|
- test/data/data_source.py
|
249
394
|
- test/data/types.bin
|
@@ -276,8 +421,6 @@ files:
|
|
276
421
|
- test/proto/types.pb.rb
|
277
422
|
- test/proto/types.proto
|
278
423
|
- test/test_addressbook.rb
|
279
|
-
- test/test_compiler.rb
|
280
|
-
- test/test_descriptor.rb
|
281
424
|
- test/test_enum_value.rb
|
282
425
|
- test/test_extension.rb
|
283
426
|
- test/test_lowercase.rb
|
@@ -303,16 +446,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
303
446
|
version: '0'
|
304
447
|
segments:
|
305
448
|
- 0
|
306
|
-
hash: -
|
449
|
+
hash: -931034432633802178
|
307
450
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
308
451
|
none: false
|
309
452
|
requirements:
|
310
|
-
- - ! '
|
453
|
+
- - ! '>'
|
311
454
|
- !ruby/object:Gem::Version
|
312
|
-
version:
|
313
|
-
segments:
|
314
|
-
- 0
|
315
|
-
hash: -754579198838868280
|
455
|
+
version: 1.3.1
|
316
456
|
requirements: []
|
317
457
|
rubyforge_project:
|
318
458
|
rubygems_version: 1.8.15
|
@@ -326,36 +466,34 @@ test_files:
|
|
326
466
|
- spec/functional/evented_server_spec.rb
|
327
467
|
- spec/functional/socket_server_spec.rb
|
328
468
|
- spec/functional/zmq_server_spec.rb
|
329
|
-
- spec/
|
330
|
-
- spec/
|
331
|
-
- spec/helper/silent_constants.rb
|
332
|
-
- spec/helper/tolerance_matcher.rb
|
469
|
+
- spec/lib/protobuf/cli_spec.rb
|
470
|
+
- spec/lib/protobuf/common/logger_spec.rb
|
333
471
|
- spec/lib/protobuf/message/encoder_spec.rb
|
472
|
+
- spec/lib/protobuf/message/enum_spec.rb
|
473
|
+
- spec/lib/protobuf/message/message_spec.rb
|
474
|
+
- spec/lib/protobuf/rpc/client_spec.rb
|
475
|
+
- spec/lib/protobuf/rpc/connector_spec.rb
|
476
|
+
- spec/lib/protobuf/rpc/connectors/base_spec.rb
|
477
|
+
- spec/lib/protobuf/rpc/connectors/common_spec.rb
|
478
|
+
- spec/lib/protobuf/rpc/connectors/socket_spec.rb
|
479
|
+
- spec/lib/protobuf/rpc/connectors/zmq_spec.rb
|
480
|
+
- spec/lib/protobuf/rpc/servers/evented_server_spec.rb
|
481
|
+
- spec/lib/protobuf/rpc/servers/socket_server_spec.rb
|
482
|
+
- spec/lib/protobuf/rpc/servers/zmq/broker_spec.rb
|
483
|
+
- spec/lib/protobuf/rpc/servers/zmq/server_spec.rb
|
484
|
+
- spec/lib/protobuf/rpc/servers/zmq/util_spec.rb
|
485
|
+
- spec/lib/protobuf/rpc/servers/zmq/worker_spec.rb
|
486
|
+
- spec/lib/protobuf/rpc/service_spec.rb
|
334
487
|
- spec/proto/test.pb.rb
|
335
488
|
- spec/proto/test.proto
|
336
489
|
- spec/proto/test_service.rb
|
337
490
|
- spec/proto/test_service_impl.rb
|
338
491
|
- spec/spec_helper.rb
|
339
|
-
- spec/
|
340
|
-
- spec/
|
341
|
-
- spec/
|
342
|
-
- spec/
|
343
|
-
- spec/
|
344
|
-
- spec/unit/rpc/connector_spec.rb
|
345
|
-
- spec/unit/rpc/connectors/base_spec.rb
|
346
|
-
- spec/unit/rpc/connectors/common_spec.rb
|
347
|
-
- spec/unit/rpc/connectors/eventmachine_client_spec.rb
|
348
|
-
- spec/unit/rpc/connectors/eventmachine_spec.rb
|
349
|
-
- spec/unit/rpc/connectors/socket_spec.rb
|
350
|
-
- spec/unit/rpc/connectors/zmq_spec.rb
|
351
|
-
- spec/unit/rpc/servers/evented_server_spec.rb
|
352
|
-
- spec/unit/rpc/servers/socket_server_spec.rb
|
353
|
-
- spec/unit/rpc/servers/zmq/broker_spec.rb
|
354
|
-
- spec/unit/rpc/servers/zmq/server_spec.rb
|
355
|
-
- spec/unit/rpc/servers/zmq/util_spec.rb
|
356
|
-
- spec/unit/rpc/servers/zmq/worker_spec.rb
|
357
|
-
- spec/unit/rpc/service_spec.rb
|
358
|
-
- test/check_unbuild.rb
|
492
|
+
- spec/support/all.rb
|
493
|
+
- spec/support/server.rb
|
494
|
+
- spec/support/silent_constants.rb
|
495
|
+
- spec/support/test_app_file.rb
|
496
|
+
- spec/support/tolerance_matcher.rb
|
359
497
|
- test/data/data.bin
|
360
498
|
- test/data/data_source.py
|
361
499
|
- test/data/types.bin
|
@@ -388,8 +526,6 @@ test_files:
|
|
388
526
|
- test/proto/types.pb.rb
|
389
527
|
- test/proto/types.proto
|
390
528
|
- test/test_addressbook.rb
|
391
|
-
- test/test_compiler.rb
|
392
|
-
- test/test_descriptor.rb
|
393
529
|
- test/test_enum_value.rb
|
394
530
|
- test/test_extension.rb
|
395
531
|
- test/test_lowercase.rb
|