Enforce consistent emtpy lines and trailing whitespaces in Ruby code
diff --git a/test/rb/benchmarks/protocol_benchmark.rb b/test/rb/benchmarks/protocol_benchmark.rb
index 7eee095..64fb4fc 100644
--- a/test/rb/benchmarks/protocol_benchmark.rb
+++ b/test/rb/benchmarks/protocol_benchmark.rb
@@ -48,7 +48,6 @@
 header_zlib_protocol = Thrift::HeaderProtocol.new(transport5)
 header_zlib_protocol.add_transform(Thrift::HeaderTransformID::ZLIB)
 
-
 ooe = Fixtures::Structs::OneOfEach.new
 ooe.im_true   = true
 ooe.im_false  = false
@@ -129,12 +128,11 @@
 n4.str_map = {}
 n4.str_map[''] = n3
 
-
 # prof = RubyProf.profile do
 #   n4.write(c_fast_binary_protocol)
 #   Fixtures::Structs::Nested4.new.read(c_fast_binary_protocol)
 # end
-# 
+#
 # printer = RubyProf::GraphHtmlPrinter.new(prof)
 # printer.print(STDOUT, :min_percent=>0)
 
@@ -142,39 +140,37 @@
   x.report("ruby write large (1MB) structure once") do
     n4.write(ruby_binary_protocol)
   end
-  
+
   x.report("ruby read large (1MB) structure once") do
     Fixtures::Structs::Nested4.new.read(ruby_binary_protocol)
   end
-  
-  x.report("c write large (1MB) structure once") do    
+
+  x.report("c write large (1MB) structure once") do
     n4.write(c_fast_binary_protocol)
   end
-  
+
   x.report("c read large (1MB) structure once") do
     Fixtures::Structs::Nested4.new.read(c_fast_binary_protocol)
   end
-  
-  
-  
+
   x.report("ruby write 10_000 small structures") do
     10_000.times do
       ooe.write(ruby_binary_protocol)
     end
   end
-  
+
   x.report("ruby read 10_000 small structures") do
     10_000.times do
       Fixtures::Structs::OneOfEach.new.read(ruby_binary_protocol)
     end
   end
-  
+
   x.report("c write 10_000 small structures") do
     10_000.times do
       ooe.write(c_fast_binary_protocol)
     end
   end
-  
+
   x.report("c read 10_000 small structures") do
     10_000.times do
       Fixtures::Structs::OneOfEach.new.read(c_fast_binary_protocol)
diff --git a/test/rb/core/test_backwards_compatability.rb b/test/rb/core/test_backwards_compatability.rb
index 0577515..13c16c5 100644
--- a/test/rb/core/test_backwards_compatability.rb
+++ b/test/rb/core/test_backwards_compatability.rb
@@ -27,4 +27,3 @@
     assert_equal msg, Thrift::Exception.new(msg).message
   end
 end
-
diff --git a/test/rb/core/test_exceptions.rb b/test/rb/core/test_exceptions.rb
index f41587a..7185f1c 100644
--- a/test/rb/core/test_exceptions.rb
+++ b/test/rb/core/test_exceptions.rb
@@ -27,4 +27,3 @@
     assert_equal msg, Thrift::Exception.new(msg).message
   end
 end
-
diff --git a/test/rb/core/transport/test_transport.rb b/test/rb/core/transport/test_transport.rb
index d5967cb..49af6d9 100644
--- a/test/rb/core/transport/test_transport.rb
+++ b/test/rb/core/transport/test_transport.rb
@@ -26,7 +26,7 @@
   def initialize(data)
     @data = StringIO.new(data)
   end
-  
+
   def read(size)
     @data.read(size)
   end
@@ -37,19 +37,19 @@
   def setup
     @trans = Thrift::BaseTransport.new
   end
-  
+
   def test_open?
     assert_nil @trans.open?
   end
-  
+
   def test_open
     assert_nil @trans.open
   end
-  
+
   def test_close
     assert_nil @trans.close
   end
-  
+
   # TODO:
   # This doesn't necessarily test he right thing.
   # It _looks_ like read isn't guaranteed to return the length
@@ -60,11 +60,11 @@
     t = DummyTransport.new("hello")
     assert_equal "hello", t.read_all(5)
   end
-  
+
   def test_write
     assert_nil @trans.write(5) # arbitrary value
   end
-  
+
   def test_flush
     assert_nil @trans.flush
   end
diff --git a/test/rb/fixtures/structs.rb b/test/rb/fixtures/structs.rb
index ebbeb0a..79f2997 100644
--- a/test/rb/fixtures/structs.rb
+++ b/test/rb/fixtures/structs.rb
@@ -31,7 +31,7 @@
       def validate
       end
     end
-    
+
     class OneByte
       include Thrift::Struct
       attr_accessor :byte
@@ -42,7 +42,7 @@
       def validate
       end
     end
-    
+
     class OneI16
       include Thrift::Struct
       attr_accessor :i16
@@ -53,7 +53,7 @@
       def validate
       end
     end
-    
+
     class OneI32
       include Thrift::Struct
       attr_accessor :i32
@@ -64,7 +64,7 @@
       def validate
       end
     end
-    
+
     class OneI64
       include Thrift::Struct
       attr_accessor :i64
@@ -75,7 +75,7 @@
       def validate
       end
     end
-    
+
     class OneDouble
       include Thrift::Struct
       attr_accessor :double
@@ -86,7 +86,7 @@
       def validate
       end
     end
-    
+
     class OneString
       include Thrift::Struct
       attr_accessor :string
@@ -97,7 +97,7 @@
       def validate
       end
     end
-    
+
     class OneMap
       include Thrift::Struct
       attr_accessor :map
@@ -108,7 +108,7 @@
       def validate
       end
     end
-    
+
     class NestedMap
       include Thrift::Struct
       attr_accessor :map
@@ -119,7 +119,7 @@
       def validate
       end
     end
-    
+
     class OneList
       include Thrift::Struct
       attr_accessor :list
@@ -130,7 +130,7 @@
       def validate
       end
     end
-    
+
     class NestedList
       include Thrift::Struct
       attr_accessor :list
@@ -141,7 +141,7 @@
       def validate
       end
     end
-    
+
     class OneSet
       include Thrift::Struct
       attr_accessor :set
@@ -152,7 +152,7 @@
       def validate
       end
     end
-    
+
     class NestedSet
       include Thrift::Struct
       attr_accessor :set
@@ -163,7 +163,7 @@
       def validate
       end
     end
-    
+
     # struct OneOfEach {
     #   1: bool im_true,
     #   2: bool im_false,
diff --git a/test/rb/generation/test_enum.rb b/test/rb/generation/test_enum.rb
index 607ea66..4f135d9 100644
--- a/test/rb/generation/test_enum.rb
+++ b/test/rb/generation/test_enum.rb
@@ -25,10 +25,10 @@
   def test_enum_valid_values
     assert_equal(Numberz::VALID_VALUES, Set.new([Numberz::ONE, Numberz::TWO, Numberz::THREE, Numberz::FIVE, Numberz::SIX, Numberz::EIGHT]))
   end
-  
+
   def test_enum_hash
     Numberz::VALID_VALUES.each do |value|
       assert_equal(Numberz.const_get(Numberz::VALUE_MAP[value].to_sym), value)
     end
   end
-end
\ No newline at end of file
+end
diff --git a/test/rb/generation/test_struct.rb b/test/rb/generation/test_struct.rb
index 3bd4fc9..786c1a2 100644
--- a/test/rb/generation/test_struct.rb
+++ b/test/rb/generation/test_struct.rb
@@ -36,7 +36,7 @@
 
     assert_kind_of(Hash, hello.complex)
     assert_equal(hello.complex, { 6243 => 632, 2355 => 532, 23 => 532})
-    
+
     bool_passer = TestNamespace::BoolPasser.new(:value => false)
     assert_equal false, bool_passer.value
   end
diff --git a/test/rb/integration/TestClient.rb b/test/rb/integration/TestClient.rb
index ca54c8b..7a360ef 100755
--- a/test/rb/integration/TestClient.rb
+++ b/test/rb/integration/TestClient.rb
@@ -82,7 +82,7 @@
       else
         @socket = Thrift::UNIXSocket.new($domain_socket)
       end
-      
+
       if $transport == "buffered"
         transportFactory = Thrift::BufferedTransport.new(@socket)
       elsif $transport == "framed"
diff --git a/test/rb/test_suite.rb b/test/rb/test_suite.rb
index b157c2c..dac2d4a 100644
--- a/test/rb/test_suite.rb
+++ b/test/rb/test_suite.rb
@@ -17,4 +17,4 @@
 # under the License.
 #
 
-Dir["{core,generation}/**/*.rb"].each {|f| require f }
\ No newline at end of file
+Dir["{core,generation}/**/*.rb"].each {|f| require f }