From 43df5c5b8a942f59b28c04e7091e4db0a39bd1e3 Mon Sep 17 00:00:00 2001 From: Mark Slee Date: Thu, 1 Mar 2007 00:34:42 +0000 Subject: [PATCH] Applying Thrift license to ruby source Reviewed By: ruby git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665034 13f79535-47bb-0310-9956-ffa450edef68 --- lib/rb/lib/thrift/protocol/tbinaryprotocol.rb | 10 ++++++++++ lib/rb/lib/thrift/protocol/tprotocol.rb | 10 ++++++++++ lib/rb/lib/thrift/server/tserver.rb | 10 ++++++++++ lib/rb/lib/thrift/thrift.rb | 10 ++++++++++ lib/rb/lib/thrift/transport/tsocket.rb | 10 ++++++++++ lib/rb/lib/thrift/transport/ttransport.rb | 10 ++++++++++ 6 files changed, 60 insertions(+) diff --git a/lib/rb/lib/thrift/protocol/tbinaryprotocol.rb b/lib/rb/lib/thrift/protocol/tbinaryprotocol.rb index 2f0de965..aaf7776d 100644 --- a/lib/rb/lib/thrift/protocol/tbinaryprotocol.rb +++ b/lib/rb/lib/thrift/protocol/tbinaryprotocol.rb @@ -1,3 +1,13 @@ +#!/usr/bin/env ruby +# +# Copyright (c) 2006- Facebook +# Distributed under the Thrift Software License +# +# See accompanying file LICENSE or visit the Thrift site at: +# http://developers.facebook.com/thrift/ +# +# Author: Mark Slee +# require 'thrift/protocol/tprotocol' class TBinaryProtocol < TProtocol diff --git a/lib/rb/lib/thrift/protocol/tprotocol.rb b/lib/rb/lib/thrift/protocol/tprotocol.rb index 56868a21..43760242 100644 --- a/lib/rb/lib/thrift/protocol/tprotocol.rb +++ b/lib/rb/lib/thrift/protocol/tprotocol.rb @@ -1,3 +1,13 @@ +#!/usr/bin/env ruby +# +# Copyright (c) 2006- Facebook +# Distributed under the Thrift Software License +# +# See accompanying file LICENSE or visit the Thrift site at: +# http://developers.facebook.com/thrift/ +# +# Author: Mark Slee +# class TType STOP = 0 VOID = 1 diff --git a/lib/rb/lib/thrift/server/tserver.rb b/lib/rb/lib/thrift/server/tserver.rb index c68b70f7..33bf393d 100644 --- a/lib/rb/lib/thrift/server/tserver.rb +++ b/lib/rb/lib/thrift/server/tserver.rb @@ -1,3 +1,13 @@ +#!/usr/bin/env ruby +# +# Copyright (c) 2006- Facebook +# Distributed under the Thrift Software License +# +# See accompanying file LICENSE or visit the Thrift site at: +# http://developers.facebook.com/thrift/ +# +# Author: Mark Slee +# require('thrift/protocol/tprotocol') require('thrift/protocol/tbinaryprotocol') require('thrift/transport/ttransport') diff --git a/lib/rb/lib/thrift/thrift.rb b/lib/rb/lib/thrift/thrift.rb index 347079ff..16c7174b 100644 --- a/lib/rb/lib/thrift/thrift.rb +++ b/lib/rb/lib/thrift/thrift.rb @@ -1,3 +1,13 @@ +#!/usr/bin/env ruby +# +# Copyright (c) 2006- Facebook +# Distributed under the Thrift Software License +# +# See accompanying file LICENSE or visit the Thrift site at: +# http://developers.facebook.com/thrift/ +# +# Author: Mark Slee +# module TProcessor def process(iprot, oprot); nil; end end diff --git a/lib/rb/lib/thrift/transport/tsocket.rb b/lib/rb/lib/thrift/transport/tsocket.rb index 2f128b87..d2e197f9 100644 --- a/lib/rb/lib/thrift/transport/tsocket.rb +++ b/lib/rb/lib/thrift/transport/tsocket.rb @@ -1,3 +1,13 @@ +#!/usr/bin/env ruby +# +# Copyright (c) 2006- Facebook +# Distributed under the Thrift Software License +# +# See accompanying file LICENSE or visit the Thrift site at: +# http://developers.facebook.com/thrift/ +# +# Author: Mark Slee +# require 'thrift/transport/ttransport' require 'socket' diff --git a/lib/rb/lib/thrift/transport/ttransport.rb b/lib/rb/lib/thrift/transport/ttransport.rb index e8c578db..92c606a4 100644 --- a/lib/rb/lib/thrift/transport/ttransport.rb +++ b/lib/rb/lib/thrift/transport/ttransport.rb @@ -1,3 +1,13 @@ +#!/usr/bin/env ruby +# +# Copyright (c) 2006- Facebook +# Distributed under the Thrift Software License +# +# See accompanying file LICENSE or visit the Thrift site at: +# http://developers.facebook.com/thrift/ +# +# Author: Mark Slee +# class TTransportException < StandardError def initialize(message) super(message) -- 2.17.1