-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace enum messages, don't concut them (#55)
# Double definition bug ``` pb.messages "This is the first string of the repeating ones" pb.messages "This is the second one" ``` This code right now equals to this: `pb.messages ["This is the first string of the repeating ones", "This is the second one"] ` But jbuilder handles this case differently. So in this PR behaviour is change to one similar to jbuilder - only last definition will be persisted and first one will be discarded. `pb.messages ["This is the second one"]` # Double render bug It seems that rails-twirp gem does double rendering sometimes and some fields have duplicated values. e.g. `pb.redemption_methods [:instore, :online]` could end up in putput as `[:instore, :online, :instore, :online]`
- Loading branch information
Stanislav (Stas) Katkov
authored
Mar 22, 2024
1 parent
cdf4d1c
commit 253cdcb
Showing
4 changed files
with
41 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
Gem::Specification.new do |spec| | ||
spec.name = "pbbuilder" | ||
spec.version = "0.16.2" | ||
spec.version = "0.17.0" | ||
spec.authors = ["Bouke van der Bijl"] | ||
spec.email = ["[email protected]"] | ||
spec.homepage = "https://github.com/cheddar-me/pbbuilder" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters