Closed tisonkun closed 2 years ago
Fixed in https://github.com/tisonkun/pulsar-client-ruby/commit/f829109dd43b074573329779f09852d669f3b445 with ENV['PB_UPCASE_ENUMS'] = 'true'
.
However, I may want to capitalize instead of upcase.
Hey! I’m glad you were able to get this issue resolved.
@film42 what do you think about the capitalize alternative? I have some original enum values like ServiceNotReady
and I'd prefer to retain them. With PB_UPCASE_ENUMS
set, it's transformed to SERVICENOTREADY
. Or it's the convention for Ruby code?
Here is a quick patch you can review https://github.com/ruby-protobuf/protobuf/pull/428.
Released in v3.10.7
. Thanks!
To reproduce:
bin/setup
bin/console