thrift 0.9.2.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/ext/binary_protocol_accelerated.c +12 -12
- data/ext/struct.c +5 -1
- data/lib/thrift.rb +8 -4
- data/lib/thrift/multiplexed_processor.rb +76 -0
- data/lib/thrift/processor.rb +24 -6
- data/lib/thrift/protocol/base_protocol.rb +11 -3
- data/lib/thrift/protocol/binary_protocol.rb +8 -1
- data/lib/thrift/protocol/binary_protocol_accelerated.rb +8 -0
- data/lib/thrift/protocol/compact_protocol.rb +8 -0
- data/lib/thrift/protocol/json_protocol.rb +21 -4
- data/lib/thrift/protocol/multiplexed_protocol.rb +44 -0
- data/lib/thrift/protocol/protocol_decorator.rb +194 -0
- data/lib/thrift/server/base_server.rb +8 -2
- data/lib/thrift/server/simple_server.rb +5 -1
- data/lib/thrift/server/thread_pool_server.rb +5 -1
- data/lib/thrift/server/threaded_server.rb +5 -1
- data/lib/thrift/transport/base_server_transport.rb +1 -1
- data/lib/thrift/transport/base_transport.rb +8 -0
- data/lib/thrift/transport/buffered_transport.rb +9 -1
- data/lib/thrift/transport/framed_transport.rb +9 -1
- data/lib/thrift/transport/http_client_transport.rb +7 -0
- data/lib/thrift/transport/io_stream_transport.rb +4 -1
- data/lib/thrift/transport/memory_buffer_transport.rb +4 -0
- data/lib/thrift/transport/server_socket.rb +6 -1
- data/lib/thrift/transport/socket.rb +21 -17
- data/lib/thrift/transport/ssl_server_socket.rb +41 -0
- data/lib/thrift/transport/ssl_socket.rb +51 -0
- data/lib/thrift/transport/unix_server_socket.rb +5 -1
- data/lib/thrift/transport/unix_socket.rb +5 -1
- data/lib/thrift/union.rb +3 -6
- data/spec/BaseService.thrift +27 -0
- data/spec/ExtendedService.thrift +25 -0
- data/spec/base_protocol_spec.rb +79 -71
- data/spec/base_transport_spec.rb +155 -117
- data/spec/binary_protocol_accelerated_spec.rb +6 -2
- data/spec/binary_protocol_spec.rb +16 -8
- data/spec/binary_protocol_spec_shared.rb +75 -72
- data/spec/bytes_spec.rb +38 -38
- data/spec/client_spec.rb +41 -42
- data/spec/compact_protocol_spec.rb +32 -17
- data/spec/exception_spec.rb +54 -54
- data/spec/flat_spec.rb +62 -0
- data/spec/http_client_spec.rb +74 -33
- data/spec/json_protocol_spec.rb +170 -131
- data/spec/namespaced_spec.rb +10 -5
- data/spec/nonblocking_server_spec.rb +16 -16
- data/spec/processor_spec.rb +26 -26
- data/spec/serializer_spec.rb +20 -20
- data/spec/server_socket_spec.rb +27 -22
- data/spec/server_spec.rb +91 -51
- data/spec/socket_spec.rb +23 -16
- data/spec/socket_spec_shared.rb +31 -31
- data/spec/spec_helper.rb +4 -1
- data/spec/ssl_server_socket_spec.rb +34 -0
- data/spec/ssl_socket_spec.rb +78 -0
- data/spec/struct_nested_containers_spec.rb +24 -24
- data/spec/struct_spec.rb +120 -120
- data/spec/thin_http_server_spec.rb +18 -18
- data/spec/types_spec.rb +56 -53
- data/spec/union_spec.rb +51 -40
- data/spec/unix_socket_spec.rb +43 -34
- metadata +191 -143
    
        data/spec/unix_socket_spec.rb
    CHANGED
    
    | @@ -26,21 +26,26 @@ describe 'UNIXSocket' do | |
| 26 26 | 
             
                before(:each) do
         | 
| 27 27 | 
             
                  @path = '/tmp/thrift_spec_socket'
         | 
| 28 28 | 
             
                  @socket = Thrift::UNIXSocket.new(@path)
         | 
| 29 | 
            -
                  @handle =  | 
| 30 | 
            -
                  @handle. | 
| 31 | 
            -
                  ::UNIXSocket. | 
| 29 | 
            +
                  @handle = double("Handle", :closed? => false)
         | 
| 30 | 
            +
                  allow(@handle).to receive(:close)
         | 
| 31 | 
            +
                  allow(::UNIXSocket).to receive(:new).and_return(@handle)
         | 
| 32 32 | 
             
                end
         | 
| 33 33 |  | 
| 34 34 | 
             
                it_should_behave_like "a socket"
         | 
| 35 35 |  | 
| 36 36 | 
             
                it "should raise a TransportException when it cannot open a socket" do
         | 
| 37 | 
            -
                  ::UNIXSocket. | 
| 38 | 
            -
                   | 
| 37 | 
            +
                  expect(::UNIXSocket).to receive(:new).and_raise(StandardError)
         | 
| 38 | 
            +
                  expect { @socket.open }.to raise_error(Thrift::TransportException) { |e| expect(e.type).to eq(Thrift::TransportException::NOT_OPEN) }
         | 
| 39 39 | 
             
                end
         | 
| 40 40 |  | 
| 41 41 | 
             
                it "should accept an optional timeout" do
         | 
| 42 | 
            -
                  ::UNIXSocket. | 
| 43 | 
            -
                  Thrift::UNIXSocket.new(@path, 5).timeout. | 
| 42 | 
            +
                  allow(::UNIXSocket).to receive(:new)
         | 
| 43 | 
            +
                  expect(Thrift::UNIXSocket.new(@path, 5).timeout).to eq(5)
         | 
| 44 | 
            +
                end
         | 
| 45 | 
            +
                
         | 
| 46 | 
            +
                it "should provide a reasonable to_s" do
         | 
| 47 | 
            +
                  allow(::UNIXSocket).to receive(:new)
         | 
| 48 | 
            +
                  expect(Thrift::UNIXSocket.new(@path).to_s).to eq("domain(#{@path})")
         | 
| 44 49 | 
             
                end
         | 
| 45 50 | 
             
              end
         | 
| 46 51 |  | 
| @@ -51,57 +56,61 @@ describe 'UNIXSocket' do | |
| 51 56 | 
             
                end
         | 
| 52 57 |  | 
| 53 58 | 
             
                it "should create a handle when calling listen" do
         | 
| 54 | 
            -
                  UNIXServer. | 
| 59 | 
            +
                  expect(UNIXServer).to receive(:new).with(@path)
         | 
| 55 60 | 
             
                  @socket.listen
         | 
| 56 61 | 
             
                end
         | 
| 57 62 |  | 
| 58 63 | 
             
                it "should create a Thrift::UNIXSocket to wrap accepted sockets" do
         | 
| 59 | 
            -
                  handle =  | 
| 60 | 
            -
                  UNIXServer. | 
| 64 | 
            +
                  handle = double("UNIXServer")
         | 
| 65 | 
            +
                  expect(UNIXServer).to receive(:new).with(@path).and_return(handle)
         | 
| 61 66 | 
             
                  @socket.listen
         | 
| 62 | 
            -
                  sock =  | 
| 63 | 
            -
                  handle. | 
| 64 | 
            -
                  trans =  | 
| 65 | 
            -
                  Thrift::UNIXSocket. | 
| 66 | 
            -
                  trans. | 
| 67 | 
            -
                  @socket.accept. | 
| 67 | 
            +
                  sock = double("sock")
         | 
| 68 | 
            +
                  expect(handle).to receive(:accept).and_return(sock)
         | 
| 69 | 
            +
                  trans = double("UNIXSocket")
         | 
| 70 | 
            +
                  expect(Thrift::UNIXSocket).to receive(:new).and_return(trans)
         | 
| 71 | 
            +
                  expect(trans).to receive(:handle=).with(sock)
         | 
| 72 | 
            +
                  expect(@socket.accept).to eq(trans)
         | 
| 68 73 | 
             
                end
         | 
| 69 74 |  | 
| 70 75 | 
             
                it "should close the handle when closed" do
         | 
| 71 | 
            -
                  handle =  | 
| 72 | 
            -
                  UNIXServer. | 
| 76 | 
            +
                  handle = double("UNIXServer", :closed? => false)
         | 
| 77 | 
            +
                  expect(UNIXServer).to receive(:new).with(@path).and_return(handle)
         | 
| 73 78 | 
             
                  @socket.listen
         | 
| 74 | 
            -
                  handle. | 
| 75 | 
            -
                  File. | 
| 79 | 
            +
                  expect(handle).to receive(:close)
         | 
| 80 | 
            +
                  allow(File).to receive(:delete)
         | 
| 76 81 | 
             
                  @socket.close
         | 
| 77 82 | 
             
                end
         | 
| 78 83 |  | 
| 79 84 | 
             
                it "should delete the socket when closed" do
         | 
| 80 | 
            -
                  handle =  | 
| 81 | 
            -
                  UNIXServer. | 
| 85 | 
            +
                  handle = double("UNIXServer", :closed? => false)
         | 
| 86 | 
            +
                  expect(UNIXServer).to receive(:new).with(@path).and_return(handle)
         | 
| 82 87 | 
             
                  @socket.listen
         | 
| 83 | 
            -
                  handle. | 
| 84 | 
            -
                  File. | 
| 88 | 
            +
                  allow(handle).to receive(:close)
         | 
| 89 | 
            +
                  expect(File).to receive(:delete).with(@path)
         | 
| 85 90 | 
             
                  @socket.close
         | 
| 86 91 | 
             
                end
         | 
| 87 92 |  | 
| 88 93 | 
             
                it "should return nil when accepting if there is no handle" do
         | 
| 89 | 
            -
                  @socket.accept. | 
| 94 | 
            +
                  expect(@socket.accept).to be_nil
         | 
| 90 95 | 
             
                end
         | 
| 91 96 |  | 
| 92 97 | 
             
                it "should return true for closed? when appropriate" do
         | 
| 93 | 
            -
                  handle =  | 
| 94 | 
            -
                  UNIXServer. | 
| 95 | 
            -
                  File. | 
| 98 | 
            +
                  handle = double("UNIXServer", :closed? => false)
         | 
| 99 | 
            +
                  allow(UNIXServer).to receive(:new).and_return(handle)
         | 
| 100 | 
            +
                  allow(File).to receive(:delete)
         | 
| 96 101 | 
             
                  @socket.listen
         | 
| 97 | 
            -
                  @socket. | 
| 98 | 
            -
                  handle. | 
| 102 | 
            +
                  expect(@socket).not_to be_closed
         | 
| 103 | 
            +
                  allow(handle).to receive(:close)
         | 
| 99 104 | 
             
                  @socket.close
         | 
| 100 | 
            -
                  @socket. | 
| 105 | 
            +
                  expect(@socket).to be_closed
         | 
| 101 106 | 
             
                  @socket.listen
         | 
| 102 | 
            -
                  @socket. | 
| 103 | 
            -
                  handle. | 
| 104 | 
            -
                  @socket. | 
| 107 | 
            +
                  expect(@socket).not_to be_closed
         | 
| 108 | 
            +
                  allow(handle).to receive(:closed?).and_return(true)
         | 
| 109 | 
            +
                  expect(@socket).to be_closed
         | 
| 110 | 
            +
                end
         | 
| 111 | 
            +
             | 
| 112 | 
            +
                it "should provide a reasonable to_s" do
         | 
| 113 | 
            +
                  expect(@socket.to_s).to eq("domain(#{@path})")
         | 
| 105 114 | 
             
                end
         | 
| 106 115 | 
             
              end
         | 
| 107 116 | 
             
            end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,112 +1,141 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: thrift
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0. | 
| 5 | 
            -
              prerelease: 
         | 
| 4 | 
            +
              version: 0.14.0
         | 
| 6 5 | 
             
            platform: ruby
         | 
| 7 6 | 
             
            authors:
         | 
| 8 | 
            -
            - Thrift Developers
         | 
| 9 | 
            -
            autorequire: | 
| 7 | 
            +
            - Apache Thrift Developers
         | 
| 8 | 
            +
            autorequire:
         | 
| 10 9 | 
             
            bindir: bin
         | 
| 11 10 | 
             
            cert_chain: []
         | 
| 12 | 
            -
            date:  | 
| 11 | 
            +
            date: 2021-02-12 00:00:00.000000000 Z
         | 
| 13 12 | 
             
            dependencies:
         | 
| 14 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 15 | 
            -
              name:  | 
| 14 | 
            +
              name: bundler
         | 
| 15 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 16 | 
            +
                requirements:
         | 
| 17 | 
            +
                - - "~>"
         | 
| 18 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 19 | 
            +
                    version: '1.11'
         | 
| 20 | 
            +
              type: :development
         | 
| 21 | 
            +
              prerelease: false
         | 
| 22 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 23 | 
            +
                requirements:
         | 
| 24 | 
            +
                - - "~>"
         | 
| 25 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 26 | 
            +
                    version: '1.11'
         | 
| 27 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 28 | 
            +
              name: pry
         | 
| 29 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 30 | 
            +
                requirements:
         | 
| 31 | 
            +
                - - "~>"
         | 
| 32 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 33 | 
            +
                    version: 0.11.3
         | 
| 34 | 
            +
              type: :development
         | 
| 35 | 
            +
              prerelease: false
         | 
| 36 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 37 | 
            +
                requirements:
         | 
| 38 | 
            +
                - - "~>"
         | 
| 39 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 40 | 
            +
                    version: 0.11.3
         | 
| 41 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 42 | 
            +
              name: pry-byebug
         | 
| 43 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 44 | 
            +
                requirements:
         | 
| 45 | 
            +
                - - "~>"
         | 
| 46 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 47 | 
            +
                    version: '3.6'
         | 
| 48 | 
            +
              type: :development
         | 
| 49 | 
            +
              prerelease: false
         | 
| 50 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 51 | 
            +
                requirements:
         | 
| 52 | 
            +
                - - "~>"
         | 
| 53 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 54 | 
            +
                    version: '3.6'
         | 
| 55 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 56 | 
            +
              name: pry-stack_explorer
         | 
| 16 57 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 17 | 
            -
                none: false
         | 
| 18 58 | 
             
                requirements:
         | 
| 19 | 
            -
                - - ~>
         | 
| 59 | 
            +
                - - "~>"
         | 
| 20 60 | 
             
                  - !ruby/object:Gem::Version
         | 
| 21 | 
            -
                    version:  | 
| 61 | 
            +
                    version: 0.4.9.2
         | 
| 22 62 | 
             
              type: :development
         | 
| 23 63 | 
             
              prerelease: false
         | 
| 24 64 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 25 | 
            -
                none: false
         | 
| 26 65 | 
             
                requirements:
         | 
| 27 | 
            -
                - - ~>
         | 
| 66 | 
            +
                - - "~>"
         | 
| 28 67 | 
             
                  - !ruby/object:Gem::Version
         | 
| 29 | 
            -
                    version:  | 
| 68 | 
            +
                    version: 0.4.9.2
         | 
| 30 69 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 31 70 | 
             
              name: rack
         | 
| 32 71 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 33 | 
            -
                none: false
         | 
| 34 72 | 
             
                requirements:
         | 
| 35 | 
            -
                - -  | 
| 73 | 
            +
                - - '='
         | 
| 36 74 | 
             
                  - !ruby/object:Gem::Version
         | 
| 37 | 
            -
                    version:  | 
| 75 | 
            +
                    version: 2.0.8
         | 
| 38 76 | 
             
              type: :development
         | 
| 39 77 | 
             
              prerelease: false
         | 
| 40 78 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 41 | 
            -
                none: false
         | 
| 42 79 | 
             
                requirements:
         | 
| 43 | 
            -
                - -  | 
| 80 | 
            +
                - - '='
         | 
| 44 81 | 
             
                  - !ruby/object:Gem::Version
         | 
| 45 | 
            -
                    version:  | 
| 82 | 
            +
                    version: 2.0.8
         | 
| 46 83 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 47 84 | 
             
              name: rack-test
         | 
| 48 85 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 49 | 
            -
                none: false
         | 
| 50 86 | 
             
                requirements:
         | 
| 51 | 
            -
                - - ~>
         | 
| 87 | 
            +
                - - "~>"
         | 
| 52 88 | 
             
                  - !ruby/object:Gem::Version
         | 
| 53 | 
            -
                    version: 0. | 
| 89 | 
            +
                    version: 0.8.3
         | 
| 54 90 | 
             
              type: :development
         | 
| 55 91 | 
             
              prerelease: false
         | 
| 56 92 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 57 | 
            -
                none: false
         | 
| 58 93 | 
             
                requirements:
         | 
| 59 | 
            -
                - - ~>
         | 
| 94 | 
            +
                - - "~>"
         | 
| 60 95 | 
             
                  - !ruby/object:Gem::Version
         | 
| 61 | 
            -
                    version: 0. | 
| 96 | 
            +
                    version: 0.8.3
         | 
| 62 97 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 63 | 
            -
              name:  | 
| 98 | 
            +
              name: rake
         | 
| 64 99 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 65 | 
            -
                none: false
         | 
| 66 100 | 
             
                requirements:
         | 
| 67 | 
            -
                - - ~>
         | 
| 101 | 
            +
                - - "~>"
         | 
| 68 102 | 
             
                  - !ruby/object:Gem::Version
         | 
| 69 | 
            -
                    version:  | 
| 103 | 
            +
                    version: '12.3'
         | 
| 70 104 | 
             
              type: :development
         | 
| 71 105 | 
             
              prerelease: false
         | 
| 72 106 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 73 | 
            -
                none: false
         | 
| 74 107 | 
             
                requirements:
         | 
| 75 | 
            -
                - - ~>
         | 
| 108 | 
            +
                - - "~>"
         | 
| 76 109 | 
             
                  - !ruby/object:Gem::Version
         | 
| 77 | 
            -
                    version:  | 
| 110 | 
            +
                    version: '12.3'
         | 
| 78 111 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 79 | 
            -
              name:  | 
| 112 | 
            +
              name: rspec
         | 
| 80 113 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 81 | 
            -
                none: false
         | 
| 82 114 | 
             
                requirements:
         | 
| 83 | 
            -
                - -  | 
| 115 | 
            +
                - - "~>"
         | 
| 84 116 | 
             
                  - !ruby/object:Gem::Version
         | 
| 85 | 
            -
                    version: ' | 
| 117 | 
            +
                    version: '3.7'
         | 
| 86 118 | 
             
              type: :development
         | 
| 87 119 | 
             
              prerelease: false
         | 
| 88 120 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 89 | 
            -
                none: false
         | 
| 90 121 | 
             
                requirements:
         | 
| 91 | 
            -
                - -  | 
| 122 | 
            +
                - - "~>"
         | 
| 92 123 | 
             
                  - !ruby/object:Gem::Version
         | 
| 93 | 
            -
                    version: ' | 
| 124 | 
            +
                    version: '3.7'
         | 
| 94 125 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 95 | 
            -
              name:  | 
| 126 | 
            +
              name: thin
         | 
| 96 127 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 97 | 
            -
                none: false
         | 
| 98 128 | 
             
                requirements:
         | 
| 99 | 
            -
                - -  | 
| 129 | 
            +
                - - "~>"
         | 
| 100 130 | 
             
                  - !ruby/object:Gem::Version
         | 
| 101 | 
            -
                    version: ' | 
| 131 | 
            +
                    version: '1.7'
         | 
| 102 132 | 
             
              type: :development
         | 
| 103 133 | 
             
              prerelease: false
         | 
| 104 134 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 105 | 
            -
                none: false
         | 
| 106 135 | 
             
                requirements:
         | 
| 107 | 
            -
                - -  | 
| 136 | 
            +
                - - "~>"
         | 
| 108 137 | 
             
                  - !ruby/object:Gem::Version
         | 
| 109 | 
            -
                    version: ' | 
| 138 | 
            +
                    version: '1.7'
         | 
| 110 139 | 
             
            description: Ruby bindings for the Apache Thrift RPC system
         | 
| 111 140 | 
             
            email:
         | 
| 112 141 | 
             
            - dev@thrift.apache.org
         | 
| @@ -115,73 +144,106 @@ extensions: | |
| 115 144 | 
             
            - ext/extconf.rb
         | 
| 116 145 | 
             
            extra_rdoc_files:
         | 
| 117 146 | 
             
            - README.md
         | 
| 118 | 
            -
            - ext/ | 
| 147 | 
            +
            - ext/thrift_native.c
         | 
| 119 148 | 
             
            - ext/bytes.c
         | 
| 120 | 
            -
            - ext/compact_protocol.c
         | 
| 121 | 
            -
            - ext/memory_buffer.c
         | 
| 122 149 | 
             
            - ext/protocol.c
         | 
| 123 150 | 
             
            - ext/strlcpy.c
         | 
| 151 | 
            +
            - ext/memory_buffer.c
         | 
| 152 | 
            +
            - ext/binary_protocol_accelerated.c
         | 
| 124 153 | 
             
            - ext/struct.c
         | 
| 125 | 
            -
            - ext/ | 
| 126 | 
            -
            - ext/binary_protocol_accelerated.h
         | 
| 127 | 
            -
            - ext/bytes.h
         | 
| 128 | 
            -
            - ext/compact_protocol.h
         | 
| 154 | 
            +
            - ext/compact_protocol.c
         | 
| 129 155 | 
             
            - ext/constants.h
         | 
| 130 156 | 
             
            - ext/macros.h
         | 
| 157 | 
            +
            - ext/strlcpy.h
         | 
| 158 | 
            +
            - ext/bytes.h
         | 
| 131 159 | 
             
            - ext/memory_buffer.h
         | 
| 132 160 | 
             
            - ext/protocol.h
         | 
| 133 | 
            -
            - ext/ | 
| 161 | 
            +
            - ext/binary_protocol_accelerated.h
         | 
| 134 162 | 
             
            - ext/struct.h
         | 
| 163 | 
            +
            - ext/compact_protocol.h
         | 
| 135 164 | 
             
            - ext/extconf.rb
         | 
| 136 | 
            -
            - lib/thrift/ | 
| 137 | 
            -
            - lib/thrift/ | 
| 138 | 
            -
            - lib/thrift/core_ext/fixnum.rb
         | 
| 139 | 
            -
            - lib/thrift/core_ext.rb
         | 
| 140 | 
            -
            - lib/thrift/exceptions.rb
         | 
| 165 | 
            +
            - lib/thrift/struct_union.rb
         | 
| 166 | 
            +
            - lib/thrift/struct.rb
         | 
| 141 167 | 
             
            - lib/thrift/processor.rb
         | 
| 142 | 
            -
            - lib/thrift/protocol/base_protocol.rb
         | 
| 143 | 
            -
            - lib/thrift/protocol/binary_protocol.rb
         | 
| 144 | 
            -
            - lib/thrift/protocol/binary_protocol_accelerated.rb
         | 
| 145 | 
            -
            - lib/thrift/protocol/compact_protocol.rb
         | 
| 146 168 | 
             
            - lib/thrift/protocol/json_protocol.rb
         | 
| 147 | 
            -
            - lib/thrift/ | 
| 148 | 
            -
            - lib/thrift/ | 
| 149 | 
            -
            - lib/thrift/ | 
| 150 | 
            -
            - lib/thrift/ | 
| 151 | 
            -
            - lib/thrift/ | 
| 152 | 
            -
            - lib/thrift/ | 
| 169 | 
            +
            - lib/thrift/protocol/multiplexed_protocol.rb
         | 
| 170 | 
            +
            - lib/thrift/protocol/protocol_decorator.rb
         | 
| 171 | 
            +
            - lib/thrift/protocol/compact_protocol.rb
         | 
| 172 | 
            +
            - lib/thrift/protocol/binary_protocol_accelerated.rb
         | 
| 173 | 
            +
            - lib/thrift/protocol/binary_protocol.rb
         | 
| 174 | 
            +
            - lib/thrift/protocol/base_protocol.rb
         | 
| 175 | 
            +
            - lib/thrift/types.rb
         | 
| 176 | 
            +
            - lib/thrift/thrift_native.rb
         | 
| 177 | 
            +
            - lib/thrift/union.rb
         | 
| 178 | 
            +
            - lib/thrift/bytes.rb
         | 
| 179 | 
            +
            - lib/thrift/client.rb
         | 
| 180 | 
            +
            - lib/thrift/multiplexed_processor.rb
         | 
| 153 181 | 
             
            - lib/thrift/server/thin_http_server.rb
         | 
| 182 | 
            +
            - lib/thrift/server/simple_server.rb
         | 
| 154 183 | 
             
            - lib/thrift/server/thread_pool_server.rb
         | 
| 155 184 | 
             
            - lib/thrift/server/threaded_server.rb
         | 
| 156 | 
            -
            - lib/thrift/ | 
| 157 | 
            -
            - lib/thrift/ | 
| 158 | 
            -
            - lib/thrift/ | 
| 159 | 
            -
            - lib/thrift/transport/ | 
| 160 | 
            -
            - lib/thrift/transport/ | 
| 185 | 
            +
            - lib/thrift/server/mongrel_http_server.rb
         | 
| 186 | 
            +
            - lib/thrift/server/base_server.rb
         | 
| 187 | 
            +
            - lib/thrift/server/nonblocking_server.rb
         | 
| 188 | 
            +
            - lib/thrift/transport/ssl_socket.rb
         | 
| 189 | 
            +
            - lib/thrift/transport/memory_buffer_transport.rb
         | 
| 161 190 | 
             
            - lib/thrift/transport/buffered_transport.rb
         | 
| 191 | 
            +
            - lib/thrift/transport/socket.rb
         | 
| 162 192 | 
             
            - lib/thrift/transport/framed_transport.rb
         | 
| 163 193 | 
             
            - lib/thrift/transport/http_client_transport.rb
         | 
| 194 | 
            +
            - lib/thrift/transport/base_server_transport.rb
         | 
| 195 | 
            +
            - lib/thrift/transport/ssl_server_socket.rb
         | 
| 196 | 
            +
            - lib/thrift/transport/unix_server_socket.rb
         | 
| 197 | 
            +
            - lib/thrift/transport/base_transport.rb
         | 
| 164 198 | 
             
            - lib/thrift/transport/io_stream_transport.rb
         | 
| 165 | 
            -
            - lib/thrift/transport/memory_buffer_transport.rb
         | 
| 166 199 | 
             
            - lib/thrift/transport/server_socket.rb
         | 
| 167 | 
            -
            - lib/thrift/transport/socket.rb
         | 
| 168 | 
            -
            - lib/thrift/transport/unix_server_socket.rb
         | 
| 169 200 | 
             
            - lib/thrift/transport/unix_socket.rb
         | 
| 170 | 
            -
            - lib/thrift/ | 
| 171 | 
            -
            - lib/thrift/ | 
| 201 | 
            +
            - lib/thrift/exceptions.rb
         | 
| 202 | 
            +
            - lib/thrift/core_ext.rb
         | 
| 203 | 
            +
            - lib/thrift/core_ext/fixnum.rb
         | 
| 204 | 
            +
            - lib/thrift/serializer/deserializer.rb
         | 
| 205 | 
            +
            - lib/thrift/serializer/serializer.rb
         | 
| 172 206 | 
             
            - lib/thrift.rb
         | 
| 173 207 | 
             
            files:
         | 
| 208 | 
            +
            - README.md
         | 
| 209 | 
            +
            - benchmark/Benchmark.thrift
         | 
| 210 | 
            +
            - benchmark/benchmark.rb
         | 
| 211 | 
            +
            - benchmark/client.rb
         | 
| 212 | 
            +
            - benchmark/server.rb
         | 
| 213 | 
            +
            - benchmark/thin_server.rb
         | 
| 214 | 
            +
            - ext/binary_protocol_accelerated.c
         | 
| 215 | 
            +
            - ext/binary_protocol_accelerated.h
         | 
| 216 | 
            +
            - ext/bytes.c
         | 
| 217 | 
            +
            - ext/bytes.h
         | 
| 218 | 
            +
            - ext/compact_protocol.c
         | 
| 219 | 
            +
            - ext/compact_protocol.h
         | 
| 220 | 
            +
            - ext/constants.h
         | 
| 221 | 
            +
            - ext/extconf.rb
         | 
| 222 | 
            +
            - ext/macros.h
         | 
| 223 | 
            +
            - ext/memory_buffer.c
         | 
| 224 | 
            +
            - ext/memory_buffer.h
         | 
| 225 | 
            +
            - ext/protocol.c
         | 
| 226 | 
            +
            - ext/protocol.h
         | 
| 227 | 
            +
            - ext/strlcpy.c
         | 
| 228 | 
            +
            - ext/strlcpy.h
         | 
| 229 | 
            +
            - ext/struct.c
         | 
| 230 | 
            +
            - ext/struct.h
         | 
| 231 | 
            +
            - ext/thrift_native.c
         | 
| 232 | 
            +
            - lib/thrift.rb
         | 
| 174 233 | 
             
            - lib/thrift/bytes.rb
         | 
| 175 234 | 
             
            - lib/thrift/client.rb
         | 
| 176 | 
            -
            - lib/thrift/core_ext/fixnum.rb
         | 
| 177 235 | 
             
            - lib/thrift/core_ext.rb
         | 
| 236 | 
            +
            - lib/thrift/core_ext/fixnum.rb
         | 
| 178 237 | 
             
            - lib/thrift/exceptions.rb
         | 
| 238 | 
            +
            - lib/thrift/multiplexed_processor.rb
         | 
| 179 239 | 
             
            - lib/thrift/processor.rb
         | 
| 180 240 | 
             
            - lib/thrift/protocol/base_protocol.rb
         | 
| 181 241 | 
             
            - lib/thrift/protocol/binary_protocol.rb
         | 
| 182 242 | 
             
            - lib/thrift/protocol/binary_protocol_accelerated.rb
         | 
| 183 243 | 
             
            - lib/thrift/protocol/compact_protocol.rb
         | 
| 184 244 | 
             
            - lib/thrift/protocol/json_protocol.rb
         | 
| 245 | 
            +
            - lib/thrift/protocol/multiplexed_protocol.rb
         | 
| 246 | 
            +
            - lib/thrift/protocol/protocol_decorator.rb
         | 
| 185 247 | 
             
            - lib/thrift/serializer/deserializer.rb
         | 
| 186 248 | 
             
            - lib/thrift/serializer/serializer.rb
         | 
| 187 249 | 
             
            - lib/thrift/server/base_server.rb
         | 
| @@ -203,11 +265,17 @@ files: | |
| 203 265 | 
             
            - lib/thrift/transport/memory_buffer_transport.rb
         | 
| 204 266 | 
             
            - lib/thrift/transport/server_socket.rb
         | 
| 205 267 | 
             
            - lib/thrift/transport/socket.rb
         | 
| 268 | 
            +
            - lib/thrift/transport/ssl_server_socket.rb
         | 
| 269 | 
            +
            - lib/thrift/transport/ssl_socket.rb
         | 
| 206 270 | 
             
            - lib/thrift/transport/unix_server_socket.rb
         | 
| 207 271 | 
             
            - lib/thrift/transport/unix_socket.rb
         | 
| 208 272 | 
             
            - lib/thrift/types.rb
         | 
| 209 273 | 
             
            - lib/thrift/union.rb
         | 
| 210 | 
            -
            -  | 
| 274 | 
            +
            - spec/BaseService.thrift
         | 
| 275 | 
            +
            - spec/ExtendedService.thrift
         | 
| 276 | 
            +
            - spec/Referenced.thrift
         | 
| 277 | 
            +
            - spec/ThriftNamespacedSpec.thrift
         | 
| 278 | 
            +
            - spec/ThriftSpec.thrift
         | 
| 211 279 | 
             
            - spec/base_protocol_spec.rb
         | 
| 212 280 | 
             
            - spec/base_transport_spec.rb
         | 
| 213 281 | 
             
            - spec/binary_protocol_accelerated_spec.rb
         | 
| @@ -217,114 +285,94 @@ files: | |
| 217 285 | 
             
            - spec/client_spec.rb
         | 
| 218 286 | 
             
            - spec/compact_protocol_spec.rb
         | 
| 219 287 | 
             
            - spec/exception_spec.rb
         | 
| 288 | 
            +
            - spec/flat_spec.rb
         | 
| 220 289 | 
             
            - spec/http_client_spec.rb
         | 
| 221 290 | 
             
            - spec/json_protocol_spec.rb
         | 
| 222 291 | 
             
            - spec/namespaced_spec.rb
         | 
| 223 292 | 
             
            - spec/nonblocking_server_spec.rb
         | 
| 224 293 | 
             
            - spec/processor_spec.rb
         | 
| 225 | 
            -
            - spec/Referenced.thrift
         | 
| 226 294 | 
             
            - spec/serializer_spec.rb
         | 
| 227 295 | 
             
            - spec/server_socket_spec.rb
         | 
| 228 296 | 
             
            - spec/server_spec.rb
         | 
| 229 297 | 
             
            - spec/socket_spec.rb
         | 
| 230 298 | 
             
            - spec/socket_spec_shared.rb
         | 
| 231 299 | 
             
            - spec/spec_helper.rb
         | 
| 300 | 
            +
            - spec/ssl_server_socket_spec.rb
         | 
| 301 | 
            +
            - spec/ssl_socket_spec.rb
         | 
| 232 302 | 
             
            - spec/struct_nested_containers_spec.rb
         | 
| 233 303 | 
             
            - spec/struct_spec.rb
         | 
| 234 304 | 
             
            - spec/thin_http_server_spec.rb
         | 
| 235 | 
            -
            - spec/ThriftNamespacedSpec.thrift
         | 
| 236 | 
            -
            - spec/ThriftSpec.thrift
         | 
| 237 305 | 
             
            - spec/types_spec.rb
         | 
| 238 306 | 
             
            - spec/union_spec.rb
         | 
| 239 307 | 
             
            - spec/unix_socket_spec.rb
         | 
| 240 | 
            -
            - README.md
         | 
| 241 | 
            -
            - ext/binary_protocol_accelerated.c
         | 
| 242 | 
            -
            - ext/bytes.c
         | 
| 243 | 
            -
            - ext/compact_protocol.c
         | 
| 244 | 
            -
            - ext/memory_buffer.c
         | 
| 245 | 
            -
            - ext/protocol.c
         | 
| 246 | 
            -
            - ext/strlcpy.c
         | 
| 247 | 
            -
            - ext/struct.c
         | 
| 248 | 
            -
            - ext/thrift_native.c
         | 
| 249 | 
            -
            - ext/binary_protocol_accelerated.h
         | 
| 250 | 
            -
            - ext/bytes.h
         | 
| 251 | 
            -
            - ext/compact_protocol.h
         | 
| 252 | 
            -
            - ext/constants.h
         | 
| 253 | 
            -
            - ext/macros.h
         | 
| 254 | 
            -
            - ext/memory_buffer.h
         | 
| 255 | 
            -
            - ext/protocol.h
         | 
| 256 | 
            -
            - ext/strlcpy.h
         | 
| 257 | 
            -
            - ext/struct.h
         | 
| 258 | 
            -
            - ext/extconf.rb
         | 
| 259 | 
            -
            - benchmark/benchmark.rb
         | 
| 260 | 
            -
            - benchmark/Benchmark.thrift
         | 
| 261 | 
            -
            - benchmark/client.rb
         | 
| 262 | 
            -
            - benchmark/server.rb
         | 
| 263 | 
            -
            - benchmark/thin_server.rb
         | 
| 264 308 | 
             
            homepage: http://thrift.apache.org
         | 
| 265 309 | 
             
            licenses:
         | 
| 266 | 
            -
            - Apache | 
| 267 | 
            -
             | 
| 310 | 
            +
            - Apache-2.0
         | 
| 311 | 
            +
            metadata: {}
         | 
| 312 | 
            +
            post_install_message:
         | 
| 268 313 | 
             
            rdoc_options:
         | 
| 269 | 
            -
            - --line-numbers
         | 
| 270 | 
            -
            - --inline-source
         | 
| 271 | 
            -
            - --title
         | 
| 314 | 
            +
            - "--line-numbers"
         | 
| 315 | 
            +
            - "--inline-source"
         | 
| 316 | 
            +
            - "--title"
         | 
| 272 317 | 
             
            - Thrift
         | 
| 273 | 
            -
            - --main
         | 
| 318 | 
            +
            - "--main"
         | 
| 274 319 | 
             
            - README
         | 
| 275 320 | 
             
            require_paths:
         | 
| 276 321 | 
             
            - lib
         | 
| 277 322 | 
             
            - ext
         | 
| 278 323 | 
             
            required_ruby_version: !ruby/object:Gem::Requirement
         | 
| 279 | 
            -
              none: false
         | 
| 280 324 | 
             
              requirements:
         | 
| 281 | 
            -
              - -  | 
| 325 | 
            +
              - - ">="
         | 
| 282 326 | 
             
                - !ruby/object:Gem::Version
         | 
| 283 327 | 
             
                  version: '0'
         | 
| 284 328 | 
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 285 | 
            -
              none: false
         | 
| 286 329 | 
             
              requirements:
         | 
| 287 | 
            -
              - -  | 
| 330 | 
            +
              - - ">="
         | 
| 288 331 | 
             
                - !ruby/object:Gem::Version
         | 
| 289 332 | 
             
                  version: '0'
         | 
| 290 333 | 
             
            requirements: []
         | 
| 291 334 | 
             
            rubyforge_project: thrift
         | 
| 292 | 
            -
            rubygems_version:  | 
| 293 | 
            -
            signing_key: | 
| 294 | 
            -
            specification_version:  | 
| 335 | 
            +
            rubygems_version: 2.7.6.2
         | 
| 336 | 
            +
            signing_key:
         | 
| 337 | 
            +
            specification_version: 4
         | 
| 295 338 | 
             
            summary: Ruby bindings for Apache Thrift
         | 
| 296 339 | 
             
            test_files:
         | 
| 297 | 
            -
            - spec/ | 
| 298 | 
            -
            - spec/ | 
| 340 | 
            +
            - spec/types_spec.rb
         | 
| 341 | 
            +
            - spec/union_spec.rb
         | 
| 342 | 
            +
            - spec/ThriftSpec.thrift
         | 
| 343 | 
            +
            - spec/spec_helper.rb
         | 
| 299 344 | 
             
            - spec/binary_protocol_accelerated_spec.rb
         | 
| 300 | 
            -
            - spec/ | 
| 301 | 
            -
            - spec/ | 
| 345 | 
            +
            - spec/ssl_socket_spec.rb
         | 
| 346 | 
            +
            - spec/http_client_spec.rb
         | 
| 347 | 
            +
            - spec/flat_spec.rb
         | 
| 348 | 
            +
            - spec/server_socket_spec.rb
         | 
| 302 349 | 
             
            - spec/bytes_spec.rb
         | 
| 303 | 
            -
            - spec/ | 
| 304 | 
            -
            - spec/ | 
| 350 | 
            +
            - spec/binary_protocol_spec.rb
         | 
| 351 | 
            +
            - spec/socket_spec.rb
         | 
| 352 | 
            +
            - spec/struct_spec.rb
         | 
| 305 353 | 
             
            - spec/exception_spec.rb
         | 
| 306 | 
            -
            - spec/ | 
| 307 | 
            -
            - spec/ | 
| 354 | 
            +
            - spec/thin_http_server_spec.rb
         | 
| 355 | 
            +
            - spec/BaseService.thrift
         | 
| 356 | 
            +
            - spec/compact_protocol_spec.rb
         | 
| 308 357 | 
             
            - spec/namespaced_spec.rb
         | 
| 309 | 
            -
            - spec/nonblocking_server_spec.rb
         | 
| 310 358 | 
             
            - spec/processor_spec.rb
         | 
| 311 | 
            -
            - spec/ | 
| 359 | 
            +
            - spec/ssl_server_socket_spec.rb
         | 
| 360 | 
            +
            - spec/ExtendedService.thrift
         | 
| 361 | 
            +
            - spec/binary_protocol_spec_shared.rb
         | 
| 362 | 
            +
            - spec/struct_nested_containers_spec.rb
         | 
| 363 | 
            +
            - spec/base_protocol_spec.rb
         | 
| 312 364 | 
             
            - spec/serializer_spec.rb
         | 
| 313 | 
            -
            - spec/ | 
| 314 | 
            -
            - spec/ | 
| 315 | 
            -
            - spec/ | 
| 365 | 
            +
            - spec/json_protocol_spec.rb
         | 
| 366 | 
            +
            - spec/base_transport_spec.rb
         | 
| 367 | 
            +
            - spec/nonblocking_server_spec.rb
         | 
| 368 | 
            +
            - spec/Referenced.thrift
         | 
| 369 | 
            +
            - spec/unix_socket_spec.rb
         | 
| 316 370 | 
             
            - spec/socket_spec_shared.rb
         | 
| 317 | 
            -
            - spec/spec_helper.rb
         | 
| 318 | 
            -
            - spec/struct_nested_containers_spec.rb
         | 
| 319 | 
            -
            - spec/struct_spec.rb
         | 
| 320 | 
            -
            - spec/thin_http_server_spec.rb
         | 
| 321 371 | 
             
            - spec/ThriftNamespacedSpec.thrift
         | 
| 322 | 
            -
            - spec/ | 
| 323 | 
            -
            - spec/ | 
| 324 | 
            -
            - spec/union_spec.rb
         | 
| 325 | 
            -
            - spec/unix_socket_spec.rb
         | 
| 372 | 
            +
            - spec/server_spec.rb
         | 
| 373 | 
            +
            - spec/client_spec.rb
         | 
| 326 374 | 
             
            - benchmark/benchmark.rb
         | 
| 327 | 
            -
            - benchmark/Benchmark.thrift
         | 
| 328 | 
            -
            - benchmark/client.rb
         | 
| 329 375 | 
             
            - benchmark/server.rb
         | 
| 330 376 | 
             
            - benchmark/thin_server.rb
         | 
| 377 | 
            +
            - benchmark/client.rb
         | 
| 378 | 
            +
            - benchmark/Benchmark.thrift
         |