Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
c11096c1
Commit
c11096c1
authored
Dec 15, 2018
by
Hao Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not require Ruby enum to be upper case
parent
37dbfd6c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
message.c
ruby/ext/google/protobuf_c/message.c
+0
-6
No files found.
ruby/ext/google/protobuf_c/message.c
View file @
c11096c1
...
...
@@ -697,12 +697,6 @@ VALUE build_module_from_enumdesc(EnumDescriptor* enumdesc) {
upb_enum_next
(
&
it
))
{
const
char
*
name
=
upb_enum_iter_name
(
&
it
);
int32_t
value
=
upb_enum_iter_number
(
&
it
);
// if (name[0] < 'A' || name[0] > 'Z') {
// rb_raise(cTypeError,
// "Enum value '%s' does not start with an uppercase letter "
// "as is required for Ruby constants.",
// name);
// }
rb_define_const
(
mod
,
name
,
INT2NUM
(
value
));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment