lib/protobuf/descriptor/descriptor_builder.rb in protobuf-1.0.1 vs lib/protobuf/descriptor/descriptor_builder.rb in protobuf-1.1.0.beta0

- old
+ new

@@ -105,15 +105,15 @@ end def self.label2id(label) require 'protobuf/descriptor/descriptor_proto' case label - when :required - Google::Protobuf::FieldDescriptorProto::Label::LABEL_REQUIRED then - when :optional - Google::Protobuf::FieldDescriptorProto::Label::LABEL_OPTIONAL then - when :repeated - Google::Protobuf::FieldDescriptorProto::Label::LABEL_REPEATED then + when :required then + Google::Protobuf::FieldDescriptorProto::Label::LABEL_REQUIRED + when :optional then + Google::Protobuf::FieldDescriptorProto::Label::LABEL_OPTIONAL + when :repeated then + Google::Protobuf::FieldDescriptorProto::Label::LABEL_REPEATED else raise ArgumentError, "Invalid label: #{label}" end end