| Mark Slee | 54b7ab9 | 2007-03-06 00:06:27 +0000 | [diff] [blame] | 1 | Thrift Ruby Software Library | 
|  | 2 |  | 
|  | 3 | Author: Mark Slee (mcslee@facebook.com) | 
|  | 4 | Last Modified: 2007-Mar-05 | 
|  | 5 |  | 
|  | 6 | Thrift is distributed under the Thrift open source software license. | 
|  | 7 | Please see the included LICENSE file. | 
|  | 8 |  | 
|  | 9 | Using Thrift with Ruby | 
|  | 10 | ====================== | 
|  | 11 |  | 
|  | 12 | Okay, I'll be honest. I learned Ruby by implementing the Thrift library in | 
|  | 13 | Ruby and writing the code generator at the same time. I am not a trendy | 
|  | 14 | web 2.0 programmer. Shit, I don't even know Rails. So if you care about Ruby | 
|  | 15 | you will probably find that this is currently the least robust Thrift library | 
|  | 16 | implementation. But there's plenty of time to improve it... | 
|  | 17 |  | 
|  | 18 | The source code for the Ruby library is designed for installation with the | 
|  | 19 | Python-esque setup.rb utility, which is included here and redistributable | 
|  | 20 | under the GPL license. | 
|  | 21 |  | 
|  | 22 | To install the Thrift Ruby libraries, become superuser and do: | 
|  | 23 |  | 
|  | 24 | ruby setup.rb config | 
|  | 25 | ruby setup.rb setup | 
|  | 26 | ruby setup.rb install | 
|  | 27 |  | 
|  | 28 | Alternatively, if you know more about Ruby than me, you can improve the build | 
|  | 29 | and installation process and contribute them back to this project. Wicked. |