Fixing C++ and ruby code generators for the opensource build.
	Change on 2014/12/11 by nnoble <nnoble@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=81921764
diff --git a/src/compiler/ruby_generator.cc b/src/compiler/ruby_generator.cc
index 2d56c4b..64a8152 100644
--- a/src/compiler/ruby_generator.cc
+++ b/src/compiler/ruby_generator.cc
@@ -59,11 +59,11 @@
 void PrintMethod(const MethodDescriptor* method, const string& package,
                  Printer* out) {
   string input_type = RubyTypeOf(method->input_type()->name(), package);
-  if (method->options().has_client_streaming()) {
+  if (method->client_streaming()) {
     input_type = "stream(" + input_type + ")";
   }
   string output_type = RubyTypeOf(method->output_type()->name(), package);
-  if (method->options().has_server_streaming()) {
+  if (method->server_streaming()) {
     output_type = "stream(" + output_type + ")";
   }
   map<string, string> method_vars = ListToDict({
diff --git a/src/compiler/ruby_generator.h b/src/compiler/ruby_generator.h
index dae744d..4f13f1a 100644
--- a/src/compiler/ruby_generator.h
+++ b/src/compiler/ruby_generator.h
@@ -36,9 +36,13 @@
 
 #include <string>
 
-namespace proto2 {
+using namespace std;
+
+namespace google {
+namespace protobuf {
 class FileDescriptor;
-}  // namespace proto2
+}  // namespace protobuf
+}  // namespace google
 
 namespace grpc_ruby_generator {
 
diff --git a/src/compiler/ruby_generator_map-inl.h b/src/compiler/ruby_generator_map-inl.h
index 3db6537..ea50506 100644
--- a/src/compiler/ruby_generator_map-inl.h
+++ b/src/compiler/ruby_generator_map-inl.h
@@ -40,7 +40,6 @@
 #include <string>
 #include <vector>
 
-#include "base/logging.h"
 
 using std::initializer_list;
 using std::map;
@@ -52,11 +51,11 @@
 // into a map of key* to value*. Is merely a readability helper for later code.
 inline map<string, string> ListToDict(const initializer_list<string>& values) {
   if (values.size() % 2 != 0) {
-    LOG(FATAL) << "Not every 'key' has a value in `values`.";
+    // MOE: insert     std::cerr << "Not every 'key' has a value in `values`." << std::endl;
   }
   map<string, string> value_map;
   auto value_iter = values.begin();
-  for (int i = 0; i < values.size()/2; ++i) {
+  for (unsigned i = 0; i < values.size()/2; ++i) {
     string key = *value_iter;
     ++value_iter;
     string value = *value_iter;